e2e: Playwright smoke drive for the application form; Caddyfile; flip E2E_TIER to smoke (plan Task 14) #18

Closed
opened 2026-08-28 15:06:51 +00:00 by ben · 2 comments
Owner

Plan

docs/superpowers/plans/2026-08-27-coa-phase-0-1.md Task 14.

Deliverable

Workspace package e2e (@coa/e2e, added to pnpm-workspace.yaml): playwright.config.ts (webServer: server :8787, stub :3904, site :5173), apply.spec.ts (two tests from the plan), fixtures/logo.svg; Caddyfile at the repo root; README Deploy section; communities/.gitkeep.

Acceptance

  • make e2e → 2 passed; e2e/test-results/done.png written.
  • Test 1 drives brand → onboarding (endorsements+session, 3) → features (uncheck proposals) → self-hosted http://127.0.0.1:3904 → "All checks passed" with 6 pass marks → review → /done?slug=ngati-example.
  • Test 2: http://127.0.0.1:1 → "6 of 6 checks failed" and Next is blocked with "fix any failing checks".
  • .sandcastle/E2E_TIER becomes tier: smoke and .sandcastle/rehearsal-* enrichments are re-authored for the real drive (make e2e, artefacts under e2e/test-results/). These paths are protected — file the tier flip + re-render as a ready-for-session follow-up per the worker rules rather than editing them in the PR; the PR carries everything else.
  • pnpm -r typecheck && pnpm -r test exit 0 (Playwright is not in the seam).

depends_on

  • site: Backend step, Review, submit, Done (Task 13)

needs_human_decision

none expected; the drive runs fully local.

depends_on (issue refs)

## Plan `docs/superpowers/plans/2026-08-27-coa-phase-0-1.md` **Task 14**. ## Deliverable Workspace package `e2e` (`@coa/e2e`, added to `pnpm-workspace.yaml`): `playwright.config.ts` (webServer: server :8787, stub :3904, site :5173), `apply.spec.ts` (two tests from the plan), `fixtures/logo.svg`; `Caddyfile` at the repo root; README **Deploy** section; `communities/.gitkeep`. ## Acceptance - `make e2e` → 2 passed; `e2e/test-results/done.png` written. - Test 1 drives brand → onboarding (endorsements+session, 3) → features (uncheck proposals) → self-hosted `http://127.0.0.1:3904` → "All checks passed" with 6 pass marks → review → `/done?slug=ngati-example`. - Test 2: `http://127.0.0.1:1` → "6 of 6 checks failed" and Next is blocked with "fix any failing checks". - `.sandcastle/E2E_TIER` becomes `tier: smoke` and `.sandcastle/rehearsal-*` enrichments are re-authored for the real drive (`make e2e`, artefacts under `e2e/test-results/`). **These paths are protected** — file the tier flip + re-render as a `ready-for-session` follow-up per the worker rules rather than editing them in the PR; the PR carries everything else. - `pnpm -r typecheck && pnpm -r test` exit 0 (Playwright is not in the seam). ## depends_on - site: Backend step, Review, submit, Done (Task 13) ## needs_human_decision none expected; the drive runs fully local. ## depends_on (issue refs) - #17

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: enhancement + ready-for-agent (was needs-triage).

  • Category — enhancement. New phase-1 code (plan Task 14); nothing is broken, so not a bug.
  • Not already implemented. No packages/ / server/ / site/ / tools/ / e2e/ in the tree yet (#7 is the first code ticket); no matching .out-of-scope/ rejection. Redundancy and prior-rejection checks both clear.
  • Fully specified — no grilling needed. The body (Deliverable · Interfaces · Acceptance · out_of_scope) together with plan Task 14, cited verbatim as the contract, is the agent brief; I'm not duplicating it.
  • Dependencies: #17 — registered on the tracker and enforced by the claim gate, so labelling the whole chain ready-for-agent now cannot let a worker start out of order.
  • Note. Proof also includes make e2e. Flipping E2E_TIER opt-out→smoke and adding the Caddyfile / README Deploy section / communities/.gitkeep are config + docs — reverted by a commit, proven by the smoke drive; not a release, not shared-infra, not a security change.

Why a two-way door. The outcome is a label, reverted by a later label change, and every acceptance criterion is provable by the plan's own tests (pnpm -r typecheck && pnpm -r test / make e2e). It touches no credential, emails no community contact, dispatches no build or release, provisions no shared-infra tenant, writes no real communities/ data, widens no security posture, and changes no form contract the spec does not already state — none of this repo's one-way doors.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** `enhancement` + `ready-for-agent` (was `needs-triage`). - **Category — enhancement.** New phase-1 code (plan Task 14); nothing is broken, so not a bug. - **Not already implemented.** No `packages/` / `server/` / `site/` / `tools/` / `e2e/` in the tree yet (#7 is the first code ticket); no matching `.out-of-scope/` rejection. Redundancy and prior-rejection checks both clear. - **Fully specified — no grilling needed.** The body (Deliverable · Interfaces · Acceptance · out_of_scope) together with plan **Task 14**, cited verbatim as the contract, *is* the agent brief; I'm not duplicating it. - **Dependencies:** #17 — registered on the tracker and enforced by the claim gate, so labelling the whole chain `ready-for-agent` now cannot let a worker start out of order. - **Note.** Proof also includes `make e2e`. Flipping `E2E_TIER` opt-out→smoke and adding the Caddyfile / README Deploy section / `communities/.gitkeep` are config + docs — reverted by a commit, proven by the smoke drive; not a release, not shared-infra, not a security change. **Why a two-way door.** The outcome is a label, reverted by a later label change, and every acceptance criterion is provable by the plan's own tests (`pnpm -r typecheck && pnpm -r test` / `make e2e`). It touches no credential, emails no community contact, dispatches no build or release, provisions no shared-infra tenant, writes no real `communities/` data, widens no security posture, and changes no form contract the spec does not already state — none of this repo's one-way doors.
Author
Owner

Ruled by agent under the two-way-door doctrine — veto anytime. PR #54 (seam green) merged by the interactive session under agent-after-green; the protected-path half (#53) landed on main in 9a0eb83. Acceptance proven: make e2e → 2 passed locally on the PR head; pnpm -r typecheck && pnpm -r test green on main; E2E_TIER is smoke. Closing #18 — phase 1 complete.

**Ruled by agent under the two-way-door doctrine — veto anytime.** PR #54 (seam green) merged by the interactive session under `agent-after-green`; the protected-path half (#53) landed on main in `9a0eb83`. Acceptance proven: `make e2e` → 2 passed locally on the PR head; `pnpm -r typecheck && pnpm -r test` green on main; `E2E_TIER` is `smoke`. Closing #18 — phase 1 complete.
ben 2026-08-29 14:45:53 +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#18
No description provided.