durability 3a: a sealed item shadows its raw entry before any fetch (#477)
Task 3 review, Important finding: restoreFilesClean called RestoreRootBaseline, which fetched and wrote every live raw entry before the sealed items were looked at. So a mixed manifest (a valid instance.key.sealed beside a live raw instance.key an older box re-published) still depended on the old raw object. A missing or corrupt one failed the wake before the sealed copy was opened. - hostfiles: restore takes a Shadowed func, asked of each live entry the overlap rule keeps, before anything of it is fetched. A shadowed entry is neither fetched nor written and is reported in RestoreStats.Shadowed. RestoreRootBaselineShadowed is the entry point; RestoreRootBaseline, RestoreRoot and Restore pass nil and do what they did. The manifest and the Baseline answered are the ones read, so the wake's publisher continues from the manifest unchanged. - activator: restoreFilesClean restores with sealedShadow(host): a raw trio entry at the files root is shadowed when the manifest holds its sealed item (pubclass.SealedPath), exactly the items it then opens and writes itself. A sealed item that does not open fails the wake, with no raw fallback. Tests: - TestRestorePrefersTheSealedCopyOverAnUnreadableRaw: both forms present, the raw objects missing or corrupt. The restore succeeds from the sealed copies, and the publisher is on the manifest read. - TestRestoreRefusesAnUnopenableSealedItem, through the Service wake: a sealed item under another key, or with another host's digest, beside readable raw alternatives. The wake fails on the sealed item, nothing launches, no secret is written or minted, and no raw key is restored. - TestDeletedSealedTrioDoesNotResurrectTheRawEntry now first checks that the first commit holds the sealed key with readable plaintext and the raw entry tombstoned. - hostfiles: TestRestoreRootBaselineShadowedFetchesNothingShadowed. Census: the restoreFilesClean claim updated, a Restore claim added; census-propose re-run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/notes/census-durability-3a-escrow-claims.md+2 −1docs/superpowers/notes/census-proposal-durability-3a-escrow.md+4 −2internal/activator/hawake.go+23 −5internal/activator/hawake_test.go+158 −0internal/hostfiles/hostfiles_test.go+55 −0internal/hostfiles/restore.go+27 −4internal/provision/testdata/plan14-root-reads-chain.tsv+1 −1internal/provision/testdata/plan14-root-reads-durability-3a-escrow.tsv+7 −5
Intent
<task-notification> <task-id>ae6c8669dc786cbbf</task-id> <tool-use-id>toolu_01MtuC6kBubr7xvU1nwQvfjA</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/953e7524-2e06-4308-b9ce-fd1b38579971/tasks/ae6c8669dc786cbbf.output</output-file> <status>completed</status> <summary>Agent "Implement Task 3: HA sealed items" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Status: DONE Commit: 45d47c7a "durability 3a: born-HA hosts publish their secrets sealed (#477)" on durability-3a-escrow. A harmless `packed-refs.lock` error appeared after the commit; the commit is on the branch and the tree is clean. Tests: all 7 new witnesses pass (RED captured twice: first a compile failure, then the raw trio and raw env still published). The step-4 filters pass. The full `./internal/activator` and `./internal/host` packages pass, as do the census tests and the sealing guard. gofmt is clean, and the linux, darwin and windows builds pass. Census claims for 8 units are appended and census-propose was re-run. Concerns: - **Stricter classifier:** a directory named `instance.key` or `report.token` at the files root is no longer published (recorded in the report as asked). - **Behaviour change:** if the tenant puts anything other than a regular file (directory, symlink, FIFO) at a trio name, or a trio file is over 1 MiB, the publish now fails. That fails the launch and leaves the release unclean, but only for that tenant's own host. This is the rule the env file already followed. - **Mixed fleet during rollout:** a box from before 3a that restores a sealed manifest finds no env file, so it defers the launch. An older box can also leave a stale sealed item after deleting a trio file. I assume the cutover marker and the roll order (Task 5) cover both. - **Not changed here:** the relocation and moves code still reads only the raw env item, so it would miss the env in a sealed manifest. Report: /home/paulca/amadan.net/carlos/platform/.claude/worktrees/durability-3a/.superpowers/sdd/2026-10-30-durability-step3-escrow-fence-restore/task-3-report.md</result> <usage><subagent_tokens>230299</subagent_tokens><tool_uses>83</tool_uses><duration_ms>1723915</duration_ms></usage> </task-notification>
<task-notification> <task-id>ba88vr5s5</task-id> <tool-use-id>toolu_01MVwchoHkUDcs8NQkY5pP2s</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/953e7524-2e06-4308-b9ce-fd1b38579971/tasks/ba88vr5s5.output</output-file> <status>completed</status> <summary>Background command "Wait for Astra's Task 3 review" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 29.0 g CO₂e (3,750,697 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on durability-3a-escrow, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/superpowers/notes/census-durability-3a-escrow-claims.md b/docs/superpowers/notes/census-durability-3a-escrow-claims.md| index 3426be188..425df0ec8 100644 |
| --- a/docs/superpowers/notes/census-durability-3a-escrow-claims.md |
| +++ b/docs/superpowers/notes/census-durability-3a-escrow-claims.md |
| @@ -12,4 +12,5 @@ internal/activator/hafiles.go:ExecBackend.openHostFiles durability 3a Task 3: as |
| internal/activator/hafiles.go:ExecBackend.stageKeptFiles durability 3a Task 3: newHostFiles now answers an error (no escrow key), which is logged and stages nothing, as an OpenBaseline failure already did. The same baseline read; nothing new opened or read. |
| internal/activator/hafiles.go:ExecBackend.stageWakeFiles durability 3a Task 3: newHostFiles now answers an error (no escrow key), which is logged and stages nothing, as an OpenBaseline failure already did. No read, as before. |
| internal/activator/hasecrets.go:ExecBackend.haSecretsReady durability 3a Task 3: asks sealerFor before its own hostfiles.Open (a box without an escrow key fails the launch before any read), and newHostFiles's error fails the launch. envAcknowledged now compares the sealed env item's keyed digest (hostfiles.SealedAcknowledged, no read) instead of the raw env item's SHA-256. The publish it triggers stages the trio sealed: <host>.env, <host>/instance.key and <host>/report.token are each read with instancefs.ReadBeneathLimitOrAbsent beneath the instance directory (openat2, no symlink, regular files only, 1 MiB cap), the same reader the env already used, then sealed in memory; nothing else is opened. |
| -internal/activator/hawake.go:ExecBackend.restoreFilesClean durability 3a Task 3: after the unchanged RestoreRootBaseline into <host>.restore, each sealed trio item the manifest holds (instance.key.sealed, report.token.sealed) is fetched and opened with hostfiles.ReadSealed (key, sha256, v2 envelope, binding and MAC checked) and written with instancefs.WriteAtomic (openat2 directory, no symlink, O_EXCL temp, rename, 0600) into the restore directory this function created, then that directory is synced; then the same no-replace rename. The env file comes from the sealed env item through ReadSealed when present, else from the raw env item as before, written as before. The source is still the host's files manifest in the hibernate bucket; the destinations are the same restore directory and env file; no new path is opened, followed or named from input; the sealer (sealerFor) is built only when a sealed item is present. |
| +internal/activator/hawake.go:ExecBackend.restoreFilesClean durability 3a Task 3 (fix round 1: sealed precedence before any fetch): the restore into <host>.restore is now RestoreRootBaselineShadowed with sealedShadow(host), a pure function of the manifest already read and validated: a live raw instance.key or report.token entry whose sealed item the manifest holds is neither fetched nor written (so a missing or corrupt raw object cannot fail the wake, and a sealed item that does not open fails it with no raw fallback); every other entry is restored as before, and the baseline the wake's publisher continues from is the manifest as read. Then each sealed trio item the manifest holds (instance.key.sealed, report.token.sealed) is fetched and opened with hostfiles.ReadSealed (key, sha256, v2 envelope, binding and MAC checked) and written with instancefs.WriteAtomic (openat2 directory, no symlink, O_EXCL temp, rename, 0600) into the restore directory this function created, then that directory is synced; then the same no-replace rename. The env file comes from the sealed env item through ReadSealed when present, else from the raw env item as before, written as before. The source is still the host's files manifest in the hibernate bucket; the destinations are the same restore directory and env file; no new path is opened, followed or named from input; the sealer (sealerFor) is built only when a sealed item is present. |
| +internal/hostfiles/restore.go:Restore durability 3a Task 3 fix round 1: passes nil for restore's new shadowed argument, so it fetches, writes and removes exactly what it did; the same reads. restore gains that argument (a caller's Shadowed func over the manifest it has already read and validated): a live entry it names, after the overlap rule, is skipped before any fetch and reported in RestoreStats.Shadowed. It only leaves things out; nothing new is opened, read or followed. RestoreRootBaselineShadowed is new, RestoreRootBaseline is it with nil. |
diff --git a/docs/superpowers/notes/census-proposal-durability-3a-escrow.md b/docs/superpowers/notes/census-proposal-durability-3a-escrow.md| index 39c7af482..dafb82f85 100644 |
| --- a/docs/superpowers/notes/census-proposal-durability-3a-escrow.md |
| +++ b/docs/superpowers/notes/census-proposal-durability-3a-escrow.md |
| @@ -5,12 +5,13 @@ Ruling `census-ruling-durability-3a-escrow`. The independent reviewer approves o |
| | unit | change | read sites | what changed | |
| |---|---|---|---| |
| | `internal/host/agent.go` `runAgent` | body | unchanged (6) | durability 3a Task 3: one more assignment beside eb.FilesStore: eb.EscrowKey = haEscrowKey(os.Getenv("CARLOS_SECRETS_KEY")), the agent's own environment parsed by appconfig.ParsePrivateKey as the moves pass parses it (unset or unparseable: a log line and nil, and HA publication refuses on the box). No path is opened or read, no read site added; the same six sites, offsets moved; B,C,D,F authority retained. | |
| +| `internal/hostfiles/restore.go` `Restore` | body | unchanged (1) | durability 3a Task 3 fix round 1: passes nil for restore's new shadowed argument, so it fetches, writes and removes exactly what it did; the same reads. restore gains that argument (a caller's Shadowed func over the manifest it has already read and validated): a live entry it names, after the overlap rule, is skipped before any fetch and reported in RestoreStats.Shadowed. It only leaves things out; nothing new is opened, read or followed. RestoreRootBaselineShadowed is new, RestoreRootBaseline is it with nil. | |
| | `internal/activator/hafiles.go` `ExecBackend.newHostFiles` | sites | +registry:Host, +whole:Route | durability 3a Task 3: now also sets the publisher's sealer (sealerFor(rt); its error is returned and nothing is built) and its skip, pubclass.FilesDirSkip(Nested, rt.Host), a pure function of the name, so every tree pass publishes only App paths and never the trio raw. Still no I/O; the new +registry:Host and +whole:Route sites are the sealer's and the classifier's arguments. | |
| | `internal/activator/hafiles.go` `ExecBackend.openHostFiles` | sites | +whole:Route | durability 3a Task 3: asks sealerFor before hostfiles.Open, so a box without an escrow key refuses before it reads the manifest; newHostFiles's error is returned. The same manifest GET otherwise; the new +whole:Route site is sealerFor's argument. Opens nothing new. | |
| | `internal/activator/hafiles.go` `ExecBackend.stageKeptFiles` | sites | +registry:Host | durability 3a Task 3: newHostFiles now answers an error (no escrow key), which is logged and stages nothing, as an OpenBaseline failure already did. The same baseline read; nothing new opened or read. | |
| | `internal/activator/hafiles.go` `ExecBackend.stageWakeFiles` | sites | +registry:Host | durability 3a Task 3: newHostFiles now answers an error (no escrow key), which is logged and stages nothing, as an OpenBaseline failure already did. No read, as before. | |
| | `internal/activator/hasecrets.go` `ExecBackend.haSecretsReady` | sites | +whole:Route | durability 3a Task 3: asks sealerFor before its own hostfiles.Open (a box without an escrow key fails the launch before any read), and newHostFiles's error fails the launch. envAcknowledged now compares the sealed env item's keyed digest (hostfiles.SealedAcknowledged, no read) instead of the raw env item's SHA-256. The publish it triggers stages the trio sealed: <host>.env, <host>/instance.key and <host>/report.token are each read with instancefs.ReadBeneathLimitOrAbsent beneath the instance directory (openat2, no symlink, regular files only, 1 MiB cap), the same reader the env already used, then sealed in memory; nothing else is opened. | |
| -| `internal/activator/hawake.go` `ExecBackend.restoreFilesClean` | sites | +whole:Route | durability 3a Task 3: after the unchanged RestoreRootBaseline into <host>.restore, each sealed trio item the manifest holds (instance.key.sealed, report.token.sealed) is fetched and opened with hostfiles.ReadSealed (key, sha256, v2 envelope, binding and MAC checked) and written with instancefs.WriteAtomic (openat2 directory, no symlink, O_EXCL temp, rename, 0600) into the restore directory this function created, then that directory is synced; then the same no-replace rename. The env file comes from the sealed env item through ReadSealed when present, else from the raw env item as before, written as before. The source is still the host's files manifest in the hibernate bucket; the destinations are the same restore directory and env file; no new path is opened, followed or named from input; the sealer (sealerFor) is built only when a sealed item is present. | |
| +| `internal/activator/hawake.go` `ExecBackend.restoreFilesClean` | sites | +whole:Route | durability 3a Task 3 (fix round 1: sealed precedence before any fetch): the restore into <host>.restore is now RestoreRootBaselineShadowed with sealedShadow(host), a pure function of the manifest already read and validated: a live raw instance.key or report.token entry whose sealed item the manifest holds is neither fetched nor written (so a missing or corrupt raw object cannot fail the wake, and a sealed item that does not open fails it with no raw fallback); every other entry is restored as before, and the baseline the wake's publisher continues from is the manifest as read. Then each sealed trio item the manifest holds (instance.key.sealed, report.token.sealed) is fetched and opened with hostfiles.ReadSealed (key, sha256, v2 envelope, binding and MAC checked) and written with instancefs.WriteAtomic (openat2 directory, no symlink, O_EXCL temp, rename, 0600) into the restore directory this function created, then that directory is synced; then the same no-replace rename. The env file comes from the sealed env item through ReadSealed when present, else from the raw env item as before, written as before. The source is still the host's files manifest in the hibernate bucket; the destinations are the same restore directory and env file; no new path is opened, followed or named from input; the sealer (sealerFor) is built only when a sealed item is present. | |
| Envelopes re-pinned: `internal/activator`, `internal/host`, `internal/hostfiles`, `internal/layout`, `internal/layout/pubclass`. |
| @@ -19,6 +20,7 @@ Review: a model from the other family than the author reads the branch's diff ag |
| Recorded dispositions, which each change must still satisfy: |
| - `internal/host/agent.go` `runAgent`: authority, task B,C,D,F. Basis: rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): builds the box's lifetime judge once (newBoxJudge, nil with host claims on) and hands it to the seed placement, the moves and runs workers and every loop it starts; read sites unchanged, offsets moved; B,C,D,F authority retained; self-serve moves 1 Task 8: derives the box's lifetimes switch from the judge once (lifetimes := boxJudge != nil) and hands it to the edges file loop; read sites unchanged, offsets moved;rev3=census-ruling-plans-4d-lapse;basis=arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 9b81d97b (with main's plan rate ceiling, edge request records, regional box names, self-serve moves plan 1, plans 4d-1 lapse and its other later changes under main's own census rulings) plus the rootfs placement wiring in the activator start: an agentRootfs built from eb.NestedOK, CARLOS_DEPLOYMENT_SINGLE_TENANT, CARLOS_POOLS, the claim flag, swapArming's answer, the control client's /ready/rootfs and, on a fleet box whose identity resolved, fleetOwnerCheck over the deploy store main already opens for the fleet label (fleetStore), then arm and armedRootfs.Store; this body reads nothing new itself; the closures it wires read later, at a rootfs wake and each status tick: GET /ready/rootfs over the control socket, NestedOK's checks, and release.FleetOwnerKey for the judged row's own account and this box's fleet from the deploy store;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Tasks 7 and 11, #329 plan 3 Task 7 and plan 1 Task 7's policy cache: the control client is built once and handed to eb.Control, to the status tick (egressStatus) and to a new egressNudgeLoop goroutine; armSizeSource(svc, "/sys/fs/cgroup") after the activator Service; armPolicyCache() after armChangeIndex; statusLoop takes egressStatus. The reads are those units' own (decision rows); this body reads nothing new: the same five sites, offsets moved, in the agent; B,C,D,F authority retained.;rev3=census-ruling-remote-instance-metrics;basis=builds the metrics loop's owners closure (metricsOwners over the agent's registry, the activator and cgm.Leftover) when an activator exists and hands it to metricsLoop; reads nothing new itself;rev3=census-ruling-edge-asset-cache-3;basis=adds file:Statfs. runAgent keeps its authority (B,C,D,F). The new site is assetcache.Statfs, an exported assetcache.FS interface value (var Statfs FS = statfsFS{}), not a function value and not a call in runAgent: the ready hook passes it to armEdgeAssetCache as the store's filesystem, and armEdgeAssetCache calls its Space method on the configured data directory (dataDir(): $CARLOS_DATA_DIR, else /data), which calls unix.Statfs there (statfsFS.Space, accepted legacy at census-ruling-edge-asset-cache-2). No request-supplied pathname reaches it.;rev3=census-ruling-remote-metrics-nested;basis=main's body (merged origin/main acfa4f80, under main's own census rulings) plus: snapshots the nested layout (snapshotNestedUnits over /sys/fs/cgroup/carlos.slice/carlos-instances.slice) once at start, before the activator, and hands the metrics loop a unitSources struct (stamped units, routeHostNames, that root and the snapshot); reads nothing new itself;rev3=census-ruling-region-ha-p1a;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): wires region HA P1a into the activator: cfg.Record = haRecordFacts(openDeployStore, boxJudge) (the box's lifetime judge this body already builds with newBoxJudge, nil with host claims on; CI fix) and cfg.Self = lease.CurrentSelf; eb.Lifetimes (the process's lifetime index), eb.Registry, eb.StartupSwept (seedSweptAtStart.Load), eb.FilesStore from newProductionFilesStore (now lease.NewFilesStore, rootaws-loaded, a log line on failure) and lease.SetObligationDir(<data>/.ha-owed) (logged on failure; HA acquires then refuse); this body reads nothing new itself, the same five sites; the reads are those units' own (haRecordFacts and lease's SetObligationDir are new rows on this card); merge of origin/main d7ae1d76: main's own later changes to this body are kept as main has them, under main's rulings (census-ruling-remote-instance-metrics: the metricsOwners closure for metricsLoop; census-ruling-edge-asset-cache-3: the +file:Statfs site, assetcache.Statfs handed to the asset ready hook); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: builds one termfence.Confirmer (Self from lease.CurrentSelf at each call, EC2 DescribeInstances method only, client from rootaws.LoadDefaultConfig with retries off, built lazily on first use) and sets eb.OwnerTerminated; this body reads nothing new itself, the same six sites;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: the startup Sweep literal hands its answer to startupSwept, which logs as before and, only on a clean sweep, marks rootfs admission swept (MarkRootfsSwept); same Sweep call, no read added |
| +- `internal/hostfiles/restore.go` `Restore`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=merge-ruling-2;basis=Restore delegates to shared descriptor-root implementation; generic payload restoration remains legacy.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: passes nil for restore's new baseline argument; the one site unchanged, nothing else changed |
| - `internal/activator/hafiles.go` `ExecBackend.newHostFiles`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: builds a hostFiles publisher for rt (its instance paths from pathsFor(rt), rt.Host, the backend's registry, the 1 s platform and 15 min snapshot cadences); +registry:Host, +whole:Route; no I/O |
| - `internal/activator/hafiles.go` `ExecBackend.openHostFiles`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the entry's files publisher: refuses without a FilesStore or outside the nested layout, takes the one this wake's restore staged, else hostfiles.Open on <hibernate prefix>/files/0/ (one GET of the manifest from the hibernate bucket, the scanner's +file:Open); +registry:Host x2, +whole:Route x2; the manifest is written by the agents of the boxes that hold the host, through the same files store |
| - `internal/activator/hafiles.go` `ExecBackend.stageKeptFiles`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: on a kept wake, reads the manifest baseline the release kept beside its local record (<db>.release.files.json via readFilesBaseline, capped at 32 MiB, O_NOFOLLOW, regular files only) and stages a publisher on it only when its revision (Gen, which carries the body's SHA-256) equals the files_gen in the lock's release marker; the file is on ground the tenant can write, and anything that does not match stages nothing, so the entry re-reads the manifest from the store; it never decides the keep; +registry:Host x4, +whole:Route x2 |
| @@ -33,6 +35,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the |
| - new `internal/layout/inventory.go:Inventory`: reads +file:ReadDir; written legacy, accepted-legacy, frozen |
| - quiet `internal/layout/plan.go:NestedPlatformNames`: reads nothing now; retired while it reads nothing (or its row keeps no sites) |
| -Seal: `eaeb153ab7a7a849edc9c6e92f2ac5c709c6e39044a647971cf1fa5ebcb660c8` → `bd11e15cc2b64af3aa78c88e91dc151cfe3096ac671687ca8d015bfb8c331542`. |
| +Seal: `eaeb153ab7a7a849edc9c6e92f2ac5c709c6e39044a647971cf1fa5ebcb660c8` → `496ab302fe3dc87eb5b7f6335dce2fe2578f08cbf367451256d778b88bb1a6ae`. |
| Overlay: `internal/provision/testdata/plan14-root-reads-durability-3a-escrow.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/internal/activator/hawake.go b/internal/activator/hawake.go| index 91cb78301..223970d00 100644 |
| --- a/internal/activator/hawake.go |
| +++ b/internal/activator/hawake.go |
| @@ -578,6 +578,21 @@ func (b *ExecBackend) filesPrefix(host string) string { |
| // before it renames it over the files directory. |
| const restoreSuffix = ".restore" |
| +// sealedShadow is the restore's precedence rule for host: a live raw trio |
| +// entry at the files directory's root is shadowed when the manifest holds |
| +// the sealed item of its name (pubclass.SealedPath), exactly the items |
| +// restoreFilesClean then opens and writes itself. |
| +func sealedShadow(host string) hostfiles.Shadowed { |
| + return func(m hostfiles.Manifest, rel string) bool { |
| + r, ok := pubclass.SealedPath(pubclass.Nested, host, host+"/"+rel) |
| + if !ok { |
| + return false |
| + } |
| + _, sealed := m.Platform[r.Item()] |
| + return sealed |
| + } |
| +} |
| + |
| // restoreFilesClean restores the host's published files into a clean |
| // tree: into <host>.restore/ (a leftover one removed first), which is |
| // renamed into place as the files directory, never over one (setAside |
| @@ -590,10 +605,13 @@ const restoreSuffix = ".restore" |
| // |
| // The trio (durability 3a): each sealed trio item the manifest holds is |
| // opened and written into the restore directory, mode 0600, before the |
| -// rename, over any raw entry of that name an older box published. A raw |
| -// trio entry is restored only when no sealed item of its name is there |
| -// and the entry is live: the first sealed commit tombstoned it |
| -// (DropRawSecrets), so a key deleted since is never resurrected. |
| +// rename. A raw entry of that name an older box published is shadowed |
| +// (sealedShadow): never fetched or written, so a missing or damaged raw |
| +// object cannot fail the wake, and a sealed item that does not open fails |
| +// it rather than falling back to the raw one. A raw trio entry is |
| +// restored only when no sealed item of its name is there and the entry is |
| +// live: the first sealed commit tombstoned it (DropRawSecrets), so a key |
| +// deleted since is never resurrected. |
| func (b *ExecBackend) restoreFilesClean(ctx context.Context, rt registry.Route) error { |
| host := rt.Host |
| if b.FilesStore == nil { |
| @@ -613,7 +631,7 @@ func (b *ExecBackend) restoreFilesClean(ctx context.Context, rt registry.Route) |
| return err |
| } |
| // One read of the manifest; none is an empty one, and an empty tree. |
| - rm, st, base, err := hostfiles.RestoreRootBaseline(ctx, b.FilesStore, prefix, root, nil) |
| + rm, st, base, err := hostfiles.RestoreRootBaselineShadowed(ctx, b.FilesStore, prefix, root, nil, sealedShadow(host)) |
| root.Close() |
| if err != nil { |
| return err |
diff --git a/internal/activator/hawake_test.go b/internal/activator/hawake_test.go| index 7b803da74..7e65ee392 100644 |
| --- a/internal/activator/hawake_test.go |
| +++ b/internal/activator/hawake_test.go |
| @@ -13,9 +13,11 @@ import ( |
| "testing" |
| "time" |
| + "github.com/carlosframework/platform/internal/appconfig" |
| "github.com/carlosframework/platform/internal/domains" |
| "github.com/carlosframework/platform/internal/hafresh" |
| "github.com/carlosframework/platform/internal/hostfiles" |
| + "github.com/carlosframework/platform/internal/layout/pubclass" |
| "github.com/carlosframework/platform/internal/lease" |
| "github.com/carlosframework/platform/internal/lease/locktest" |
| "github.com/carlosframework/platform/internal/provision" |
| @@ -543,6 +545,15 @@ func TestDeletedSealedTrioDoesNotResurrectTheRawEntry(t *testing.T) { |
| if err := f.PublishPlatformNow(ctx); err != nil { |
| t.Fatal(err) |
| } |
| + // The starting state: the first commit holds the key sealed, its |
| + // plaintext readable, and the raw entry tombstoned. |
| + first := loadManifest(t, b, rt) |
| + if body, err := hostfiles.ReadSealed(ctx, b.FilesStore, b.filesPrefix(rt.Host), first, "instance.key.sealed", nil, sealerOf(t, b, rt)); err != nil || string(body) != "k1" { |
| + t.Fatalf("the first sealed commit's instance key: %q, %v", body, err) |
| + } |
| + if e, ok := first.Entries["instance.key"]; !ok || !e.Deleted { |
| + t.Fatalf("the raw instance key after the first sealed commit: %+v (present %v), want a tombstone", e, ok) |
| + } |
| if err := os.Remove(filepath.Join(filesDirOf(b, rt), "instance.key")); err != nil { |
| t.Fatal(err) |
| } |
| @@ -564,6 +575,153 @@ func TestDeletedSealedTrioDoesNotResurrectTheRawEntry(t *testing.T) { |
| } |
| } |
| +// seedMixedManifest publishes what a mixed fleet can leave: the raw env |
| +// item and raw trio entries an older box wrote, beside the same secrets |
| +// sealed by sealer as sealHost's (rt.Host's own, or another host's, whose |
| +// digest is not this host's). |
| +func seedMixedManifest(t *testing.T, b *ExecBackend, rt registry.Route, sealer *hostfiles.ItemSealer, sealHost string, rawEnv, sealedEnv string, rawTrio, sealedTrio map[string]string) hostfiles.Manifest { |
| + t.Helper() |
| + ctx := context.Background() |
| + p, err := hostfiles.Open(ctx, b.FilesStore, b.filesPrefix(rt.Host)) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + for name, body := range rawTrio { |
| + if err := p.Stage(ctx, name, []byte(body), 0o600, false); err != nil { |
| + t.Fatal(err) |
| + } |
| + } |
| + if err := p.StagePlatform(ctx, hostfiles.EnvItem, []byte(rawEnv)); err != nil { |
| + t.Fatal(err) |
| + } |
| + stage := func(rel, plain string) { |
| + r, ok := pubclass.SealedPath(pubclass.Nested, sealHost, rel) |
| + if !ok { |
| + t.Fatalf("%s is not a sealed path", rel) |
| + } |
| + if err := p.StageSealed(ctx, r, []byte(plain), sealer); err != nil { |
| + t.Fatal(err) |
| + } |
| + } |
| + stage(sealHost+".env", sealedEnv) |
| + for name, body := range sealedTrio { |
| + stage(sealHost+"/"+name, body) |
| + } |
| + if _, err := p.Commit(ctx); err != nil { |
| + t.Fatal(err) |
| + } |
| + return loadManifest(t, b, rt) |
| +} |
| + |
| +// A sealed item shadows the raw entry of its name: a manifest holding both |
| +// (an older box published raw after a sealed commit) restores from the |
| +// sealed copy, and never fetches the raw object, so one that is missing or |
| +// corrupt does not fail the wake. |
| +func TestRestorePrefersTheSealedCopyOverAnUnreadableRaw(t *testing.T) { |
| + for _, damage := range []string{"missing", "corrupt"} { |
| + t.Run(damage, func(t *testing.T) { |
| + ctx := context.Background() |
| + b, rt := haBackend(t, "shop.example.com") |
| + const env = "CARLOS_ADMIN_TOKEN=sealed\n" |
| + m := seedMixedManifest(t, b, rt, sealerOf(t, b, rt), rt.Host, "CARLOS_ADMIN_TOKEN=raw\n", env, |
| + map[string]string{"instance.key": "raw-key", "report.token": "raw-token", "a.txt": "app"}, |
| + map[string]string{"instance.key": "sealed-key", "report.token": "sealed-token"}) |
| + for _, key := range []string{m.Entries["instance.key"].Object, m.Entries["report.token"].Object, m.Platform[hostfiles.EnvItem].Object} { |
| + switch damage { |
| + case "missing": |
| + if err := b.FilesStore.Delete(ctx, key); err != nil { |
| + t.Fatal(err) |
| + } |
| + case "corrupt": |
| + _, etag, err := b.FilesStore.Get(ctx, key) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + if _, err := b.FilesStore.Put(ctx, key, []byte("not the bytes the manifest names"), etag); err != nil { |
| + t.Fatal(err) |
| + } |
| + } |
| + } |
| + if err := os.MkdirAll(b.pathsFor(rt).dataDir, 0o700); err != nil { |
| + t.Fatal(err) |
| + } |
| + if err := b.restoreFilesClean(ctx, rt); err != nil { |
| + t.Fatalf("a restore with the raw objects %s: %v", damage, err) |
| + } |
| + dir := filesDirOf(b, rt) |
| + if got := restoredSecret(t, filepath.Join(dir, "instance.key")); got != "sealed-key" { |
| + t.Fatalf("instance.key %q, want the sealed copy", got) |
| + } |
| + if got := restoredSecret(t, filepath.Join(dir, "report.token")); got != "sealed-token" { |
| + t.Fatalf("report.token %q, want the sealed copy", got) |
| + } |
| + if got := restoredSecret(t, b.pathsFor(rt).envFile); got != env { |
| + t.Fatalf("env %q, want the sealed copy", got) |
| + } |
| + if readFile(t, b, rt, "a.txt") != "app" { |
| + t.Fatal("the app's file was not restored") |
| + } |
| + // The publisher continues from the manifest as it was read. |
| + f, ok := b.wakeFiles(rt.Host) |
| + if !ok || f.pub.Gen() == "" || f.pub.Seq() != m.Seq { |
| + t.Fatalf("the wake's publisher is not on the manifest read (staged %v)", ok) |
| + } |
| + }) |
| + } |
| +} |
| + |
| +// A sealed item this box cannot open (another deployment's key; a digest |
| +// that is not this host's) fails the restoring wake through the service: |
| +// the readable raw alternative beside it is never used, no secret is |
| +// minted, and nothing launches. |
| +func TestRestoreRefusesAnUnopenableSealedItem(t *testing.T) { |
| + for _, tc := range []struct { |
| + name string |
| + seal func(t *testing.T, s *haSvc) (*hostfiles.ItemSealer, string) |
| + }{ |
| + {"wrong key", func(t *testing.T, s *haSvc) (*hostfiles.ItemSealer, string) { |
| + other, err := hostfiles.NewItemSealer(testEscrowKey(t), appconfig.Binding{Account: release.RouteAccount(s.rt), App: s.rt.App}, s.rt.Host) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + return other, s.rt.Host |
| + }}, |
| + {"digest mismatch", func(t *testing.T, s *haSvc) (*hostfiles.ItemSealer, string) { |
| + // This box's key and binding, so the envelope opens; the |
| + // digest names another host. |
| + const elsewhere = "other.example.com" |
| + other, err := hostfiles.NewItemSealer(s.b.EscrowKey, appconfig.Binding{Account: release.RouteAccount(s.rt), App: s.rt.App}, elsewhere) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + return other, elsewhere |
| + }}, |
| + } { |
| + t.Run(tc.name, func(t *testing.T) { |
| + ctx := context.Background() |
| + s := haService(t, "shop.example.com") |
| + sealer, sealHost := tc.seal(t, s) |
| + seedMixedManifest(t, s.b, s.rt, sealer, sealHost, "CARLOS_ADMIN_TOKEN=raw\n"+InstanceKeyVar+"=k1\n", "CARLOS_ADMIN_TOKEN=sealed\n"+InstanceKeyVar+"=k1\n", |
| + map[string]string{"instance.key": "raw-key"}, map[string]string{"instance.key": "sealed-key"}) |
| + putLockFor(t, s.b, s.rt, markerBody(t, "b", "i-b", haFixOf(s.b).lifetime, 6, true)) |
| + _, err := s.wakeForTest(ctx) |
| + if err == nil || !strings.Contains(err.Error(), `sealed item "instance.key.sealed"`) { |
| + t.Fatalf("the wake past a sealed item this box cannot open: %v, want the sealed item's refusal", err) |
| + } |
| + t.Logf("refused: %v", err) |
| + if n := spawns(s.b); n != 0 { |
| + t.Fatalf("%d launch(es) after a refused restore", n) |
| + } |
| + if envFileHas(t, s.b, s.rt, "CARLOS_ADMIN_TOKEN") || envFileHas(t, s.b, s.rt, InstanceKeyVar) { |
| + t.Fatal("a secret was written or minted after a refused restore") |
| + } |
| + if exists(filepath.Join(filesDirOf(s.b, s.rt), "instance.key")) { |
| + t.Fatal("the raw instance key was restored in place of the sealed one") |
| + } |
| + }) |
| + } |
| +} |
| + |
| // A no-marker restore (r P15): the stale <host>.env goes with the tree, and |
| // with no manifest nothing replaces it, so the next launch mints afresh. |
| func TestRestoreHANoMarkerRemovesStaleEnv(t *testing.T) { |
diff --git a/internal/hostfiles/hostfiles_test.go b/internal/hostfiles/hostfiles_test.go| index b1926f380..31f1d6d56 100644 |
| --- a/internal/hostfiles/hostfiles_test.go |
| +++ b/internal/hostfiles/hostfiles_test.go |
| @@ -907,3 +907,58 @@ func TestOpenBaselineContinuesWithoutARead(t *testing.T) { |
| t.Fatalf("restore baseline %+v: %v %v", rb.Found, err, gerr) |
| } |
| } |
| + |
| +// A shadowed live entry is neither fetched nor written: its object may be |
| +// gone and the restore still succeeds, reporting it in Shadowed. The |
| +// manifest and the baseline answered are the ones read, the shadowed |
| +// entry still in them; tombstones are removed as ever. |
| +func TestRestoreRootBaselineShadowedFetchesNothingShadowed(t *testing.T) { |
| + ctx := context.Background() |
| + s := release.NewDirStore(t.TempDir()) |
| + p := open(t, s) |
| + stage(t, p, "a.txt", "app") |
| + stage(t, p, "secret", "raw") |
| + stage(t, p, "gone.txt", "x") |
| + commit(t, p) |
| + if err := p.StageDelete("gone.txt"); err != nil { |
| + t.Fatal(err) |
| + } |
| + commit(t, p) |
| + m, _, err := Load(ctx, s, pfx) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + if err := s.Delete(ctx, m.Entries["secret"].Object); err != nil { |
| + t.Fatal(err) |
| + } |
| + dir := t.TempDir() |
| + if err := os.WriteFile(filepath.Join(dir, "gone.txt"), []byte("x"), 0o600); err != nil { |
| + t.Fatal(err) |
| + } |
| + root, err := os.OpenRoot(dir) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + defer root.Close() |
| + asked := map[string]bool{} |
| + got, st, base, err := RestoreRootBaselineShadowed(ctx, s, pfx, root, nil, func(m Manifest, path string) bool { |
| + asked[path] = true |
| + return path == "secret" |
| + }) |
| + if err != nil { |
| + t.Fatalf("a restore with a shadowed entry's object gone: %v", err) |
| + } |
| + if !reflect.DeepEqual(st.Shadowed, []string{"secret"}) || st.Written != 1 || st.Removed != 1 || asked["gone.txt"] { |
| + t.Fatalf("stats %+v, asked %v", st, asked) |
| + } |
| + if _, err := os.Lstat(filepath.Join(dir, "secret")); !errors.Is(err, os.ErrNotExist) { |
| + t.Fatalf("a shadowed entry was written: %v", err) |
| + } |
| + if body, err := os.ReadFile(filepath.Join(dir, "a.txt")); err != nil || string(body) != "app" { |
| + t.Fatalf("a.txt %q, %v", body, err) |
| + } |
| + raw, etag, err := s.Get(ctx, ManifestKey(pfx)) |
| + if err != nil || !base.Found || string(base.Body) != string(raw) || base.ETag != etag || got.Entries["secret"].Object == "" { |
| + t.Fatalf("the baseline or manifest is not the one read: %v", err) |
| + } |
| +} |
diff --git a/internal/hostfiles/restore.go b/internal/hostfiles/restore.go| index f77e33205..45bf0fd15 100644 |
| --- a/internal/hostfiles/restore.go |
| +++ b/internal/hostfiles/restore.go |
| @@ -37,8 +37,17 @@ type RestoreStats struct { |
| Written, Removed int |
| Skipped []string // paths the manifest holds as present but unpublished |
| Superseded []string // live paths not written: a live entry above or below them is newer |
| + Shadowed []string // live paths not fetched or written: another item of the manifest replaces them |
| } |
| +// Shadowed names, from the manifest a restore has read and validated, a |
| +// live entry that another item of the same manifest replaces (a sealed |
| +// platform item over the raw secret an older box published). The restore |
| +// neither fetches nor writes it, so a missing or damaged object behind it |
| +// cannot fail the restore; the caller writes the replacement itself. |
| +// Tombstones and the overlap rule (superseded) are not affected. |
| +type Shadowed func(m Manifest, path string) bool |
| + |
| // Restore writes into dir what the manifest under prefix names and removes |
| // what it tombstones: every tombstoned entry is removed, every published one |
| // written, and the skipped ones reported. It does not delete files the |
| @@ -63,7 +72,7 @@ type RestoreStats struct { |
| // whole manifest before anything is touched (ErrOrigin when the key is |
| // well formed but its origin is not admitted). |
| func Restore(ctx context.Context, s release.Store, prefix, dir string, origins []string) (Manifest, RestoreStats, error) { |
| - return restore(ctx, s, prefix, origins, func() (*os.Root, func(), error) { |
| + return restore(ctx, s, prefix, origins, nil, func() (*os.Root, func(), error) { |
| root, err := os.OpenRoot(dir) |
| if err != nil { |
| return nil, nil, fmt.Errorf("hostfiles: restore into %s: %w", dir, err) |
| @@ -88,18 +97,28 @@ func RestoreRoot(ctx context.Context, s release.Store, prefix string, root *os.R |
| // when there is none), so the caller can continue publishing from it |
| // (OpenBaseline) without reading it again. |
| func RestoreRootBaseline(ctx context.Context, s release.Store, prefix string, root *os.Root, origins []string) (Manifest, RestoreStats, Baseline, error) { |
| + return RestoreRootBaselineShadowed(ctx, s, prefix, root, origins, nil) |
| +} |
| + |
| +// RestoreRootBaselineShadowed is RestoreRootBaseline that leaves out every |
| +// live entry shadowed names (nil: none), reported in RestoreStats.Shadowed. |
| +// The manifest and the Baseline it answers are the ones read, unchanged: |
| +// a publisher continuing from it still holds the shadowed entries. |
| +func RestoreRootBaselineShadowed(ctx context.Context, s release.Store, prefix string, root *os.Root, origins []string, shadowed Shadowed) (Manifest, RestoreStats, Baseline, error) { |
| if root == nil { |
| return Manifest{}, RestoreStats{}, Baseline{}, errors.New("hostfiles: restore into a nil root") |
| } |
| var b Baseline |
| - m, st, err := restore(ctx, s, prefix, origins, func() (*os.Root, func(), error) { return root, func() {}, nil }, &b) |
| + m, st, err := restore(ctx, s, prefix, origins, shadowed, func() (*os.Root, func(), error) { return root, func() {}, nil }, &b) |
| return m, st, b, err |
| } |
| // restore is Restore and RestoreRoot. open is called only once the |
| // manifest is validated and names something to do, so a bad manifest |
| -// touches no directory and an empty one needs none. |
| -func restore(ctx context.Context, s release.Store, prefix string, origins []string, open func() (*os.Root, func(), error), base *Baseline) (Manifest, RestoreStats, error) { |
| +// touches no directory and an empty one needs none. shadowed (nil: none) |
| +// is asked of each live entry the overlap rule keeps, before anything of |
| +// it is fetched. |
| +func restore(ctx context.Context, s release.Store, prefix string, origins []string, shadowed Shadowed, open func() (*os.Root, func(), error), base *Baseline) (Manifest, RestoreStats, error) { |
| var st RestoreStats |
| if err := checkPrefix(prefix); err != nil { |
| return Manifest{}, st, err |
| @@ -176,6 +195,10 @@ func restore(ctx context.Context, s release.Store, prefix string, origins []stri |
| if loser[p] { |
| continue |
| } |
| + if shadowed != nil && shadowed(m, p) { |
| + st.Shadowed = append(st.Shadowed, p) |
| + continue |
| + } |
| e := m.Entries[p] |
| if e.Skipped != "" { |
| st.Skipped = append(st.Skipped, p) |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 6768d413c..b496906fe 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -45,4 +45,4 @@ plan14-root-reads-fleet-public-routes.tsv bca6ef741a96b72767b1747789cd01b3111d61 |
| plan14-root-reads-fleet-routes-followups.tsv 1379d066c8dd2335d95d5f6e9c7bce65ff57f00b2b287a308d9b3f47911ae5e7 |
| plan14-root-reads-tunnel-websockets.tsv 949bc734a293366e6b2700244af5110dd6e84b5432023e991c09e806afd62483 |
| plan14-root-reads-console-protection-tab.tsv eaeb153ab7a7a849edc9c6e92f2ac5c709c6e39044a647971cf1fa5ebcb660c8 |
| -plan14-root-reads-durability-3a-escrow.tsv bd11e15cc2b64af3aa78c88e91dc151cfe3096ac671687ca8d015bfb8c331542 |
| +plan14-root-reads-durability-3a-escrow.tsv 496ab302fe3dc87eb5b7f6335dce2fe2578f08cbf367451256d778b88bb1a6ae |
diff --git a/internal/provision/testdata/plan14-root-reads-durability-3a-escrow.tsv b/internal/provision/testdata/plan14-root-reads-durability-3a-escrow.tsv| index c2d825291..1137c0749 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-durability-3a-escrow.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-durability-3a-escrow.tsv |
| @@ -1,6 +1,7 @@ |
| # Census overlay durability-3a-escrow, written by census-propose (#369). census-ruling-durability-3a-escrow, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-durability-3a-escrow.md. |
| -# 1 body, 6 sites, 5 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 2 body, 6 sites, 5 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| # 4 new dispositions: 0 reads re-frozen at their disposition with the claim, 3 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 0 other. |
| +@legacy 2106e0d304d6aa9b8426ae43bd49dd44a18c101e7bed4a8d496dc3cdeb94ef3a internal/hostfiles/restore.go Restore legacy accepted-legacy accepted-legacy;rev3=merge-ruling-2;basis=Restore delegates to shared descriptor-root implementation; generic payload restoration remains legacy.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: passes nil for restore's new baseline argument; the one site unchanged, nothing else changed;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3 fix round 1: passes nil for restore's new shadowed argument, so it fetches, writes and removes exactly what it did; the same reads. restore gains that argument (a caller's Shadowed func over the manifest it has already read and validated): a live entry it names, after the overlap rule, is skipped before any fetch and reported in RestoreStats.Shadowed. It only leaves things out; nothing new is opened, read or followed. RestoreRootBaselineShadowed is new, RestoreRootBaseline is it with nil. file:OpenRoot@219 6a3b0e25de6d9ff6e644810d70a7056840e6cca7fa72db98542f990d4598fd30 |
| @legacy 8cac704f54ddfe06f00165aec337a93f0540c990d0f353d1379c9adacb464d86 internal/activator/hafiles.go ExecBackend.sealerFor legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: new. Builds the host's hostfiles.ItemSealer from the backend's EscrowKey (the box's own CARLOS_SECRETS_KEY, set once by runAgent) and the binding {release.RouteAccount(rt), rt.App} for rt.Host (NewItemSealer validates the account, app and host shape); nil key is an error. Pure in memory: opens, reads and writes nothing. registry:App@334,registry:Host@343,whole:Route@324 0225e79c376c0bad00460a6b520b3f9f0cdf2468a0319f2370e0aa3fb6af091a |
| @legacy 51297417f7d25f895c3793014740994855e599bf8731cf3295ea836820ae4f13 internal/hostfiles/sealed.go ReadSealed legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 2: new. Reads one sealed platform item of a files manifest the caller already loaded: the object at exactly the key the entry names, through the existing fetch (checkEntry: origin admitted, key shape, sha256 and size verified), only for an entry marked sealed "v2". The "Open" the scanner sees is appconfig.Open, an in-memory AES-GCM decryption of the fetched bytes, not a file open: no filesystem path is opened, read or followed. It refuses a v1 envelope (appconfig.EnvelopeBound), and after opening under the caller-supplied key and (account, app) binding it checks the HMAC digest over account, app, host and item against the entry. Writes nothing. No production caller in this task; Tasks 3 and 4 call it from the activator. file:Open@898 7c2b887b6e0b45472fd8d1a63a2b78eb565c4e93c89cb329eeeaef429ab0b010 |
| @legacy 7520abf7fe01442d3fcca5cc9c46cd22346ae2ad193162ed8df7ba9371914028 internal/layout/inventory.go Inventory legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 1: new. One os.ReadDir of the host's inventory root, provision.InstanceDir(dataDir, host) nested or dataDir flat, after refusing a host that fails controlname.ValidHostShape and a layout that is neither flat nor nested; reads only the listing's names and types (DirEntry.IsDir), opens and follows nothing; flat ownership is the extras scan's own (hostEntries over knownHosts); each top-level name is classified by pubclass.Of, a pure function of the name. A missing directory is an empty inventory. No caller in this task; later tasks call it from the publisher. file:ReadDir@449 9662e465abb7f9c60e908952740384479009c9987c8a6ae65d98fb19cb3d4d7e |
| @@ -9,8 +10,9 @@ |
| @legacy 7150dace5e7f9f29faeb2e6a78df22881534291b9d66006194d90c769082a772 internal/activator/hafiles.go ExecBackend.stageKeptFiles legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: on a kept wake, reads the manifest baseline the release kept beside its local record (<db>.release.files.json via readFilesBaseline, capped at 32 MiB, O_NOFOLLOW, regular files only) and stages a publisher on it only when its revision (Gen, which carries the body's SHA-256) equals the files_gen in the lock's release marker; the file is on ground the tenant can write, and anything that does not match stages nothing, so the entry re-reads the manifest from the store; it never decides the keep; +registry:Host x4, +whole:Route x2;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: newHostFiles now answers an error (no escrow key), which is logged and stages nothing, as an OpenBaseline failure already did. The same baseline read; nothing new opened or read. registry:Host@254,registry:Host@344,registry:Host@508,registry:Host@627,registry:Host@673,whole:Route@151,whole:Route@560 d740082bbfda130c1b0b8e71dae3ff9804dbf36131bc659d147d3d41921674d2 |
| @legacy cdd0c029924e783aa6acc1b26a6bf4b91e038511acdd5291a7dd1ca39c81c734 internal/activator/hafiles.go ExecBackend.stageWakeFiles legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: opens a publisher on a manifest baseline the HA restore already holds (hostfiles.OpenBaseline, no read) and keeps it for the wake's entry; without a FilesStore it stages nothing; +registry:Host x3, +whole:Route;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: newHostFiles now answers an error (no escrow key), which is logged and stages nothing, as an OpenBaseline failure already did. No read, as before. registry:Host@185,registry:Host@300,registry:Host@419,registry:Host@465,whole:Route@352 2a9b49c4cdd022038db91a72126a31c4b0c7e81de038f9c57747522136aa361a |
| @legacy 192df384d784a7d1ac579802fd8ad96206ff78ee8164d09ab6e8093b968602ba internal/activator/hasecrets.go ExecBackend.haSecretsReady legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: before an HA host's launch, checks that env, the bytes the launch captured (captureLaunchEnv; a new parameter, final fix F2), has the SHA-256 of the committed manifest's env item (envAcknowledged, which now reads no file); else publishes the platform items (env, trio, wake state) through the wake's, the entry's or its own publisher (hostfiles.Open, the +file:Open site: one manifest GET) and checks again, so an env replaced after the capture is committed as other bytes and fails the launch; it no longer classifies the host itself (launchEnvLayer has); every error fails the launch; +file:Open, +registry:Host x3, +whole:Route;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: asks sealerFor before its own hostfiles.Open (a box without an escrow key fails the launch before any read), and newHostFiles's error fails the launch. envAcknowledged now compares the sealed env item's keyed digest (hostfiles.SealedAcknowledged, no read) instead of the raw env item's SHA-256. The publish it triggers stages the trio sealed: <host>.env, <host>/instance.key and <host>/report.token are each read with instancefs.ReadBeneathLimitOrAbsent beneath the instance directory (openat2, no symlink, regular files only, 1 MiB cap), the same reader the env already used, then sealed in memory; nothing else is opened. file:Open@390,registry:Host@1187,registry:Host@120,registry:Host@438,whole:Route@294,whole:Route@559 4f4584786d3f90a54aa3ddc1c39ffed8a62fcfd593127f534bea787c3d9b7829 |
| -@legacy 28637d8aaf3691a7f53208f8e0a009fd9287b4ca7f0fa3278be8f2fb1b466130 internal/activator/hawake.go ExecBackend.restoreFilesClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: restores the HA host's published files into a fresh <host>.restore directory beneath the instance data dir (instancefs, no link followed), renames it into place without replacing anything, writes the manifest's env item as <host>.env (instancefs.WriteAtomic, 0600) and imports the manifest's wake state into the registry (hostfiles.ImportWake, then the class for restoredReplication); the source is the host's files manifest in the hibernate bucket, written by the agents of the boxes that held the host; every failure fails the wake; +registry:Host, +whole:Route x2;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: after the unchanged RestoreRootBaseline into <host>.restore, each sealed trio item the manifest holds (instance.key.sealed, report.token.sealed) is fetched and opened with hostfiles.ReadSealed (key, sha256, v2 envelope, binding and MAC checked) and written with instancefs.WriteAtomic (openat2 directory, no symlink, O_EXCL temp, rename, 0600) into the restore directory this function created, then that directory is synced; then the same no-replace rename. The env file comes from the sealed env item through ReadSealed when present, else from the raw env item as before, written as before. The source is still the host's files manifest in the hibernate bucket; the destinations are the same restore directory and env file; no new path is opened, followed or named from input; the sealer (sealerFor) is built only when a sealed item is present. registry:Host@97,whole:Route@1320,whole:Route@200,whole:Route@820 fe4d25409705112e6c6ad18cc1be261388b6e954fd8675344e7ce5d3c598d461 |
| +@legacy 102f291648b5ec856e25671b0886f4d7fd1c28a98fc1fea228f98fac9f66afd5 internal/activator/hawake.go ExecBackend.restoreFilesClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: restores the HA host's published files into a fresh <host>.restore directory beneath the instance data dir (instancefs, no link followed), renames it into place without replacing anything, writes the manifest's env item as <host>.env (instancefs.WriteAtomic, 0600) and imports the manifest's wake state into the registry (hostfiles.ImportWake, then the class for restoredReplication); the source is the host's files manifest in the hibernate bucket, written by the agents of the boxes that held the host; every failure fails the wake; +registry:Host, +whole:Route x2;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3 (fix round 1: sealed precedence before any fetch): the restore into <host>.restore is now RestoreRootBaselineShadowed with sealedShadow(host), a pure function of the manifest already read and validated: a live raw instance.key or report.token entry whose sealed item the manifest holds is neither fetched nor written (so a missing or corrupt raw object cannot fail the wake, and a sealed item that does not open fails it with no raw fallback); every other entry is restored as before, and the baseline the wake's publisher continues from is the manifest as read. Then each sealed trio item the manifest holds (instance.key.sealed, report.token.sealed) is fetched and opened with hostfiles.ReadSealed (key, sha256, v2 envelope, binding and MAC checked) and written with instancefs.WriteAtomic (openat2 directory, no symlink, O_EXCL temp, rename, 0600) into the restore directory this function created, then that directory is synced; then the same no-replace rename. The env file comes from the sealed env item through ReadSealed when present, else from the raw env item as before, written as before. The source is still the host's files manifest in the hibernate bucket; the destinations are the same restore directory and env file; no new path is opened, followed or named from input; the sealer (sealerFor) is built only when a sealed item is present. registry:Host@97,whole:Route@1348,whole:Route@200,whole:Route@848 83d2b391d70c7008c9cf17c1db3091a45626ac26050e837e38f247d1aca100b2 |
| internal/host/agent.go runAgent authority B,C,D,F rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): builds the box's lifetime judge once (newBoxJudge, nil with host claims on) and hands it to the seed placement, the moves and runs workers and every loop it starts; read sites unchanged, offsets moved; B,C,D,F authority retained; self-serve moves 1 Task 8: derives the box's lifetimes switch from the judge once (lifetimes := boxJudge != nil) and hands it to the edges file loop; read sites unchanged, offsets moved;rev3=census-ruling-plans-4d-lapse;basis=arms two more plans hooks from the same snapshot: e.SetPlanDisabledFor(planDisabledFor) beside SetPlanGovernedFor, and svc.SetDisabledFor(planDisabledRoute) beside SetMaxRunFor (plans 4d); the reads live in those units (plans-4d-units decision); read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-2;basis=main's body as of the merge of origin/main 9b81d97b (with main's plan rate ceiling, edge request records, regional box names, self-serve moves plan 1, plans 4d-1 lapse and its other later changes under main's own census rulings) plus the rootfs placement wiring in the activator start: an agentRootfs built from eb.NestedOK, CARLOS_DEPLOYMENT_SINGLE_TENANT, CARLOS_POOLS, the claim flag, swapArming's answer, the control client's /ready/rootfs and, on a fleet box whose identity resolved, fleetOwnerCheck over the deploy store main already opens for the fleet label (fleetStore), then arm and armedRootfs.Store; this body reads nothing new itself; the closures it wires read later, at a rootfs wake and each status tick: GET /ready/rootfs over the control socket, NestedOK's checks, and release.FleetOwnerKey for the judged row's own account and this box's fleet from the deploy store;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328 plan 2 Tasks 7 and 11, #329 plan 3 Task 7 and plan 1 Task 7's policy cache: the control client is built once and handed to eb.Control, to the status tick (egressStatus) and to a new egressNudgeLoop goroutine; armSizeSource(svc, "/sys/fs/cgroup") after the activator Service; armPolicyCache() after armChangeIndex; statusLoop takes egressStatus. The reads are those units' own (decision rows); this body reads nothing new: the same five sites, offsets moved, in the agent; B,C,D,F authority retained.;rev3=census-ruling-remote-instance-metrics;basis=builds the metrics loop's owners closure (metricsOwners over the agent's registry, the activator and cgm.Leftover) when an activator exists and hands it to metricsLoop; reads nothing new itself;rev3=census-ruling-edge-asset-cache-3;basis=adds file:Statfs. runAgent keeps its authority (B,C,D,F). The new site is assetcache.Statfs, an exported assetcache.FS interface value (var Statfs FS = statfsFS{}), not a function value and not a call in runAgent: the ready hook passes it to armEdgeAssetCache as the store's filesystem, and armEdgeAssetCache calls its Space method on the configured data directory (dataDir(): $CARLOS_DATA_DIR, else /data), which calls unix.Statfs there (statfsFS.Space, accepted legacy at census-ruling-edge-asset-cache-2). No request-supplied pathname reaches it.;rev3=census-ruling-remote-metrics-nested;basis=main's body (merged origin/main acfa4f80, under main's own census rulings) plus: snapshots the nested layout (snapshotNestedUnits over /sys/fs/cgroup/carlos.slice/carlos-instances.slice) once at start, before the activator, and hands the metrics loop a unitSources struct (stamped units, routeHostNames, that root and the snapshot); reads nothing new itself;rev3=census-ruling-region-ha-p1a;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): wires region HA P1a into the activator: cfg.Record = haRecordFacts(openDeployStore, boxJudge) (the box's lifetime judge this body already builds with newBoxJudge, nil with host claims on; CI fix) and cfg.Self = lease.CurrentSelf; eb.Lifetimes (the process's lifetime index), eb.Registry, eb.StartupSwept (seedSweptAtStart.Load), eb.FilesStore from newProductionFilesStore (now lease.NewFilesStore, rootaws-loaded, a log line on failure) and lease.SetObligationDir(<data>/.ha-owed) (logged on failure; HA acquires then refuse); this body reads nothing new itself, the same five sites; the reads are those units' own (haRecordFacts and lease's SetObligationDir are new rows on this card); merge of origin/main d7ae1d76: main's own later changes to this body are kept as main has them, under main's rulings (census-ruling-remote-instance-metrics: the metricsOwners closure for metricsLoop; census-ruling-edge-asset-cache-3: the +file:Statfs site, assetcache.Statfs handed to the asset ready hook); this branch's change is the same as above;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: builds one termfence.Confirmer (Self from lease.CurrentSelf at each call, EC2 DescribeInstances method only, client from rootaws.LoadDefaultConfig with retries off, built lazily on first use) and sets eb.OwnerTerminated; this body reads nothing new itself, the same six sites;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 7: the startup Sweep literal hands its answer to startupSwept, which logs as before and, only on a clean sweep, marks rootfs admission swept (MarkRootfsSwept); same Sweep call, no read added;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: one more assignment beside eb.FilesStore: eb.EscrowKey = haEscrowKey(os.Getenv("CARLOS_SECRETS_KEY")), the agent's own environment parsed by appconfig.ParsePrivateKey as the moves pass parses it (unset or unparseable: a log line and nil, and HA publication refuses on the box). No path is opened or read, no read site added; the same six sites, offsets moved; B,C,D,F authority retained. file:Exec@17224,file:Open@1150,file:Statfs@42902,registry:App@11199,whole:Route@11191,whole:Route@27157 8db44678a89e88c2f7fcec2a54b0a73ce0088786968d6dd10ca3c4b88586a591 |
| +internal/hostfiles/restore.go Restore legacy accepted-legacy accepted-legacy;rev3=merge-ruling-2;basis=Restore delegates to shared descriptor-root implementation; generic payload restoration remains legacy.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: passes nil for restore's new baseline argument; the one site unchanged, nothing else changed;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3 fix round 1: passes nil for restore's new shadowed argument, so it fetches, writes and removes exactly what it did; the same reads. restore gains that argument (a caller's Shadowed func over the manifest it has already read and validated): a live entry it names, after the overlap rule, is skipped before any fetch and reported in RestoreStats.Shadowed. It only leaves things out; nothing new is opened, read or followed. RestoreRootBaselineShadowed is new, RestoreRootBaseline is it with nil. file:OpenRoot@219 6a3b0e25de6d9ff6e644810d70a7056840e6cca7fa72db98542f990d4598fd30 |
| internal/activator/hafiles.go ExecBackend.sealerFor legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: new. Builds the host's hostfiles.ItemSealer from the backend's EscrowKey (the box's own CARLOS_SECRETS_KEY, set once by runAgent) and the binding {release.RouteAccount(rt), rt.App} for rt.Host (NewItemSealer validates the account, app and host shape); nil key is an error. Pure in memory: opens, reads and writes nothing. registry:App@334,registry:Host@343,whole:Route@324 0225e79c376c0bad00460a6b520b3f9f0cdf2468a0319f2370e0aa3fb6af091a |
| internal/hostfiles/sealed.go ReadSealed legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 2: new. Reads one sealed platform item of a files manifest the caller already loaded: the object at exactly the key the entry names, through the existing fetch (checkEntry: origin admitted, key shape, sha256 and size verified), only for an entry marked sealed "v2". The "Open" the scanner sees is appconfig.Open, an in-memory AES-GCM decryption of the fetched bytes, not a file open: no filesystem path is opened, read or followed. It refuses a v1 envelope (appconfig.EnvelopeBound), and after opening under the caller-supplied key and (account, app) binding it checks the HMAC digest over account, app, host and item against the entry. Writes nothing. No production caller in this task; Tasks 3 and 4 call it from the activator. file:Open@898 7c2b887b6e0b45472fd8d1a63a2b78eb565c4e93c89cb329eeeaef429ab0b010 |
| internal/layout/inventory.go Inventory legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 1: new. One os.ReadDir of the host's inventory root, provision.InstanceDir(dataDir, host) nested or dataDir flat, after refusing a host that fails controlname.ValidHostShape and a layout that is neither flat nor nested; reads only the listing's names and types (DirEntry.IsDir), opens and follows nothing; flat ownership is the extras scan's own (hostEntries over knownHosts); each top-level name is classified by pubclass.Of, a pure function of the name. A missing directory is an empty inventory. No caller in this task; later tasks call it from the publisher. file:ReadDir@449 9662e465abb7f9c60e908952740384479009c9987c8a6ae65d98fb19cb3d4d7e |
| @@ -19,11 +21,11 @@ internal/activator/hafiles.go ExecBackend.openHostFiles legacy accepted-legacy a |
| internal/activator/hafiles.go ExecBackend.stageKeptFiles legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: on a kept wake, reads the manifest baseline the release kept beside its local record (<db>.release.files.json via readFilesBaseline, capped at 32 MiB, O_NOFOLLOW, regular files only) and stages a publisher on it only when its revision (Gen, which carries the body's SHA-256) equals the files_gen in the lock's release marker; the file is on ground the tenant can write, and anything that does not match stages nothing, so the entry re-reads the manifest from the store; it never decides the keep; +registry:Host x4, +whole:Route x2;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: newHostFiles now answers an error (no escrow key), which is logged and stages nothing, as an OpenBaseline failure already did. The same baseline read; nothing new opened or read. registry:Host@254,registry:Host@344,registry:Host@508,registry:Host@627,registry:Host@673,whole:Route@151,whole:Route@560 d740082bbfda130c1b0b8e71dae3ff9804dbf36131bc659d147d3d41921674d2 |
| internal/activator/hafiles.go ExecBackend.stageWakeFiles legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: opens a publisher on a manifest baseline the HA restore already holds (hostfiles.OpenBaseline, no read) and keeps it for the wake's entry; without a FilesStore it stages nothing; +registry:Host x3, +whole:Route;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: newHostFiles now answers an error (no escrow key), which is logged and stages nothing, as an OpenBaseline failure already did. No read, as before. registry:Host@185,registry:Host@300,registry:Host@419,registry:Host@465,whole:Route@352 2a9b49c4cdd022038db91a72126a31c4b0c7e81de038f9c57747522136aa361a |
| internal/activator/hasecrets.go ExecBackend.haSecretsReady legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: before an HA host's launch, checks that env, the bytes the launch captured (captureLaunchEnv; a new parameter, final fix F2), has the SHA-256 of the committed manifest's env item (envAcknowledged, which now reads no file); else publishes the platform items (env, trio, wake state) through the wake's, the entry's or its own publisher (hostfiles.Open, the +file:Open site: one manifest GET) and checks again, so an env replaced after the capture is committed as other bytes and fails the launch; it no longer classifies the host itself (launchEnvLayer has); every error fails the launch; +file:Open, +registry:Host x3, +whole:Route;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: asks sealerFor before its own hostfiles.Open (a box without an escrow key fails the launch before any read), and newHostFiles's error fails the launch. envAcknowledged now compares the sealed env item's keyed digest (hostfiles.SealedAcknowledged, no read) instead of the raw env item's SHA-256. The publish it triggers stages the trio sealed: <host>.env, <host>/instance.key and <host>/report.token are each read with instancefs.ReadBeneathLimitOrAbsent beneath the instance directory (openat2, no symlink, regular files only, 1 MiB cap), the same reader the env already used, then sealed in memory; nothing else is opened. file:Open@390,registry:Host@1187,registry:Host@120,registry:Host@438,whole:Route@294,whole:Route@559 4f4584786d3f90a54aa3ddc1c39ffed8a62fcfd593127f534bea787c3d9b7829 |
| -internal/activator/hawake.go ExecBackend.restoreFilesClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: restores the HA host's published files into a fresh <host>.restore directory beneath the instance data dir (instancefs, no link followed), renames it into place without replacing anything, writes the manifest's env item as <host>.env (instancefs.WriteAtomic, 0600) and imports the manifest's wake state into the registry (hostfiles.ImportWake, then the class for restoredReplication); the source is the host's files manifest in the hibernate bucket, written by the agents of the boxes that held the host; every failure fails the wake; +registry:Host, +whole:Route x2;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3: after the unchanged RestoreRootBaseline into <host>.restore, each sealed trio item the manifest holds (instance.key.sealed, report.token.sealed) is fetched and opened with hostfiles.ReadSealed (key, sha256, v2 envelope, binding and MAC checked) and written with instancefs.WriteAtomic (openat2 directory, no symlink, O_EXCL temp, rename, 0600) into the restore directory this function created, then that directory is synced; then the same no-replace rename. The env file comes from the sealed env item through ReadSealed when present, else from the raw env item as before, written as before. The source is still the host's files manifest in the hibernate bucket; the destinations are the same restore directory and env file; no new path is opened, followed or named from input; the sealer (sealerFor) is built only when a sealed item is present. registry:Host@97,whole:Route@1320,whole:Route@200,whole:Route@820 fe4d25409705112e6c6ad18cc1be261388b6e954fd8675344e7ce5d3c598d461 |
| +internal/activator/hawake.go ExecBackend.restoreFilesClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: restores the HA host's published files into a fresh <host>.restore directory beneath the instance data dir (instancefs, no link followed), renames it into place without replacing anything, writes the manifest's env item as <host>.env (instancefs.WriteAtomic, 0600) and imports the manifest's wake state into the registry (hostfiles.ImportWake, then the class for restoredReplication); the source is the host's files manifest in the hibernate bucket, written by the agents of the boxes that held the host; every failure fails the wake; +registry:Host, +whole:Route x2;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3 (fix round 1: sealed precedence before any fetch): the restore into <host>.restore is now RestoreRootBaselineShadowed with sealedShadow(host), a pure function of the manifest already read and validated: a live raw instance.key or report.token entry whose sealed item the manifest holds is neither fetched nor written (so a missing or corrupt raw object cannot fail the wake, and a sealed item that does not open fails it with no raw fallback); every other entry is restored as before, and the baseline the wake's publisher continues from is the manifest as read. Then each sealed trio item the manifest holds (instance.key.sealed, report.token.sealed) is fetched and opened with hostfiles.ReadSealed (key, sha256, v2 envelope, binding and MAC checked) and written with instancefs.WriteAtomic (openat2 directory, no symlink, O_EXCL temp, rename, 0600) into the restore directory this function created, then that directory is synced; then the same no-replace rename. The env file comes from the sealed env item through ReadSealed when present, else from the raw env item as before, written as before. The source is still the host's files manifest in the hibernate bucket; the destinations are the same restore directory and env file; no new path is opened, followed or named from input; the sealer (sealerFor) is built only when a sealed item is present. registry:Host@97,whole:Route@1348,whole:Route@200,whole:Route@848 83d2b391d70c7008c9cf17c1db3091a45626ac26050e837e38f247d1aca100b2 |
| @remove internal/layout/plan.go NestedPlatformNames |
| @removed internal/layout/plan.go NestedPlatformNames H3 census-ruling-durability-3a-escrow;basis=durability 3a Task 1: now a one-line wrapper for pubclass.NestedPlatformNames, which builds the same set (byte-identical, checked before and after) from pubclass.FileBases and the same instancectl/instancekey names, without nestedFiles or rawInstanceDir; it never read anything, and reads nothing now |
| -@coverage internal/activator 06763882dfc9b434a9a4dc46f17ad450664026e891ab6a49b0681f46659c52db |
| +@coverage internal/activator d131bd67e2c68a385b2c17313a8a98f12732d08475dc090f937a85cb36cf1bf7 |
| @coverage internal/host c2b42d5db1c921cb0e722d50eb8cc6d19c4977a9fae0a57d1d4a6bf9e4a55242 |
| -@coverage internal/hostfiles 87c6a7acbc7a2b318e564c0426e480477e10912c10deb06181cd740e322734a2 |
| +@coverage internal/hostfiles a0b0deb2779b183ee3f3578d1112ac5f723d930e40690a55eaaaa2644a24a9ad |
| @coverage internal/layout 5d8b1d3bcd0b247e8088e4fb32bc26378ece37f41dc40f1d999e23913eccc9d0 |
| @coverage internal/layout/pubclass bd3938f002a5dca044378b71670e904736653d4914a8b1e06275e2b4dc79ed67 |