phase-9 drive: a leg signs the operator into a NON-Nextcloud service (document-archive) through the community door only and asserts the admin surface — #1509 acceptance clause 3; repair + prove Grist on the Whakatōhea demo #1546

Closed
opened 2026-09-16 18:55:31 +00:00 by ben · 2 comments
Owner

Spec

#1535 — Ben's ruling (2026-09-16): adding a member in the control panel grants them access to every member service the control panel deployed; adding a member as an operator gives them admin access to all services. One community sign-in, every door, no second login, no hidden per-app credential.

Why session

Needs the rented rail on matou-workstation and the demo box's rent-operator key (live doors, host creds) — ready-for-session, not swarm.

Build

  • app/tests/e2e/fixtures/nextcloudTail.ts-style tail for Paperless: from the operator's community session (the sign-in leg's cookie), open https://document-archive.<apex>/, assert no app login form, assert /admin/ reachable (superuser) — the leg paperless-sso after hand-off-card; DEMO-profile only until the standing drive's service list carries document-archive.
  • Repair Grist on whakatohea-demo.idss.nz per the Grist ticket's close-out one-liner and eyeball it with Ben (owner on the org).
  • One fire of the DEMO profile on a fresh slug proves both from a clean founding; keep-on-green is already pinned (rehearsal-rented-target-test case 8b).

Acceptance

  • Leg list gains paperless-sso; GREEN run dir named on the ticket; screenshots eyeballed (a GREEN can be false).

Note: the FULL proof (both roles, every door, through the panel, with a redeploy) is #1547; this ticket stays the early one-service leg.

## Spec #1535 — Ben's ruling (2026-09-16): **adding a member in the control panel grants them access to every member service the control panel deployed; adding a member as an operator gives them admin access to all services.** One community sign-in, every door, no second login, no hidden per-app credential. ## Why session Needs the rented rail on matou-workstation and the demo box's rent-operator key (live doors, host creds) — `ready-for-session`, not swarm. ## Build - `app/tests/e2e/fixtures/nextcloudTail.ts`-style tail for Paperless: from the operator's community session (the `sign-in` leg's cookie), open `https://document-archive.<apex>/`, assert no app login form, assert `/admin/` reachable (superuser) — the leg `paperless-sso` after `hand-off-card`; DEMO-profile only until the standing drive's service list carries document-archive. - Repair Grist on `whakatohea-demo.idss.nz` per the Grist ticket's close-out one-liner and eyeball it with Ben (owner on the org). - One fire of the DEMO profile on a fresh slug proves both from a clean founding; keep-on-green is already pinned (rehearsal-rented-target-test case 8b). ## Acceptance - Leg list gains `paperless-sso`; GREEN run dir named on the ticket; screenshots eyeballed (a GREEN can be false). **Note:** the FULL proof (both roles, every door, through the panel, with a redeploy) is #1547; this ticket stays the early one-service leg.

Ruled by agent under ADR 0174 — veto anytime.

What landed (the two-way part — the paperless-sso leg)

The e2e leg that proves #1509 acceptance clause 3 is built, TDD (red→green), on main at e2fc7596:

  • New fixture app/tests/e2e/fixtures/paperlessTail.ts (nextcloudTail.ts-style): assertPaperlessSso(dash, apex, runDir, operatorPassword) drives the operator's WARM community session — the sign-in leg's ceremony page (dash), i.e. the sign-in cookie, not a fresh browser — to https://document-archive.<apex>/. It reuses roleDoors' proven walkDoorAs (asserts no second login form — reds if Paperless' allauth form ever returns) then the now-exported assertAdminReached (navigates /admin/, asserts superuser — reds unless Django's #user-tools renders for real). So the operator surface is judged single-source with #1547's document-archive door row (both ride #1538's OIDC client + superuser reconciler).
  • Leg list gains paperless-sso (acceptance clause 1): demoProfile.ts demoLegs(services) lands the leg after the whole Nextcloud tail (…→ branded-chrome) and before kept, only when the demo places document-archive — DEMO-profile only until the standing RENTED_SERVICES_LEGS itself carries it. The standing drive stays byte-identical (demoLegs() with no services unchanged).
  • Wired into journey.rented-services.spec.ts's demo branch, gated on profile.services.includes('document-archive').
  • roleDoors.ts: assertAdminReached exported (no behaviour change) so the paperless leg and #1547's operator-document-archive leg share one superuser judgement.

Proof (offline): paperlessTail.test.ts (3) + demoProfile.test.ts (7) + rentedServices.test.ts + rolesProof.test.ts + nextcloudTail.test.ts green; the whole tests/e2e/fixtures unit suite 468/468; tsc clean on the changed files; the pre-push eslint . hook passed. Commit e2fc7596 — "session: #1546 — phase-9 paperless-sso leg …". STATUS.md updated in the same commit.

Why human

The rest of the acceptance is one-way-door residue that a session must not self-authorize — relabelling ready-for-human:

  1. Ben's eyes (acceptance clause 2): "GREEN run dir named on the ticket; screenshots eyeballed (a GREEN can be false)". The eyeball is explicitly a human check — a session cannot certify it.
  2. One-way door — non-routine spend + member-facing trust (the DEMO fire): "One fire of the DEMO profile on a fresh slug" founds a KEPT member-facing demo community (leg kept, no release) — an ongoing-spend box people are invited to, with member-facing brand/name/greeting. No staged demo kit or fire recipe exists on matou-workstation (no ~/swarm/proof-1546/, no IDSS_DEMO_* recipe), so founding a second kept community is a member-facing-trust + spend action for Ben to authorize, not a session.
  3. Ben's eyes on a live member-facing org (Build bullet 2): "Repair Grist on whakatohea-demo.idss.nz … eyeball it with Ben (owner on the org)." Requires Ben on the live org.

Ready to fire when Ben authorizes: the leg is now in code, and the Whakatōhea kit is already the fixtures' known kit (name "Whakatōhea Demo", operator ben@matou.nz, greeting "Nau mai ki Te Tāwharau o Te Whakatōhea" — demoProfile.test.ts). A DEMO fire with IDSS_DEMO_SERVICES including document-archive will run the paperless-sso leg; name the GREEN run dir here and eyeball artifacts/roles/paperless-sso-*.png + artifacts/paperless/admin.png.

**Ruled by agent under ADR 0174 — veto anytime.** ## What landed (the two-way part — the `paperless-sso` leg) The e2e leg that proves #1509 acceptance clause 3 is built, TDD (red→green), on `main` at `e2fc7596`: - **New fixture** `app/tests/e2e/fixtures/paperlessTail.ts` (`nextcloudTail.ts`-style): `assertPaperlessSso(dash, apex, runDir, operatorPassword)` drives the operator's **WARM community session** — the `sign-in` leg's ceremony page (`dash`), i.e. the sign-in cookie, **not** a fresh browser — to `https://document-archive.<apex>/`. It reuses roleDoors' proven `walkDoorAs` (**asserts no second login form** — reds if Paperless' allauth form ever returns) then the now-exported `assertAdminReached` (navigates `/admin/`, **asserts superuser** — reds unless Django's `#user-tools` renders for real). So the operator surface is judged **single-source** with #1547's `document-archive` door row (both ride #1538's OIDC client + superuser reconciler). - **Leg list gains `paperless-sso`** (acceptance clause 1): `demoProfile.ts` `demoLegs(services)` lands the leg **after the whole Nextcloud tail** (…→ `branded-chrome`) and before `kept`, **only when the demo places `document-archive`** — DEMO-profile only until the standing `RENTED_SERVICES_LEGS` itself carries it. The standing drive stays byte-identical (`demoLegs()` with no services unchanged). - **Wired** into `journey.rented-services.spec.ts`'s demo branch, gated on `profile.services.includes('document-archive')`. - `roleDoors.ts`: `assertAdminReached` exported (no behaviour change) so the paperless leg and #1547's `operator-document-archive` leg share one superuser judgement. **Proof (offline):** `paperlessTail.test.ts` (3) + `demoProfile.test.ts` (7) + `rentedServices.test.ts` + `rolesProof.test.ts` + `nextcloudTail.test.ts` green; the whole `tests/e2e/fixtures` unit suite **468/468**; `tsc` clean on the changed files; the pre-push `eslint .` hook passed. Commit `e2fc7596` — "session: #1546 — phase-9 paperless-sso leg …". STATUS.md updated in the same commit. ## Why human The rest of the acceptance is one-way-door residue that a session must not self-authorize — **relabelling `ready-for-human`**: 1. **Ben's eyes (acceptance clause 2):** "GREEN run dir named on the ticket; **screenshots eyeballed (a GREEN can be false)**". The eyeball is explicitly a human check — a session cannot certify it. 2. **One-way door — non-routine spend + member-facing trust (the DEMO fire):** "One fire of the DEMO profile on a fresh slug" **founds a KEPT member-facing demo community** (leg `kept`, no release) — an ongoing-spend box people are invited to, with member-facing brand/name/greeting. No staged demo kit or fire recipe exists on matou-workstation (no `~/swarm/proof-1546/`, no `IDSS_DEMO_*` recipe), so founding a second kept community is a member-facing-trust + spend action for Ben to authorize, not a session. 3. **Ben's eyes on a live member-facing org (Build bullet 2):** "Repair Grist on `whakatohea-demo.idss.nz` … **eyeball it with Ben (owner on the org)**." Requires Ben on the live org. **Ready to fire when Ben authorizes:** the leg is now in code, and the Whakatōhea kit is already the fixtures' known kit (name "Whakatōhea Demo", operator ben@matou.nz, greeting "Nau mai ki Te Tāwharau o Te Whakatōhea" — `demoProfile.test.ts`). A DEMO fire with `IDSS_DEMO_SERVICES` including `document-archive` will run the `paperless-sso` leg; name the GREEN run dir here and eyeball `artifacts/roles/paperless-sso-*.png` + `artifacts/paperless/admin.png`.
Author
Owner

Closed 2026-10-21 (Ben's ruling): folded into the drive checklist #2055 — the live proof this ticket still owed is now a checklist item there, to be carried by the next drives on the latest versions. A proof that fails on the drive becomes a NEW ticket; this one is not reopened.

Closed 2026-10-21 (Ben's ruling): folded into the drive checklist #2055 — the live proof this ticket still owed is now a checklist item there, to be carried by the next drives on the latest versions. A proof that fails on the drive becomes a NEW ticket; this one is not reopened.
ben 2026-10-21 21:51:15 +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/idss#1546
No description provided.