Skip to content

fix(todo): format the assembler so it is stable at any ruff line-length#331

Merged
jdfalk merged 1 commit into
mainfrom
fix/assembler-width-stable
Jul 20, 2026
Merged

fix(todo): format the assembler so it is stable at any ruff line-length#331
jdfalk merged 1 commit into
mainfrom
fix/assembler-width-stable

Conversation

@jdfalk

@jdfalk jdfalk commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

ruff format is not idempotent across line-lengths — a file formatted at 80
columns has its short lines rejoined at 88. scripts/assemble_todo.py is copied
verbatim into repos that have no ruff.toml of their own, where ruff falls back
to its 88-column default, so ruff format --check rejected a file that is
correctly formatted here.

Surfaced by the TODO fan-out: falkcorp/cockroach-rollout-agent has no ruff
config, and its Python CI failed on the copied file.

Fix

Every multi-line construct now carries a magic trailing comma, which pins it
exploded regardless of width. The two that could not take one — a bare generator
argument to sorted() and an implicitly concatenated string — were reshaped to
fit under 79 columns instead.

Testing

  • Output verified byte-identical at widths 79, 80, 88, 100, 120 and 200.
  • Passes ruff check and ruff format --check under both this repo's config and
    a bare --isolated default (the fan-out repos' situation).
  • Round-trip behavior unchanged: a fragment still folds into the Inbox and is
    deleted.

🤖 Generated with Claude Code

https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2

ruff format is not idempotent across line-lengths - a file formatted at
80 columns has its short lines rejoined at 88. assemble_todo.py is copied
verbatim into repos with no ruff.toml of their own, where ruff falls back
to its 88-column default, so `ruff format --check` failed there on a file
that is correctly formatted here.

Surfaced by the fan-out: falkcorp/cockroach-rollout-agent has no ruff
config, and its Python CI rejected the file.

Every multi-line construct now carries a magic trailing comma, which pins
it exploded regardless of width. The two that could not take one - a bare
generator argument and an implicitly concatenated string - were reshaped
to fit under 79 columns instead. Output verified byte-identical at widths
79, 80, 88, 100, 120 and 200, and the file passes ruff check and
ruff format --check under both this repo's config and a bare --isolated
default. Round-trip behavior is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
@github-actions github-actions Bot added automation Automation scripts and tools type:documentation Improvements or additions to documentation module:config Configuration management tech:python Python programming language tech:shell Shell scripting (bash, sh) workflow:automation Automation and tooling size/M labels Jul 20, 2026
@jdfalk
jdfalk merged commit a1ceaef into main Jul 20, 2026
39 of 41 checks passed
@jdfalk
jdfalk deleted the fix/assembler-width-stable branch July 20, 2026 01:37
jdfalk added a commit to falkcorp/transcoderr that referenced this pull request Jul 20, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/audiobook-organizer that referenced this pull request Jul 20, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/subtitle-manager that referenced this pull request Jul 20, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/ubuntu-autoinstall-agent that referenced this pull request Jul 20, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/ubuntu-autoinstall-webhook that referenced this pull request Jul 20, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/gcommon-go that referenced this pull request Jul 20, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/emergency-console that referenced this pull request Jul 20, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/mtls-bridge that referenced this pull request Jul 20, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/migrate-loop that referenced this pull request Jul 20, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/overnight-burndown that referenced this pull request Jul 20, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/cockroach-rollout-agent that referenced this pull request Jul 20, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/safe-ai-util that referenced this pull request Jul 20, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/magnet-handler that referenced this pull request Jul 20, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/transcoderr that referenced this pull request Jul 21, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/audiobook-organizer that referenced this pull request Jul 21, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/ubuntu-autoinstall-agent that referenced this pull request Jul 21, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/gcommon-go that referenced this pull request Jul 21, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/emergency-console that referenced this pull request Jul 21, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/mtls-bridge that referenced this pull request Jul 21, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/migrate-loop that referenced this pull request Jul 21, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/overnight-burndown that referenced this pull request Jul 21, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/magnet-handler that referenced this pull request Jul 21, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/safe-ai-util that referenced this pull request Jul 21, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/subtitle-manager that referenced this pull request Jul 21, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
jdfalk added a commit to falkcorp/cockroach-rollout-agent that referenced this pull request Jul 21, 2026
Picks up falkcorp/github-common#331: ruff format is not idempotent
across line-lengths, so the previous copy failed `ruff format --check`
in repos that have no ruff.toml and fall back to ruff's 88-column
default. Output is now byte-identical at any width.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013vU67T2LJDCbYTBs9ZFAf2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation Automation scripts and tools module:config Configuration management size/M tech:python Python programming language tech:shell Shell scripting (bash, sh) type:documentation Improvements or additions to documentation workflow:automation Automation and tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant