carlos / platform Public

9B8 record-write census: a named-unit-delivery-114 layer re-pins runRouteHibernate; the historical digest in the base inventory restored

96956417 re-pinned runRouteHibernate's digest in the base 9B8 inventory,
which is a historical layer the live inventory (rootfs_apps_4, then
team-scoped credentials) overrides, so the census stayed red. The
convention is one layer per plan: named_unit_delivery_114_census_test.go
layers the re-pin on teamScopedCredentialsWriteCensusInventory and the
9B8 test reads it; the base inventory's digest is back to what it was.
TestPlan9B8RecordWriteCensus and TestPlan14RootReadCensus pass locally.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

Summary

Moves the 9B8 re-pin of runRouteHibernate into its own inventory layer, as every plan does, and restores the base inventory's historical digest.
claude agent, operated by paul@keymail.dev 6748f4b816d890504de98697665c62602fedeac8 parent 9695641
2 files changed, +36 −2
  • internal/provision/named_unit_delivery_114_census_test.go +34 −0
  • internal/provision/plan9_b8_census_test.go +2 −2

CI failed — run details

diff --git a/internal/provision/named_unit_delivery_114_census_test.go b/internal/provision/named_unit_delivery_114_census_test.go
new file mode 100644
index 000000000..eeab78e65
--- /dev/null
+++ b/internal/provision/named_unit_delivery_114_census_test.go
@@ -0,0 +1,34 @@
+package provision
+
+// Record-write census entries for named-unit config delivery (#114 on
+// main, branch named-unit-delivery-114), layered on
+// teamScopedCredentialsWriteCensusInventory (main's newest at 9bcbab0f).
+// Reviewed by the branch author; PROPOSED-named-unit-delivery-114, for the
+// same independent reviewer as the root-read card
+// (docs/superpowers/notes/census-proposal-named-unit-delivery-114.md).
+//
+// Re-pinned:
+// - runRouteHibernate (cli): hibernateRail refuses hibernation on a row
+// that names a unit, before the daemon check (#114 spec §3.1, codex
+// R3-5); a refusal before the write, the record-key site unchanged.
+//
+// No new record write: the branch's root pass writes /etc/carlos/apps and
+// /etc/systemd/system/<unit>.d, never a record.
+func namedUnitDelivery114WriteCensusInventory() []censusEntry {
+ entries := append([]censusEntry(nil), teamScopedCredentialsWriteCensusInventory()...)
+ replacements := []censusEntry{
+ {"cli.go", "runRouteHibernate", "key-site", "key:SidecarManifestKey", "48565b382ceb8a48814fdaac42260a8a05c599ced7ecb356e9d2cf7d067168f2"},
+ }
+ for _, r := range replacements {
+ found := false
+ for i, e := range entries {
+ if e.File == r.File && e.Unit == r.Unit {
+ entries[i], found = r, true
+ }
+ }
+ if !found {
+ panic("named-unit-delivery-114 re-pins an unlisted unit " + r.File + ":" + r.Unit)
+ }
+ }
+ return entries
+}
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go
index d11293011..fe0248c6a 100644
--- a/internal/provision/plan9_b8_census_test.go
+++ b/internal/provision/plan9_b8_census_test.go
@@ -366,7 +366,7 @@ func TestPlan9B8RecordWriteCensus(t *testing.T) {
if len(got) < 100 {
t.Fatalf("census found only %d units under %s; the walk is broken", len(got), root)
}
- inventory := teamScopedCredentialsWriteCensusInventory()
+ inventory := namedUnitDelivery114WriteCensusInventory()
problems := append(censusDiff(inventory, got), censusPolicy(inventory)...)
if len(problems) > 0 {
t.Fatalf("record-write census rejected %d site(s); update the explicit inventory only after reviewing the source:\n %s", len(problems), strings.Join(problems, "\n "))
@@ -561,7 +561,7 @@ var plan9B8CensusInventory = []censusEntry{
{"instances_updates.go", "updatesPath", "key-site", "lit:instances", "9c6f5c6025c023127d490e91bf52d6c536fd8c05efb89b213d9a183690d87880"},
// Names instance record paths in refusals; writes local registry rows, not provision objects.
{"cli.go", "runRoute", "key-site", "lit:instances", "36862b228fb5144bb9a282274f957c5479ed23dd6965673e88c09cc9e97fc66a"},
- {"cli.go", "runRouteHibernate", "key-site", "key:SidecarManifestKey", "48565b382ceb8a48814fdaac42260a8a05c599ced7ecb356e9d2cf7d067168f2"},
+ {"cli.go", "runRouteHibernate", "key-site", "key:SidecarManifestKey", "c151cae2cbc57943e9a5d0a5dac611823d769a6b651d5dbc2fe86182f6e098b1"},
{"cli.go", "RunStatus", "key-site", "lit:instances", "3b9936cf0f29f57f06c378a334e3118096679dfdadab7aad45b1f6c7b5841562"},
{"domains_cli.go", "runDomainsList", "key-site", "lit:instances", "f7aefeff56b0be7b50ee82bd250ada08ae9a095b7a62f577ead70846e00b61ad"},
// Maps a data-bucket replica key to its park location instances/<host>[/<incarnation>]; a pure string function.