backup: the crown-jewel key read conflates a transient store error with "never seeded" #294
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#294
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?
internal/backup/keys_crownjewel.go:106— a transient clan/secret-store error and "the root was never seeded" both map to key-unavailable. Downstream refuses loudly (internal/backupengine/movement.go:73), so nothing silently passes — but replication stops with a message blaming a missing seed, sending the operator to re-seed when the store hiccuped.Acceptance
Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code).
Fixed in
fc16fb2(on origin/main).The
CrownJewelKeysseam changed fromKey(ref) (Key, bool)toKey(ref) (Key, error)so the two unavailable shapes are no longer collapsed. New sentinelbackup.ErrRootNotSeeded: the reader maps aclan.FailMissingVarread (var genuinely not generated), a nil store, and an empty revealed root to it; any other store error is surfaced wrapped and uncached (retry posture unchanged).All three callers now name which — replicate /
SealedInventoryFor/rebuildDatasetsay "not in the store (backup root not seeded)" vs "could not be read from the store … this is transient — retry".Both paths tested red-first:
internal/backup/keys_crownjewel_test.go(TestCrownJewelKeyReader_DistinguishesNotSeededFromReadFailure) at the reader seam, andinternal/backupengine/movement_test.go(TestReplicate_RefusalNamesNotSeededVsReadFailure) asserting the two refusal messages are distinct and neither leaks the others wording. go test / go vet / golangci-lint green across backup, backupengine, control-plane.