rehearsal drive red at deploy-takeover #628
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.
Blocks
Reference
Matou/idss#628
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?
(headless diagnosis unparseable — raw stdout saved to logs/reporter-claude.out)
drive
20260821T015833Zred atdeploy-takeover:the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this machine was taken over for the community.]evidence:
test-results/…/20260821T015833Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)Ruling
Ruled by agent under ADR 0174 — veto anytime. This is a two-way door: a
revertible Go/nix-string commit (
e912f2fe), provable without anymember-facing or destructive action — a Go unit test plus a direct
nix evalagainst the drive's own captured config, both red-then-green.Diagnosis
The reporter's own headless session failed (
OAuth session expired and could not be refreshed—logs/reporter-claude.out/healer-claude.out), so theticket carried only unparsed raw stdout. Diagnosed by hand from the drive's
artifacts (
test-results/drive-selfhosted/20260821T015833Z/):verdict.json: red atdeploy-takeover, 9/10 legs green.founding-state.log's failure detail truncates to a bareFailed assertions:with no assertion body — traced to a real gap in the evalpath (
clan.Readinesscarries noTail, andexcerpt()'s token grep keepsthe assertion header but not its body line; filed separately as #629,
not fixed here).
Recovered the real cause by running
nix evaldirectly against the drive'sown captured
state/clan-config/(copied off the run dir, no droplettouched):
Root cause:
internal/clan/vmguest.go'sgatewayKanidmProvision(thefull-install/self-hosted public-gateway kanidm provision, #452) declares the
gate-oidcclient'sscopeMaps.idm_all_persons— intentionally targetingkanidm's real builtin all-persons group ("any person may sign in") — but
never adds
idm_all_personsto this same block's ownservices.kanidm.provision.groups. nixpkgs' kanidm module'sassertGroupsKnown(nixos/modules/services/security/kanidm.nix) checksevery
scopeMapskey against that STATIC declared-groups list, never thelive server's actual builtin groups — so a real, always-present kanidm group
still fails eval as "unknown" unless it is separately declared. This is
deterministic, not a race: every self-hosted/own-VPS full-install deploy
that reaches
deploy-takeoverwith a community apex hits it.Fix
internal/clan/vmguest.go'sgatewayKanidmProvision: declaresidm_all_persons = { overwriteMembers = false; };alongside its foursibling structural groups (
operators/members/kaitiaki/the files-admingroup) — the same no-op-membership shape they already use, so kanidm's own
builtin membership is never touched; this purely satisfies the static
eval-time check.
Proof
TestRenderControlPlaneSurface_GateOIDCScopeMapGroupIsDeclared(
internal/clan/vmguest_test.go) — failed against the prior render (noidm_all_personsgroup declared), passes after the fix.TestAttachGateway_ControlPlaneProvisionsKanidmOnOwnVPS's structural-groupcount updated 4→5 to match (
internal/clan/gateway_attach_test.go).nix evalagainst this exact drive's own captured config: copiedtest-results/drive-selfhosted/20260821T015833Z/state/clan-config/toscratch,
nix eval …#nixosConfigurations.gateway…drvPathreproduced thered with the unpatched config, then reproduced green after applying the
identical one-line fix by hand (a store derivation path printed both from
the hand-patched copy and from the actual Go render's output spliced in).
go build ./...,go vet ./...,go test ./...— all green.Commit:
e912f2fe4d1316c518dd290acbed50fb6099a44eonmain.NOT re-proved by a fresh live drive this session — same
/tmp/matou-session-runner.lockconstraint noted on #622–#626; the nextunattended
selfhostedrehearsal is the live proof.Follow-up filed
#629 — the diagnosability gap this drive also exposed (the eval-preflight
path drops the raw
nix evallog entirely, andexcerpt()'s token grepcannot keep a bare assertion-body line), which is why this drive's real
cause reached no artifact and had to be reproduced by hand. Different
subsystem, not fixed here.
STATUS.mdupdated in the same commit.