rehearsal phase 2 T2: provision fixtures take the door, not a forwarded port — occ runner injected #487
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#487
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 2 of the #183 rehearsal ratchet (spec
docs/superpowers/specs/2026-08-12-183-phase-2-nextcloud-rehearsal-design.md, plandocs/superpowers/plans/2026-08-12-183-phase-2-nextcloud-rehearsal.md): the droplet drive grows past founding to a complete Nextcloud deployment at the real public door. This ticket is Task 2 of the plan, carried verbatim below — the plan file at HEAD is the authoritative copy if this body and it ever diverge.Verification gate (what YOU run):
cd app && pnpm test && pnpm build. The tail's LIVE behavior is unprovable in the sandbox (#377) — do NOT attempt to run a drive; the ratchet verifies it after Ben arms phase 2.Global Constraints
data-*contract (ADR 0132); label-matching (clickAny) is sanctioned ONLY for kanidm's and Nextcloud's external screens.readFilesDoor's return +doorPath) — never a rebuilt URL.sign-in10 min,co-host5,deploy-files40,files-healthy2,door2,branded-login3,oidc-admin5,branded-chrome5).runRecordedLeg—legs.jsoncurrent on disk before any rethrow..sandcastle/(protected path, and the machinery is generic by design),scripts/rehearsal-cycle.sh, or.forgejo/workflows/.provision-nextcloud.live.spec.ts,private-path.live.spec.ts,foundingPrefix.ts) must keep compiling and keep their exact behavior — call sites pass the portful door they already read.REHEARSAL_DRIVE_ISSUEin.sandcastle/.envis NOT flipped by this plan — arming is Ben's step after his #425 hand sign-off.pnpm test+pnpm build(vue-tsc) inapp/; the ratchet is the real test.E2E Drive, accent#619793, background#f5f5f0, logoLOGO_FIXTURE_PNG, greetingE2E_GREETING(both exported byapp/tests/e2e/fixtures/wizard.ts).Task 2: provision.ts — door-origin generalization + injected occ runner
Every Nextcloud-facing helper takes the DOOR (the S5
[Open]target) instead of a forwardedwebPort, and the occ proof takes its runner as a parameter. The private path keeps its exact behavior: its door carries the forwarded port, sodoorPath(door, …)resolves to the same URLsfilesUrl(webPort, …)built.Files:
app/tests/e2e/fixtures/provision.tsapp/tests/e2e/provision-nextcloud.live.spec.ts(call sites)app/tests/e2e/fixtures/provision.test.tsInterfaces:
Consumes:
doorPath(door, path)(already exists),guestExec(live, remote)from./fixtures/evidence(private-path occ runner).Produces (changed signatures Task 3 relies on):
doorHost(door: string): string— the door's hostname.readFilesDoor(page: Page, apex?: string): Promise<string>—apexdefaults to the private lab'sAPEX.oidcSignInAsOperator(page: Page, door: string, runDir: string): Promise<void>(was(c: CeremonyBrowser, webPort, runDir)).assertOperatorIsAdmin(page: Page, door: string): Promise<void>(was(page, webPort)).assertBrandedChrome(page: Page, occ: (remote: string) => Promise<string>, door: string, expect_: ChromeBrandExpectation, shotPath: string): Promise<void>(was(live, page, webPort, expect_, shotPath)).filesUrl/idpUrlstay exported (the lab's port-splice shape, still pinned by pure tests).Step 1: Write the failing test for
doorHostAppend to the
describe('provision fixture pure logic', …)block inprovision.test.ts:Add
doorHostto the imports from./provision.Run:
cd app && pnpm test tests/e2e/fixtures/provision.test.tsExpected: FAIL —
doorHostis not exported.doorHostand generalize the four helpersIn
provision.ts, afterdoorPath:readFilesDoor— take the apex (default keeps the private path verbatim):and replace every
files.${APEX}inside its body (theshownTextcomparison, both error messages, and thetarget.includescheck) withfiles.${apex}.oidcSignInAsOperator— new signature and door-derived landing host:Delete the
const { page } = c;line, drop theCeremonyBrowserimport if now unused, and replace the landing wait:assertOperatorIsAdmin— new signature and door-resolved target:assertBrandedChrome— occ runner injected, logo probe door-resolved:and the served-logo probe:
Remove the now-unused
live: LaunchedAppparameter, itsguestExec/LaunchedAppimports from provision.ts if nothing else uses them, and thefilesUrlcalls these two functions held (the helpers themselves stay exported).In
provision-nextcloud.live.spec.ts: addguestExecto the existing import from./fixtures/evidence, then:and (comment block above it unchanged):
(
dashISprefix!.ceremony.page— the same page the oldc: CeremonyBrowserargument carried, so behavior is unchanged.)Run:
cd app && pnpm test && pnpm buildExpected: both green;
provision.test.ts's newdoorHostcase passes, existing cases untouched.close-report for #487 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope