files-member tail: e2e member-tier drive (DDR 0173 story 11) — a by-hand member on a real founded gateway #589
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#589
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?
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 newclaimmapleg incontrol-plane/cmd/smoke-idp/scripts/smoke-idp.sh). This ticketis 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-memberleg inapp/tests/e2e/journey.droplet.spec.tsis a named-skipcarrying 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 + thekomiti-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:
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 hasonly ever been founded by the APP'S OWN founding wizard against a real droplet
(
internal/founding/ownvpspath.go'snixos-anywhereFullInstall), driven viaPlaywright through S1-S5 + the deploy legs. The spec's own budgets:
enroll-configure20m,
enroll-activate20m,deploy-files40m ceiling ("a ceiling, not anexpectation"),
finish15m — 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).invite-memberleg'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'sinvite-memberleg + fixtures(
app/tests/e2e/fixtures/).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-memberleg: thejourney.droplet.spec.tsleg 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 underapp/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.mermaidexists, anddocs/ux/wireframes/files-member/has at least one screen (fm-s2x-files-not-open-to-you.html). Design contract present → does not route toneeds-design.Human-decision gate — no attached task manifest with a
needs_human_decisionlist; not applicable here.Why
ready-for-sessionand notready-for-human: per ADR 0174's reversibility rule, this is a two-way door — aclan-labdroplet 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 whatready-for-session— not the swarm queue, and not Ben directly — is for.Ruled by agent under ADR 0174 — veto anytime.
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 membersUI exists yet (
docs/ux/wireframes/p6-members/is design-only) — the gap wasonly ever the live e2e leg itself.
Commit
3ca0578wiresjourney.droplet.spec.ts'sinvite-memberleg(a no-op skip since #514) for real:
dash'slive operator session (the same
page.requestprecedent the S5 fleet probealready uses)
nextcloud-occ user:info --output=json(the branded-chrome leg's "occ, never a scrape"precedent), not fragile Nextcloud account-menu markup
(
oidcSignInAsMember, extracted fromoidcSignInAsOperator) and assertsthey do not land admin (
assertMemberIsNotAdmin,/settings/admin'sredirect-or-denied-marker signal — Nextcloud 200s an authenticated non-admin
there, never a 401)
(
[data-status="refused-suspended"],internal/controlapi/refusal.go)Validated offline:
tsc --noEmit,eslint, and the existing fixture unitsuites (
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 dropletrun 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.shonlyfires 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 theinvite-memberleg inlegs.json), with the codealready written so the full budget goes to the drive itself.
Leaving
ready-for-session— this is squarely that role's definition (livedroplet doors, real money, not Ben's hands/eyes/a one-way door).
session-runner: two unattended attempts did not advance this ticket — labelled
agent-blockedfor a human look (ADR 0174 escalation). Latest session log:/home/dev/.local/state/matou-session-runner/logs/run-589-20260815T114007Z.logon the workstation. Removeagent-blocked(and the stale fail counter if re-arming by hand) to let the runner retry.Ruled by agent under ADR 0174 — veto anytime
Ruling: removed the stale
ready-for-sessionlabel, leavingagent-blocked+enhancementas the sole state/category pair.Why:
ready-for-sessionwas applied at filing (2026-08-15T09:54). The code half landed later that day (commit3ca0578), 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 addingagent-blocked. Nothing since removedready-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'sagent-blockedrole, a human should look at the session-runner log (/home/dev/.local/state/matou-session-runner/logs/run-589-20260815T114007Z.log) and re-addready-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-memberleg 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 withinvite-membergreen (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 isreachable: () => trueinapp/tests/e2e/journey.droplet.spec.tsand 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 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.