Repository navigation
Conversation
|
|
Speaking as a user's firstmate. Confirming a real-world reproduction: a backlog of about 106 KB expands into a contribution-input JSON argument large enough for jq to fail with This appears to overlap #6302, #5577, #5530, #5122, #4861 and #5182. Rather than add another implementation, could the maintainer choose one survivor and consolidate the duplicates? This candidate currently has no merge conflict. A regression should also retain the invalid-input/error outcome rather than treating an empty poll as complete coverage. |
|
Speaking as Kun's firstmate: Status: waiting on CI · contract-class: restore · head Thank you for this. The CI: I approved the fork workflow runs at this head (CI Optional, not blocking: as @Diabl0570 noted, that branch still ends in Overlap: these open PRs target the same failure: #6302, #5577, #5530, #5122, #4861, #5182. I'm noting that for the maintainer and not asking anything of you. VISION.md per-rule: One captain, one interface: aligns (session start finishes instead of truncating). Authority explicit: aligns (no new behavior or consent change). Scripts/agents split: aligns (deterministic transport fix). Restart is a non-event: aligns. Delegation with a spine: n/a. Outlives any vendor: aligns. Scope: aligns. |
|
The one failing check here, Behavior portable serial 4, fails in tests/fm-remote-reply.test.sh ("the NUL-bearing line was not captured"). This PR only changes bin/fm-fleet-snapshot.sh and tests/fm-fleet-snapshot-view.test.sh, so that failure looks unrelated to the change; the rest of the suite is green. A re-run of that job should confirm. Happy to look into the remote-reply flake separately. |
|
Speaking as Kun's firstmate: thanks @wesleykam for adding the loud I approved this head's fork runs: CI Blocking (on you): the no-mistakes attestation is bound to |
c9090c7 to
bae2903
Compare
|
Speaking as Kun's firstmate (the triage agent for this repo, not Kun personally). Thanks @wesleykam. The re-raise worked: the no-mistakes attestation now binds head Verdict unchanged: contract-class restore. Session start is meant to finish, and this restores that on large backlogs without changing any unconfigured behavior. VISION: one captain/one interface aligns, authority explicit aligns, scripts own mechanics aligns, restart non-event aligns, delegation n/a, outlives any vendor aligns, Scope aligns. Status: waiting-ci. Nothing is needed from you. If CI and the no-mistakes check come back green and it's still mergeable, I expect to merge it as restore on a later pass. If serial 4 hits the known |
Intent
lets do all the queued items
The queued item: on 2026-10-05 session start printed "bin/fm-fleet-snapshot.sh: line 1978: /usr/bin/jq: Argument list too long" and the default 120-second session start truncated at the wake-queue stage; rerunning with FM_SESSION_START_TIMEOUT=600 completed. The backlog had about 93 queued items plus done history.
What Changed
fm-fleet-snapshot.sh, before the--contribution-inputearly-exit branch, so that branch can reuse it.--contribution-inputpath to writecontribution_tasks_jsonoutput to a file and assemble the result withjq --slurpfileinstead of passing the backlog and tasks JSON inline via--argjson, avoiding the OS argument-length limit thatjqhit on large backlogs.contribution_tasks_jsonoutput directly to its transport file instead of buffering it in a shell variable first.test_contribution_input_handles_argument_limit_backlog) that fakesjqto reject any argument over 64 KiB and builds a ~600-item backlog exceeding that size, verifying--contribution-inputstill succeeds via file transport; bumped the CI expected snapshot/fleet-view test count from 18 to 19 accordingly.Co-Authored-By: Claude Sonnet 5 [email protected]
Risk Assessment
✅ Low: The change closes a gap left by the prior commit on this branch: the contribution-input early-exit path still passed the full backlog JSON as a jq argv argument (the exact code at the originally reported line 1978), while the main pipeline had already moved to file-based transport; this commit routes that path through the same file transport, adds a missing error check on the jq call, and backs it with an end-to-end regression test (verified via the public --contribution-input CLI output, not source text) plus a correct CI expected-count bump from 18 to 19.
Testing
Drove the real fm-fleet-snapshot.sh binary directly (it's a read-only CLI with no TUI surface, so no Herdr lab was needed) with real jq and the host's real ARG_MAX, reproducing the exact reported crash on the base commit and confirming the target commit's file-based (--slurpfile) transport fixes it, including the companion fail-loud-on-jq-error guard. Also ran the full targeted test file for this script (19/19 pass, matching CI's updated count) and the three contribution-input call sites plus the read-only-state invariant test in the downstream consumer's test suite, all passing with no regressions.
/bin/bash tests/fm-contributions.test.sh: test_unobserved_head_leaves_verdict_unknown, test_away_yolo_is_fleet_work, test_away_yolo_cross_home_is_fleet_work, and test_read_only_views_create_no_state…/bin/bash tests/fm-fleet-snapshot-view.test.shprints 19 'ok - ' lines and 0 'not ok' lines, matching .github/workflows/ci.yml's updated expectation of 19 (raised from 18 in this change).Evidence: Live before/after reproduction transcript (argv-limit crash and fail-loud guard)
Source: Live before/after reproduction transcript (argv-limit crash and fail-loud guard)
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
/bin/bash tests/fm-contributions.test.sh: test_unobserved_head_leaves_verdict_unknown, test_away_yolo_is_fleet_work, test_away_yolo_cross_home_is_fleet_work, and test_read_only_views_create_no_state…/bin/bash tests/fm-fleet-snapshot-view.test.shprints 19 'ok - ' lines and 0 'not ok' lines, matching .github/workflows/ci.yml's updated expectation of 19 (raised from 18 in this change).Manual live repro: base commit b062eb9 with a 15,000-row backlog (1.56MB source) crashes jq via argv overflow and silently exits 0 with empty stdout (the exact reported bug)Manual live repro: target commit bae2903 with the same 15,000-row backlog and FM_HOME succeeds, exit 0, 17.1MB valid JSON with all 15000 backlog recordsManual live repro: intermediate commit 29cdc08 (file-transport added, no error guard) silently exits 0 with empty stdout when jq genuinely fails on the assembly call; target commit bae2903 exits 1 with 'fm-fleet-snapshot: contribution input assembly failed'/bin/bash tests/fm-fleet-snapshot-view.test.sh— 19/19 ok, 0 failures (matches CI's updated expected count of 19, up from 18)/bin/bash tests/fm-contributions.test.sh(partial, 41/51 in 100s before unrelated timing-budget tests ran long) — all three tests exercisingfm-fleet-snapshot.sh --contribution-inputpassed: test_unobserved_head_leaves_verdict_unknown, test_away_yolo_is_fleet_work, test_away_yolo_cross_home_is_fleet_work, and test_read_only_views_create_no_state (guards against the relocated temp-dir creation)✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.