Repository navigation
Conversation
fm-fleet-snapshot --contribution-input passed the whole backlog JSON and contribution task list to jq as --argjson arguments, so record growth eventually exceeded ARG_MAX and failed with "Argument list too long" exactly when the snapshot mattered most. Stage both documents in the temporary transport directory and read them with --slurpfile, matching the main snapshot path. Output shape is unchanged. Regression: a generated backlog exceeding ARG_MAX must produce complete, valid contribution input with every record present.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
The fleet snapshot (
bin/fm-fleet-snapshot.sh) fails withArgument list too longas the number of records grows: on 2026-09-18 a session start printedbin/fm-fleet-snapshot.sh: line 1978: /usr/bin/jq: Argument list too long, and on 2026-09-21 the same error reappeared during a contributions read. The snapshot must produce identical output without ever passing an unbounded argument list tojq.What Changed
ARG_MAXwithout truncation.Risk Assessment
Testing
The targeted behavior suite passed, and live isolated CLI runs reproduced the base commit's
Argument list too longfailure while confirming the changed product emits valid, complete oversized backlog and task output with unchanged normal output.2284111320cecdd547be2932a40592852ece99935a3875466beac287efc9ffab.rec-000001throughrec-011000. The his…Argument list too long.Evidence: Live fleet snapshot regression and compatibility evidence
Source: Live fleet snapshot regression and compatibility evidence
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
tests/fm-fleet-snapshot-view.test.sh:1193- The change removes the existingtest_fixture_snapshot_jsoninvocation, leaving that behavioral test defined but never run. This drops unrelated coverage of the default snapshot’s task ordering, state, PR, backlog, report, and endpoint output while the intent requires unchanged output. Restore the invocation unless this coverage reduction was explicitly intended.✅ **Test** - passed
✅ No issues found.
2284111320cecdd547be2932a40592852ece99935a3875466beac287efc9ffab.rec-000001throughrec-011000. The his…Argument list too long.bash tests/fm-fleet-snapshot-view.test.shFM_HOME=<isolated-home> bin/fm-fleet-snapshot.sh --contribution-inputwith a 5,137,010-byte backlog containing 11,000 recordsFM_HOME=<isolated-home> bin/fm-fleet-snapshot.sh --contribution-inputwith contribution-task output exceeding ARG_MAXByte-for-byte comparison of normal contribution output against base commit631bc26d7b08b57e724f08a1734cc2eb2a0abf52Historical regression reproduction using the base executable against both oversized inputs✅ **Document** - passed
✅ No issues found.
🔧 **Lint** - 1 issue found → auto-fixed ✅
🔧 Fix applied.
✅ Re-checked - no issues remain.
✅ **Push** - passed
✅ No issues found.