Retire the #220 interim rail: dev-factory LANDING back to push now #193 host-land-after-verify is live (session-runner skips every ready-for-session ticket under LANDING=pr) #276

Closed
opened 2026-10-17 04:56:32 +00:00 by ben · 3 comments
Owner

Symptom

Since 0d638e1 (#193) and cf02cae (#230) landed on 2026-10-16, both pool hosts' dev-factory session-runners have done nothing but quiet ticks (first at 2026-10-16T17:30Z, still true at 2026-10-17T04:35Z):

session-runner: #236 lands by PR (landing-pr label or pr-default repo) — skipped for an interactive session to open the PR by hand (#165, not an attempt)
session-runner: #246 lands by PR (landing-pr label or pr-default repo) — skipped for an interactive session to open the PR by hand (#165, not an attempt)
session-runner: nothing workable in the session queue — quiet tick

.sandcastle/swarm-policy.sh still says LANDING=pr, so landing_mode_for answers pr for every ticket and the #165 rule skips the whole ready-for-session queue. The policy file's own comment (#220) says to revert it once #193's host-land mechanics land; STATUS.md's consumer row says the same. #193 is closed and in the running self-copy.

Ruling (Ben, 2026-10-17)

Allow this repo to land on main again: set LANDING=push in .sandcastle/swarm-policy.sh (MERGE_AUTHORITY stays default). Two-way door under ADR 0174: one policy file, revertible.

Also observed

  • The session-runner only refreshes its dedicated checkout (fetch + reset --hard origin/main) after a pick. When every ticket is skipped, no pick happens, so the checkout — and the policy file it reads — never updates. A policy flip on main reaches a host only when someone resets ~/session-runner/dev-factory by hand. Worth its own fix: refresh the checkout before the queue scan, or have the skip path refresh too.
  • Under LANDING=pr every swarm result waits for a human merge; PRs #252, #247, #271, #270, #274, #275 are green and parked, and PRs #254–#268 are placeholder junk (the #238 commit pushed onto fifteen stale agent/issue-<N> branches, each with a closes #N body for an already-closed ticket) that should be closed unmerged (#269/#270 is the janitor).

Acceptance

  • .sandcastle/swarm-policy.sh has LANDING=push; STATUS.md consumer row + header updated; journal entry.
  • Both hosts' session-runner checkouts reset to the new main; the next tick picks #246 or #236 instead of skipping.
## Symptom Since `0d638e1` (#193) and `cf02cae` (#230) landed on 2026-10-16, both pool hosts' dev-factory session-runners have done nothing but quiet ticks (first at 2026-10-16T17:30Z, still true at 2026-10-17T04:35Z): ``` session-runner: #236 lands by PR (landing-pr label or pr-default repo) — skipped for an interactive session to open the PR by hand (#165, not an attempt) session-runner: #246 lands by PR (landing-pr label or pr-default repo) — skipped for an interactive session to open the PR by hand (#165, not an attempt) session-runner: nothing workable in the session queue — quiet tick ``` `.sandcastle/swarm-policy.sh` still says `LANDING=pr`, so `landing_mode_for` answers `pr` for every ticket and the #165 rule skips the whole `ready-for-session` queue. The policy file's own comment (#220) says to revert it once #193's host-land mechanics land; `STATUS.md`'s consumer row says the same. #193 is closed and in the running self-copy. ## Ruling (Ben, 2026-10-17) Allow this repo to land on `main` again: set `LANDING=push` in `.sandcastle/swarm-policy.sh` (MERGE_AUTHORITY stays default). Two-way door under ADR 0174: one policy file, revertible. ## Also observed - The session-runner only refreshes its dedicated checkout (`fetch` + `reset --hard origin/main`) **after** a pick. When every ticket is skipped, no pick happens, so the checkout — and the policy file it reads — never updates. A policy flip on `main` reaches a host only when someone resets `~/session-runner/dev-factory` by hand. Worth its own fix: refresh the checkout before the queue scan, or have the skip path refresh too. - Under `LANDING=pr` every swarm result waits for a human merge; PRs #252, #247, #271, #270, #274, #275 are green and parked, and PRs #254–#268 are placeholder junk (the #238 commit pushed onto fifteen stale `agent/issue-<N>` branches, each with a `closes #N` body for an already-closed ticket) that should be closed unmerged (#269/#270 is the janitor). ## Acceptance - `.sandcastle/swarm-policy.sh` has `LANDING=push`; `STATUS.md` consumer row + header updated; journal entry. - Both hosts' session-runner checkouts reset to the new `main`; the next tick picks #246 or #236 instead of skipping.

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: routed to ready-for-session (category bug kept).

Why this is a session ticket, not an agent ticket. The core fix edits .sandcastle/swarm-policy.sh — the repo's vendored self-copy, a protected path. Per docs/agents/triage-labels.md, every edit to the .sandcastle/ self-copy is ready-for-session work by construction: the swarm queue (list-ready-tasks.sh) reads only ready-for-agent, so a worker never sees it and never edits its own running copy. Acceptance criterion 2 (reset both hosts' session-runner checkouts) additionally needs a host's own standing.

Why not ready-for-human. The substantive decision — flip LANDING pr→push — was already ruled a two-way door by you in the body (and triage ruled the same on #193). #193's host-land-after-verify is closed and in the running self-copy (FACTORY_REF 0d638e1), which is the exact precondition the policy file's own #220 comment names for the revert. The flip is not a security-posture widening: #193 guarantees the worker never pushes main from the sandbox — the HOST promotes a per-run branch to main only after verify + protected-path enforcement + the pinned tests. This restores the designed push default now that the safety mechanism exists, not a loosening beyond design. No one-way-door residue remains.

Why this is a two-way door / what proves it. One KEY=value line in one file, revertible by a one-line commit or a ready-for-session → relabel. Proof is operational and immediate: once LANDING=push reaches a host's checkout, that host's next session-runner tick picks #246 or #236 instead of emitting the #165 "lands by PR … skipped" line — i.e. the skip loop in the Symptom stops.

Claim verified (2026-10-17). Confirmed .sandcastle/swarm-policy.sh has LANDING=pr under the #220 INTERIM RAIL comment whose last line reads "Revert this file (back to the push default) once #193's host-land mechanics land." #193 is closed; STATUS.md's consumer row already states LANDING=pr "is a choice, not a rail — reverting to push is its own follow-up." MERGE_AUTHORITY is at its default.


Session Brief

Category: bug
Summary: Retire the #220 interim PR rail — set dev-factory LANDING=push now that #193 host-land-after-verify is live, so the session-runner stops skipping the whole ready-for-session queue.

Current behavior:
.sandcastle/swarm-policy.sh carries LANDING=pr from the #220 interim rail. landing_mode_for therefore answers pr for every ticket, and the #165 rule skips the entire ready-for-session queue — both pool hosts' dev-factory session-runners have done nothing but quiet ticks since 2026-10-16T17:30Z. The rail's only reason to exist was that workers could push main before verify; #193 removed that (worker pushes a per-run branch, HOST lands after verify + protected-path enforcement + pinned tests) and is in the running self-copy.

Desired behavior:
dev-factory lands its own harness changes via host land-after-verify again. The session-runner's next tick on each host picks a workable ready-for-session ticket (e.g. #246 or #236) instead of emitting a #165 "lands by PR … skipped" line.

Key interfaces:

  • LANDING in .sandcastle/swarm-policy.sh — flip pr → push. Drop or update the #220 INTERIM RAIL comment block so the file no longer claims to be an active rail. MERGE_AUTHORITY stays the default human — do not touch it.
  • STATUS.md — the Matou/dev-factory consumer row (pr → push) and the header "Last updated" line; the header currently asserts "LANDING=pr stays the rail until deliberately reverted" — this commit is that deliberate revert.
  • A new docs/journal/2026-10-17-276.md entry (newest-first), per the CLAUDE.md state-change rule.

Acceptance criteria:

  • .sandcastle/swarm-policy.sh has LANDING=push; the #220 interim-rail framing is gone.
  • STATUS.md consumer row shows push and the header line is updated; tests/docs-budget-test.sh still passes.
  • A docs/journal/2026-10-17-276.md entry is added (never rewrite an existing entry).
  • The offline lib suite passes: for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done.
  • Both pool hosts' session-runner checkouts (~/session-runner/dev-factory) are reset to the new main so the policy flip is actually read, and the next tick on each host picks a ready-for-session ticket instead of skipping. (Needs each host's own standing — this is why the ticket is ready-for-session.)

Out of scope (file as a separate follow-up):

  • The checkout-refresh gap in "Also observed": the session-runner only fetch/reset --hard origin/mains after a pick, so an all-skip tick never refreshes the checkout (or the policy it reads). Fixing that (refresh before the queue scan, or on the skip path) is its own ticket, not this one.
  • The parked-PR cleanup (#252/#247/#271/#270/#274/#275 green-and-waiting; #254–#268 placeholder junk) — that is #269/#270's janitor, not this change.
  • MERGE_AUTHORITY, and any other policy knob.
> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** routed to `ready-for-session` (category `bug` kept). **Why this is a session ticket, not an agent ticket.** The core fix edits `.sandcastle/swarm-policy.sh` — the repo's vendored self-copy, a protected path. Per `docs/agents/triage-labels.md`, every edit to the `.sandcastle/` self-copy is `ready-for-session` work by construction: the swarm queue (`list-ready-tasks.sh`) reads only `ready-for-agent`, so a worker never sees it and never edits its own running copy. Acceptance criterion 2 (reset both hosts' session-runner checkouts) additionally needs a host's own standing. **Why not `ready-for-human`.** The substantive decision — flip `LANDING` `pr→push` — was already ruled a two-way door by you in the body (and triage ruled the same on #193). #193's host-land-after-verify is closed and in the running self-copy (`FACTORY_REF 0d638e1`), which is the exact precondition the policy file's own `#220` comment names for the revert. The flip is not a security-posture widening: #193 guarantees the worker never pushes `main` from the sandbox — the HOST promotes a per-run branch to `main` only after verify + protected-path enforcement + the pinned tests. This restores the designed `push` default now that the safety mechanism exists, not a loosening beyond design. No one-way-door residue remains. **Why this is a two-way door / what proves it.** One `KEY=value` line in one file, revertible by a one-line commit or a `ready-for-session` → relabel. Proof is operational and immediate: once `LANDING=push` reaches a host's checkout, that host's next session-runner tick picks `#246` or `#236` instead of emitting the `#165` "lands by PR … skipped" line — i.e. the skip loop in the Symptom stops. **Claim verified (2026-10-17).** Confirmed `.sandcastle/swarm-policy.sh` has `LANDING=pr` under the `#220` INTERIM RAIL comment whose last line reads *"Revert this file (back to the push default) once #193's host-land mechanics land."* `#193` is closed; `STATUS.md`'s consumer row already states `LANDING=pr` "is a choice, not a rail — reverting to `push` is its own follow-up." `MERGE_AUTHORITY` is at its default. --- ## Session Brief **Category:** bug **Summary:** Retire the #220 interim PR rail — set dev-factory `LANDING=push` now that #193 host-land-after-verify is live, so the session-runner stops skipping the whole `ready-for-session` queue. **Current behavior:** `.sandcastle/swarm-policy.sh` carries `LANDING=pr` from the #220 interim rail. `landing_mode_for` therefore answers `pr` for every ticket, and the #165 rule skips the entire `ready-for-session` queue — both pool hosts' dev-factory session-runners have done nothing but quiet ticks since 2026-10-16T17:30Z. The rail's only reason to exist was that workers could push `main` before verify; #193 removed that (worker pushes a per-run branch, HOST lands after verify + protected-path enforcement + pinned tests) and is in the running self-copy. **Desired behavior:** dev-factory lands its own harness changes via host land-after-verify again. The session-runner's next tick on each host picks a workable `ready-for-session` ticket (e.g. #246 or #236) instead of emitting a #165 "lands by PR … skipped" line. **Key interfaces:** - `LANDING` in `.sandcastle/swarm-policy.sh` — flip `pr` → `push`. Drop or update the `#220` INTERIM RAIL comment block so the file no longer claims to be an active rail. `MERGE_AUTHORITY` stays the default `human` — do not touch it. - `STATUS.md` — the `Matou/dev-factory` consumer row (`pr` → `push`) and the header "Last updated" line; the header currently asserts "`LANDING=pr` stays the rail until deliberately reverted" — this commit is that deliberate revert. - A new `docs/journal/2026-10-17-276.md` entry (newest-first), per the CLAUDE.md state-change rule. **Acceptance criteria:** - [ ] `.sandcastle/swarm-policy.sh` has `LANDING=push`; the #220 interim-rail framing is gone. - [ ] `STATUS.md` consumer row shows `push` and the header line is updated; `tests/docs-budget-test.sh` still passes. - [ ] A `docs/journal/2026-10-17-276.md` entry is added (never rewrite an existing entry). - [ ] The offline lib suite passes: `for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done`. - [ ] Both pool hosts' session-runner checkouts (`~/session-runner/dev-factory`) are reset to the new `main` so the policy flip is actually read, and the next tick on each host picks a `ready-for-session` ticket instead of skipping. (Needs each host's own standing — this is why the ticket is `ready-for-session`.) **Out of scope (file as a separate follow-up):** - The checkout-refresh gap in "Also observed": the session-runner only `fetch`/`reset --hard origin/main`s **after** a pick, so an all-skip tick never refreshes the checkout (or the policy it reads). Fixing that (refresh before the queue scan, or on the skip path) is its own ticket, not this one. - The parked-PR cleanup (#252/#247/#271/#270/#274/#275 green-and-waiting; #254–#268 placeholder junk) — that is #269/#270's janitor, not this change. - `MERGE_AUTHORITY`, and any other policy knob.
Author
Owner

Landed on main as a3c9f50 (2026-10-17, Ben's session, direct push — no branch protection on main, ruling in this ticket). .sandcastle/swarm-policy.sh → LANDING=push; STATUS.md header + consumer row; journal docs/journal/2026-10-17-276.md. tests/policy-lib-test.sh 64 checks passed, tests/docs-budget-test.sh 4/4.

Still owed before this takes effect on the hosts: reset each pool host's session-runner checkout by hand (git -C ~/session-runner/dev-factory fetch origin && git -C ~/session-runner/dev-factory reset --hard origin/main) on matou-workstation (user dev) and elitebook-03 (user swarm). Until then the runner's policy_load still reads the old LANDING=pr from its stale checkout and keeps skipping #236/#246. The checkout-refresh-only-after-a-pick gap noted in the body is the durable follow-up.

Landed on `main` as `a3c9f50` (2026-10-17, Ben's session, direct push — no branch protection on `main`, ruling in this ticket). `.sandcastle/swarm-policy.sh` → `LANDING=push`; `STATUS.md` header + consumer row; journal `docs/journal/2026-10-17-276.md`. `tests/policy-lib-test.sh` 64 checks passed, `tests/docs-budget-test.sh` 4/4. **Still owed before this takes effect on the hosts:** reset each pool host's session-runner checkout by hand (`git -C ~/session-runner/dev-factory fetch origin && git -C ~/session-runner/dev-factory reset --hard origin/main`) on `matou-workstation` (user `dev`) and `elitebook-03` (user `swarm`). Until then the runner's `policy_load` still reads the old `LANDING=pr` from its stale checkout and keeps skipping #236/#246. The checkout-refresh-only-after-a-pick gap noted in the body is the durable follow-up.
ben closed this issue 2026-10-17 05:04:03 +00:00
Author
Owner

Hosts done (2026-10-17T04:56Z): ~/session-runner/dev-factory fast-forwarded to a3c9f50 on both matou-workstation and elitebook-03; each now reads LANDING=push from .sandcastle/swarm-policy.sh. The next */10 tick should pick #246 (#236 is still blocked by #240, which the swarm picks at :15/:45 now that #239 is closed). CI on a3c9f50 was pending at close time — if ci / test or ci / static goes red on this commit, the STATUS.md header trim or the policy file is the first place to look.

Hosts done (2026-10-17T04:56Z): `~/session-runner/dev-factory` fast-forwarded to `a3c9f50` on both `matou-workstation` and `elitebook-03`; each now reads `LANDING=push` from `.sandcastle/swarm-policy.sh`. The next */10 tick should pick #246 (#236 is still blocked by #240, which the swarm picks at :15/:45 now that #239 is closed). CI on `a3c9f50` was `pending` at close time — if `ci / test` or `ci / static` goes red on this commit, the STATUS.md header trim or the policy file is the first place to look.
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/dev-factory#276
No description provided.