idip: the gateway composes RESTING forever — composeWhole's identity precondition is kanidm-only, so the authority flip never sees whole (drive 20260828T201246Z, sig 4c82deb1e678) #954
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.
Blocks
Reference
Matou/idss#954
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?
Failure
The
drive-idiprehearsal drive redded at the activation leg (first drive to reach it — the two prior reds werecreateanddeploy-takeover):artifacts/legs.json(leg 11),artifacts/verdict.json(firstRedLeg: activation, commit7f0f7875). Ten legs green; the flip itself succeeded — only the whole-proof timed out.Diagnosis
The drive walks the IDIP identity path (
state/founding-state.json→/draft/identity = idip). On that path the composition root can never go whole, by construction:internal/clan/vmguest.go:803-812—gatewayIdentityEnvrendersexport IDSS_IDP_URL=http://127.0.0.1:8465on the IDIP branch and deliberately no kanidm exports ("On the IDIP path there is NO kanidm … the kanidm exports would reference an undeclared generator and would be a lie the fleet deployed", DDR 0200 / #778).control-plane/cmd/control-plane/main.go:237-242—productionIDPreadsIDSS_KANIDM_URL; empty ⇒ returnsnil. Confirmed live:logs/droplet-journal.txt:1437"member identity provider resting: no IDSS_KANIDM_URL", and:1452"idip adapter wired" on the same start (pid 2964) — provingIDSS_IDP_URLis set (main.go:939gates on it) whileIDSS_KANIDM_URLis not.control-plane/cmd/control-plane/compose.go:687—compose()dispatches tocomposeWholeonly whendeps.repo != nil && deps.stateDir != "" && deps.idp != nil. With a nilidpit falls tocomposeResting:logs/droplet-journal.txt:1448"monitor aggregation loop resting: composition root not whole (config repo / state dir / kanidm not all present)",:1455composition_whole=false.control-plane/cmd/control-plane/main.go:868—WithCompositionSignal(c.whole)therefore stampsX-Idss-Composition: restingon every response, permanently.internal/fleetwire/fleet.go:266-269—PushConfigRepo's whole-proof requiresHTTP 200 && header == "whole" && body contains "gateway". Status and body both passed; the header never will. It times out atTimeout(90s,fleet.go:97) and faults the leg.The other two preconditions were satisfied on the final restart —
logs/droplet-journal.txt:1426"config repo wired … dir=/srv/idss/config" andIDSS_STATE_DIR=/var/lib/idssis exported unconditionally (internal/clan/vmguest.go:762).deps.idpis the sole missing precondition.Suspected layer
The composition root (
control-plane/cmd/control-plane/), not fleetwire and not the gateway render. The render is correct and intentional for IDIP;compose()andproductionIDPwere written when kanidm was the only identity tier (ADR 0105/0107) and were never taught the IDIP path (ADR 0194 / DDR 0200 / ADR 0212, #778).This is not a
fleetwiretimeout to widen — the header would still readrestingafter any bound. RaisingTimeoutor relaxing the whole-proof would only convert a loud, correct fault into a silent lie about a resting fleet.What plugging it needs
A design ruling first — this is
needs-design, not directly actionable:composeWholefeedsdeps.idpstraight intomember.New(control-plane/cmd/control-plane/whole_composition.go:402), and the onlymember.IDPimplementation in the tree isinternal/kanidm(internal/kanidm/kanidm.go:96; the IDIP member lifecycle is a different shape —internal/keria/standing.go'sStanding, described in STATUS as "the counterpart of the kanidm-tiermember.Orchestrator"). There is no IDIPmember.IDPto hand it.compose()gains an IDIP branch that composes whole over the keriaStandinglifecycle in place of the kanidm member family — the honest close, larger slice.IDSS_IDP_URL), with the kanidm-only member family resting fail-loud inside an otherwise-whole composition. Cheaper, butmember.Newcurrently receives a nilidp— every member verb would need the resting posture (restingMemberIDP,resting_composition.go:237) rather than a nil deref.compose.go/main.go:240and the resting message "config repo / state dir / kanidm not all present" must stop naming kanidm on the IDIP path.Test gap to close in the same change
There is no composition-root test covering the IDIP path's wholeness:
IDSS_IDP_URLappears in tests only ininternal/clan/seedleg_idip_test.go:86,124(render assertions). Nothing composes with the IDIP environment and asserts the signal, so a unit-green tree shipped a gateway that can never satisfy the flip. The fix should carry a composition-root regression in the class oflogs_wiring_test.go— compose with the IDIP env set and kanidm absent, assertX-Idss-Composition: whole— which is exactly the check that would have caught this before a paid droplet did.Not a fault
The operator surface reported this honestly —
error-context.mdshows the fault text and a "Retry finishing setup" button on the stand-up page. No presentation defect here.logs/broker-journal.txtharvested nothing (executor off the admin mesh, ADR 0208 / #681) — expected, and the verdict does not depend on it.drive
20260828T201246Zred atactivation:activation faulted: founding: push the config repo and flip authority: fleetwire: the seeded control plane did not compose whole after the authority flip within 1m30s (last answer: HTTP 200, X-Idss-Coevidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260828T201246Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedRuled by agent under ADR 0174 — veto anytime. This is a design-tier ruling that is revertible (one commit) and provable (a composition-root regression), so a standing session rules it and Ben vetoes asynchronously. The diagnosis called it
needs-design; under ADR 0174 a design ruling of this shape is a two-way door.The ruling (option b of the diagnosis) — DDR 0213, amends ADR 0107
Composition wholeness requires an identity provider of either shape — the kanidm adapter (
deps.idp) OR the IDIP bridge (deps.idipIdentity, fromIDSS_IDP_URL). On the IDIP path the composition now goes whole; the kanidm-tier member family rests fail-loud inside the otherwise-whole composition (composeWholesubstitutesrestingMemberIDPfor the nilidp— every member verb the honesterrMemberUnwired, reads project empty, ADR 0100), because IDIP membership is keria's roster/standing lifecycle wired separately (productionIdip, ADR 0198/0212).Why (b) over (a):
deps.idpfeeds onlymember.New.composeWholewas already half-taught the IDIP path (provision.WithBridgeIDP(), line 282) but that branch was dead code, unreachable becausecompose()never dispatched there on IDIP. This ruling reaches it.Standingintocompose()as amember.IDP— would re-architect a lifecycle that already works over the IDIP roster surfaces: a large slice, not a two-way door.deps.idipIdentityis the single source of truth for "this is the IDIP path":main()readsIDSS_IDP_URLinto it;compose()'s dispatch andcomposeWhole's bridge-IDP branch both read the field (line 282 no longer re-reads the env), so the wholeness decision and the provision wiring can never disagree.What landed — commit
d2e5843acompose()identity precondition:deps.idp != nil || deps.idipIdentity.composeWhole():restingMemberIDP{}substituted for a nilidpbeforemember.New; bridge-IDP branch readsdeps.idipIdentity.main(): setsidipIdentityfromIDSS_IDP_URL; the resting-loop message andproductionIDP's resting message no longer name kanidm as the sole identity precondition on the IDIP path (per the ticket's requirement) —productionIDPnow logs the IDIP-path rest honestly instead of promising a kanidm connection that never comes.WithCompositionSignaldoc,compose/composeDeps/package docs: "an identity provider of either shape".Proof
Red-first composition-root regression
control-plane/cmd/control-plane/idip_wholeness_test.go— the exact test class the tree lacked (IDSS_IDP_URLappeared only in render assertions inseedleg_idip_test.go, so a unit-green tree shipped a gateway that could never satisfy the flip):TestIDIPPathComposesWhole— compose over the IDIP env (bridge present, kanidm absent) →c.wholeandX-Idss-Composition: whole, the exact bytefleetwire.PushConfigRepo's whole-proof reads after the flip. Confirmed failing before the fix (c.whole == false), passing after.TestNoIdentityProviderRestsComposition— the fail-closed guard: with no provider of either shape, the root still rests.go build ./...,go vet, and the control-plane + controlapi + clan + keria + member suites are green. The status was alreadyHTTP 200and the body already containedgateway(per the diagnosis) — the header was the sole failing condition, and it now readswhole, so the flip's whole-proof is satisfied offline at the composition root.Live proof residue: the standing community re-founds on the next
idiprehearsal drive, which is the end-to-end confirmation thatactivationnow goes green — same offline-proven-then-drive-confirmed shape as #945/#952. No one-way door was touched.Closing on the landed, offline-proven fix.