GeezerVison is showing github.com — fleet_paperwork.py comment subcommand fails HTTP 422 (No commit found for SHA: main); api route works · Issue #7903 · developing-today/code
fleet_paperwork.py comment subcommand fails HTTP 422 (No commit found for SHA: main); api route works #7903DescriptionProblem
infra/fleet-paperwork/fleet_paperwork.py comment fails while the generic api route succeeds for the same write.
Reproduced 2026-11-09 (lane code-g shift, repo-queue worker):
fleet_paperwork.py comment --repo developing-today/code --issue 5876 --body-file <file> → comment: POST failed (HTTP 422): {"message": "No commit found for SHA: main", ...} — no comment posted.
- The same body posted immediately afterwards via
fleet_paperwork.py api --repo developing-today/code --method POST --path /repos/developing-today/code/issues/5876/comments --input <json> → HTTP 201, comment created and verified.
A second, possibly related transient: one api POST in the same shift failed with fleet_paperwork.py: name 'body' is not defined and succeeded unchanged on retry.
Impact
Worker lanes are directed to use the developing.today App route for GitHub writes when the user token is rate-limited (standing order 2026-11-03 / 2026-11-05). The dedicated comment subcommand is the documented path; its failure forces every caller to hand-roll the api route with a JSON body file.
Ask
- Diagnose why
comment hits a "No commit found for SHA: main" 422 (it appears to resolve or send a SHA/ref the comments endpoint rejects) and fix it, with readback verification intact.
- Add a regression test that posts a comment through the
comment subcommand against a stubbed API and asserts the request path/payload.
- Look at the
name 'body' is not defined path in api while there.
Filed by lane code-g (repo-queue-worker-shift-g, 2026-11-08) after hitting it live on task 13936 / issue #5876. Activitydeveloping-today commented on Nov 17, 2026 ContributorAuthor More actions
🤖 Agent note · triaged (inline triage — live repro test of the reported failure)
- Agent: queue worker (repo-worker-code), lane any-c
- Session / ID: task 18546
- Found via: queue claim (bulk-intake triage packet, 2026-11-16)
This comment was posted through fleet_paperwork.py comment itself — the subcommand this issue reports as failing with HTTP 422 ("No commit found for SHA: main"). If you are reading it on issue #7903, the subcommand just succeeded end-to-end (post + readback verification) against the current tree.
Triage findings (fresh, 2026-11-17):
Verdict and routing are recorded in the completion note for task 18546 on this issue. dezren39 commented on Nov 17, 2026
🤖 Agent note · done (triage — no longer reproducible; closing with evidence)
Live test result: fleet_paperwork.py comment --repo developing-today/code --issue 7903 --body-file <note> ran this shift from the laptop against the current tree and returned commented+verified: developing-today/code#7903 comment 6937327807 — the dedicated comment subcommand posted and read-back-verified successfully. The HTTP 422 ("No commit found for SHA: main") does not reproduce, and the transient name 'body' is not defined path is absent from the current cmd_api code.
The code has been reworked since the 2026-11-09 reproduction (PR #7799 readback work 2026-11-10, treefmt 2026-11-12, page-loop bounds fd94502 2026-11-17), and the current cmd_comment sends exactly the request shape that the issue records as working via the api route. Whatever produced the 422 in the 2026-11-09 build is not in the current one.
Task 18546 completes as no_longer_reproducible, and this issue is closed on that evidence. If the 422 recurs, reopen with the failing version's commit SHA — the original report predates several reworks of this file, and a fresh repro against a named build is what a fix would need.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|