requirement 17g's item_text_fault/item_text_supply (and the claim loop's \"fabricated\" cause) are unreachable now that requirement 17h composes context/acceptance directly
Id: TD-PPagop-26090604 · Status: resolved · Filed: 2026-09-06 · Resolved: 2026-09-20 · Ref: #1717
Requirement 17h (agent-ops#769, resolving agent-ops#844 option (b)) has the
Script compose context/acceptance/title itself, immediately before the
claim, for every source the fit ladder could ever trim (issues,
tech-debt) plus every other source the Script gathers as structured data —
never from a model’s own paste. That closes the gap requirement 17g’s
item_text_fault/item_text_supply (lib/candidate-select.sh) existed to
catch (a trimmed candidate’s acceptance naming a specific detail its own
input never supported, #815/#821) — but it does more than close it: it
removes the condition those checks were scoped to ever seeing again.
item_text_fault/item_text_supply are gated on a candidate’s {repo, item} appearing in coordinator_fit_trimmed_items’s own output
(lib/coordinator-input.sh), which only ever names issues/tech_debt
entries — the fit ladder’s own scope. Every candidate from either of those
two sources now reaches the claim loop already composed by requirement 17h
(c_composed, agent-cycle.sh’s per-candidate loop) — from a fresh live
read, never the trimmed extract these checks exist to check a model’s paste
against — so the claim loop’s own guard
((( selected_by_fallback || c_composed )) || c_fab_fault=…) means
item_text_fault is called only for a candidate from one of the three
self-derived sources (project-review, failed-runs,
implementation-plan), none of which can ever appear in
coordinator_fit_trimmed_items (they have no pre-fetched band for the fit
ladder to trim in the first place). The scoping test at the top of
item_text_fault therefore always returns 0 with nothing to check; the
function, its item_text_supply counterpart, the fab_faults counter, and
the cause: "fabricated" stand-down branch are dead code, kept only as a
defence against a regression in requirement 17h’s own compose step rather
than because either currently intercepts anything.
Removing them cleanly touches more than the two functions: agent-cycle.sh’s
claim loop (the two call sites and the fab_faults counter/stand-down
branch), test/item-text-fabrication.test.sh (which exists specifically to
exercise this now-unreachable path and would need retiring or rewriting
rather than left asserting behaviour that can no longer occur), and
docs/IMPLEMENTATION-PIPELINE-SPEC.md’s requirement 17g (which would need
rewriting as history rather than as a live requirement) plus its “Acceptance
checks” narrative (item 7h) and any dashboard vocabulary naming
cause: "fabricated". That is real, well-understood, and bounded work, but
wider than the “small, reviewable” scope agent-ops#769’s own pull request
kept to — noticed while implementing it (PR resolving agent-ops#769), and
deferred here rather than folded into that change.
Suggested fix: once requirement 17h has run in production for a while (long
enough to trust its own compose step is not itself regressing into the
fabrication/incompleteness failure modes 17g existed to catch), remove
item_text_fault/item_text_supply, their call sites, the fab_faults
counter and the "fabricated" stand-down cause, retire or rewrite
test/item-text-fabrication.test.sh, and rewrite requirement 17g as an
as-built account of why the check no longer exists rather than a still-live
requirement.