The landings digest's refusal class is a prose convention nothing enforces, so a new refusal call site silently regresses the grouping
Id: TD-PPagop-26082823 · Status: resolved · Filed: 2026-08-28 · Resolved: 2026-09-27 · Ref: #1885
Noticed while reviewing PR #864 (TD-PPagop-26082502).
TD-PPagop-26082502 fixed the Autonomous landings panel’s refusal grouping by
giving every colon-carrying _landing_refuse reason in _landing_stage_attempt
(lib/landing.sh) a stable class word ahead of its first : —
approver-review-unreadable:, arm-failed:, dequeued-manual: and the rest —
so byReason (dashboard/index.html), which groups on reason.split(":")[0],
keys on the gate that refused rather than on the scheme colon of an embedded
$pr_url. That fix is correct for every call site that exists today.
What it does not do is make the invariant enforceable. The class lives inside
the human-readable reason string, so the contract between producer and consumer
is prose in three places — lib/landing.sh’s own header, requirement 33 and
docs/DASHBOARD-SPEC.md’s refusal-grouping note — and nothing mechanical holds
a new call site to it. test/landing-wiring.test.sh pins the class of two
specific refusals; a twelfth gate added next quarter with a sentence-form reason
embedding $pr_url reintroduces the exact defect TD-PPagop-26082502 was filed
for, with no failing test, no lint rule and no dashboard symptom short of an
operator noticing the singleton groups themselves.
Why it matters
Section titled “Why it matters”This is the same failure mode the fleet already solved structurally elsewhere.
stand-down events carry their three-way distinction as a cause field
precisely “so a reader (the dashboard included) does not have to re-parse the
reason text” (requirement 39, issue #245). landing-refused still makes its
reader parse prose, which is why the defect was possible at all and why it will
be possible again — the prose can drift out of the shape the consumer needs
without either side changing.
The cost is quiet by construction: the grouping degrades into singleton “groups”, which is exactly what a genuinely one-off refusal looks like, so the signal the panel exists to give (“two landings beside forty refusals is a classifier holding the line”) is lost without anything reporting a fault.
Suggested fix
Section titled “Suggested fix”Mint the class out of band, as TD-PPagop-26082502’s own “cleaner fix” note
proposed and scoped out: give _landing_refuse a CLASS parameter, log it as its
own class field on the landing-refused event (requirement 33’s schema), and
have byReason read that field, falling back to the split-on-first-: rule
only for events predating the field. Two things then become possible that are
not possible today: the class list is a closed set a test can enumerate against
the call sites, and a refusal logged with no class at all is a detectable
defect rather than an invisible one.
References
Section titled “References”lib/landing.sh—_landing_refuseand_landing_stage_attempt’s own header, which states the prose convention.dashboard/index.html—byReason.docs/IMPLEMENTATION-PIPELINE-SPEC.md— requirements 8d and 33.docs/DASHBOARD-SPEC.md— the refusal-grouping note.- Resolving this item should retire the prose convention from all four, not merely add the field beside it.
Migrated to https://github.com/Poetic-Poems/agent-ops/issues/1017.