private-path resume spec (and the undriven reapply drive) still ride the legacy ceremony sink — same #425 rework owed, reds guaranteed on next drive #750
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#750
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?
The #425 / DDR 0163 app-window ceremony rework landed for the founding prefix and both provisioning tails on 2026-08-24 (
a18375b,530c903) and is proven green live (drives20260824T144614Zfounding,20260824T173904Znextcloud). Two sibling specs still carry the LEGACY sink flow and will red exactly the way the founding spec did (waitForResetUrltimes out — the reset url no longer crosses to the helper's open sink) when next driven:app/tests/e2e/private-path-tail.resume.spec.ts— still importskanidmOrigin/waitForResetUrland readslive.resetUrls().app/tests/e2e/settings-brand-reapply.live.spec.ts— its ceremony half received the tail changes (transplant + external-browser dash) but has not been driven since; treat its first--drive reapplyred as expected calibration, not regression.The rework recipe (proven twice)
openAppCeremonyWindow(live.app, () => click open-your-dashboard, 3m, runDir);attachAuthenticator(page);resetUrl = page.url();origin = ceremonyWindowOrigin(resetUrl)(fixtures/ceremony.ts).registerPasskey(session, resetUrl, runDir)— it already skips re-navigation for the app window.imageBytes()), neverpage.request(GOTCHAS #78 — the pinned CA is invisible to Playwright's request stack).files.<apex>rides the EXTERNAL Chromium withtransplantCredentials(session, ext)first — the app ceremony session pins cert verification to the IdP origin (GOTCHAS #79 sibling; see provision-nextcloud.live.spec.ts).oidcSignInAsOperatorassumes the caller already didgoto(doorPath(door,'/login'))(#562 contract).Proof
Live only — the resume drive needs a laptop/host with KVM and the private-path payload (
scripts/smoke-private-path.shmachinery; the resume spec ridesscripts/resume-private-path-tail.sh). Unprovable in the Sandcastle sandbox (#377).Ruled by agent under ADR 0174 — veto anytime
The two-way part landed:
1774f6e8. The one-way residue is a live drive on your laptop, so this goesready-for-humanfor that single act.What landed
private-path-tail.resume.spec.ts— reworked to the twice-proven recipe. It now catches the app's own window (openAppCeremonyWindow(live.app, () => click open-your-dashboard, 3m, live.runDir)), attaches the CDP virtual authenticator to THAT page, readsresetUrloff the window itself, and validates it withceremonyWindowOrigininstead of the localhost-pinnedkanidmOrigin. Registration and sign-in drive thePasskeySession.Two deviations from the recipe as written, both deliberate:
transplantCredentials(recipe step 4). This tail never visitsfiles.<apex>— it does the ceremony, defers the kit, and lands on Operator home, all in the app. There is nothing to transplant into, so launching a second browser would be dead weight.loginWithPasskey'sexpectDomainLogo, which already fetches throughimageBytes()—a18375bfixed that inside the fixture, so this spec inherits it.Step 5 (
oidcSignInAsOperator's goto contract) does not apply — this spec never calls it.Also gone: the mid-test
closeCeremonyBrowserandafterAll's ceremony branch. The app window closes with the app, exactly asfoundingPrefixleaves it, andprivate-path.live.spec.tsproves that same ordering green (it clickslaterwith the window still open).A guard, as the red-before-green.
ceremony.test.tsgained "the retired open-sink ceremony has no spec caller" — it scans everytests/e2e/*.spec.tsforwaitForResetUrl/kanidmOrigin/resetUrls. It failed first, naming exactly one offender:That is the whole point of the guard: this class of drift cost two commits of invisibility and would have cost a founding drive's wall clock to discover, because the failure mode is
waitForResetUrlburning its full ceiling and reding two minutes deep. Now it is a one-second file scan.waitForResetUrl/kanidmOrigin/resetUrls()stay exported and unit-tested — the helper still writes the sink — but no e2e spec may drive a ceremony through them.settings-brand-reapply.live.spec.ts— audited, NO change owed. The guard cleared it independently of my reading of it: its ceremony half took both rework commits (a18375b,530c903), it already doestransplantCredentials(prefix.session, ext)before the external-browserdash, and its brand assertions rideassertNextcloudTheming(occ over ssh) andassertBrandedLogin(fresh incognito off the external browser) — neither touchespage.request. Confirming the ticket's own call: it is undriven, not broken, so its first--drive reapplyred is calibration.ceremony.ts— two stale notes corrected. These are why the drift went unseen, so they are in scope rather than tidying:waitForResetUrl"will time out on a real drive" as a future condition. It now records the rework as landed, names both green drives, and points at the guard.openAppCeremonyWindow's docblock still claimed "Passkey coverage stays live on the private path, whose external ChromiumopenCeremonyBrowserstill attaches the authenticator per-target" — false sincea18375b, and precisely the sentence that would mislead the next person doing this rework. It now separates the two paths honestly: the private path attaches an authenticator to the app window and registers a passkey (green20260824T144614Z); the public/droplet drive registers a password (ADR 0170, #494).Proof
Offline, and I am not calling it more than it is:
ceremony.test.tsguard: red naming the offender → greenenv -u IDSS_PAYLOAD_DIR pnpm vitest run)vue-tsc -p tsconfig.jsonclean —testsis ininclude, so the reworked spec genuinely typechecks against the fixture signatureseslintclean;prettier --checkclean on all three touched code files (two were already drifted at HEAD and are now formatted)private-path-tail.resume.spec.ts:63:3 › ... › re-enters at hand-off and drives only the tail— the module graph resolves and every new import bindsThree
stdioBridge.test.tscases fail on this host, red ate6cfb52too and green underenv -u IDSS_PAYLOAD_DIR— a host-env leak, unrelated to this ticket. Filed as #755.Why human
Ben's hands, on his laptop — the live resume drive. Not a ruling, not a judgement call: the drive is physically unreachable from
matou-dev-server-01, on three counts./dev/kvmexists but this account is not in thekvmgroup (groups: dev, sudo, users, docker).IDSS_PAYLOAD_DIR=/home/dev/swarm/rehearsal-payloadholdscontrol-planeanddashboardonly — the rehearsal/droplet shape.smoke-private-path.shdemandsnixos-guest.qcow2,qemu-imgand the arch qemu binary, and refuses a partial payload (ADR 0100).scripts/resume-private-path-tail.shrequires a run dir whosefounding-state.jsonrests atstep: hand-offwith the guest still up — it deliberately never tears the guest down, and refuses at second 0 ifidss-guest.serviceis not active. There is notest-results/private-path/here at all, andsystemctl --usercannot even reach a bus on this host (Failed to connect to bus: No medium found).The ask, when you next drive: after a founding drive rests at hand-off,
nix develop .#e2e -c scripts/resume-private-path-tail.sh— the tail should now reachcredential-enrolledthrough the app's own window instead of timing out atwaitForResetUrl. If it reds,artifacts/ceremony/window-diagnostics.logis wired on this spec now (it was not before), so the console/network stream is there to read.Left
bugon deliberately — the defect is real and unproven-fixed until that drive.Session note 2026-08-29: the laptop is drive-ready — complete payload at ~/.local/share/idss/payload (agent/control-plane/dashboard warmed 08-25, nixos-guest.qcow2 08-24), KVM present. The staleness preflight may demand a re-warm first (tree has moved since 08-25). Ben deferred the drive to a free window; recipe stands as ruled above.
Closed by Ben (Floor session, 2026-10-21) — the defect is fixed; the live drive moves to a later run on the current setup
Why this closes now. The defect this ticket named — specs still riding the retired open-sink ceremony — is fixed and guarded:
private-path-tail.resume.spec.tsrides the app's own ceremony window (1774f6e8).ceremony.test.ts"the retired open-sink ceremony has no spec caller" reds offline if any spec reaches forwaitForResetUrl/kanidmOrigin/resetUrlsagain.settings-brand-reapply.live.spec.tsalready carried the tail changes (transplant + external-browser dash).The live proof is NOT done here: Ben will run the reapply drive later, on the latest setup, and pick up any remaining checks it surfaces then. Neither spec has been driven since 2026-08-24.
Carried forward for that drive (found this session, not acted on):
#2C4770→ Apply, and the running Nextcloud reads it (occ config:list), plus the re-themed login page. The founding prefix + Files provisioning it rides are already proven green elsewhere (brand-reach drive 8, 09-09; archive drive, 09-06), so a red there is calibration/shared drift, not a re-apply defect.artifacts/legs.json/verdict.json(cf.provision-archive.live.spec.ts), so through the executor a red reports as one synthesizedpre-legsleg.'E2E Drive'(the #1115 bug class, fixed in the files-door assert, not here).local-reapplyqueue target was drafted this session and then DISCARDED (Ben) — nothing landed. If the drive is to ride the rehearsal executor, re-add it: alocal-reapplyrow inscripts/lib/rehearsal-queue-lib.sh(rehearsal_target_base→local-guest,rehearsal_target_drive→reapply, thelocal-brandsshape) plus an offline test mirroringscripts/tests/rehearsal-local-brands-target-test.sh, and the issue number in the driving host'sREHEARSAL_DRIVE_QUEUE.resume-private-path-tail.sh) is a debug tool, not the spec — prove it on next use rather than as a scheduled drive.