clan: ReadPlacement collapses a corrupt or unreadable inventory into "no machines placed" #292
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#292
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/clan/inventory.go:177-181(read viacontrol-plane/cmd/control-plane/whole_composition.go:361) — corrupt JSON, EACCES and a half-written file all read as an empty placement, indistinguishable from a freshly-founded community. The repo's own posture for the same hazard on the enrollment document is a deliberate boot panic (whole_composition.go:334): better down than a vanished fleet.Acceptance
Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code).
Fixed in
e822bbf(on origin/main).clan.ReadPlacementnow returns([]PlacedMachine, error)— only a genuinely-absent inventory reads empty (loadInventoryalready draws that line atos.ErrNotExist); corrupt JSON, EACCES and a half-writteninventory.jsonsurface as errors instead of collapsing to "no machines placed". The sole caller,configRepoInventory.Placementinwhole_composition.go, refuses loudly on the error, matching the enroll-document posture (openEnrollLedgerpanics at boot rather than project a fleet it cannot read).Red-first tests in
internal/clan/readplacement_test.go: absent ⇒ empty, corrupt ⇒ error, EACCES ⇒ error, well-formed ⇒ its machines.go test/golangci-lintgreen (clan, control-plane).signature; and the door it names is not the descriptor's sign-in site #1666