rehearsal executor: a preflight PARK must post to the drive issue and page — today it files nothing, arms a 30-min backoff, and only a watching human sees it #1189

Closed
opened 2026-09-03 15:20:24 +00:00 by ben · 2 comments
Owner

The defect (phase-7 drive 2, 2026-09-03 14:36Z)

Drive 20260903T143615Z PARKED at preflight: clan-lab create now emits an ID column and the executor's parser wanted name + IP. The park is a host-local refusal (exit 3): nothing filed, no healer, no reporter, no comment — only the executor log line and a 30-min #1035 backoff. It was fixed in 6 minutes (76c34163) only because a session happened to be watching. Left alone it is the phase-5 silent park (#1138) one layer earlier: the lane reads 'blocked by nothing' while nothing drives.

The change

In scripts/rehearsal-cycle.sh's park-preflight branch: post ONE comment on the drive issue naming the PREFLIGHT: refusal line from the teed drive log (the same best-effort shape the eval-gate park already uses), and page Mattermost through notify-mattermost.sh. One page per park (each park arms the backoff, and ticks inside the window never reach this branch, so the cadence is one per window by construction). Pure core (rehearsal_preflight_refusal_line, rehearsal_preflight_park_message) in scripts/lib/rehearsal-preflight-park-lib.sh, offline-tested; the backoff stays exactly as #1035 shaped it.

Origin: the phase-7 first-11-hours report, change 5. Claimed by the reporting session (agent-working).

## The defect (phase-7 drive 2, 2026-09-03 14:36Z) Drive `20260903T143615Z` PARKED at preflight: `clan-lab create` now emits an ID column and the executor's parser wanted name + IP. The park is a host-local refusal (exit 3): nothing filed, no healer, no reporter, no comment — only the executor log line and a 30-min #1035 backoff. It was fixed in 6 minutes (`76c34163`) only because a session happened to be watching. Left alone it is the phase-5 silent park (#1138) one layer earlier: the lane reads 'blocked by nothing' while nothing drives. ## The change In `scripts/rehearsal-cycle.sh`'s `park-preflight` branch: post ONE comment on the drive issue naming the `PREFLIGHT:` refusal line from the teed drive log (the same best-effort shape the eval-gate park already uses), and page Mattermost through notify-mattermost.sh. One page per park (each park arms the backoff, and ticks inside the window never reach this branch, so the cadence is one per window by construction). Pure core (`rehearsal_preflight_refusal_line`, `rehearsal_preflight_park_message`) in `scripts/lib/rehearsal-preflight-park-lib.sh`, offline-tested; the backoff stays exactly as #1035 shaped it. Origin: the phase-7 first-11-hours report, change 5. Claimed by the reporting session (agent-working).

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime

Ruling: ready-for-agent (category enhancement already present).

Why this state. The change touches only scripts/rehearsal-cycle.sh (the park-preflight branch) and a new scripts/lib/rehearsal-preflight-park-lib.sh — neither is a protected path (PROTECTED_PATHS=".sandcastle .forgejo"), so a swarm worker may edit them. The new core (rehearsal_preflight_refusal_line, rehearsal_preflight_park_message) is offline-testable as the body specifies; posting to the drive issue and paging Mattermost is the code under test, not standing the implementer must hold. So this is ready-for-agent, not ready-for-session.

Why a two-way door. A state label is revertible; provable by the offline tests the ticket names and by the protected-path predicate (the touched paths sit outside it). Not on the one-way-door list.

Spec quality. Fully specified — exact branch, new lib + function names, one-page-per-park cadence argued, the #1035 backoff left intact. Safe for the swarm.

Note: already agent-working (self-claimed by the filing session); ready-for-agent + agent-working is the normal claimed state, and the swarm hides agent-working tickets, so no double-work while the claim holds.

> *This was generated by AI during triage.* ## Ruled by agent under ADR 0174 — veto anytime **Ruling:** `ready-for-agent` (category `enhancement` already present). **Why this state.** The change touches only `scripts/rehearsal-cycle.sh` (the `park-preflight` branch) and a new `scripts/lib/rehearsal-preflight-park-lib.sh` — **neither is a protected path** (`PROTECTED_PATHS=".sandcastle .forgejo"`), so a swarm worker may edit them. The new core (`rehearsal_preflight_refusal_line`, `rehearsal_preflight_park_message`) is offline-testable as the body specifies; posting to the drive issue and paging Mattermost is the code under test, not standing the implementer must hold. So this is `ready-for-agent`, not `ready-for-session`. **Why a two-way door.** A state label is revertible; provable by the offline tests the ticket names and by the protected-path predicate (the touched paths sit outside it). Not on the one-way-door list. **Spec quality.** Fully specified — exact branch, new lib + function names, one-page-per-park cadence argued, the #1035 backoff left intact. Safe for the swarm. Note: already `agent-working` (self-claimed by the filing session); `ready-for-agent` + `agent-working` is the normal claimed state, and the swarm hides `agent-working` tickets, so no double-work while the claim holds.
Author
Owner

Close report — landed 04aa72df on main (Ruled by session under ADR 0174 — veto anytime). Two-way: labels, shell libs and a rail step after a successful install, all revertible by one commit; no spend, no posture change.

scripts/lib/rehearsal-preflight-park-lib.sh: rehearsal_preflight_refusal_line (last PREFLIGHT: line of the teed drive log, prefix stripped), rehearsal_preflight_park_message (names the drive issue, the refusal, the host, the backoff window in minutes, and says plainly it will not heal itself), rehearsal_preflight_park_post (one forgejo_comment, no-op without token/drive issue), rehearsal_preflight_park_page (one notify-mattermost line with the issue link). scripts/rehearsal-cycle.sh park-preflight branch: sources the lib and calls both, after the #1035 backoff arm (kept as is — one park, one page, by construction).

Acceptance (offline, scripts/tests/rehearsal-preflight-park-test.sh, 6 cases): the 2026-09-03 drive-2 log shape yields the clan-lab parse line; plain/empty/missing logs yield empty; message contents; exactly one comment POST, none tokenless or without a drive issue; exactly one page naming drive + refusal + link, a failing notify never reds the caller; the cycle branch is wired to lib + post + page + backoff. rehearsal-staleness-park-test (48) unchanged green.

**Close report — landed `04aa72df` on main (Ruled by session under ADR 0174 — veto anytime).** Two-way: labels, shell libs and a rail step after a successful install, all revertible by one commit; no spend, no posture change. `scripts/lib/rehearsal-preflight-park-lib.sh`: `rehearsal_preflight_refusal_line` (last `PREFLIGHT:` line of the teed drive log, prefix stripped), `rehearsal_preflight_park_message` (names the drive issue, the refusal, the host, the backoff window in minutes, and says plainly it will not heal itself), `rehearsal_preflight_park_post` (one `forgejo_comment`, no-op without token/drive issue), `rehearsal_preflight_park_page` (one notify-mattermost line with the issue link). `scripts/rehearsal-cycle.sh` `park-preflight` branch: sources the lib and calls both, after the #1035 backoff arm (kept as is — one park, one page, by construction). **Acceptance (offline, `scripts/tests/rehearsal-preflight-park-test.sh`, 6 cases):** the 2026-09-03 drive-2 log shape yields the clan-lab parse line; plain/empty/missing logs yield empty; message contents; exactly one comment POST, none tokenless or without a drive issue; exactly one page naming drive + refusal + link, a failing notify never reds the caller; the cycle branch is wired to lib + post + page + backoff. `rehearsal-staleness-park-test` (48) unchanged green.
ben closed this issue 2026-09-03 15:51:17 +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#1189
No description provided.