files-member tail: e2e member-tier drive (DDR 0173 story 11) — a by-hand member on a real founded gateway #589

Closed
opened 2026-08-15 09:51:33 +00:00 by ben · 6 comments
Owner

files-member tail: e2e member-tier drive (DDR 0173 story 11) — a by-hand member on a real founded gateway

Parent / provenance

Carried forward from #584 (itself the tail of #525, #514, DDR 0173/0179), which
closed in this ticket's favour: #584 bundled two items ("both need the clan-lab, one
lab session can prove them together" per its own carried-forward text) but the two
turned out to be very differently sized once investigated. #584 landed its two-way-door
part — DDR 0179's ocgroups claim-map REST wire shape live-probed against a real
clan-lab kanidm and confirmed correct (docs/spike-findings/smoke-idp-178.md, the new
claimmap leg in control-plane/cmd/smoke-idp / scripts/smoke-idp.sh). This ticket
is the other half: the e2e member-tier drive itself, story 11's actual live proof.

What this needs (researched before filing, not guessed)

The invite-member leg in app/tests/e2e/journey.droplet.spec.ts is a named-skip
carrying DDR 0165's assertion plan (Files landing + display name + komiti group +
no Administration entry, then suspend→refusal) — currently an unbuilt stub
(run: async () => {}, reachable() explaining it needs a by-hand member + the
komiti-group materialisation wired on a real gateway). DDR 0179's materialisation is
now proven live (#584), so the wiring gap is closed — what remains is:

  1. A real files+kanidm+Caddy gateway, founded live. No static NixOS/clan machine
    config deploys this stack anywhere in the repo (only kanidm-alone lab configs
    exist, spikes/smoke-idp/clan/machines/node1/kanidm-idp.nix). The full stack has
    only ever been founded by the APP'S OWN founding wizard against a real droplet
    (internal/founding/ownvpspath.go's nixos-anywhere FullInstall), driven via
    Playwright through S1-S5 + the deploy legs. The spec's own budgets: enroll-configure
    20m, enroll-activate 20m, deploy-files 40m ceiling ("a ceiling, not an
    expectation"), finish 15m — 1-2+ hours of live wall-clock minimum, real DNS +
    real cert (#559), real money (a rehearsal droplet, OC_E2E_DROPLET_IP,
    scripts/smoke-private-path.sh --target droplet).
  2. New Playwright fixtures. The invite-member leg's assertions (Files landing,
    display name, komiti group via occ, no Administration entry, then suspend→branded
    refusal) have never been written — this is new test code, not just flipping a flag.
    Likely needs: an admin/kaitiaki path to by-hand-create a member on the founded
    gateway (or drive it via the app's own member-invite UI once that exists — check
    whether one does), a fresh browser context signing in as that member at the files
    door, occ-driven server-side assertions (the branded-chrome leg's ssh-to-droplet
    pattern is the precedent for running occ against the live box).

Why this is its own ticket, not #584's remainder

Neither part above is boundable within a single unattended session under ADR 0174
rule 7 (no waiting on background work past the session's end) stacked on top of an
already-completed lab probe — the founding drive alone is 1-2+ hours, before any new
fixture-writing. Splitting lets the next session budget honestly for exactly this
(a real rehearsal-droplet founding drive + new Playwright work), rather than
inheriting an underscoped bundle the way #584 did from #525.

Standing on

ADR 0150, ADR 0076 (Tier 1), ADR 0074, ADR 0152 (own-VPS carrier), DDR 0158, DDR 0162,
DDR 0165, DDR 0172, DDR 0173, DDR 0179 (now live-probed, #584). Design contract:
docs/ux/flows/files-member.mermaid, docs/ux/wireframes/files-member/. Test seam:
app/tests/e2e/journey.droplet.spec.ts's invite-member leg + fixtures
(app/tests/e2e/fixtures/).

files-member tail: e2e member-tier drive (DDR 0173 story 11) — a by-hand member on a real founded gateway ## Parent / provenance Carried forward from **#584** (itself the tail of #525, #514, DDR 0173/0179), which closed in this ticket's favour: #584 bundled two items ("both need the clan-lab, one lab session can prove them together" per its own carried-forward text) but the two turned out to be very differently sized once investigated. #584 landed its two-way-door part — DDR 0179's ocgroups claim-map REST wire shape live-probed against a real clan-lab kanidm and confirmed correct (`docs/spike-findings/smoke-idp-178.md`, the new `claimmap` leg in `control-plane/cmd/smoke-idp` / `scripts/smoke-idp.sh`). This ticket is the other half: the e2e member-tier drive itself, story 11's actual live proof. ## What this needs (researched before filing, not guessed) The `invite-member` leg in `app/tests/e2e/journey.droplet.spec.ts` is a named-skip carrying DDR 0165's assertion plan (Files landing + display name + komiti group + no Administration entry, then suspend→refusal) — currently an unbuilt stub (`run: async () => {}`, `reachable()` explaining it needs a by-hand member + the komiti-group materialisation wired on a real gateway). DDR 0179's materialisation is now proven live (#584), so the wiring gap is closed — what remains is: 1. **A real files+kanidm+Caddy gateway, founded live.** No static NixOS/clan machine config deploys this stack anywhere in the repo (only kanidm-alone lab configs exist, `spikes/smoke-idp/clan/machines/node1/kanidm-idp.nix`). The full stack has only ever been founded by the APP'S OWN founding wizard against a real droplet (`internal/founding/ownvpspath.go`'s `nixos-anywhere` FullInstall), driven via Playwright through S1-S5 + the deploy legs. The spec's own budgets: `enroll-configure` 20m, `enroll-activate` 20m, `deploy-files` 40m ceiling ("a ceiling, not an expectation"), `finish` 15m — 1-2+ hours of live wall-clock minimum, real DNS + real cert (#559), real money (a rehearsal droplet, `OC_E2E_DROPLET_IP`, `scripts/smoke-private-path.sh --target droplet`). 2. **New Playwright fixtures.** The `invite-member` leg's assertions (Files landing, display name, komiti group via occ, no Administration entry, then suspend→branded refusal) have never been written — this is new test code, not just flipping a flag. Likely needs: an admin/kaitiaki path to by-hand-create a member on the founded gateway (or drive it via the app's own member-invite UI once that exists — check whether one does), a fresh browser context signing in as that member at the files door, occ-driven server-side assertions (the branded-chrome leg's ssh-to-droplet pattern is the precedent for running occ against the live box). ## Why this is its own ticket, not #584's remainder Neither part above is boundable within a single unattended session under ADR 0174 rule 7 (no waiting on background work past the session's end) stacked on top of an already-completed lab probe — the founding drive alone is 1-2+ hours, before any new fixture-writing. Splitting lets the next session budget honestly for exactly this (a real rehearsal-droplet founding drive + new Playwright work), rather than inheriting an underscoped bundle the way #584 did from #525. ## Standing on ADR 0150, ADR 0076 (Tier 1), ADR 0074, ADR 0152 (own-VPS carrier), DDR 0158, DDR 0162, DDR 0165, DDR 0172, DDR 0173, DDR 0179 (now live-probed, #584). Design contract: `docs/ux/flows/files-member.mermaid`, `docs/ux/wireframes/files-member/`. Test seam: `app/tests/e2e/journey.droplet.spec.ts`'s `invite-member` leg + fixtures (`app/tests/e2e/fixtures/`).
Author
Owner

This was generated by AI during triage.

Triage

Category: enhancement · State: ready-for-session (both pre-applied at filing; confirming and recording the reasoning here since #589 itself carried no rationale — its sibling #584 did).

Redundancy check — searched for an existing implementation of the invite-member leg: the journey.droplet.spec.ts leg is still the unbuilt stub described in the issue body (run: async () => {}, reachable() unchanged since #584's close-report). No komiti/by-hand-member fixtures exist anywhere under app/tests/e2e/fixtures/. Not already built.

Prior rejection check — no .out-of-scope/ directory exists in this repo yet, so nothing to check against.

Missing-design gate — docs/ux/flows/files-member.mermaid exists, and docs/ux/wireframes/files-member/ has at least one screen (fm-s2x-files-not-open-to-you.html). Design contract present → does not route to needs-design.

Human-decision gate — no attached task manifest with a needs_human_decision list; not applicable here.

Why ready-for-session and not ready-for-human: per ADR 0174's reversibility rule, this is a two-way door — a clan-lab droplet founding drive is real infra but with an established, provable rollback (create/destroy), the same shape #584 ruled and executed for its item 1. The "real money" cost is the same established rehearsal-droplet pattern already in routine use (OC_E2E_DROPLET_IP, scripts/smoke-private-path.sh --target droplet, .sandcastle/tests/rehearsal-droplet-test.sh) — not a non-routine spend. It needs an interactive session's standing (live droplet founding, ~1-2h wall-clock, new Playwright fixture authoring), which is exactly what ready-for-session — not the swarm queue, and not Ben directly — is for.

Ruled by agent under ADR 0174 — veto anytime.

> *This was generated by AI during triage.* ## Triage **Category:** enhancement · **State:** ready-for-session (both pre-applied at filing; confirming and recording the reasoning here since #589 itself carried no rationale — its sibling #584 did). **Redundancy check** — searched for an existing implementation of the `invite-member` leg: the `journey.droplet.spec.ts` leg is still the unbuilt stub described in the issue body (`run: async () => {}`, `reachable()` unchanged since #584's close-report). No komiti/by-hand-member fixtures exist anywhere under `app/tests/e2e/fixtures/`. Not already built. **Prior rejection check** — no `.out-of-scope/` directory exists in this repo yet, so nothing to check against. **Missing-design gate** — `docs/ux/flows/files-member.mermaid` exists, and `docs/ux/wireframes/files-member/` has at least one screen (`fm-s2x-files-not-open-to-you.html`). Design contract present → does not route to `needs-design`. **Human-decision gate** — no attached task manifest with a `needs_human_decision` list; not applicable here. **Why `ready-for-session` and not `ready-for-human`:** per ADR 0174's reversibility rule, this is a two-way door — a `clan-lab` droplet founding drive is real infra but with an established, provable rollback (create/destroy), the same shape #584 ruled and executed for its item 1. The "real money" cost is the same established rehearsal-droplet pattern already in routine use (`OC_E2E_DROPLET_IP`, `scripts/smoke-private-path.sh --target droplet`, `.sandcastle/tests/rehearsal-droplet-test.sh`) — not a non-routine spend. It needs an interactive session's standing (live droplet founding, ~1-2h wall-clock, new Playwright fixture authoring), which is exactly what `ready-for-session` — not the swarm queue, and not Ben directly — is for. **Ruled by agent under ADR 0174 — veto anytime.**
Author
Owner

Ruled by agent under ADR 0174 — veto anytime

Landed the code half of this ticket; the live drive is the honest remainder.

Research first (not guessing): the backend this ticket wondered about already
exists end-to-end and tested — POST /api/v1/komiti, POST /api/v1/members/by-hand, POST /api/v1/members/{person_id}/suspend
(internal/member/byhand.go, internal/controlapi/members.go). No P6 members
UI exists yet (docs/ux/wireframes/p6-members/ is design-only) — the gap was
only ever the live e2e leg itself.

Commit 3ca0578 wires journey.droplet.spec.ts's invite-member leg
(a no-op skip since #514) for real:

  • creates a komiti + by-hand member over the control-plane API riding dash's
    live operator session (the same page.request precedent the S5 fleet probe
    already uses)
  • asserts display name + komiti membership server-side via nextcloud-occ user:info --output=json (the branded-chrome leg's "occ, never a scrape"
    precedent), not fragile Nextcloud account-menu markup
  • signs the member in at the files door in a fresh browser context
    (oidcSignInAsMember, extracted from oidcSignInAsOperator) and asserts
    they do not land admin (assertMemberIsNotAdmin, /settings/admin's
    redirect-or-denied-marker signal — Nextcloud 200s an authenticated non-admin
    there, never a 401)
  • suspends the member and asserts the DA-S2x branded refusal
    ([data-status="refused-suspended"], internal/controlapi/refusal.go)

Validated offline: tsc --noEmit, eslint, and the existing fixture unit
suites (provision.test.ts, legs.test.ts, journey.test.ts) all green.
This is a two-way door — revertible by commit, provable by the checks above —
so I'm ruling and proceeding under rule 1 rather than parking it.

Why this isn't closed: the leg is unproven against a real gateway. Proving
it needs nix develop .#e2e -c scripts/smoke-private-path.sh --target droplet
run to completion — the ticket's own researched estimate is 1-2+ hours,
before this new leg's own ~5-10 minutes. I checked whether the standing
droplet-target drive (#492) would pick this up on its own cron and it will
not: #492 already closed GREEN today (20260815T055256Z, the phase-2
"founds AND provisions" ratchet) and scripts/rehearsal-executor.sh only
fires while its target issue is open. So there is no automatic re-drive —
an explicit run is needed.

This session's remaining time, on top of the research + implementation above,
could not safely absorb a 1-2+ hour live drive of never-before-run code inside
this runner's 7200s bound (ADR 0174 rule 7) — starting it risked a mid-drive
SIGKILL with an orphaned droplet, no evidence, and no audit trail, which is
worse than not starting. Leaving this for the next session to run first
thing
(nix develop .#e2e -c scripts/smoke-private-path.sh --target droplet, watching the invite-member leg in legs.json), with the code
already written so the full budget goes to the drive itself.

Leaving ready-for-session — this is squarely that role's definition (live
droplet doors, real money, not Ben's hands/eyes/a one-way door).

## Ruled by agent under ADR 0174 — veto anytime **Landed the code half of this ticket; the live drive is the honest remainder.** Research first (not guessing): the backend this ticket wondered about already exists end-to-end and tested — `POST /api/v1/komiti`, `POST /api/v1/members/by-hand`, `POST /api/v1/members/{person_id}/suspend` (`internal/member/byhand.go`, `internal/controlapi/members.go`). No P6 members UI exists yet (`docs/ux/wireframes/p6-members/` is design-only) — the gap was only ever the live e2e leg itself. **Commit `3ca0578`** wires `journey.droplet.spec.ts`'s `invite-member` leg (a no-op skip since #514) for real: - creates a komiti + by-hand member over the control-plane API riding `dash`'s live operator session (the same `page.request` precedent the S5 fleet probe already uses) - asserts display name + komiti membership **server-side via `nextcloud-occ user:info --output=json`** (the branded-chrome leg's "occ, never a scrape" precedent), not fragile Nextcloud account-menu markup - signs the member in at the files door in a fresh browser context (`oidcSignInAsMember`, extracted from `oidcSignInAsOperator`) and asserts they do **not** land admin (`assertMemberIsNotAdmin`, `/settings/admin`'s redirect-or-denied-marker signal — Nextcloud 200s an authenticated non-admin there, never a 401) - suspends the member and asserts the DA-S2x branded refusal (`[data-status="refused-suspended"]`, `internal/controlapi/refusal.go`) Validated offline: `tsc --noEmit`, `eslint`, and the existing fixture unit suites (`provision.test.ts`, `legs.test.ts`, `journey.test.ts`) all green. This is a two-way door — revertible by commit, provable by the checks above — so I'm ruling and proceeding under rule 1 rather than parking it. **Why this isn't closed:** the leg is unproven against a real gateway. Proving it needs `nix develop .#e2e -c scripts/smoke-private-path.sh --target droplet` run to completion — the ticket's own researched estimate is 1-2+ hours, before this new leg's own ~5-10 minutes. I checked whether the standing droplet-target drive (#492) would pick this up on its own cron and it will not: #492 already closed GREEN today (`20260815T055256Z`, the phase-2 "founds AND provisions" ratchet) and `scripts/rehearsal-executor.sh` only fires while its target issue is *open*. So there is no automatic re-drive — an explicit run is needed. This session's remaining time, on top of the research + implementation above, could not safely absorb a 1-2+ hour live drive of never-before-run code inside this runner's 7200s bound (ADR 0174 rule 7) — starting it risked a mid-drive SIGKILL with an orphaned droplet, no evidence, and no audit trail, which is worse than not starting. Leaving this for the next session to run **first thing** (`nix develop .#e2e -c scripts/smoke-private-path.sh --target droplet`, watching the `invite-member` leg in `legs.json`), with the code already written so the full budget goes to the drive itself. Leaving `ready-for-session` — this is squarely that role's definition (live droplet doors, real money, not Ben's hands/eyes/a one-way door).
Author
Owner

session-runner: two unattended attempts did not advance this ticket — labelled agent-blocked for a human look (ADR 0174 escalation). Latest session log: /home/dev/.local/state/matou-session-runner/logs/run-589-20260815T114007Z.log on the workstation. Remove agent-blocked (and the stale fail counter if re-arming by hand) to let the runner retry.

session-runner: two unattended attempts did not advance this ticket — labelled `agent-blocked` for a human look (ADR 0174 escalation). Latest session log: `/home/dev/.local/state/matou-session-runner/logs/run-589-20260815T114007Z.log` on the workstation. Remove `agent-blocked` (and the stale fail counter if re-arming by hand) to let the runner retry.

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime

Ruling: removed the stale ready-for-session label, leaving agent-blocked + enhancement as the sole state/category pair.

Why: ready-for-session was applied at filing (2026-08-15T09:54). The code half landed later that day (commit 3ca0578), and the follow-up session-runner comment (2026-08-15T11:44) shows two unattended attempts on the remaining live-drive leg failed to advance, correctly adding agent-blocked. Nothing since removed ready-for-session, so the issue was carrying two conflicting state labels — the stale pre-landing one and the current post-failure one.

Why this is a two-way door: a label-only correction, fully revertible by re-adding ready-for-session (or any other state label) with a comment; provable directly from this issue's own comment timeline (no external state consulted). Not on the ADR 0174 one-way-door list.

Per triage-labels.md's agent-blocked role, a human should look at the session-runner log (/home/dev/.local/state/matou-session-runner/logs/run-589-20260815T114007Z.log) and re-add ready-for-session (clearing the stale fail counter) once ready to re-arm.

> *This was generated by AI during triage.* ## Ruled by agent under ADR 0174 — veto anytime **Ruling:** removed the stale `ready-for-session` label, leaving `agent-blocked` + `enhancement` as the sole state/category pair. **Why:** `ready-for-session` was applied at filing (2026-08-15T09:54). The code half landed later that day (commit `3ca0578`), and the follow-up session-runner comment (2026-08-15T11:44) shows two unattended attempts on the remaining live-drive leg failed to advance, correctly adding `agent-blocked`. Nothing since removed `ready-for-session`, so the issue was carrying two conflicting state labels — the stale pre-landing one and the current post-failure one. **Why this is a two-way door:** a label-only correction, fully revertible by re-adding `ready-for-session` (or any other state label) with a comment; provable directly from this issue's own comment timeline (no external state consulted). Not on the ADR 0174 one-way-door list. Per `triage-labels.md`'s `agent-blocked` role, a human should look at the session-runner log (`/home/dev/.local/state/matou-session-runner/logs/run-589-20260815T114007Z.log`) and re-add `ready-for-session` (clearing the stale fail counter) once ready to re-arm.

Closed — story 11 proven live (ruled by Ben, 2026-10-21)

The invite-member leg this ticket asked for has been proven live on a real founded gateway; the ticket was left open only because the August-15 sessions could not fit the drive in their bound, and nothing came back to close it after the drives did.

Proof: 76e057e2 (2026-08-26) — #720 three consecutive rented-carrier 20/20 drives with invite-member green (by-hand komiti + member created, display name + komiti read back via /api/v1/members/{id}/detail, member signs in at the files door to the Files landing, not admin, suspend → branded DA-S2x refusal); #722 closed on it. The leg is reachable: () => true in app/tests/e2e/journey.droplet.spec.ts and has ridden every rehearsal drive since.

Fixes that got it there: #684 (pre-login assertion reads kanidm, not occ), #765 (not-admin gate accepts Nextcloud 32's 403), #866 (files kanidm client emits the short username, so suspend no longer 404s), #875 (suspend rests reconciler ports on the deployed module set).

Carrier: Ben's ruling — proof on a rented VPS satisfies story 11; own-VPS is not a separate requirement for this ticket (own-VPS frontier rows stay with #183).

Removing agent-blocked.

## Closed — story 11 proven live (ruled by Ben, 2026-10-21) The `invite-member` leg this ticket asked for has been proven live on a real founded gateway; the ticket was left open only because the August-15 sessions could not fit the drive in their bound, and nothing came back to close it after the drives did. **Proof:** `76e057e2` (2026-08-26) — #720 three consecutive rented-carrier 20/20 drives with `invite-member` **green** (by-hand komiti + member created, display name + komiti read back via `/api/v1/members/{id}/detail`, member signs in at the files door to the Files landing, not admin, suspend → branded DA-S2x refusal); #722 closed on it. The leg is `reachable: () => true` in `app/tests/e2e/journey.droplet.spec.ts` and has ridden every rehearsal drive since. **Fixes that got it there:** #684 (pre-login assertion reads kanidm, not occ), #765 (not-admin gate accepts Nextcloud 32's 403), #866 (files kanidm client emits the short username, so suspend no longer 404s), #875 (suspend rests reconciler ports on the deployed module set). **Carrier:** Ben's ruling — proof on a rented VPS satisfies story 11; own-VPS is not a separate requirement for this ticket (own-VPS frontier rows stay with #183). Removing `agent-blocked`.
matou-build-agent 2026-10-21 15:44:17 +00:00
Author
Owner

Closed 2026-10-21 (Ben's ruling in the stale sweep): the invite-member e2e leg landed (#589 wire commit, 2026-08-15) and a member has since joined a real founded gateway by hand through the app on whakatohea-demo, which is the by-hand proof this ticket owed.

Closed 2026-10-21 (Ben's ruling in the stale sweep): the invite-member e2e leg landed (#589 wire commit, 2026-08-15) and a member has since joined a real founded gateway by hand through the app on whakatohea-demo, which is the by-hand proof this ticket owed.
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.

Dependencies

No dependencies set.

Reference
Matou/idss#589
No description provided.