e2e: flip .sandcastle/E2E_TIER to smoke + re-render rehearsal enrichments (plan Task 14 Step 5, follow-up to #18) #53

Closed
opened 2026-08-29 14:26:19 +00:00 by matou-build-agent · 2 comments

What

Complete plan Task 14, Step 5 — the parts that touch protected .sandcastle/ paths and therefore could not ride in the #18 PR (they would be rolled back and fail the run):

  1. Flip the e2e tier to smoke. .sandcastle/E2E_TIER currently reads tier: opt-out. From a dev-factory checkout run:
    bash onboarding/onboard.sh e2e-tier <coa-checkout>/.sandcastle/E2E_TIER smoke
  2. Re-render prompts + workflows so swarm-smoke.yml is added:
    bash onboarding/onboard.sh render-prompts and bash onboarding/onboard.sh workflows (per onboarding/README.md).
  3. Re-author .sandcastle/rehearsal-* enrichments for the real drive — run make e2e and capture artefacts under e2e/test-results/.

Why a session, not an agent PR

.sandcastle/ is a protected path (rule 9 / worker rules): a before/after tree-fingerprint rolls back and reds any agent edit to it. #18's PR carries everything else (the @coa/e2e package, Caddyfile, README Deploy, pnpm-workspace.yaml, Makefile), and the drive is proven green locally (make e2e → 2 passed, e2e/test-results/done.png written).

Acceptance

  • .sandcastle/E2E_TIER → tier: smoke.
  • swarm-smoke.yml present after re-render.
  • .sandcastle/rehearsal-* re-authored from a real make e2e run.

Context

Filed by the #18 worker (plan Task 14) per the acceptance instruction to hand the protected tier flip + re-render to a ready-for-session follow-up.

## What Complete plan Task 14, Step 5 — the parts that touch **protected `.sandcastle/` paths** and therefore could not ride in the #18 PR (they would be rolled back and fail the run): 1. **Flip the e2e tier to smoke.** `.sandcastle/E2E_TIER` currently reads `tier: opt-out`. From a dev-factory checkout run: `bash onboarding/onboard.sh e2e-tier <coa-checkout>/.sandcastle/E2E_TIER smoke` 2. **Re-render prompts + workflows** so `swarm-smoke.yml` is added: `bash onboarding/onboard.sh render-prompts` and `bash onboarding/onboard.sh workflows` (per `onboarding/README.md`). 3. **Re-author `.sandcastle/rehearsal-*` enrichments** for the real drive — run `make e2e` and capture artefacts under `e2e/test-results/`. ## Why a session, not an agent PR `.sandcastle/` is a protected path (rule 9 / worker rules): a before/after tree-fingerprint rolls back and reds any agent edit to it. #18's PR carries everything else (the `@coa/e2e` package, `Caddyfile`, README **Deploy**, `pnpm-workspace.yaml`, `Makefile`), and the drive is proven green locally (`make e2e` → 2 passed, `e2e/test-results/done.png` written). ## Acceptance - `.sandcastle/E2E_TIER` → `tier: smoke`. - `swarm-smoke.yml` present after re-render. - `.sandcastle/rehearsal-*` re-authored from a real `make e2e` run. ## Context Filed by the #18 worker (plan Task 14) per the acceptance instruction to hand the protected tier flip + re-render to a `ready-for-session` follow-up.
Author
Member

Ruled by agent under ADR 0174 — veto anytime.

Ruling: blocked on #18 landing — held, not failed

This ticket is the protected-path half of plan Task 14: its three acceptance clauses (flip .sandcastle/E2E_TIER → smoke; render swarm-smoke.yml; re-author the .sandcastle/rehearsal-* enrichments from a real make e2e run) all depend on #18's PR landing @coa/e2e on main first — and it has not.

What proves the block (observed this session):

  • @coa/e2e is not on main: pnpm-workspace.yaml lists only packages/*, server, site; there is no e2e/ tree; make e2e targets pnpm --filter @coa/e2e test — which cannot resolve. So step 3 (make e2e, capture artefacts under e2e/test-results/) cannot run here.
  • #18's PR #54 (agent/issue-18, mergeable) is open, not merged; its ci / seam (pull_request) status is pending. Per GOTCHAS 10 this is the normal queued case, not a lost event — GET /actions/runs shows pull_request runs waiting (30154/30155) behind other repos' jobs (2 runners / 5 repos). It will run, then the seam→close-report→auto-merge chain lands #54. None of that has completed yet.

Why the protected parts must not land ahead of #18:

  • Flipping E2E_TIER → smoke and rendering swarm-smoke.yml onto a main that has no @coa/e2e package would stand up the smoke drive against a tree where make e2e fails — i.e. it would red the standing smoke drive. That is the opposite of provable.
  • Re-authoring the two enrichment paragraphs (prompt-enrichments/rehearsal-drive-intro.md, rehearsal-heal-intro.md) for the smoke drive without also flipping the tier + re-rendering would commit inconsistent bytes (enrichments say smoke, E2E_TIER + rendered .sandcastle/rehearsal-*-prompt.md still say opt-out). The acceptance also requires they be authored from a real make e2e run, which I cannot perform (above).

Two-way-door reading: this is a pure ordering dependency on another agent ticket, not a one-way door — it touches no credential, no security posture, no member-facing trust, destroys no data, and spends nothing. So it stays ready-for-session (a human is not required); it must simply run after #18 closes. Not ready-for-human.

Action taken this session (two-way, revertible)

  • Registered the missing depends_on #18 on this ticket. #53 shipped without it (triage gap — that is why the standing-session drainer claimed it while #18 is still mid-flight). The claim gate will now hold #53 until #18 closes, so it will not be re-attempted-and-blocked. Revert with a single DELETE …/issues/53/dependencies if ever wrong.
  • No repo commits: there is no correct, provable change to main available until #18 lands.

Next-session recipe (once #18 / PR #54 is merged and @coa/e2e is on main)

From a dev-factory checkout (/home/dev/session-runner/dev-factory, at coa's pinned FACTORY_REF), against this coa checkout:

  1. bash onboarding/onboard.sh e2e-tier <coa>/.sandcastle/E2E_TIER smoke → tier: smoke.
  2. Re-author the two enrichments for the real drive (they currently describe tier: opt-out and say verbatim they are re-authored when the tier flips): rewrite <coa>/.sandcastle/prompt-enrichments/rehearsal-drive-intro.md (drive = make e2e, Playwright over site/ + server/ + tools/stub-config-server.ts, box = site :5173 / server :8787 / stub :3904, artefacts e2e/test-results/ incl. done.png, plus the known-red frontier the run surfaces) and rehearsal-heal-intro.md (its own box + a targeted check in this toolchain), keeping the shared harness anchor (artifacts/legs.json / artifacts/verdict.json) per onboarding/README #55/#56.
  3. bash onboarding/onboard.sh render-prompts <coa>/.sandcastle and bash onboarding/onboard.sh workflows <coa>/.forgejo/workflows swarm <e2e-host-label> → adds swarm-smoke.yml, re-renders .sandcastle/rehearsal-*-prompt.md.
  4. make e2e → expect 2 passed, e2e/test-results/done.png; fold the real known-red frontier into the drive-intro; commit the .sandcastle/ + .forgejo/workflows/swarm-smoke.yml changes with a STATUS.md header+log update in the same commit; git pull --rebase then push; close-report + close.

Leaving ready-for-session, open, depends_on #18.

**Ruled by agent under ADR 0174 — veto anytime.** ## Ruling: blocked on #18 landing — held, not failed This ticket is the **protected-path half** of plan Task 14: its three acceptance clauses (flip `.sandcastle/E2E_TIER` → `smoke`; render `swarm-smoke.yml`; re-author the `.sandcastle/rehearsal-*` enrichments from a real `make e2e` run) **all depend on #18's PR landing `@coa/e2e` on `main` first** — and it has not. **What proves the block (observed this session):** - `@coa/e2e` is not on `main`: `pnpm-workspace.yaml` lists only `packages/*`, `server`, `site`; there is no `e2e/` tree; `make e2e` targets `pnpm --filter @coa/e2e test` — which cannot resolve. So **step 3 (`make e2e`, capture artefacts under `e2e/test-results/`) cannot run here.** - #18's PR **#54** (`agent/issue-18`, mergeable) is **open, not merged**; its `ci / seam (pull_request)` status is `pending`. Per **GOTCHAS 10** this is the normal queued case, not a lost event — `GET /actions/runs` shows `pull_request` runs `waiting` (30154/30155) behind other repos' jobs (2 runners / 5 repos). It will run, then the seam→close-report→auto-merge chain lands #54. None of that has completed yet. **Why the protected parts must not land ahead of #18:** - Flipping `E2E_TIER` → `smoke` and rendering `swarm-smoke.yml` onto a `main` that has **no `@coa/e2e` package** would stand up the smoke drive against a tree where `make e2e` fails — i.e. it would **red the standing smoke drive**. That is the opposite of provable. - Re-authoring the two enrichment paragraphs (`prompt-enrichments/rehearsal-drive-intro.md`, `rehearsal-heal-intro.md`) for the `smoke` drive without also flipping the tier + re-rendering would commit **inconsistent bytes** (enrichments say `smoke`, `E2E_TIER` + rendered `.sandcastle/rehearsal-*-prompt.md` still say `opt-out`). The acceptance also requires they be authored **from a real `make e2e` run**, which I cannot perform (above). **Two-way-door reading:** this is a pure **ordering dependency on another agent ticket**, not a one-way door — it touches no credential, no security posture, no member-facing trust, destroys no data, and spends nothing. So it stays `ready-for-session` (a human is not required); it must simply run *after* #18 closes. Not `ready-for-human`. ## Action taken this session (two-way, revertible) - **Registered the missing `depends_on #18` on this ticket.** #53 shipped without it (triage gap — that is why the standing-session drainer claimed it while #18 is still mid-flight). The claim gate will now hold #53 until #18 closes, so it will not be re-attempted-and-blocked. Revert with a single `DELETE …/issues/53/dependencies` if ever wrong. - No repo commits: there is no correct, provable change to `main` available until #18 lands. ## Next-session recipe (once #18 / PR #54 is merged and `@coa/e2e` is on `main`) From a **dev-factory checkout** (`/home/dev/session-runner/dev-factory`, at coa's pinned `FACTORY_REF`), against this coa checkout: 1. `bash onboarding/onboard.sh e2e-tier <coa>/.sandcastle/E2E_TIER smoke` → `tier: smoke`. 2. Re-author the two enrichments for the **real** drive (they currently describe `tier: opt-out` and say verbatim they are re-authored when the tier flips): rewrite `<coa>/.sandcastle/prompt-enrichments/rehearsal-drive-intro.md` (drive = `make e2e`, Playwright over `site/` + `server/` + `tools/stub-config-server.ts`, box = site :5173 / server :8787 / stub :3904, artefacts `e2e/test-results/` incl. `done.png`, plus the **known-red frontier** the run surfaces) and `rehearsal-heal-intro.md` (its own box + a *targeted check* in this toolchain), keeping the shared harness anchor (`artifacts/legs.json` / `artifacts/verdict.json`) per onboarding/README #55/#56. 3. `bash onboarding/onboard.sh render-prompts <coa>/.sandcastle` and `bash onboarding/onboard.sh workflows <coa>/.forgejo/workflows swarm <e2e-host-label>` → adds `swarm-smoke.yml`, re-renders `.sandcastle/rehearsal-*-prompt.md`. 4. `make e2e` → expect 2 passed, `e2e/test-results/done.png`; fold the real known-red frontier into the drive-intro; commit the `.sandcastle/` + `.forgejo/workflows/swarm-smoke.yml` changes with a `STATUS.md` header+log update in the same commit; `git pull --rebase` then push; close-report + close. Leaving `ready-for-session`, open, `depends_on #18`.
Owner

Done by the interactive session in 9a0eb83 on main: .sandcastle/E2E_TIER → tier: smoke; .forgejo/workflows/swarm-smoke.yml rendered from the pin cec8b3c templates (runs-on: elitebook-03, as idss); rehearsal-drive-intro.md / rehearsal-heal-intro.md re-authored from a real make e2e run (2 passed, 15.7 s, e2e/test-results/done.png) and the rehearsal prompts re-rendered. check-harness-drift reports only the pre-existing list-ready-tasks.sh drift (GOTCHAS 9). Note: PR #55 (FACTORY_REF → dc65bde) will re-render workflows/prompts at the new pin — expected, no conflict with these files.

Done by the interactive session in `9a0eb83` on main: `.sandcastle/E2E_TIER` → `tier: smoke`; `.forgejo/workflows/swarm-smoke.yml` rendered from the pin `cec8b3c` templates (`runs-on: elitebook-03`, as idss); `rehearsal-drive-intro.md` / `rehearsal-heal-intro.md` re-authored from a real `make e2e` run (2 passed, 15.7 s, `e2e/test-results/done.png`) and the rehearsal prompts re-rendered. `check-harness-drift` reports only the pre-existing `list-ready-tasks.sh` drift (GOTCHAS 9). Note: PR #55 (FACTORY_REF → dc65bde) will re-render workflows/prompts at the new pin — expected, no conflict with these files.
ben 2026-08-29 14:46:07 +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.

Reference
Matou/coa#53
No description provided.