services-row: the S11 services apply is refused at the sops upload — every non-enrollment inventory write erases #558's IdentityFile query off clan's deploy.targetHost #1497
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#1497
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 failure
Drive
20260915T164205Z(rented-services), legservices-rowred at 19 green / 1 red (artifacts/verdict.json,artifacts/legs.json). The founding's own S11 row reports Files did not stand up: "the files row is failed: the deploy did not hold — add Files & documents from the control panel". The community itself came up live — control plane, brand, admin seed, and both public front doors over TLS all green.The services apply died in ~20 s.
logs/founding-state.log→standup.deploy.log:That is clan's sops-nix upload being refused at the ssh door — not a dead box.
The evidence
The rejection is real and narrow.
logs/droplet-journal.txtshows the box accepting publickey from the drive host either side of the apply and refusing it only for the two clan-spawned attempts:17:09:40Accepted publickey for root … ED25519 SHA256:WagG4Ob…17:10:01error: PAM: Authentication failure for root from 134.199.154.24417:10:03error: PAM: Authentication failure for root from 134.199.154.24417:10:04Accepted publickey for root … ED25519 SHA256:WagG4Ob…Every IDSS-spawned ssh (which passes
-iexplicitly) got in; only clan's did not.logs/droplet-do-forensics.txtconfirms the box answered throughout (tcp/22: a FRESH connect succeeded, 0% packet loss, no DO power/resize action).The harvested config repo names the erasure in one commit.
state/clan-configgit history,inventory.json:That is the S11 services provision's own first write, twenty seconds before the apply it disarms. The base gateway deploy (
deployleg, green) survived only because it ran at the enrollment's revision, before that write.Why it is fatal.
internal/clan/render.go:216re-renders clan's nativetargetHostthroughdeployTargetHostURI(target, inv.deployIdentity), andinv.deployIdentityis a TRANSIENT per-write field supplied only by the enrollment (internal/clan/enrollment.go:595writeNodeConfig,internal/clan/enrollment.go:2135persistTarget). Every other inventory write —AssignRole,SetDeployTarget(internal/clan/config.go:116), the S11 provision's — is a load→mutate→write with no identity in hand, sointernal/clan/render.go:340deployTargetHostURIreturned the bare target and the query was dropped.bareTarget(internal/clan/render.go:352) had already discarded it on read.The steady-state deploy passes no
--target-hostat all (internal/clan/adapter.go:625-645,updateNode: only--flake,--host-key-check none,--build-host localhost), so the inventory is clan's only channel for that key — exactly what #558 exists to feed. Stripped, clan's second, inventory-resolved sops upload offered only the operator's agent key and was refused.Suspected layer
internal/clan/render.go— the clan-native inventory render/carry layer (DDR 0010's quarantine). Not the enrollment, not the deploy: both behave as designed; the render simply fails to preserve a field it does not model.The fix (landed here)
Carry the query as what it is — clan's field, not the IDSS model's — alongside every other unmodelled clan field:
clanCarry.identity, captured on parse by a newtargetQuery(bareTarget's other half), re-rendered whenever the write brings no identity of its own. A freshdeployIdentitystill wins (it is the operation's captured truth); absent one, the file's own query survives. The model still holds only the bareuser@host:port(ADR 0126) — render/carry only, no model change. GOTCHAS #235 records the hazard.Note this is the SECOND red on the same S11 apply: GOTCHAS #234 / #1496's unsandboxed pre-generate fix is what let this run get past the sandbox death (the
nextcloud-admin/nextcloud-dbvars sealed cleanly at 17:09:46) and reach this one.Proposed ruling (Ruled by the healer under ADR 0174 — veto anytime)
Two-way door, mechanical repair, not a design decision.
Why it is mechanical, not design. #558 already ruled that clan's native
deploy.targetHostmust carry the founding identity as anIdentityFile+IdentitiesOnlyquery, because clan's second, inventory-resolved sops upload honours no other channel. That decision is unchanged. The defect is that the render reconstructs the query from a transient field only the enrollment ever populates, so the first non-enrollment write silently erases it — lost state, not a changed intent. The fix makes the code do what #558 already meant. Nothing a community sees, no route, no default, no message at a trust moment, and no secrets-shape or security-posture change: the key path was already persisted in the config repo by the enrollment write (visible instate/clan-configat743e162); the fix stops it being erased, it does not add, widen, or relocate any trust. The set of keys offered is exactly what #558 specified.Why it is revertible. One commit touching one non-test source file (
internal/clan/render.go, 70 changed lines) inside the DDR 0010 quarantine — nothing outside the package constructs or parses clan's inventory format, so the blast radius is that file. Reverting the commit restores the previous rendering exactly; no migration, no schema change, no on-box state, no persisted artifact that a revert would strand (a repo rendered by the fixed code parses identically under the old code —bareTargetstrips the query as it always did).Proven by which test.
clan.TestRender_WriteWithoutIdentityKeepsTheClanFileIdentityQuery(internal/clan/render_test.go): parse a clan inventory whosetargetHostcarries the identity URI, perform a non-enrollment write (set the role, supply nodeployIdentity), assert the URI survives — and assert in the same test that the model still reads bare. Run red before the fix, failing with the drive's exact observed value (clan targetHost = "root@203.0.113.10"), green after. The two existing #558 seam tests (TestRender_DeployIdentitySeedsClanTargetHostButModelStaysBare,TestRender_NoDeployIdentityRendersBareTargetHost) still pass untouched, so neither the enrollment-supplied path nor the genuinely-bare fleet path drifted. Built on the workstation (never the drive host) and closed through the close-report gate — the same gate a swarm worker passes.drive
20260915T164205Zred atservices-row(sig b0b6a45a7146) — self-fixed on the fast lane, commita887852b3c2a713e8a9f83f311c4f9b9b3c8b7e6; checks: targeted:GOWORK=… go test ./internal/clan/ -run TestRender_WriteWithoutIdentityKeepsTheClanFileIdentityQuery -v— FAIL before the fix (clan targetHost = "root@203.0.113.10", want the identity-carrying URI preserved), PASS after. package:go test ./internal/clan/— ok (22.6s);go vet ./internal/clan/— clean;gofmt -l internal/clan/— clean. wider:go build ./...andgo test ./...across the module — all ok, no failures. commit shape: 3 files, 113 changed non-test lines.. evidence:/home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260915T164205Zon matou-workstation.close-report for #1497 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope