GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #7903

New issue
Copy link
New issue
Copy link
Closed
Closed
fleet_paperwork.py comment subcommand fails HTTP 422 (No commit found for SHA: main); api route works#7903
Copy link
Assignees
dezren39
Labels
epic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)status/done

Description

@developing-today
developing-today
bot
opened on Nov 9, 2026
Issue body actions

Problem

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.

Activity

  1. dezren39
    added
    epic/fleet-orchestrationReprioritization program epic (2026-11-12)
    on Nov 12, 2026
  2. github-actions
    assigned
    dezren39
    on Nov 12, 2026
  3. developing-today commented on Nov 17, 2026

    @developing-today
    developing-todayBot
    on Nov 17, 2026 – with developing.today
    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):

    • Issue fleet_paperwork.py comment subcommand fails HTTP 422 (No commit found for SHA: main); api route works #7903 was OPEN and untouched: no comments, no triage labels (only epic/fleet-orchestration).
    • 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).
    • The file has changed since the 2026-11-09 reproduction: 2026-11-10 create-readback rework (PR fix(fleet-paperwork): create readback compares body, state and labels (#6901) #7799), 2026-11-12 treefmt pass, 2026-11-17 page-loop bounds (fd94502). The 422's cause is not present in the current code, and the live test in this note confirms the subcommand works.

    Verdict and routing are recorded in the completion note for task 18546 on this issue.

  4. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    Member
    More actions

    🤖 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.

  5. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    status/done
    on Nov 17, 2026
  6. dezren39
    closed this as completedon Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

epic/fleet-orchestrationReprioritization program epic (2026-11-12)kind/bugSomething isn't working (prefixed form of the classic bug label)status/done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.