files-member tail: e2e member-tier drive (story 11) + live-probe the ocgroups claim-map reconciler (DDR 0179) #584
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.
Dependencies
No dependencies set.
Reference
Matou/idss#584
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?
Parent / provenance
Carried-forward tail of #525 (itself a follow-up tail of #514, DDR 0173), which
landed the two-way-door parts of #525's four stories on
origin/main:really cannot authenticate — proven with a real
/v1/authpassword conversation, notjust an
account_expireattribute read) — commitsandcastle: #525 story 9 private-path stated-limit + story 6 real-auth proof for awaiting-approval.accept) as DDR 0179: a new
member.FilesKomitiClaimMapPort(
internal/kanidm.Adapter.{Add,Remove}FilesKomitiClaimMap) writes a per-komitiocgroupsclaim-map entry on the files OAuth2 client at komiti create/rename/delete —commit
sandcastle: #525 story 3 — DDR 0179 rules komiti→Nextcloud-group materialisation, reconciler verb built.#525 is CLOSED in this ticket's favour (its close-report names this carry-forward, ADR
0174 rule closing a ticket whose two-way-door parts are done and whose remainder is its
own session-worthy live-lab thread — the #514→#525 precedent repeated).
What's carried forward
1. Live-probe DDR 0179's kanidm REST wire shape
AddFilesKomitiClaimMap/RemoveFilesKomitiClaimMapdrivePOST/DELETE /v1/oauth2/{rs_name}/_claimmap/{claim_name}/{group}— researched fromkanidm master's source (
server/core/src/https/v1_oauth2.rs), never exercised against areal kanidm. This is exactly the risk class #580 was (a body/wire-shape assumption that
only 500s live): pinned today by a contract-test double
(
internal/kanidm/kanidm_test.go'sTestFilesKomitiClaimMap_AddAndRemove), which isfaithful-by-construction, not faithful-by-proof. Needs a
smoke-idp-style leg (or anextension of the existing family-4 smoke, issue #178) run against a real kanidm on the
clan-lab, asserting:
user_oidcactually resolves the claim-mapped komiti into a Nextcloudgroup once a member with that komiti signs in (the end-to-end proof DDR 0179 names as
the reason this materialisation matters at all).
If the researched shape is wrong, this is the point to find out and fix it — before it
ships to a real community.
2. Story 11 — the e2e member-tier drive leg (live)
The
invite-memberleg inapp/tests/e2e/journey.droplet.spec.tsis a named-skipcarrying its DDR 0165 assertion plan (Files landing + display name + komiti group + no
Administration entry, then suspend→refusal). It goes live once:
komiti group must actually appear in Nextcloud for the assertion to mean anything.
Both items need the
clan-lab(a real multi-machine deployment: kanidm + Nextcloud +gateway). Doing them in the same lab session is the efficient order — the live-probe
above IS the first half of proving story 11's assertion plan.
Standing on
ADR 0150, ADR 0076 (Tier 1), ADR 0074, DDR 0158, DDR 0172, DDR 0173, DDR 0179. Design
contract:
docs/ux/flows/files-member.mermaid,docs/ux/wireframes/files-member/.Ruled by agent under ADR 0174 — veto anytime. Scoping ruling before starting the lab session: this ticket bundles two items whose actual size differs a lot once investigated.
Item 1 (live-probe DDR 0179's claim-map wire shape) is exactly the two-way-door shape this session is for: real infra with an established rollback (clan-lab create/destroy), provable by an independent read-back against the real kanidm, mirroring the existing
smoke-idp.sh <lab-name>pattern (docs/spike-findings/smoke-idp-178.md) whose kanidm-only machine config already exists atspikes/smoke-idp/clan/machines/node1/. Doing this now.Item 2 (story 11's e2e member-tier drive) turns out to need far more than "the same clan-lab session, since the live-probe is half the proof" (the ticket's own carried-forward text) — I researched this before committing to it: no NixOS config anywhere in this repo deploys Nextcloud/files+gateway (only kanidm-alone machine configs exist); the full files+kanidm+Caddy stack has only ever been founded by the app's OWN founding wizard live against a real droplet (
app/tests/e2e/journey.droplet.spec.ts,internal/founding/ownvpspath.go'snixos-anywhereFullInstall), with the spec's own comments budgeting 20-40+ min PER deploy leg (enroll-configure 20m, enroll-activate 20m, deploy-files 40m ceiling, finish 15m) — a 1-2+ hour live drive minimum. On top of that, theinvite-memberleg in that spec is an unbuilt stub (run: async () => {}) — the by-hand-member + komiti-group + no-admin + suspend→refusal assertions have never been written, not just never run. That's new Playwright fixture work plus a multi-hour real-droplet drive: not a same-session task alongside item 1, and not safely boundable under rule 7 (no background/unattended waiting).Splitting: item 1 lands in this session. Item 2 is carried forward as its own ticket (the same #514→#525→#584 shape), scoped now to exactly what it needs (fixture-writing + the multi-leg live drive), so the next session budgets for it honestly instead of inheriting an underscoped bundle.
Close-report — item 1 (claim-map live-probe) landed; item 2 (story 11 e2e) carried to #589
Ruled by agent under ADR 0174 — veto anytime.
Landed on
origin/mainDDR 0179's ocgroups claim-map REST wire shape is live-probed and confirmed correct.
Stood up a
clan-lab(clan-lab-584-claimmap-probe-ff460227, syd1), deployed theexisting kanidm-only gateway config (
spikes/smoke-idp/clan/machines/node1/kanidm-idp.nix,the same one #178's smoke uses) to node1, created the
nextcloudOAuth2 RS with thesame
kanidm system oauth2 createCLI founding's files render itself shells out to,then drove
AddFilesKomitiClaimMap/RemoveFilesKomitiClaimMapTHROUGH the productionadapter (
internal/kanidm.Adapter) against the real kanidm — a newclaimmapleg incontrol-plane/cmd/smoke-idp, following the existing AC1 pattern (every write read backindependently off kanidm's directory, not just "the adapter says so").
Verdict: no adapter fix needed. Every write landed exactly as researched —
POST .../_claimmap/ocgroups/komiti_<name>with body["<name>"], idempotent re-add(replaces, doesn't duplicate),
DELETEclears it, idempotent re-remove on a gone entry.Two real-kanidm behaviours confirmed along the way: a missing OAuth2 RS reads
200 null(the same shape #178 already found for person/group, not a new defect), and a
DELETEon an already-gone claim-map entry answers
200not404(harmless — the adapteralready accepts either). Full verdict + two lab-tooling gotchas fixed
(
scp /dev/stdinnow refused by the droplet's SFTP-mode scp; direct-IP ssh to node1needs its own known-hosts stanza):
docs/spike-findings/smoke-idp-178.md.scripts/smoke-idp.shnow runsclaimmapas afourth lab leg by default, with a get-or-create step for its RS precondition.
Proof:
go build ./... && go vet ./... && go test ./...green; theclaimmapleg PASSon real hardware (JSON verdict in the findings doc). Commit:
fcd7422.What's carried forward — filed as #589
Story 11's e2e member-tier drive turned out to need far more than "the same lab
session" (this ticket's own carried-forward text): no NixOS config anywhere founds a
full files+Nextcloud+gateway stack — only the app's OWN founding wizard does, live
against a real droplet (
internal/founding/ownvpspath.go'snixos-anywhereFullInstall), 1-2+ hours of wall-clock per the existing spec's own budgets
(
app/tests/e2e/journey.droplet.spec.ts:deploy-files40m ceiling alone), plus theinvite-memberleg's assertions are an unbuilt stub, not a wiring gap — new Playwrightfixture work on top of the drive. Not boundable in this session under ADR 0174 rule 7.
#589 scopes it properly: the real rehearsal-droplet founding drive + the new
member-invite fixtures, now unblocked by this ticket's live-probe (DDR 0179's
materialisation is proven live, so the komiti-group half of story 11's assertion plan
is no longer a wiring risk — only wall-clock and fixture-writing remain).
Closing #584 now — its two-way-door part is done and proven; the remainder is its own
session-worthy live-lab thread with a real drive-time budget, the same #514→#525→#584
shape repeated once more.