Fleet-state JSON still travels to jq in argv outside the sites TD-PPagop-26081301 and TD-PPagop-26081401 enumerated
Id: TD-PPagop-26081406 · Status: resolved · Filed: 2026-08-14 · Resolved: 2026-08-15 · Ref: https://github.com/Poetic-Poems/agent-ops/pull/389
TD-PPagop-26081301 converted the sites the 2026-08-12 argv-cap outage bit at,
plus the bounded-today ones around them; TD-PPagop-26081401 converted the seven
residual sites that record enumerated. Neither item swept the tree, and the
sites below are what a grep -n -- --argjson over agent-cycle.sh, lib/ and
scripts/ still finds carrying fleet state rather than the
configuration-bounded values requirement 4g permits in argv (a model name, a
config object, a prompt sha, one repo’s register ids).
They are listed loudest-failure-first, on the same terms TD-PPagop-26081401
used. None is known to be near MAX_ARG_STRLEN (131072 bytes) today except
where noted.
agent-cycle.sh’s Co-Ordinator recorded-refinement and voided accumulators (--argjson e "$entry"at thecoord_recorded_refinement_jsonandcoord_recorded_voided_jsonappends), and the two{needs_refinement, voided}builds they feed (--argjson nr/--argjson v, at the first-attempt and retryunaccounted_itemscall sites). This is the one whose failure is already demonstrable, and it defeats the fix TD-PPagop-26081401 just made one call frame downstream: past the cap the builder dies atexecve(exit 126), its failure does not trip the enclosingset -ebecause it is a nested command substitution, andunaccounted_itemsis handed"". With an empty first documentinput as $recordedconsumes the eligible array, the secondinputfinds nothing, and the call fail-opens to[]— the Script then reports zero unaccounted items and corroborates the Co-Ordinator’snone-selected, silently, exactly when there is the most recorded refinement to account for. Requirement 3v’s contradiction record, which the crash-loop ladder and the dashboard read, is never written. The accumulators themselves are the identical shape to the Enabler and Refiner claim accumulators TD-PPagop-26081401 converted.scripts/gather-review-feedback.sh— the assembled review body (--argjson fr "$fresh",--argjson fc "$fresh_comments": every fresh review and inline comment on the pull request, verbatim), the candidate build (--argjson pr "$pr", a whole pull-request object including its body) and the per-candidate append (--argjson c "$cand"). Genuinely unbounded, not merely growing — the same shape and the same reasoning that putscripts/gather-merge-conflicts.shfirst on TD-PPagop-26081401’s list. The script runs underset -uo pipefail, so past the cap$candis empty, every later append fails in turn and the repo’s wholereview_feedbackband comes out empty.scripts/gather-abandoned-drafts.sh— the candidate build (--argjson pr "$pr") and the per-candidate append (--argjson c "$cand"), carryingbody: ($pr.body // ""). Identical to the above, for theabandoned_draftsband.scripts/gather-issues.sh— the entry build (--argjson comments, a whole issue thread: requirement 3d/#118 pre-fetches every comment) and the array append (--argjson e "$entry"). Both are already guarded bydegrade, so this one is loud on stderr and degrades that repo’s wholeissuesband to[]rather than failing silently.agent-cycle.sh’s per-repo entry build (--argjson findings,--argjson rf,--argjson ad,--argjson mc,--argjson rh,--argjson issues,--argjson td). TD-PPagop-26081301 named$entry— one repo’s whole pre-fetched sources, issue threads and open register included — as the least bounded value in that loop and converted the append that consumes it; the build that produces it still passes every one of those bands through argv, and each band alone can be tens of kilobytes.lib/refinement.shrefiner_candidate_items—--argjson refinements,--argjson blocked,--argjson voidand--argjson claimed: four of the five aggregates requirement 4g names by name as growing with the fleet’s history, all still in argv, with$reposalone on stdin. Fails into the function’s own2>/dev/null || printf '[]', so past the cap the Refiner silently finds no candidates at all.scripts/gather-human-visibility-hygiene.sh— the two survivor appends (--argjson v "$v") and the final--argjson problems.scripts/gather-unvoid-requests.sh— the request build (--argjson hit,--argjson items) and the per-request append (--argjson r "$req").scripts/nudge-dependabot-rebase.sh— the conflict accumulator (--argjson c "$cand").
The fix is the same mechanical conversion at each: concatenate the documents
(docs="$(printf '%s\n' "$a" "$b")"), deliver with a here-string, bind
positionally with input as $name in the printed order, and leave only
configuration-bounded values in argv. Convert a site together with a test that
pins its fail-safe direction past the cap, as requirement 4g’s own acceptance
discipline requires — test/merge-conflicts.test.sh,
test/pr-claim-exclusion.test.sh and their siblings are the reference. Where
a converted site currently fails loudly, keep it loud: scripts/gather-tech-debt.sh
and scripts/gather-issues.sh route the failure through degrade rather than
swallowing it with 2>/dev/null, which is the direction a band whose job is
visibility should fail in.
Requirement 4g in docs/IMPLEMENTATION-PIPELINE-SPEC.md names this item as
the residue; resolving it means removing that reference along with the sites.