carlos / platform Public

rollout: a rootfs adoption reads its demand from the rootfs image artifact, so it can overlap (#366). release.CanonicalDemand looked the staged build up under Artifacts[platform]; a rootfs release's image sits under rootfs-<platform> (BoxArtifact), so every rootfs adoption ran in hold: the old web stopped, the release ran in a cold wake, and visitors waited about 17 s on the dev Rails test (railsdemo r3, 2026-10-28). It now reads m.BoxArtifact(platform): binary releases unchanged, a rootfs release with no demand overlaps, one asking for hold still holds, a box with no image for its platform still holds. Astra: code READY, census census-ruling-rootfs-overlap-demand approved (#280; internal/release envelope only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Prompts:

  <task-notification>
  <task-id>bvw5iizl1</task-id>
  <tool-use-id>toolu_011y8motJuZDqcCJJKXjkEMS</tool-use-id>
  <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/fc618670-579d-4b96-a3b9-686b6c074952/tasks/bvw5iizl1.output</output-file>
  <status>completed</status>
  <summary>Background command "Run release and rollout tests and the census card" completed (exit code 0)</summary>
  </task-notification>

Squashed from rootfs-overlap-demand into main.
claude agent, operated by paul@keymail.dev 5f90f2accc5feb7d27f3500dabfab05ef7378f89 parent 5e6ed96
6 files changed, +62 −1
  • docs/superpowers/notes/census-proposal-rootfs-overlap-demand.md +11 −0
  • docs/superpowers/notes/census-rootfs-overlap-demand-claims.md +3 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-rootfs-overlap-demand.tsv +3 −0
  • internal/release/demand.go +5 −1
  • internal/release/demand_test.go +39 −0

CI passed — run details

landed from rootfs-overlap-demand

diff --git a/docs/superpowers/notes/census-proposal-rootfs-overlap-demand.md b/docs/superpowers/notes/census-proposal-rootfs-overlap-demand.md
new file mode 100644
index 000000000..47fc68563
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-rootfs-overlap-demand.md
@@ -0,0 +1,11 @@
+# Census approval: rootfs-overlap-demand
+
+Ruling `census-ruling-rootfs-overlap-demand`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+Envelopes re-pinned: `internal/release`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+Seal: `2cced1b359b64855bacc94c64e0370e6b78cfe2c4947d6d4944915b3a05c6a7c` → `2cced1b359b64855bacc94c64e0370e6b78cfe2c4947d6d4944915b3a05c6a7c`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-rootfs-overlap-demand.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/docs/superpowers/notes/census-rootfs-overlap-demand-claims.md b/docs/superpowers/notes/census-rootfs-overlap-demand-claims.md
new file mode 100644
index 000000000..24930e652
--- /dev/null
+++ b/docs/superpowers/notes/census-rootfs-overlap-demand-claims.md
@@ -0,0 +1,3 @@
+# CLAIMS for the root-read census, branch rootfs-overlap-demand.
+# Format (AGENTS.md "The census"): <file>:<unit><TAB><what changed>. Lines starting with # are ignored.
+# No unit changes: only the internal/release envelope (release.CanonicalDemand reads BoxArtifact(platform) instead of Artifacts[platform]; an agent-side adoption read, not root).
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 533290bea..69eb69fd4 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -21,3 +21,4 @@ plan14-root-reads-rootfs-apps-3.tsv 4337475617b84cadf26e62a31387b7de1b6e9174bf5e
plan14-root-reads-retire-join-units-on-adopt.tsv 9e0c4a0c3c5299f68a046e989f49f35cfd2af82dbc76f2e5f00d15512f101a9d
plan14-root-reads-team-scoped-credentials.tsv b6f3a369ca91563f1d28a9855b242125fab0e3215066c0fd88a93d731459e43b
plan14-root-reads-rootfs-apps-3-release.tsv 2cced1b359b64855bacc94c64e0370e6b78cfe2c4947d6d4944915b3a05c6a7c
+plan14-root-reads-rootfs-overlap-demand.tsv 2cced1b359b64855bacc94c64e0370e6b78cfe2c4947d6d4944915b3a05c6a7c
diff --git a/internal/provision/testdata/plan14-root-reads-rootfs-overlap-demand.tsv b/internal/provision/testdata/plan14-root-reads-rootfs-overlap-demand.tsv
new file mode 100644
index 000000000..2734aa6fe
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-rootfs-overlap-demand.tsv
@@ -0,0 +1,3 @@
+# Census overlay rootfs-overlap-demand, written by census-propose (#369). census-ruling-rootfs-overlap-demand, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-rootfs-overlap-demand.md.
+# 0 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+@coverage internal/release 9702f3f21b9973cb8c368536bd072d706fb7921f3ea4e61d78706907d4ca2c82
diff --git a/internal/release/demand.go b/internal/release/demand.go
index cb5139422..f5099f4c3 100644
--- a/internal/release/demand.go
+++ b/internal/release/demand.go
@@ -54,7 +54,11 @@ func CanonicalDemand(ctx context.Context, s Store, acct, app, version, platform,
if merr != nil {
return DemandHold, digest, nil
}
- art, ok := m.Artifacts[platform]
+ // The artifact a box of platform stages: Artifacts[platform] for a
+ // binary, the rootfs image's key for a rootfs release (BoxArtifact).
+ // Reading Artifacts[platform] for a rootfs release found nothing, so
+ // every rootfs adoption ran in hold.
+ art, ok := m.BoxArtifact(platform)
if !ok {
return DemandHold, digest, nil
}
diff --git a/internal/release/demand_test.go b/internal/release/demand_test.go
index bf8bc6ca0..6625c24a2 100644
--- a/internal/release/demand_test.go
+++ b/internal/release/demand_test.go
@@ -228,3 +228,42 @@ func TestCanonicalDemandIsHoldWhenItCannotCompare(t *testing.T) {
}
})
}
+
+// A rootfs release's image sits under its own artifact key (BoxArtifact),
+// not the platform itself: CanonicalDemand compares the staged image with
+// that artifact, so a rootfs adoption with no demand runs in overlap and one
+// whose release asks for hold runs in hold. A box of a platform the release
+// has no image for cannot compare and runs in hold.
+func TestCanonicalDemandReadsTheRootfsImageArtifact(t *testing.T) {
+ onArm64(t)
+ ctx := context.Background()
+ img := []byte("squashfs image bytes")
+ for _, tc := range []struct {
+ name, swap, platform, want string
+ }{
+ {"no demand: overlap", "", "linux-arm64", ""},
+ {"a hold demand: hold", "hold", "linux-arm64", DemandHold},
+ {"no image for this platform: hold", "", "linux-amd64", DemandHold},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ s := NewDirStore(t.TempDir())
+ m := stagedRootfsManifest(t, img)
+ m.Swap = tc.swap
+ raw, err := json.Marshal(m)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if _, err := s.Put(ctx, ManifestKey("bab", "shop", "v1"), raw, ""); err != nil {
+ t.Fatal(err)
+ }
+ opt := t.TempDir()
+ if err := StageArtifact(opt, "bab", "v1", "shop", img); err != nil {
+ t.Fatal(err)
+ }
+ d, sum, err := CanonicalDemand(ctx, s, "bab", "shop", "v1", tc.platform, VersionPath(opt, "bab", "v1", "shop"))
+ if err != nil || d != tc.want || sum != etagOf(img) {
+ t.Fatalf("CanonicalDemand = %q, %q, %v; want %q and the image's digest", d, sum, err, tc.want)
+ }
+ })
+ }
+}