reporter: standing-only priority (#1143) needs a protected-path change + reconciling Ben's #601 all-blockers-priority ruling #1152

Closed
opened 2026-09-02 09:58:33 +00:00 by matou-build-agent · 2 comments

Machinery change needed (found working #1143)

#1143 asks the rehearsal reporter to add the priority label to filed blockers only when the failing leg is standing — "a red at any other leg → unchanged labels". Implementing it is blocked for a sandcastle worker on two counts:

1. The deliverable is a protected path

The reporter that files blockers and stamps their labels is .sandcastle/rehearsal-report.sh (vendored from dev-factory). It is a fingerprinted protected path (#445) — a swarm worker cannot edit it; the change must be made upstream in dev-factory and re-vendored, or landed by an interactive session. There is no non-protected seam: the priority stamping happens at .sandcastle/rehearsal-report.sh:663-680.

2. #1143 reverses Ben's 2026-08-20 ruling (#601), so it is not a two-way door

As shipped today, priority is stamped on every drive blocker, on all legs, in two places:

  • Reporter — .sandcastle/rehearsal-report.sh:663-680 stamps every touched blocker unconditionally.
  • Executor sweep — scripts/rehearsal-executor.sh:106-126 + scripts/lib/rehearsal-priority-lib.sh re-stamp every open drive ticket every tick ("Ben's 2026-08-20 rule: all drive tickets carry priority").

So #1143's premise ("other legs → unchanged labels") is already false against the current tree, and a reporter-only change would be immediately undone by the executor sweep on the next tick. To make standing-only priority actually hold, a session must:

  1. Decide whether #1143 supersedes #601 (reserve priority for standing-leg reds so the float means something again vs. the current "everything is priority"). This reverses a standing human ruling — a session call, escalating to ready-for-human if it turns out to be a one-way door.
  2. If yes: change both the reporter (upstream/vendored) and the executor sweep + rehearsal-priority-lib.sh so they agree on the standing-only rule (otherwise the sweep re-floods).
  3. Keep using the labels POST/PUT route (forgejo_add_labels) — issue-PATCH silently ignores labels (GOTCHAS/tracker lesson) — which the reporter already does.

Proposed fix

Gate the priority stamp on leg == standing: in the reporter, only add priority to blockers filed for a red whose failing leg is standing; and narrow the executor sweep / rehearsal_priority_missing to the same rule. Reconcile with #601 first.

Filed while working #1143; that ticket is handed off agent-blocked pending this.

## Machinery change needed (found working #1143) **#1143** asks the rehearsal reporter to add the `priority` label to filed blockers **only when the failing leg is `standing`** — "a red at any other leg → unchanged labels". Implementing it is blocked for a sandcastle worker on two counts: ### 1. The deliverable is a protected path The reporter that files blockers and stamps their labels is `.sandcastle/rehearsal-report.sh` (vendored from dev-factory). It is a fingerprinted protected path (#445) — a swarm worker cannot edit it; the change must be made upstream in dev-factory and re-vendored, or landed by an interactive session. There is no non-protected seam: the priority stamping happens at `.sandcastle/rehearsal-report.sh:663-680`. ### 2. #1143 reverses Ben's 2026-08-20 ruling (#601), so it is not a two-way door As shipped today, `priority` is stamped on **every** drive blocker, on all legs, in **two** places: - **Reporter** — `.sandcastle/rehearsal-report.sh:663-680` stamps every `touched` blocker unconditionally. - **Executor sweep** — `scripts/rehearsal-executor.sh:106-126` + `scripts/lib/rehearsal-priority-lib.sh` re-stamp **every** open drive ticket every tick ("Ben's 2026-08-20 rule: all drive tickets carry `priority`"). So #1143's premise ("other legs → unchanged labels") is already false against the current tree, and a reporter-only change would be **immediately undone** by the executor sweep on the next tick. To make standing-only priority actually hold, a session must: 1. Decide whether #1143 supersedes #601 (reserve `priority` for standing-leg reds so the float means something again vs. the current "everything is priority"). This reverses a standing human ruling — a session call, escalating to `ready-for-human` if it turns out to be a one-way door. 2. If yes: change **both** the reporter (upstream/vendored) **and** the executor sweep + `rehearsal-priority-lib.sh` so they agree on the standing-only rule (otherwise the sweep re-floods). 3. Keep using the labels POST/PUT route (`forgejo_add_labels`) — issue-PATCH silently ignores labels (GOTCHAS/tracker lesson) — which the reporter already does. ### Proposed fix Gate the priority stamp on `leg == standing`: in the reporter, only add `priority` to blockers filed for a red whose failing leg is `standing`; and narrow the executor sweep / `rehearsal_priority_missing` to the same rule. Reconcile with #601 first. Filed while working #1143; that ticket is handed off `agent-blocked` pending this.
Author
Member

Ruled by agent under ADR 0174 — routing to ready-for-human (veto anytime)

I worked this ticket end to end (read .sandcastle/rehearsal-report.sh, scripts/rehearsal-executor.sh, scripts/lib/rehearsal-priority-lib.sh, and the queue ordering in .sandcastle/list-ready-tasks.sh). The machinery half is a routine two-way door — but the ruling it is gated on (does #1143 supersede Ben's #601 all-blockers-priority rule?) is not one I may self-rule, so I am escalating that ruling and leaving the code unwritten. My reasoning, and a decision-ready default, below.

Why this is not a two-way door for a session

ADR 0174 rule 1 lets a session rule a decision that is (a) revertible, (b) provable by an existing test/drive/probe, and (c) not on the one-way list. The code is revertible (a) and off the list (c) — but (b) fails: standing-only-vs-all is a scheduling-values judgment, not a testable fact. A test can prove the mechanism stamps priority iff leg == standing; it cannot prove that reserving the float to standing is the right call. And this specific call reverses Ben's deliberate #601 ruling (2026-08-20), which answered a real starvation incident — session-filed drive work (#600/#605/#606) sat at ordinary swarm depth while the drive starved. Overturning that on a probe I can't run is exactly the ratchet ADR 0174 rule 3 warns of. So: Ben's call.

A finding that shrinks the conflict (please read before ruling)

The #1143 framing assumes priority is what floats drive blockers above ordinary work. It isn't — not on its own. .sandcastle/list-ready-tasks.sh:265-268 partitions the ready queue as:

  1. blocker AND priority
  2. blocker AND NOT priority
  3. NOT blocker AND priority
  4. NOT blocker AND NOT priority

blocker = "is a native dependency of the standing drive issue", computed independently of the priority label. So every wired drive blocker already outranks all ordinary work (partitions 1–2 before 3–4) whether or not it carries priority. For wired blockers, priority is purely an intra-band differentiator — which is exactly what #1143 wants it to be.

Consequence: standing-only priority gives #1143 its differentiation (standing reds → partition 1, head of the blocker band) without re-sinking wired non-standing blockers below ordinary work (they stay in partition 2). For the wired-blocker case, #1143 and #601 do not actually conflict.

The one residue that is a real reversal (the decision)

The executor sweep (scripts/rehearsal-executor.sh:106-130 + rehearsal-priority-lib.sh) stamps priority on the drive's dependencies OR anything labelled rehearsal-183. So the class that genuinely loses under standing-only is: rehearsal-183-labelled tickets that are NOT wired as drive blockers — session-filed harness/meta work (this ticket, #1143 itself, the #600/#605/#606 class). Today they sit in partition 3 (above ordinary work); under standing-only, non-standing ones drop to partition 4. That drop is the reversal of #601's guarantee, and #1143 (written without knowledge of the sweep) never reconciled it.

So the ruling reduces to one question:

Should rehearsal-183-labelled work that is NOT a wired drive-blocker still carry priority?

  • #601 says yes (that was its whole point).
  • #1143, taken literally, says no (only standing-leg reds float).

Proposed default ruling (adopt in one line and I/next session lands it)

Standing-only for the FILED-BLOCKER float, keep #601's floor for unwired rehearsal work. Concretely:

  • Reporter (rehearsal-report.sh:661-678): stamp priority on a filed blocker only when its red's leg == standing (per-leg gate; note the impl detail below).
  • Executor sweep (rehearsal-priority-lib.sh / rehearsal-executor.sh): narrow the dependency arm to standing-leg blockers, but keep stamping any open rehearsal-183 ticket that is not a wired blocker — so session-filed harness work still floats over ordinary swarm work (#601 preserved) while the drive-blocker band gets its standing-first head (#1143 delivered).

This is the synthesis the blocker-partition finding makes possible: both rulings hold. If instead you want the literal #1143 (priority means only "standing red", full stop, and unwired rehearsal work returns to ordinary depth), say so and that's a one-line change to the same spots.

Machinery plan, ready to execute on your word (all two-way, offline-proven)

  1. Reporter is a fingerprinted protected path (#445) vendored from dev-factory — land upstream in dev-factory then re-vendor (the vendored-protected-path-fix-via-dev-factory route), or edit here in an interactive session with #445 standing. Impl detail: the touched[] array (rehearsal-report.sh:448) does not currently carry each blocker's leg; a standing-leg gate needs the leg threaded through (e.g. a parallel touched_standing[] populated in the per-red loop where leg is in scope, rehearsal-report.sh:451-452), since one drive can red at several legs at once.
  2. Executor sweep (rehearsal-priority-lib.sh + caller) is in-repo, not protected — the pure set-math change tests offline (the lib's existing discipline).
  3. Both keep the labels POST route (forgejo_add_labels) — issue-PATCH silently ignores labels (confirmed; GOTCHAS/tracker lesson).

No live urgency: the rehearsal loop is DISARMED on every host (STATUS.md), so nothing is being taxed while this waits.

Why human

A one-way-ruling call: reversing Ben's explicit #601 all-blockers-priority ruling. Not provable by a test/drive/probe (ADR 0174 rule 1b) — it's a scheduling-values judgment. The residue is exactly the one-line question above; a proposed default is offered so it can ride the next digest. #1143 stays agent-blocked behind this. Machinery is scoped and offline-provable the moment the ruling lands.

## Ruled by agent under ADR 0174 — routing to `ready-for-human` (veto anytime) I worked this ticket end to end (read `.sandcastle/rehearsal-report.sh`, `scripts/rehearsal-executor.sh`, `scripts/lib/rehearsal-priority-lib.sh`, and the queue ordering in `.sandcastle/list-ready-tasks.sh`). The machinery half is a routine two-way door — but the **ruling** it is gated on (does #1143 supersede Ben's #601 all-blockers-priority rule?) is **not** one I may self-rule, so I am escalating that ruling and leaving the code unwritten. My reasoning, and a decision-ready default, below. ### Why this is not a two-way door for a session ADR 0174 rule 1 lets a session rule a decision that is (a) revertible, (b) **provable by an existing test/drive/probe**, and (c) not on the one-way list. The code is revertible (a) and off the list (c) — but (b) fails: standing-only-vs-all is a **scheduling-values judgment**, not a testable fact. A test can prove the mechanism stamps `priority` iff `leg == standing`; it cannot prove that *reserving* the float to standing is the right call. And this specific call **reverses Ben's deliberate #601 ruling** (2026-08-20), which answered a real starvation incident — session-filed drive work (#600/#605/#606) sat at ordinary swarm depth while the drive starved. Overturning that on a probe I can't run is exactly the ratchet ADR 0174 rule 3 warns of. So: Ben's call. ### A finding that shrinks the conflict (please read before ruling) The #1143 framing assumes `priority` is what floats drive blockers above ordinary work. **It isn't** — not on its own. `.sandcastle/list-ready-tasks.sh:265-268` partitions the ready queue as: 1. `blocker AND priority` 2. `blocker AND NOT priority` 3. `NOT blocker AND priority` 4. `NOT blocker AND NOT priority` `blocker` = "is a native dependency of the standing drive issue", computed **independently of the `priority` label**. So every *wired* drive blocker already outranks all ordinary work (partitions 1–2 before 3–4) whether or not it carries `priority`. For wired blockers, `priority` is purely an **intra-band differentiator** — which is exactly what #1143 wants it to be. **Consequence:** standing-only `priority` gives #1143 its differentiation (standing reds → partition 1, head of the blocker band) **without** re-sinking wired non-standing blockers below ordinary work (they stay in partition 2). For the wired-blocker case, #1143 and #601 do **not** actually conflict. ### The one residue that is a real reversal (the decision) The executor sweep (`scripts/rehearsal-executor.sh:106-130` + `rehearsal-priority-lib.sh`) stamps `priority` on the drive's dependencies **OR anything labelled `rehearsal-183`**. So the class that genuinely loses under standing-only is: **`rehearsal-183`-labelled tickets that are NOT wired as drive blockers** — session-filed harness/meta work (this ticket, #1143 itself, the #600/#605/#606 class). Today they sit in partition 3 (above ordinary work); under standing-only, non-standing ones drop to partition 4. That drop **is** the reversal of #601's guarantee, and #1143 (written without knowledge of the sweep) never reconciled it. So the ruling reduces to one question: > **Should `rehearsal-183`-labelled work that is NOT a wired drive-blocker still carry `priority`?** > - #601 says **yes** (that was its whole point). > - #1143, taken literally, says **no** (only standing-leg reds float). ### Proposed default ruling (adopt in one line and I/next session lands it) **Standing-only for the FILED-BLOCKER float, keep #601's floor for unwired rehearsal work.** Concretely: - **Reporter** (`rehearsal-report.sh:661-678`): stamp `priority` on a filed blocker **only when its red's `leg == standing`** (per-leg gate; note the impl detail below). - **Executor sweep** (`rehearsal-priority-lib.sh` / `rehearsal-executor.sh`): narrow the **dependency** arm to standing-leg blockers, but **keep** stamping any open `rehearsal-183` ticket that is not a wired blocker — so session-filed harness work still floats over ordinary swarm work (#601 preserved) while the drive-blocker band gets its standing-first head (#1143 delivered). This is the synthesis the `blocker`-partition finding makes possible: both rulings hold. If instead you want the literal #1143 (priority means *only* "standing red", full stop, and unwired rehearsal work returns to ordinary depth), say so and that's a one-line change to the same spots. ### Machinery plan, ready to execute on your word (all two-way, offline-proven) 1. **Reporter** is a fingerprinted protected path (#445) vendored from dev-factory — land upstream in dev-factory then re-vendor (the [[vendored-protected-path-fix-via-dev-factory]] route), or edit here in an interactive session with #445 standing. Impl detail: the `touched[]` array (`rehearsal-report.sh:448`) does not currently carry each blocker's leg; a standing-leg gate needs the leg threaded through (e.g. a parallel `touched_standing[]` populated in the per-red loop where `leg` is in scope, `rehearsal-report.sh:451-452`), since one drive can red at several legs at once. 2. **Executor sweep** (`rehearsal-priority-lib.sh` + caller) is in-repo, not protected — the pure set-math change tests offline (the lib's existing discipline). 3. Both keep the labels POST route (`forgejo_add_labels`) — issue-PATCH silently ignores labels (confirmed; GOTCHAS/tracker lesson). No live urgency: the rehearsal loop is DISARMED on every host (STATUS.md), so nothing is being taxed while this waits. ## Why human A **one-way-ruling** call: reversing Ben's explicit #601 all-blockers-priority ruling. Not provable by a test/drive/probe (ADR 0174 rule 1b) — it's a scheduling-values judgment. The residue is exactly the one-line question above; a proposed default is offered so it can ride the next digest. #1143 stays `agent-blocked` behind this. Machinery is scoped and offline-provable the moment the ruling lands.
Owner

Ruled by agent under ADR 0174 — veto anytime: reconciliation resolved in favour of #601, no machinery change.

#1143's premise was false (filed by the watching session without checking the tree — my error, owned on that ticket). #601's all-blockers-priority already delivers the retrospective finding's intent a fortiori. The differential ordering #1143 imagined is not worth a protected-path edit plus reversing a standing human ruling. Both tickets closed; #601 stands untouched. Re-open path documented on #1143.

**Ruled by agent under ADR 0174 — veto anytime: reconciliation resolved in favour of #601, no machinery change.** #1143's premise was false (filed by the watching session without checking the tree — my error, owned on that ticket). #601's all-blockers-priority already delivers the retrospective finding's intent a fortiori. The differential ordering #1143 imagined is not worth a protected-path edit plus reversing a standing human ruling. Both tickets closed; #601 stands untouched. Re-open path documented on #1143.
ben closed this issue 2026-09-02 16:13:11 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1152
No description provided.