rehearsal reporter: one transient labels fetch silently degrades every label op for the run (WARN priority missing while the label exists) #495

Closed
opened 2026-08-13 00:28:24 +00:00 by ben · 1 comment
Owner

Symptom (drive 20260812T214238Z, first phase-2 red): the reporter logged WARN priority label missing from the tracker — blockers filed unlabelled while label priority (id 99) demonstrably exists — the identical lookup (GET /labels?limit=100 with the same token on the same host) finds it on re-run. #494 was filed and DID end up labelled (bug, ready-for-human, rehearsal-183) — labels that plausibly came from auto-triage rather than the reporter's own label_id path.

Suspected cause: rehearsal-report.sh:208 fetches labels_json ONCE with || labels_json='[]' — one transient API failure silently degrades EVERY label operation for the whole run (filing labels at :322, the priority float at :371, the ready-for-human flip ids) with only the priority branch saying anything, and nothing naming the actual fetch failure.

Rule: a failed labels fetch must be LOUD and retried — e.g. one paced re-fetch at first use when labels_json is empty, plus an explicit WARN labels fetch failed (HTTP …) at :208 so the degradation is attributable. Fail-open behavior (file unlabelled rather than not file) stays.

.sandcastle/rehearsal-report.sh is a protected path — human landing (the #460 precedent).

**Symptom (drive `20260812T214238Z`, first phase-2 red):** the reporter logged `WARN priority label missing from the tracker — blockers filed unlabelled` while label `priority` (id 99) demonstrably exists — the identical lookup (`GET /labels?limit=100` with the same token on the same host) finds it on re-run. #494 was filed and DID end up labelled (`bug, ready-for-human, rehearsal-183`) — labels that plausibly came from auto-triage rather than the reporter's own `label_id` path. **Suspected cause:** `rehearsal-report.sh:208` fetches `labels_json` ONCE with `|| labels_json='[]'` — one transient API failure silently degrades EVERY label operation for the whole run (filing labels at :322, the priority float at :371, the ready-for-human flip ids) with only the priority branch saying anything, and nothing naming the actual fetch failure. **Rule:** a failed labels fetch must be LOUD and retried — e.g. one paced re-fetch at first use when `labels_json` is empty, plus an explicit `WARN labels fetch failed (HTTP …)` at :208 so the degradation is attributable. Fail-open behavior (file unlabelled rather than not file) stays. `.sandcastle/rehearsal-report.sh` is a protected path — human landing (the #460 precedent).
Author
Owner

Second reporter-robustness finding from the same night (drive 20260813T013025Z): Forgejo answers a DUPLICATE dependency POST with HTTP 500, not 409 — the reporter read that 500 as "blocker did not land", declared the blocked invariant broken, and flipped #492 ready-for-human even though the dependency was already wired (verified by GET /dependencies listing #498). Reproduced by hand: POST 492<-498 → 500 while the listing shows it. Rule for the fix here: after a non-2xx/non-409 dependency POST, VERIFY via GET /issues/N/dependencies before declaring the invariant broken — a listed dep is a landed dep, whatever the POST said.

Second reporter-robustness finding from the same night (drive 20260813T013025Z): Forgejo answers a DUPLICATE dependency POST with HTTP 500, not 409 — the reporter read that 500 as \"blocker did not land\", declared the blocked invariant broken, and flipped #492 ready-for-human even though the dependency was already wired (verified by GET /dependencies listing #498). Reproduced by hand: POST 492<-498 → 500 while the listing shows it. Rule for the fix here: after a non-2xx/non-409 dependency POST, VERIFY via GET /issues/N/dependencies before declaring the invariant broken — a listed dep is a landed dep, whatever the POST said.
ben closed this issue 2026-08-13 03:19:06 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#495
No description provided.