redeploy-services / operator-<slug>: a founded community commits no access matrix, so P6-S4 shows every member zero service rows and the operator grant reconciles no app #1561
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.
Reference
Matou/idss#1561
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 fault
Separate from the
grant-operatorheal (commitc1d9af5b), drive20260917T031826Zcarries hard evidence that the community's access matrix is never written, and both the member-detail read and the operator role fan-out iterate it as their service list. Six services stood up and reacheddone(artifacts/services-rows.json: files, archive, document-archive, whakapapa, surveys, data-collections), yet:artifacts/roles/detail-proof-member-created.jsonreads"access": []— the P6-S4 surface that answers "what can this person touch?" lists nothing for a member of a community running six services.state/clan-config/idss/holds onlyapex,brand/,brand-kit.json,community-size— there is noidss/access-matrix.json(internal/member/matrixstore.go:12MatrixDocPath).Evidence, by line
internal/member/matrixstore.go:40-46—ConfigRepoMatrix.Services()returns only committed policies; a community that never edited the matrix returns an empty slice.internal/member/komiti.go:380,420,513,535;internal/controlapi/idip_service_access.go:95,120). Nothing writes a row when a service is deployed — founding and the P4 add both leave the document absent.internal/member/detail.go:229-250—DetailbuildsposturesandAccessby ranging overo.matrix.Services();deriveAccess(internal/member/detail.go:322-354) emits one row per policy, so no policy = no row.internal/member/roles.go:193-211—ReconcileRoles(the fan-outGrantOperatorcalls atroles.go:117) also ranges overo.matrix.Services(). With an empty matrix the per-app half touches nothing:touchedstays empty, noReconcileRoleruns for any reconciler-mapped port. Only the kanidm half lands (SetOperator→ theoperators+files-admingroups,internal/kanidm/kanidm.go:618-629).internal/member/komiti.go:633-636treats a service with no policy as open to all members ("The default is open to all members (ADR 0076)"). So access is granted at the front door while the detail surface claims no access rows exist at all — the same default read two incompatible ways.What it will do to the next drive
The legs after
grant-operatorwalk straight into it:redeploy-services(app/tests/e2e/journey.rented-services.spec.ts:604-614) re-reads the operator's detail and callsassertRoleAppliedfor every declared-posture door; withaccess: []that throws"proof-operator's detail has no access row for files — rows: []"for all six non-ownservices (app/tests/e2e/fixtures/panelMembers.ts:166-172).operator-<slug>for every reconciler-mapped port is then likely to red as "the granted operator is NOT admin", since the grant's per-app reconcile never ran.Suspected layer and the ruling needed
The layer is
internal/member(the matrix as the de-facto deployed-service list), not the harness. Two shapes, and which one is right is a ruling:ServicePolicy{Service: slug, OpenToAll: true}toidss/access-matrix.json, so the versioned, auditable document is the whole truth (ADR 0078 §2). Writes durable config-repo state on every deploy.clan.ReadDeployedServices,internal/clan/deployedservices.go:70-85) and treat a missing policy as open-to-all, exactly as the gate already does, in bothDetailandReconcileRoles. Stateless, but it decides that P6-S4 lists the deployed catalogue rather than the matrix — a change to what every community sees on the member-detail screen.A human should rule on where the ADR 0076 default lives before a worker builds it; the copy and row ordering on P6-S4 follow from that choice.
This is a refusal under rule 3 for the healer lane: it changes a product read surface (what a community sees on P6-S4) as a design decision, and the honest fix is a one-way-ish choice about a versioned config-repo document — not a mechanical repair.
drive
20260917T031826Zred atgrant-operator:proof-operator's detail offers no "grant operator" — the seam withheld canGrant expect(locator).toBeVisible() failed Locator: locator('[data-action="grant-operator"]') Expected: visible Timeout: 100evidence:
/home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260917T031826Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedClose-report — ruled and healed by agent under ADR 0174 (veto anytime).
What was wrong (confirmed)
The diagnosis holds.
idss/access-matrix.jsonis written only by the komiti/matrix edit verbs (internal/member/komiti.go:380,420,513,535) and the IDIP service-access verbs (internal/controlapi/idip_service_access.go:95,120) — nothing writes a row at deploy or founding. YetMemberDetail(P6-S4,internal/member/detail.go) andReconcileRoles(internal/member/roles.go) both rangedmatrix.Services()(the committed policies alone), so a community running six services with an unedited matrix readaccess: []for every member and the operator grant's per-app fan-out touched nothing (only the kanidm half landed).The ruling (why this was NOT the refusal the ticket proposed)
The ticket framed this as a design decision needing a human ruling on where the ADR 0076 default lives. But that ruling was already made for the sibling surface: #1229 / ADR 0222 edit 3 left-joins the deployed set onto the matrix, defaulting a deployed service with no policy to open-to-all, in
credentialAccessView(internal/controlapi/idip_service_access.go:159-168). The auth gate reads the same default (komiti.go:633-636). The detail surface and the roles reconciler were simply never migrated to it. So this is a consistency migration, not a new product decision — a two-way door under ADR 0174: it writes no durable config-repo state (stateless derive-at-read), is fully guarded (empty deployed set = prior behaviour, so no existing surface shifts), and is provable at the member seam. Shape 1 (seed-at-deploy) was rejected: it would write config-repo state on every deploy and could clobber a later restriction. Shape 2 (derive-at-read) matches #1229 and keeps P6-S4 and the credential SERVICE ACCESS view reading the matrix the same way.What landed
Commit
61d8d507onmain(pushed; host gofmt gate green):member.Catalogue.DeployedServices()— the community-wide deployed slug set (sibling of the per-memberDeployed) — implemented onmemberorbit.Catalogueoff its existingWithDeployedSetresolver (clan.ReadDeployedServices, already wired in prod), the fake, and the resting stub;effectivePolicies(deployed, committed)helper (one entry per deployed service, missing policy => open-to-all; then any committed policy for a service no longer deployed, in matrix order; empty deployed set => exactly the committed matrix);MemberDetailandReconcileRolesboth enumerate it.STATUS.mdupdated in the same commit.Proof (red -> green, mirrors the drive's exact assertions)
TestMemberDetail_EmptyMatrixListsDeployedServicesOpenToAll— reproduces theredeploy-servicesredassertRoleApplied"...detail has no access row for files — rows: []"; now the row exists withhas_access,via: all members,role_in_app, and NOTnot_applied.TestReconcileRoles_EmptyMatrixStillReconcilesDeployedPorts— reproduces theoperator-<slug>"granted operator is NOT admin"; the per-app reconcile now fans out to the deployed set.go build/vet/test ./...green (86 packages).gofmt/vetclean.Honest residue
The full rented-services e2e drive was NOT re-run in this bounded session (it needs the live DO/founding rail). The fault is a pure
internal/memberlogic defect and is fixed + seam-proven at the layer of the fault against the drive's exact assertions; the two legs (redeploy-services,operator-<slug>) should re-confirm in the normal drive cadence. Closing on the landed fix + red->green proof.