You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fleet_paperwork.py comment subcommand fails HTTP 422 (No commit found for SHA: main); api route works #7903
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.
🤖 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.
Code read at origin/main (1a14460): cmd_comment POSTs exactly /repos/{repo}/issues/{issue}/comments with {"body": body} — byte-for-byte the request shape the issue says succeeded via the generic api route. No SHA/ref is resolved or sent anywhere in the comment path, and cmd_api contains no bare body reference (the issue's second, transient symptom).
🤖 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.
Activity
developing-today commentedon Nov 17, 2026
🤖 Agent note · triaged (inline triage — live repro test of the reported failure)
This comment was posted through
fleet_paperwork.py commentitself — 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):
epic/fleet-orchestration).origin/main(1a14460):cmd_commentPOSTs exactly/repos/{repo}/issues/{issue}/commentswith{"body": body}— byte-for-byte the request shape the issue says succeeded via the genericapiroute. No SHA/ref is resolved or sent anywhere in the comment path, andcmd_apicontains no barebodyreference (the issue's second, transient symptom).Verdict and routing are recorded in the completion note for task 18546 on this issue.
dezren39 commentedon 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 returnedcommented+verified: developing-today/code#7903 comment 6937327807— the dedicatedcommentsubcommand posted and read-back-verified successfully. The HTTP 422 ("No commit found for SHA: main") does not reproduce, and the transientname 'body' is not definedpath is absent from the currentcmd_apicode.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_commentsends exactly the request shape that the issue records as working via theapiroute. 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.