engine-adapters: clan-inventory-render — the clan-native rendering layer (production) + family-1's write-side proof #185
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#185
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?
Parent
Issue #175 (
engine-adapters:smoke-clan) — split out per Ben's ruling B+C2 (2026-07-30) on the inventory-schema gap the smoke caught (the #184/#151 split precedent). Spec #161 / ADR 0102; the third real defect a family smoke has surfaced (after smoke-idp's two).What to build
The clan-native inventory rendering layer, as production code in the clan adapter (ruling C2 — the DDR 0010 quarantine preserved: clan's fast-drifting schema is known in exactly one place; the adapter's OurCloud structured model stays the stable internal shape):
inventory.json(camelCasedeploy.targetHost; OurCloud-only fields —name/role/varsspecs — folded into clan's constructs or kept out of clan's file entirely, never written into it) through the existing single-writer commit path. What lands in the config repo is a file clan's CLI actually consumes.deploy.targetHostand injects emptynamefields — the caught defect).Acceptance criteria
clan machines updateconsumes it without eval error on the lab.Blocked by
None — its code dependencies (#162, #164) are closed. This ticket blocks #183 (the real-hardware close-out must not run on an adapter that writes an inventory clan cannot read).
Task manifest
Done — family 1 is proven (commit
8f36509onmain)The clan-native inventory rendering layer is real production code and the write-side family-1 smoke leg passed through the REAL adapter on a golden clan-lab (clan-core
db4db726), 2026-07-30.The fix (DDR 0010 quarantine preserved, ruling C2)
internal/clan/render.go— the ONE place clan's native inventory schema lives. Render-on-write maps the stable OurCloud model → clan's nativeinventory.json(camelCasedeploy.targetHost; unmodelled clan fields —meta/tags/machineClass/buildHost— carried verbatim so the round-trip is byte-stable on clan's schema). OurCloud-onlyname/role/varsare kept OUT of clan's file — homed in the.ourcloud/inventory.jsonsidecar, committed in the same single-writer commit. Parse-on-read reads clan's native file back faithfully and heals a legacy inline inventory on first write.whole_composition.go— the one consumer that read OurCloud fields out of clan's file (the fleet projection) now reads viaclan.ReadPlacement; clan's schema stays in one place. No confirmed seam changed shape.errors.go— themissing_varclassifier now matches clan's real "Couldn't find var" message (the decision-independent #175 fix).Acceptance
internal/clan/render_test.go: golden round-trip corpus against clan's real native shape — byte-stable on clan's fields, no OurCloud key injected, legacy-heal, instances-are-clan-native, idempotence. ✅nix eval .#clan.inventory) consumes the adapter-rendered inventory without eval error,deploy.targetHostintact;clan machines listreads it. Negative control: an inlinerolekey is a HARD clan eval error (The option 'inventory.machines.node1.role' does not exist) — the exact defect this closes. ✅Supply.Seedreadsdeploy.targetHostback andnix flake archive-s closures to node2 (parse-on-read end-to-end of the field the #175 defect destroyed);Vars.Generateseals with scoped rotation (S13 Q3). ✅go build ./.../vet/gofmt clean. ✅Evidence & harness
docs/spike-findings/smoke-clan-render-185.md;control-plane/cmd/smoke-clan-render+scripts/smoke-clan-render.sh(run insidenix developon a clan-lab). Lab destroyed after.Consequences
--prompt-inputflag is unrecognised by the pinned clan CLI (answered/rotation generate fails) — the clan vars-CLI transport, out of this ticket's rendering scope (the #184/#185 split precedent). The seal runs through the adapter today; rotation-scoping is proven at the clan seam.