Skip to content

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 the coord_recorded_refinement_json and coord_recorded_voided_json appends), and the two {needs_refinement, voided} builds they feed (--argjson nr / --argjson v, at the first-attempt and retry unaccounted_items call 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 at execve (exit 126), its failure does not trip the enclosing set -e because it is a nested command substitution, and unaccounted_items is handed "". With an empty first document input as $recorded consumes the eligible array, the second input finds nothing, and the call fail-opens to [] — the Script then reports zero unaccounted items and corroborates the Co-Ordinator’s none-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 put scripts/gather-merge-conflicts.sh first on TD-PPagop-26081401’s list. The script runs under set -uo pipefail, so past the cap $cand is empty, every later append fails in turn and the repo’s whole review_feedback band comes out empty.
  • scripts/gather-abandoned-drafts.sh — the candidate build (--argjson pr "$pr") and the per-candidate append (--argjson c "$cand"), carrying body: ($pr.body // ""). Identical to the above, for the abandoned_drafts band.
  • 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 by degrade, so this one is loud on stderr and degrades that repo’s whole issues band 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.sh refiner_candidate_items — --argjson refinements, --argjson blocked, --argjson void and --argjson claimed: four of the five aggregates requirement 4g names by name as growing with the fleet’s history, all still in argv, with $repos alone on stdin. Fails into the function’s own 2>/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.