carlos / platform Public

C2 round 3 fixes; the reviewer decides every census class (Paul, #280)

Astra round 3 (1 P1, 4 P2), fixed without a fourth round on Paul's say:
- P1: every regular file under infra/ and internal/host/units is in scope
  whatever its extension (Markdown aside), so the extensionless
  scanner-selftest root runs is fingerprinted; checkRootExecInputs fails
  on a file a terraform file installs or a unit's Exec line runs with no
  fingerprint. Proof: TestCensusRootExecutedScriptIsFingerprinted.
- cgo refused: checkRootNoCgo fails on cgo files in a root package
  (TestCensusCgoIsRefused).
- a ;absent; removal now fails if the declaration returns outside scope;
  ;left; stays scope-only (TestCensusAbsentRemovalHoldsOutsideScope).
- the migration check is exact membership against census-base-scope.txt
  (TestCensusRebaseMembershipCatchesAMissingRow).
- AGENTS.md: the census pins source; data provenance is the reviewer's.
Paul's ruling today: census-propose writes rows for every class (new
frozen accepted-legacy, reads re-frozen, quiet retired, schema re-pinned)
and the card lists them for the reviewer; nothing goes to the census
owner. AGENTS.md's census section rewritten short. First overlay on the
base, c2-root-exec-inputs, adds the 11 newly fingerprinted infra files.
Base rows and seal unchanged (52675c62); envelopes 122; chain seal 85043db5.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 6f9733cc8eaecce2853e6d953291e372c6b5b5be parent 8637cc8
17 files changed, +2,292 −278
  • AGENTS.md +84 −155
  • docs/superpowers/notes/census-proposal-c2-root-exec-inputs.md +21 −0
  • internal/provision/census_propose_internal_test.go +0 −15
  • internal/provision/census_propose_test.go +79 −53
  • internal/provision/census_rebase_proof_test.go +8 −6
  • internal/provision/census_rebase_test.go +105 −13
  • internal/provision/census_removal_fs_test.go +20 −4
  • internal/provision/census_removal_test.go +45 −19
  • internal/provision/census_round3_test.go +198 −0
  • internal/provision/census_scope_fixture_test.go +3 −3
  • internal/provision/census_scope_guard_test.go +17 −6
  • internal/provision/census_scope_test.go +150 −3
  • internal/provision/plan14_root_reads_test.go +6 −0
  • internal/provision/testdata/census-base-scope.txt +1,524 −0
  • internal/provision/testdata/census-base.tsv +6 −1
  • internal/provision/testdata/plan14-root-reads-c2-root-exec-inputs.tsv +25 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
diff --git a/AGENTS.md b/AGENTS.md
index 455dce21c..4d8e4442a 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -285,33 +285,28 @@ anything.
GOPROXY=off`; go commands may need the sandbox disabled ("read-only file
system" from the toolchain is the tell).
-## The census: an approval, not a decision (Paul, 2026-10-24, #369; reviewer, 2026-10-25; code root runs, 2026-10-26)
+## The census: the reviewer decides (Paul, #369 2026-10-24; #280 2026-10-25 and 2026-10-26)
`TestPlan14RootReadCensus` (`internal/provision`) fails when a branch
-changes code in the root binary that reads root-owned state, or a
-directory envelope of the root binary's source. Every such change needs an
-approval on #280 before the merge. Most are approvals: the same reads in
-an edited body, or an envelope fingerprint that moved. An independent
-reviewer gives those; the census owner (Paul) sees only decisions and
-escalations.
-
-### What the census covers (C2, Paul's ruling 2 on #280; option A, 2026-10-26)
-
-The census covers the source of the root `carlos` binary, whole files.
-That is every package `go list -deps .` lists from the module root for
-`GOOS=linux` on amd64 and on arm64 (boxes run arm64), joined: every file
-either architecture compiles into it, every file those packages embed
-(root's units in `internal/host/units` among them), the non-Go files the
-scanner takes beside them, and `infra/` (user_data and its units run as
-root at boot, and its IAM decides who writes what root reads). The
-console binary's own packages (`cmd/console`, `internal/console` and its
-templates, and what only they import), `scripts/`, and files built only
-for other systems are out. Today that is 105 of 133 packages, 117
-envelopes and 3549 units. An envelope is one per directory, over its
-in-scope files' whole bytes, so an edit anywhere in them (an import, a
-directive, a `var _` initializer, a comment, agent code that shares a
-package with root code) needs a card. To check whether a file is in
-scope:
+changes the root binary's source: a unit that reads root-owned state, or
+any byte of a file in scope. Every such change needs an independent
+reviewer's approval before the merge. Paul no longer rules on census
+units (#280, 2026-10-26): the reviewer decides every class, and nothing
+escalates to him.
+
+### What is in scope
+
+Every file of every package in `go list -deps .` from the module root for
+`GOOS=linux` on amd64 and on arm64, joined, whole bytes: every file either
+architecture compiles, every file those packages embed (root's units in
+`internal/host/units` among them), and the non-Go files the scanner takes
+beside them. Also every regular file under `infra/` and
+`internal/host/units` whatever its extension, Markdown aside (user_data,
+the units and scripts it installs, and the IAM that decides who writes
+what root reads). Out: the console binary's own packages (`cmd/console`,
+`internal/console` and its templates), `scripts/`, and files built only
+for other systems. Today that is 105 of 133 packages and 122 envelopes.
+To check a file:
```
GOOS=linux GOARCH=amd64 go list -deps -f '{{.Dir}} {{.GoFiles}} {{.EmbedFiles}}' . | grep "$PWD"
@@ -319,143 +314,77 @@ GOOS=linux GOARCH=arm64 go list -deps -f '{{.Dir}} {{.GoFiles}} {{.EmbedFiles}}'
```
`TestCensusScopeIsTheRootBinary` fails if a package or embed of the root
-binary has no place in the census. A new package the root binary
-imports shows as `new` units and an unpinned envelope.
+binary, a file a terraform file installs, or a file a unit's `Exec` line
+runs has no fingerprint. It also refuses cgo: no package of the root
+binary may hold cgo files, since releases and the census build with
+`CGO_ENABLED=0`.
-What the census does not see: what the agent writes into a path root
-reads. Root's read is in scope, so a change to how root reads it needs a
-card. A change to what the agent writes there is out of the census. On
-root-facing paths (a file root opens, a record root acts on), checking
-that is the reviewer's job.
+The census pins source, not data. A change to code in scope that writes
+files or records root later reads (agent code in `internal/host`, say)
+needs a card like any other. What the census cannot establish is where
+data on a box came from at runtime: a root read of a path an agent, an
+app or a tenant can write is the reviewer's to check.
### Getting a change approved
-1. `make census-card` prints what changed and writes nothing. Each change
- has a class:
- - `body`: the digest moved and the reads did not;
- - `sites`: more or fewer reads of kinds the unit already makes;
- - `envelope`: a directory was re-pinned;
- - `removed`: the scan finds neither the unit's declaration nor any of
- its sites, or an envelope's directory is gone. A path counts as gone
- only if it is absent by Lstat: no file, directory or symlink there,
- and no symlink above it;
- - `left`: the unit or directory is still in the tree, but the root
- binary no longer holds it (its package left `go list -deps .`, or
- a build tag took its file out);
- - `reads` (a kind of read the unit did not make before), `new` (a
- unit in the root binary that has no row, including one that came back
- into scope), `quiet` (a unit still in scope that reads nothing now,
- a directory still there with no source the census scans, or a path
- replaced by a symlink) or `other` (any census discrepancy none of
- these explains, shown with the census's own message): a decision.
-2. Write a CLAIMS file with one line per changed unit:
- `<file>:<unit><TAB><what changed, and that no read was added or which one was>`.
- A claim for a removed or left unit is optional. A branch that only
- deletes code can pass an empty file.
-3. `make census-propose NAME=<branch> CLAIMS=<file>` writes the rest:
- - the overlay (`testdata/plan14-root-reads-<NAME>.tsv`), each unit
- re-frozen at its existing disposition with the claim appended;
- - for each removed unit, `@remove` for its row and, if its declaration
- was frozen, `@removed` with the basis
- `census-ruling-<NAME>;absent;basis=<claim>`. That removal holds only
- while the declaration stays out of the tree, even one that reads
+1. `make census-card` prints what changed and writes nothing.
+2. Write a CLAIMS file: `<file>:<unit><TAB><what changed, and which read
+ was added if any>`, one line per changed unit. A removed or left
+ unit's claim is optional.
+3. `make census-propose NAME=<branch> CLAIMS=<file>` writes the overlay
+ (`testdata/plan14-root-reads-<NAME>.tsv`), its chain line and the card
+ (`docs/superpowers/notes/census-proposal-<NAME>.md`), for every class:
+ - `body`, `sites`, `reads`: the unit keeps its disposition, re-frozen
+ with the claim;
+ - `new`: a unit with no row, written `legacy`, `accepted-legacy`,
+ frozen;
+ - `quiet`: still declared, reads nothing now: retired while it reads
nothing;
- - for each unit that left scope, the same with `;left;` in place of
- `;absent;`. It holds while the unit stays out of the root binary.
- If it comes back it is `new`, and a hand row re-admits it;
- - for each deleted directory, `@coverage <dir> -`, which retires its
- envelope. The census fails while anything is at that path, even a
- directory of tests or a symlink. A directory that left scope gets
- `@coverage <dir> left`; back in scope it is an envelope nobody
- pinned;
- - the `@legacy` fingerprints, the envelope re-pins and the new seal (a
- deletion alone leaves the seal as it was);
- - its line in `testdata/plan14-root-reads-chain.tsv`;
- - the approval card, `docs/superpowers/notes/census-proposal-<NAME>.md`.
+ - `removed`: gone from the tree, `@removed ...;absent;`; it fails if
+ the declaration comes back anywhere, in scope or not. A deleted
+ directory's envelope is retired with `@coverage <dir> -`;
+ - `left`: still in the tree but no longer in the root binary,
+ `@removed ...;left;` and `@coverage <dir> left`; back in scope it is
+ `new`;
+ - `envelope`: re-pinned; `other`: only the registry schema is closed
+ (`@fields`), anything else fails the proposal and needs a test fix.
It checks that the overlay leaves the census clean, and writes nothing
- if any step fails. If the code changes again, rerun it with the same
- NAME: it replaces its own overlay (only one it wrote itself), which must
- still be the last line of the chain.
-4. Get the approval from an independent reviewer: a model from the other
- family than the one that wrote the change (Astra for a Claude author,
- Opus or Fable for a Codex one), never the author itself. Give it the
- card and the branch's diff against main on the amadan.net remote
- (`origin` or `amadan`, as in the steps above). It gives a verdict for
- every unit and every re-pinned envelope, citing the lines it read:
- - a unit is compared with its recorded disposition and basis, which
- the card lists;
- - an envelope means every changed line in that directory's in-scope
- files and what it reaches, since an envelope re-pin is how the
- census sees reads its scanner cannot attribute to a unit;
- - a removed unit or a retired envelope means confirming the code is
- deleted, not moved, and that no check root relies on goes with it
- unless its callers' changes on the card account for that;
- - a unit or directory that left scope means confirming from the diff
- that the root binary no longer imports or builds it.
-
- It escalates 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 it approves. Record each verdict
- on #280 with the reviewer and the tip. An escalation goes to the
- census owner as a decision.
- Rows carry `rev3=census-ruling-<NAME>` from the start, so there is
- nothing to flip afterwards and no second CI run. Brief the reviewer
- from `docs/superpowers/reviews/REVIEW-BRIEF-TEMPLATE.md`. The round
- budget in "Stopping rules" applies: a census card on the diff of P2
- fixes is checked inside the same budget, not as a new review.
-
-Why a reviewer and not an automatic pass: the classes count kinds of
-read, not where a read points, so a `body` change can aim an existing
-`Open` at a tenant-writable path. Someone other than the author has to
-read the diff, but it need not be the owner.
-
-A deletion is an approval, not a decision (Paul, 2026-10-25, ruling 1 on
-#280): a deletion cannot add a read, and the scan, not the claim, proves
-the unit absent. Leaving scope is an approval for the same reason: root
-runs less. Code that moved is not a deletion. A unit moved whole
-shows as `new`, and a read that moved shows as a change to the unit that
-took it.
-
-### The base and the archive
-
-The census starts from `testdata/census-base.tsv`, sealed by
-`rootReadBaseSeal`. It is the old chain's effective inventory narrowed
-to the root binary's packages on 2026-10-26: rows and frozen declarations byte for
-byte, envelopes pinned afresh (`TestCensusRebaseCarriesDispositions`
-checks it). The old base, its 117 overlays and their manifest are in
-`testdata/archive`. Nothing new goes there. J4's inventory and the
-re-base's own check read it.
-
-J4 (`TestPlan14RootInputInventoryCoverage`) checks its own inventory,
-the 27 archived overlays up to `activation-tools`. Only its rows still
-in the census's scope are checked; a row root no longer runs is reported
-as `left-scope` in its report and not checked. Its caller check covers
-those rows only. A row a later overlay added is never caller-checked. A
-row of J4's inventory is retired when the chain no longer carries it and
-the tree no longer declares its unit. J4 skips a retired row. A row the
-chain removed whose unit is still declared and in scope is still
-checked. A family's witness tests stay required while any authority row
-in the chain names the family and its unit is still declared. That
-includes a row only a later overlay added. Rows outside J4's scope do
-not count: those tagged only E4 or J1 to J4, and the relocation and
-activator worker files. Once no such row names the family, its
-witnesses may go in the same change. A surviving row in scope with no
-production caller still fails, so a deleting branch removes the row or
-keeps the caller. An exemption for a retired unit fails until it is
-deleted with the unit.
-
-The tool refuses decisions (`reads`, `new`, `quiet`, `other`): a new
-kind of read can make a unit's disposition wrong, so it is the owner's
-call, not an approval. Write those rows by hand, following the overlays
-in the archive, and ask on #280 with the card attached; the census owner
-decides those. Within its scope, nothing about the census's strength
-changes: every changed read root runs is still named, digested and read
-by someone other than its author before merge. The record-write census
-(9B8, the `*_census_test.go` inventories) is unchanged and still takes
-hand-written entries.
+ otherwise. Rerun it with the same NAME after more changes.
+4. Brief the reviewer from `docs/superpowers/reviews/REVIEW-BRIEF-TEMPLATE.md`:
+ a model from the other family than the author (Astra for a Claude
+ author, Opus or Fable for a Codex one). It reads the card and the
+ branch's diff against main on the amadan.net remote and gives a
+ verdict for every unit and envelope, citing the lines it read. It
+ rejects, as a finding the author fixes, 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 root
+ relies on; if a new disposition is wrong for the unit's reads; if a
+ removed or left unit moved rather than went; or if the diff cannot
+ settle any of these. Otherwise it approves. Record the verdict on
+ #280 with the reviewer and the tip. The round budget in "Stopping
+ rules" applies.
+
+### The base, the archive and J4
+
+The chain starts from `testdata/census-base.tsv` (seal `rootReadBaseSeal`):
+the old chain's effective inventory narrowed to the scope on 2026-10-26,
+rows and freezes byte for byte, envelopes pinned afresh.
+`TestCensusRebaseCarriesDispositions` checks its exact membership against
+`testdata/census-base-scope.txt`. The old base and its overlays are in
+`testdata/archive`; nothing new goes there.
+
+J4 (`TestPlan14RootInputInventoryCoverage`) checks its archived inventory
+(the overlays up to `activation-tools`) for rows still in scope: a
+production caller and the family's witness tests. A row out of scope is
+reported as `left-scope` and not checked. A row is retired when the chain
+no longer carries it and the tree no longer declares it. A family's
+witnesses stay required while an in-scope authority row of the chain
+names it.
+
+The record-write census (9B8, the `*_census_test.go` inventories) is
+unchanged.
## Rules this repo has paid for
diff --git a/docs/superpowers/notes/census-proposal-c2-root-exec-inputs.md b/docs/superpowers/notes/census-proposal-c2-root-exec-inputs.md
new file mode 100644
index 000000000..e264d2297
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-c2-root-exec-inputs.md
@@ -0,0 +1,21 @@
+# Census approval: c2-root-exec-inputs
+
+Ruling `census-ruling-c2-root-exec-inputs`. The independent reviewer approves or rejects every change below, 11 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `infra/modules/box-fence-writer/tests/writer.tftest.hcl:external`: reads +file:external; written legacy, accepted-legacy, frozen
+- new `infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl:external`: reads +file:external; written legacy, accepted-legacy, frozen
+- new `infra/modules/deployment-buckets/tests/db_reads.tftest.hcl:external`: reads +file:external; written legacy, accepted-legacy, frozen
+- new `infra/modules/deployment-buckets/tests/evidence.tftest.hcl:external`: reads +file:external; written legacy, accepted-legacy, frozen
+- new `infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl:external`: reads +file:external; written legacy, accepted-legacy, frozen
+- new `infra/modules/region-host/tests/console_mail.tftest.hcl:external`: reads +file:external; written legacy, accepted-legacy, frozen
+- new `infra/modules/region-host/tests/instance_metadata.tftest.hcl:external`: reads +file:external; written legacy, accepted-legacy, frozen
+- new `infra/modules/region-host/tests/store_scanning.tftest.hcl:external`: reads +file:external; written legacy, accepted-legacy, frozen
+- new `infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl:external`: reads +file:external; written legacy, accepted-legacy, frozen
+- new `infra/modules/scanner-host/files/scanner-selftest:external`: reads +file:external; written legacy, accepted-legacy, frozen
+- new `infra/modules/scanner-host/tests/scanner_host.tftest.hcl:external`: reads +file:external; written legacy, accepted-legacy, frozen
+
+Seal: `52675c62e9effa43bd8387efa227338efbd7d3335edaf1846c6b2eaf1cd1176c` → `85043db5fa90b66e116e92e63fc33c68dc2ffe9038d8685031a99d42ee1e2ca9`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-c2-root-exec-inputs.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/census_propose_internal_test.go b/internal/provision/census_propose_internal_test.go
index a6e93a9b8..cdd3a2519 100644
--- a/internal/provision/census_propose_internal_test.go
+++ b/internal/provision/census_propose_internal_test.go
@@ -196,21 +196,6 @@ func TestCensusProposalRefuses(t *testing.T) {
claims: map[string]string{"internal/a/a.go:Wake": "x", "internal/a/z.go:Typo": "y"},
want: "not a change",
},
- "a new kind of read": {
- edit: func(g *rootReadScan) {
- change(g, "internal/a/b.go:Route", "registry:Host@5,file:Open@9", strings.Repeat("4", 64))
- },
- claims: map[string]string{"internal/a/b.go:Route": "opens a file"},
- want: "decision",
- },
- "a new unit": {
- edit: func(g *rootReadScan) {
- g.Entries = append(g.Entries, rootReadEntry{File: "internal/a/c.go", Unit: "New", Kinds: "file:Open@1", Digest: strings.Repeat("5", 64)})
- g.Declarations["internal/a/c.go:New"] = strings.Repeat("5", 64)
- },
- claims: map[string]string{"internal/a/c.go:New": "opens a file"},
- want: "decision",
- },
"a claim with a tab": {
edit: func(g *rootReadScan) {
change(g, "internal/a/a.go:Wake", "registry:Host@14,registry:DBPath@24", strings.Repeat("3", 64))
diff --git a/internal/provision/census_propose_test.go b/internal/provision/census_propose_test.go
index 6e1c36fa1..6e3faa4f7 100644
--- a/internal/provision/census_propose_test.go
+++ b/internal/provision/census_propose_test.go
@@ -1,18 +1,14 @@
package provision
-// census-propose (#369): census rulings as approvals. The root-read census
-// (TestPlan14RootReadCensus) fails on any change to a unit it tracks or to
-// a package envelope. Most of those changes are approvals, not decisions:
-// the same reads in an edited body, or an envelope fingerprint that moved.
-// This file classifies each discrepancy, writes the overlay that closes the
-// approvable ones (rows, @legacy fingerprints, envelope re-pins, the seal,
-// the chain manifest line), and the approval card an independent reviewer
-// reads to approve it. A deletion is an approval too (Paul's ruling 1 on
-// #280, 2026-10-25): a unit whose declaration the scan no longer finds, and
-// the envelope of a directory that is gone, since a deletion cannot add a
-// read. Changes that need a disposition (a new unit, a unit still declared
-// that stopped reading, the scanner's field list) are decisions: it names
-// them and writes nothing.
+// census-propose (#369): the root-read census (TestPlan14RootReadCensus)
+// fails on any change to a unit it tracks or to an envelope. This file
+// classifies each discrepancy, writes the overlay that closes it (rows,
+// @legacy fingerprints, envelope re-pins, the seal, the chain manifest
+// line), and the card an independent reviewer reads to approve or reject
+// it. Since Paul's ruling on #280 (2026-10-26) that is every class: a
+// changed unit keeps its disposition, a new unit is frozen accepted-legacy,
+// a unit that stopped reading is retired while it reads nothing, and the
+// reviewer, not the census owner, decides each.
//
// make census-card print the card; writes nothing
// make census-propose NAME=<branch> CLAIMS=<file> write the overlay and the card
@@ -31,7 +27,7 @@ import (
"testing"
)
-// Change classes. The first four are approvals; the rest are decisions.
+// Change classes. The last four get a new disposition (censusNewDisposition).
const (
censusBody = "body" // digest moved, the same reads (offsets aside)
censusSites = "sites" // more or fewer reads of kinds the unit already makes
@@ -39,18 +35,18 @@ const (
censusRemoved = "removed" // a unit's declaration, or an envelope's directory, gone from the tree
censusLeft = "left" // a unit or directory still in the tree that root no longer reaches (C2)
censusReads = "reads" // a kind of read the unit did not make before
- censusNew = "new" // an unclassified unit: needs a disposition
+ censusNew = "new" // an unclassified unit: written frozen accepted-legacy
censusQuiet = "quiet" // still declared and reads nothing now, or a directory still there with no scanned source
censusOther = "other" // a census discrepancy no change above explains
)
-// censusDecision: a new kind of read can make a unit's disposition wrong
-// (a registry reader that starts opening files is not the unit that was
-// classified), so it is the owner's call, as a new unit is (Astra review,
-// census-approvals P1). So is a unit that stays declared and stops reading:
-// it is not a deletion, so the scan cannot vouch that its reads went with
-// it.
-func censusDecision(class string) bool {
+// censusNewDisposition: the classes for which census-propose writes a
+// disposition rather than keeping one: a new kind of read (a registry
+// reader that starts opening files is not the unit that was classified), a
+// new unit, a unit still declared that stopped reading, and anything else
+// the census reports. Since Paul's ruling on #280 (2026-10-26) the
+// independent reviewer decides these too; nothing goes to the census owner.
+func censusNewDisposition(class string) bool {
return class == censusReads || class == censusNew || class == censusQuiet || class == censusOther
}
@@ -266,10 +262,11 @@ var censusName = regexp.MustCompile(`^[a-z0-9][a-z0-9-]*$`)
// claim appended, under census-ruling-<name>. A removed unit loses its row
// (@remove) and, if frozen, has its declaration retired (@removed, with the
// absent mark rootReadAbsentRemoval checks); a removed directory has its
-// envelope retired (@coverage <dir> -). It refuses decisions, a body or
-// sites change with no claim and a claim for no change (a removed unit's
-// claim is optional), and checks its own work: loaded onto a copy of inv,
-// the overlay must leave the census clean.
+// envelope retired (@coverage <dir> -). Every other class gets a row too
+// (Paul's ruling on #280, 2026-10-26, censusNewDisposition): the reviewer
+// decides them all. It refuses a change with no claim and a claim for no
+// change (a removed or left unit's claim is optional), and checks its own
+// work: loaded onto a copy of inv, the overlay must leave the census clean.
func proposeRootReads(got rootReadScan, inv rootReadInventory, seal, name string, claims map[string]string) (rootReadProposal, error) {
if !censusName.MatchString(name) {
return rootReadProposal{}, fmt.Errorf("census name %q: want lower-case letters, digits and dashes", name)
@@ -278,32 +275,25 @@ func proposeRootReads(got rootReadScan, inv rootReadInventory, seal, name string
if len(cs) == 0 {
return rootReadProposal{}, fmt.Errorf("nothing to propose: the census is clean")
}
- var decisions []string
- units := map[string]bool{}
+ // units need a claim; optional holds the changes whose claim may be
+ // left out (a unit deleted, gone out of scope or behind a symlink).
+ units, optional := map[string]bool{}, map[string]bool{}
for _, c := range cs {
- if censusDecision(c.Class) {
- decisions = append(decisions, c.Class+" "+c.Key)
- }
- if c.Class == censusBody || c.Class == censusSites {
+ switch {
+ case c.OldHash != "" || c.Class == censusEnvelope || c.Class == censusOther:
+ case c.Class == censusRemoved || c.Class == censusLeft || (c.Class == censusQuiet && c.After.Digest == ""):
+ optional[c.Key] = true
+ default:
units[c.Key] = true
}
}
- removed := map[string]bool{}
- for _, c := range cs {
- if (c.Class == censusRemoved || c.Class == censusLeft) && c.OldHash == "" {
- removed[c.Key] = true
- }
- }
- if len(decisions) > 0 {
- return rootReadProposal{}, fmt.Errorf("a decision is needed, not an approval: %s; write those rows by hand and ask on #280", strings.Join(decisions, "; "))
- }
for key := range units {
if strings.TrimSpace(claims[key]) == "" {
return rootReadProposal{}, fmt.Errorf("no claim for %s: say what changed in the CLAIMS file", key)
}
}
for key, claim := range claims {
- if !units[key] && !removed[key] {
+ if !units[key] && !optional[key] {
return rootReadProposal{}, fmt.Errorf("claim for %s: not a change the census sees", key)
}
if strings.ContainsAny(claim, "\t\n\r") {
@@ -324,11 +314,42 @@ func proposeRootReads(got rootReadScan, inv rootReadInventory, seal, name string
cover = append(cover, "@coverage\t"+c.Key+"\t-")
continue
}
- if c.Class == censusLeft && c.OldHash != "" {
+ if (c.Class == censusLeft || c.Class == censusQuiet) && c.OldHash != "" {
cover = append(cover, "@coverage\t"+c.Key+"\t"+censusLeftMark)
continue
}
- if c.Class == censusRemoved || c.Class == censusLeft {
+ if c.Class == censusOther {
+ // The one other the tool can close: the registry schema.
+ if c.Key == "changed registry schema" {
+ cover = append(cover, "@fields\t"+strings.Join(got.Fields, ","))
+ }
+ continue
+ }
+ claim := strings.TrimSpace(claims[c.Key])
+ if c.Class == censusNew {
+ e := classifiedRootRead{rootReadEntry: c.After, Class: "legacy", Task: "accepted-legacy", Basis: "accepted-legacy;rev3=" + ruling + ";basis=" + claim}
+ row := strings.Join([]string{e.File, e.Unit, e.Class, e.Task, e.Basis, e.Kinds, e.Digest}, "\t")
+ frozen = append(frozen, "@legacy\t"+rootReadLegacyFingerprint(e)+"\t"+row)
+ plain = append(plain, row)
+ continue
+ }
+ if c.Class == censusQuiet && c.After.Digest != "" {
+ b := c.Before
+ if b.Class != "legacy" {
+ // Still declared, reads nothing: the row stays, with no sites.
+ row := strings.Join([]string{b.File, b.Unit, b.Class, b.Task, b.Basis + ";rev3=" + ruling + ";basis=" + claim, "", c.After.Digest}, "\t")
+ plain = append(plain, row)
+ continue
+ }
+ // A frozen unit that reads nothing now is retired while it
+ // reads nothing (census ruling zddr3's H3 retirement).
+ gone = append(gone, "@remove\t"+b.File+"\t"+b.Unit)
+ if _, isFrozen := inv.Frozen[c.Key]; isFrozen && inv.Removed[c.Key] == "" {
+ gone = append(gone, "@removed\t"+b.File+"\t"+b.Unit+"\tH3\t"+ruling+";basis="+claim)
+ }
+ continue
+ }
+ if c.Class == censusRemoved || c.Class == censusLeft || c.Class == censusQuiet {
b := c.Before
gone = append(gone, "@remove\t"+b.File+"\t"+b.Unit)
if _, isFrozen := inv.Frozen[c.Key]; isFrozen && inv.Removed[c.Key] == "" {
@@ -338,7 +359,7 @@ func proposeRootReads(got rootReadScan, inv rootReadInventory, seal, name string
}
claim := strings.TrimSpace(claims[c.Key])
mark := censusAbsentMark
- if c.Class == censusLeft {
+ if c.Class == censusLeft || c.Class == censusQuiet {
mark = censusLeftMark
if claim == "" {
claim = "left scope: still declared, no longer in the root binary"
@@ -351,7 +372,7 @@ func proposeRootReads(got rootReadScan, inv rootReadInventory, seal, name string
}
continue
}
- e := classifiedRootRead{rootReadEntry: c.After, Class: c.Before.Class, Task: c.Before.Task, Basis: c.Before.Basis + ";rev3=" + ruling + ";basis=" + strings.TrimSpace(claims[c.Key])}
+ e := classifiedRootRead{rootReadEntry: c.After, Class: c.Before.Class, Task: c.Before.Task, Basis: c.Before.Basis + ";rev3=" + ruling + ";basis=" + claim}
row := strings.Join([]string{e.File, e.Unit, e.Class, e.Task, e.Basis, e.Kinds, e.Digest}, "\t")
if e.Class == "legacy" {
frozen = append(frozen, "@legacy\t"+rootReadLegacyFingerprint(e)+"\t"+row)
@@ -365,6 +386,9 @@ func proposeRootReads(got rootReadScan, inv rootReadInventory, seal, name string
if counts[censusRemoved] > 0 {
header = append(header, fmt.Sprintf("# %d removed: each unit's declaration, or each envelope's directory, is absent from the scanned tree, so its row goes, a frozen declaration is retired as absent, and an envelope is retired.", counts[censusRemoved]))
}
+ if n := counts[censusReads] + counts[censusNew] + counts[censusQuiet] + counts[censusOther]; n > 0 {
+ header = append(header, fmt.Sprintf("# %d new dispositions: %d reads re-frozen at their disposition with the claim, %d new units frozen accepted-legacy, %d quiet units retired while they read nothing, %d other.", n, counts[censusReads], counts[censusNew], counts[censusQuiet], counts[censusOther]))
+ }
if counts[censusLeft] > 0 {
header = append(header, fmt.Sprintf("# %d left scope: still in the tree, no longer in the root binary, so its row goes, a frozen declaration is retired while it stays out, and an envelope leaves.", counts[censusLeft]))
}
@@ -411,7 +435,7 @@ func rootReadCard(name string, cs []censusChange, claims map[string]string, seal
var units, removed, left []censusChange
for _, c := range cs {
switch {
- case censusDecision(c.Class):
+ case censusNewDisposition(c.Class):
decisions = append(decisions, c)
case c.Class == censusEnvelope:
envelopes = append(envelopes, "`"+c.Key+"`")
@@ -431,10 +455,8 @@ func rootReadCard(name string, cs []censusChange, claims map[string]string, seal
case len(cs) == 0:
fmt.Fprintf(&b, "Nothing to approve: the census is clean (seal `%s`).\n", seal)
return b.String()
- case len(decisions) == 0:
- fmt.Fprintf(&b, "Ruling `census-ruling-%s`. Every change below keeps the disposition it already has, so it needs an approval, not a decision.\n\n", name)
default:
- fmt.Fprintf(&b, "Ruling `census-ruling-%s`. %d change(s) need a decision (below), which census-propose cannot write.\n\n", name, len(decisions))
+ fmt.Fprintf(&b, "Ruling `census-ruling-%s`. The independent reviewer approves or rejects every change below, %d with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).\n\n", name, len(decisions))
}
if len(units) > 0 {
b.WriteString("| unit | change | read sites | what changed |\n|---|---|---|---|\n")
@@ -495,14 +517,18 @@ func rootReadCard(name string, cs []censusChange, claims map[string]string, seal
b.WriteString("\n")
}
if len(decisions) > 0 {
- b.WriteString("Decisions (write their rows by hand and ask on #280):\n\n")
+ b.WriteString("New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:\n\n")
for _, c := range decisions {
detail := ""
switch c.Class {
case censusNew:
- detail = ": reads " + kindDiff("", c.After.Kinds)
+ detail = ": reads " + kindDiff("", c.After.Kinds) + "; written legacy, accepted-legacy, frozen"
case censusReads:
- detail = ": " + kindDiff(c.Before.Kinds, c.After.Kinds)
+ detail = ": " + kindDiff(c.Before.Kinds, c.After.Kinds) + "; keeps " + c.Before.Class + ", task " + c.Before.Task
+ case censusQuiet:
+ detail = ": reads nothing now; retired while it reads nothing (or its row keeps no sites)"
+ case censusOther:
+ detail = ": closed only if it is the registry schema (re-pinned)"
}
fmt.Fprintf(&b, "- %s `%s`%s\n", c.Class, c.Key, detail)
}
diff --git a/internal/provision/census_rebase_proof_test.go b/internal/provision/census_rebase_proof_test.go
index 2e47bf5a6..ddfa3484b 100644
--- a/internal/provision/census_rebase_proof_test.go
+++ b/internal/provision/census_rebase_proof_test.go
@@ -31,7 +31,7 @@ func approve(t *testing.T, got rootReadScan, inv rootReadInventory, seal string)
t.Helper()
claims := map[string]string{}
for _, c := range classifyRootReads(got, inv, seal) {
- if c.Class == censusBody || c.Class == censusSites {
+ if c.OldHash == "" && c.Class != censusEnvelope && c.Class != censusOther && c.Class != censusRemoved && c.Class != censusLeft {
claims[c.Key] = "test edit"
}
}
@@ -85,7 +85,7 @@ func TestCensusRebaseProofInScopeEditsFailUntilApproved(t *testing.T) {
approve(t, got, inv, seal)
})
}
- // A changed read in a root unit is a decision, as before.
+ // A changed read in a root unit is class reads.
root, inv, seal := cleanCensus(t)
editFile(t, root, "internal/host/host.go", `func readConfig() { os.ReadFile("/data/config") }`, `func readConfig() { os.ReadFile("/data/config"); os.Stat("/data/x") }`)
if classes := classesOf(classifyRootReads(scopedTree(t, root), inv, seal)); classes[readConfigUnit] != censusReads {
@@ -93,8 +93,9 @@ func TestCensusRebaseProofInScopeEditsFailUntilApproved(t *testing.T) {
}
}
-// A package the root binary starts to import is new: its reads are a
-// decision and its envelope unpinned.
+// A package the root binary starts to import is new: it fails the census
+// until census-propose writes its rows (frozen accepted-legacy) and the
+// reviewer approves them.
func TestCensusRebaseProofNewRootPackageFails(t *testing.T) {
root, inv, seal := cleanCensus(t)
writeTree(t, root, map[string]string{"internal/newpkg/new.go": "package newpkg\n\nimport \"os\"\n\nfunc Read() { os.ReadFile(\"/data/new\") }\n"})
@@ -106,9 +107,10 @@ func TestCensusRebaseProofNewRootPackageFails(t *testing.T) {
if errs := censusDiscrepancies(got, inv, seal); !containsPrefix(errs, "unclassified root read internal/newpkg/new.go:Read") || !containsPrefix(errs, "changed root source envelope internal/newpkg") {
t.Fatalf("a new root package: %v", errs)
}
- if _, err := proposeRootReads(got, inv, seal, "x", map[string]string{"internal/host/history.go:var _": "x"}); err == nil || !strings.Contains(err.Error(), "new internal/newpkg/new.go:Read") {
- t.Fatalf("propose: %v, want the new unit named as a decision", err)
+ if classes := classesOf(classifyRootReads(got, inv, seal)); classes["internal/newpkg/new.go:Read"] != censusNew {
+ t.Fatalf("classes %v", classes)
}
+ approve(t, got, inv, seal)
}
// A file and an embed only the arm64 build holds are in scope and
diff --git a/internal/provision/census_rebase_test.go b/internal/provision/census_rebase_test.go
index 93553833d..9ec217746 100644
--- a/internal/provision/census_rebase_test.go
+++ b/internal/provision/census_rebase_test.go
@@ -28,15 +28,12 @@ func TestCensusRebaseCarriesDispositions(t *testing.T) {
if err := loadRootReadInventory(filepath.Join(root, rootReadBase), &base, false); err != nil {
t.Fatal(err)
}
- for key, e := range base.Entries {
- if a, ok := archived.Entries[key]; !ok || a != e {
- t.Errorf("base row %s is not the archived chain's", key)
- }
+ scope, err := readRebaseScope(filepath.Join(root, rootReadBaseScope))
+ if err != nil {
+ t.Fatal(err)
}
- for key, f := range base.Frozen {
- if a, ok := archived.Frozen[key]; !ok || a != f || archived.Removed[key] != "" {
- t.Errorf("base freeze %s is not a live freeze of the archived chain", key)
- }
+ for _, e := range checkRebaseMembership(archived, base, scope) {
+ t.Error(e)
}
if len(base.Removed) != 0 || len(base.Retired) != 0 {
t.Errorf("the base removes or retires: %v %v", base.Removed, base.Retired)
@@ -50,6 +47,89 @@ func TestCensusRebaseCarriesDispositions(t *testing.T) {
t.Logf("base: %d units, %d frozen, %d envelopes; archived: %d units, %d frozen, %d envelopes", len(base.Entries), len(base.Frozen), len(base.Coverage), len(archived.Entries), len(archived.Frozen), len(archived.Coverage))
}
+// rootReadBaseScope lists the files in the census's scope when the base
+// was written: the fixed scope the base's membership is checked against.
+const rootReadBaseScope = "internal/provision/testdata/census-base-scope.txt"
+
+func readRebaseScope(path string) (map[string]bool, error) {
+ raw, err := os.ReadFile(path)
+ if err != nil {
+ return nil, err
+ }
+ scope := map[string]bool{}
+ for _, line := range strings.Split(string(raw), "\n") {
+ if line != "" && !strings.HasPrefix(line, "#") {
+ scope[line] = true
+ }
+ }
+ return scope, nil
+}
+
+// checkRebaseMembership is the base's exact membership (Astra round 3 on
+// C2): every archived row of a file in the fixed scope is in the base,
+// byte for byte, and nothing else is; the same for live freezes.
+func checkRebaseMembership(archived, base rootReadInventory, scope map[string]bool) []string {
+ var errs []string
+ for key, a := range archived.Entries {
+ if !scope[a.File] {
+ continue
+ }
+ if e, ok := base.Entries[key]; !ok {
+ errs = append(errs, "archived row "+key+" is in scope but not in the base")
+ } else if e != a {
+ errs = append(errs, "base row "+key+" is not the archived chain's")
+ }
+ }
+ for key, e := range base.Entries {
+ if a, ok := archived.Entries[key]; !ok || a != e || !scope[e.File] {
+ errs = append(errs, "base row "+key+" is not an archived row in scope")
+ }
+ }
+ for key, f := range archived.Frozen {
+ if !scope[f.File] || archived.Removed[key] != "" {
+ continue
+ }
+ if b, ok := base.Frozen[key]; !ok || b != f {
+ errs = append(errs, "archived freeze "+key+" is in scope but not in the base")
+ }
+ }
+ for key, f := range base.Frozen {
+ if a, ok := archived.Frozen[key]; !ok || a != f || archived.Removed[key] != "" || !scope[f.File] {
+ errs = append(errs, "base freeze "+key+" is not a live archived freeze in scope")
+ }
+ }
+ sort.Strings(errs)
+ return errs
+}
+
+// Deleting a row with no read sites, which nothing else would miss, fails
+// the membership check.
+func TestCensusRebaseMembershipCatchesAMissingRow(t *testing.T) {
+ root := censusRoot(t)
+ archived, _ := rootReadArchivedChain(t, root)
+ base := rootReadInventory{Entries: map[string]classifiedRootRead{}, Coverage: map[string]string{}}
+ if err := loadRootReadInventory(filepath.Join(root, rootReadBase), &base, false); err != nil {
+ t.Fatal(err)
+ }
+ scope, err := readRebaseScope(filepath.Join(root, rootReadBaseScope))
+ if err != nil {
+ t.Fatal(err)
+ }
+ victim := ""
+ for key, e := range base.Entries {
+ if e.Kinds == "" && base.Frozen[key].File == "" && (victim == "" || key < victim) {
+ victim = key
+ }
+ }
+ if victim == "" {
+ t.Fatal("no row without sites to delete")
+ }
+ delete(base.Entries, victim)
+ if errs := checkRebaseMembership(archived, base, scope); !containsPrefix(errs, "archived row "+victim+" is in scope but not in the base") {
+ t.Fatalf("a deleted row %s: %v", victim, errs)
+ }
+}
+
// TestCensusRebaseWrite writes the base from the archived chain and the
// tree as it is (CARLOS_CENSUS_REBASE=1). It refuses unless the archived
// chain is clean against the whole tree and the new chain has no
@@ -81,6 +161,20 @@ func TestCensusRebaseWrite(t *testing.T) {
if err := os.WriteFile(filepath.Join(root, rootReadBase), []byte(text), 0o644); err != nil {
t.Fatal(err)
}
+ files := map[string]bool{}
+ for key := range scoped.Declarations {
+ file, _, _ := strings.Cut(key, ":")
+ files[file] = true
+ }
+ var list []string
+ for f := range files {
+ list = append(list, f)
+ }
+ sort.Strings(list)
+ scopeText := "# The files in the census's scope when census-base.tsv was written (TestCensusRebaseWrite).\n" + strings.Join(list, "\n") + "\n"
+ if err := os.WriteFile(filepath.Join(root, rootReadBaseScope), []byte(scopeText), 0o644); err != nil {
+ t.Fatal(err)
+ }
base := rootReadInventory{Entries: map[string]classifiedRootRead{}, Coverage: map[string]string{}}
if err := loadRootReadInventory(filepath.Join(root, rootReadBase), &base, false); err != nil {
t.Fatal(err)
@@ -109,11 +203,9 @@ func rootReadRebase(archived rootReadInventory, scoped rootReadScan) (string, er
rows = append(rows, row(e))
}
}
- for _, e := range scoped.Entries {
- if _, ok := archived.Entries[e.File+":"+e.Unit]; !ok {
- return "", fmt.Errorf("scanned unit %s:%s has no archived row", e.File, e.Unit)
- }
- }
+ // A unit in scope with no archived row (a file the old scanner never
+ // took, such as an extensionless script infra installs) is not carried:
+ // it is a new unit, written by the first overlay on the base.
for dir, hash := range scoped.Coverage {
cover = append(cover, "@coverage\t"+dir+"\t"+hash)
}
diff --git a/internal/provision/census_removal_fs_test.go b/internal/provision/census_removal_fs_test.go
index a60c1871e..5ac7887e5 100644
--- a/internal/provision/census_removal_fs_test.go
+++ b/internal/provision/census_removal_fs_test.go
@@ -167,8 +167,10 @@ func TestCensusRemovalThroughTheScanner(t *testing.T) {
}
// Replacing a directory with a symlink, or leaving its tests behind, is
-// not a deletion: quiet, a decision census-propose refuses.
-func TestCensusRemovalRefusesWhatIsStillThere(t *testing.T) {
+// not a deletion: quiet, never written as absent. census-propose writes it
+// as gone out of scope, and the card names it quiet for the reviewer
+// (Paul's ruling on #280, 2026-10-26).
+func TestCensusRemovalWritesWhatIsStillThereAsQuiet(t *testing.T) {
for name, edit := range map[string]func(t *testing.T, root string){
"replaced by a symlink": func(t *testing.T, root string) {
if err := os.RemoveAll(filepath.Join(root, "internal/gone")); err != nil {
@@ -198,8 +200,22 @@ func TestCensusRemovalRefusesWhatIsStillThere(t *testing.T) {
if name == "replaced by a symlink" && (classes[goneUnit] != censusQuiet || classes[goneShell] != censusQuiet) {
t.Fatalf("units behind a symlinked directory: %v", classes)
}
- if _, err := proposeRootReads(got, inv, seal, "x", nil); err == nil || !strings.Contains(err.Error(), "decision") {
- t.Fatalf("err = %v, want a decision", err)
+ p, err := proposeRootReads(got, inv, seal, "x", nil)
+ if err != nil {
+ t.Fatal(err)
+ }
+ // The directory is still there: never retired as gone. Units
+ // behind a symlink are not written absent either.
+ symlinked := name == "replaced by a symlink" && strings.Contains(p.Overlay, ";absent;")
+ if symlinked || strings.Contains(p.Overlay, "@coverage\tinternal/gone\t-") || !strings.Contains(p.Card, "quiet `internal/gone`") {
+ t.Fatalf("written as a deletion:\n%s\n%s", p.Overlay, p.Card)
+ }
+ after := cloneRootReadInventory(inv)
+ if err := loadRootReadInventory(writeOverlay(t, p.Overlay), &after, true); err != nil {
+ t.Fatal(err)
+ }
+ if errs := censusDiscrepancies(got, after, p.Seal); len(errs) != 0 {
+ t.Fatalf("after the proposal: %v\n%s", errs, p.Overlay)
}
})
}
diff --git a/internal/provision/census_removal_test.go b/internal/provision/census_removal_test.go
index 70727fd03..f9ae7a0fd 100644
--- a/internal/provision/census_removal_test.go
+++ b/internal/provision/census_removal_test.go
@@ -102,9 +102,10 @@ func classesOf(cs []censusChange) map[string]string {
return out
}
-// A unit gone from the tree is removed, an approval; a unit still declared
-// that reads nothing now is quiet, a decision, as is a directory that lost
-// its source but is still there.
+// A unit gone from the tree is removed; a unit still declared that reads
+// nothing now is quiet, as is a directory that lost its source but is
+// still there. Both get rows (Paul's ruling on #280, 2026-10-26): the quiet
+// unit is retired while it reads nothing, the directory's envelope leaves.
func TestCensusClassifiesRemovedAndQuiet(t *testing.T) {
got, inv, seal := proposeFixture(t)
deletePackage(&got)
@@ -118,8 +119,8 @@ func TestCensusClassifiesRemovedAndQuiet(t *testing.T) {
}
}
}
- if censusDecision(censusRemoved) || !censusDecision(censusQuiet) {
- t.Fatal("removed must be an approval and quiet a decision")
+ if censusNewDisposition(censusRemoved) || !censusNewDisposition(censusQuiet) {
+ t.Fatal("removed keeps its disposition; quiet gets a new one")
}
quiet, inv, seal := proposeFixture(t)
@@ -130,8 +131,19 @@ func TestCensusClassifiesRemovedAndQuiet(t *testing.T) {
if classes["internal/a/a.go:Wake"] != censusQuiet || classes["internal/a"] != censusQuiet {
t.Fatalf("still declared, or a directory still there: %v", classes)
}
- if _, err := proposeRootReads(quiet, inv, seal, "x", nil); err == nil || !strings.Contains(err.Error(), "decision") {
- t.Fatalf("quiet proposed: %v", err)
+ if _, err := proposeRootReads(quiet, inv, seal, "x", nil); err == nil || !strings.Contains(err.Error(), "no claim") {
+ t.Fatalf("quiet with no claim: %v", err)
+ }
+ p, err := proposeRootReads(quiet, inv, seal, "x", map[string]string{"internal/a/a.go:Wake": "reads nothing now"})
+ if err != nil {
+ t.Fatal(err)
+ }
+ after := cloneRootReadInventory(inv)
+ if err := loadRootReadInventory(writeOverlay(t, p.Overlay), &after, true); err != nil {
+ t.Fatal(err)
+ }
+ if errs := censusDiscrepancies(quiet, after, p.Seal); len(errs) != 0 {
+ t.Fatalf("after the proposal: %v\n%s", errs, p.Overlay)
}
}
@@ -178,33 +190,47 @@ func TestCensusProposalRetiresADeletedPackage(t *testing.T) {
t.Errorf("card lacks %q:\n%s", want, p.Card)
}
}
- if !strings.Contains(p.Card, "needs an approval, not a decision") {
+ if !strings.Contains(p.Card, "nothing goes to the census owner") {
t.Errorf("card:\n%s", p.Card)
}
}
-// A deletion beside a changed or new read is still refused: census-propose
-// writes nothing while any decision is on the card.
-func TestCensusProposalRefusesADeletionWithAChangedRead(t *testing.T) {
- for name, edit := range map[string]func(*rootReadScan){
- "a new kind of read in a surviving unit": func(g *rootReadScan) {
+// A deletion beside a changed or new read: census-propose writes both, and
+// the card lists the new disposition for the reviewer.
+func TestCensusProposalWritesADeletionBesideAChangedRead(t *testing.T) {
+ for name, tc := range map[string]struct {
+ edit func(*rootReadScan)
+ key string
+ }{
+ "a new kind of read in a surviving unit": {func(g *rootReadScan) {
g.Entries = g.Entries[:1]
delete(g.Declarations, "internal/a/b.go:Route")
change(g, "internal/a/a.go:Wake", "registry:Host@10,registry:DBPath@20,file:Open@30", strings.Repeat("8", 64))
- },
- "the deleted unit's name back in another file": func(g *rootReadScan) {
+ }, "internal/a/a.go:Wake"},
+ "the deleted unit's name back in another file": {func(g *rootReadScan) {
deletePackage(g)
g.Entries = []rootReadEntry{{File: "internal/z/b.go", Unit: "Route", Kinds: "registry:Host@5", Digest: strings.Repeat("2", 64)}}
g.Declarations["internal/z/b.go:Route"] = strings.Repeat("2", 64)
g.Coverage["internal/z"] = strings.Repeat("f", 64)
g.Dirs["internal/z"] = true
- },
+ }, "internal/z/b.go:Route"},
} {
t.Run(name, func(t *testing.T) {
got, inv, seal := proposeFixture(t)
- edit(&got)
- if _, err := proposeRootReads(got, inv, seal, "x", nil); err == nil || !strings.Contains(err.Error(), "decision") {
- t.Fatalf("err = %v, want a decision", err)
+ tc.edit(&got)
+ p, err := proposeRootReads(got, inv, seal, "x", map[string]string{tc.key: "a claim"})
+ if err != nil {
+ t.Fatal(err)
+ }
+ if !strings.Contains(p.Card, "New dispositions") || !strings.Contains(p.Card, tc.key) {
+ t.Fatalf("card:\n%s", p.Card)
+ }
+ after := cloneRootReadInventory(inv)
+ if err := loadRootReadInventory(writeOverlay(t, p.Overlay), &after, true); err != nil {
+ t.Fatal(err)
+ }
+ if errs := censusDiscrepancies(got, after, p.Seal); len(errs) != 0 {
+ t.Fatalf("after the proposal: %v\n%s", errs, p.Overlay)
}
})
}
diff --git a/internal/provision/census_round3_test.go b/internal/provision/census_round3_test.go
new file mode 100644
index 000000000..c66866dec
--- /dev/null
+++ b/internal/provision/census_round3_test.go
@@ -0,0 +1,198 @@
+package provision
+
+// Astra round 3 on C2 and Paul's ruling on #280 (2026-10-26): every file
+// infra installs or a root unit runs is fingerprinted whatever its
+// extension; cgo is refused, not half covered; a deletion's absence holds
+// outside scope too; and census-propose writes a row for every class, for
+// the independent reviewer to approve or reject.
+
+import (
+ "strings"
+ "testing"
+)
+
+// execFiles adds an infra module that installs an extensionless script and
+// a unit that runs it as root, as infra/modules/scanner-host does.
+func execFiles() map[string]string {
+ return map[string]string{
+ "infra/modules/scan/main.tf": "locals {\n selftest = base64encode(file(\"${path.module}/files/selftest\"))\n}\n",
+ "infra/modules/scan/files/selftest": "#!/bin/sh\nclamdscan --ping 1 || exit 1\n",
+ "infra/modules/scan/files/selftest.service": "[Service]\nType=oneshot\nExecStart=/usr/local/sbin/selftest\n",
+ "infra/modules/scan/README.md": "notes\n",
+ }
+}
+
+// The P1's mutation proof: the extensionless script root runs is a census
+// unit, the guard sees every execution input fingerprinted, and editing
+// the script fails the census.
+func TestCensusRootExecutedScriptIsFingerprinted(t *testing.T) {
+ root := scopeTree(t)
+ writeTree(t, root, execFiles())
+ inv, seal := inventoryOf(scopedTree(t, root))
+ got := scopedTree(t, root)
+ if !rootReadScanned(got, "infra/modules/scan/files/selftest:external") {
+ t.Fatal("the extensionless script root runs is not a census unit")
+ }
+ if rootReadScanned(got, "infra/modules/scan/README.md:external") {
+ t.Fatal("infra documentation became a census unit")
+ }
+ if errs, err := checkRootExecInputs(root, got); err != nil || len(errs) != 0 {
+ t.Fatalf("guard: %v %v", errs, err)
+ }
+ editFile(t, root, "infra/modules/scan/files/selftest", "clamdscan --ping 1 || exit 1", "exit 0")
+ if errs := censusDiscrepancies(scopedTree(t, root), inv, seal); !containsPrefix(errs, "changed root read infra/modules/scan/files/selftest:external") {
+ t.Fatalf("an edit to the script root runs: %v", errs)
+ }
+ // The guard fails when a file terraform installs, or a unit runs, has
+ // no fingerprint.
+ unprinted := got
+ unprinted.Entries = nil
+ for _, e := range got.Entries {
+ if e.File != "infra/modules/scan/files/selftest" {
+ unprinted.Entries = append(unprinted.Entries, e)
+ }
+ }
+ errs, err := checkRootExecInputs(root, unprinted)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if !containsPrefix(errs, "infra/modules/scan/main.tf installs infra/modules/scan/files/selftest") || !containsPrefix(errs, "infra/modules/scan/files/selftest.service runs infra/modules/scan/files/selftest") {
+ t.Fatalf("guard on an unprinted script: %v", errs)
+ }
+}
+
+// cgo is refused: no package of the root binary may hold cgo files on a
+// linux build with cgo on, since the census scans the build with it off.
+func TestCensusCgoIsRefused(t *testing.T) {
+ root := scopeTree(t)
+ if errs, err := checkRootNoCgo(root); err != nil || len(errs) != 0 {
+ t.Fatalf("a module with no cgo: %v %v", errs, err)
+ }
+ writeTree(t, root, map[string]string{"internal/host/c_linux.go": "package host\n\n// #include <stdlib.h>\nimport \"C\"\n\nfunc cRead() { C.free(nil) }\n"})
+ errs, err := checkRootNoCgo(root)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if !containsPrefix(errs, "internal/host holds cgo files") {
+ t.Fatalf("a cgo file in a root package: %v", errs)
+ }
+}
+
+// An R0 deletion's absence holds against declarations outside scope too:
+// a removed unit back in a file only darwin builds fails. A left removal
+// stays scope-only.
+func TestCensusAbsentRemovalHoldsOutsideScope(t *testing.T) {
+ root := scopeTree(t)
+ const unit = "internal/host/history.go:readHistory"
+ inv, seal := inventoryOf(scopedTree(t, root), unit)
+ original := scopeFiles()["internal/host/history.go"]
+ if err := removeFile(root, "internal/host/history.go"); err != nil {
+ t.Fatal(err)
+ }
+ got := scopedTree(t, root)
+ if classes := classesOf(classifyRootReads(got, inv, seal)); classes[unit] != censusRemoved {
+ t.Fatalf("classes %v", classes)
+ }
+ p, err := proposeRootReads(got, inv, seal, "drop-history", nil)
+ if err != nil {
+ t.Fatal(err)
+ }
+ after := cloneRootReadInventory(inv)
+ if err := loadRootReadInventory(writeOverlay(t, p.Overlay), &after, true); err != nil {
+ t.Fatal(err)
+ }
+ if errs := censusDiscrepancies(got, after, p.Seal); len(errs) != 0 {
+ t.Fatalf("after the overlay: %v", errs)
+ }
+ writeTree(t, root, map[string]string{"internal/host/history.go": "//go:build darwin\n\n" + original})
+ back := scopedTree(t, root)
+ if !back.Outside[unit] {
+ t.Fatalf("%s is not declared outside scope", unit)
+ }
+ if errs := censusDiscrepancies(back, after, p.Seal); !containsPrefix(errs, "removed legacy declaration still present "+unit) {
+ t.Fatalf("a deleted unit back outside scope: %v", errs)
+ }
+}
+
+// Paul's ruling (2026-10-26): census-propose writes a row for every class.
+// A new kind of read keeps its disposition with the claim; a new unit is
+// frozen accepted-legacy; a unit still declared that reads nothing is
+// retired while it reads nothing; a changed registry schema is re-pinned.
+// Each closes the census, and the card lists it for the reviewer.
+func TestCensusProposalWritesEveryClass(t *testing.T) {
+ for name, tc := range map[string]struct {
+ edit func(*rootReadScan)
+ key string
+ class string
+ row string
+ }{
+ "a new kind of read": {
+ edit: func(g *rootReadScan) {
+ change(g, "internal/a/b.go:Route", "registry:Host@5,file:Open@9", strings.Repeat("4", 64))
+ },
+ key: "internal/a/b.go:Route",
+ class: censusReads,
+ row: "internal/a/b.go\tRoute\tauthority\tE4\troot-route;rev3=census-ruling-x;basis=a claim\tregistry:Host@5,file:Open@9\t",
+ },
+ "a new unit": {
+ edit: func(g *rootReadScan) {
+ g.Entries = append(g.Entries, rootReadEntry{File: "internal/a/c.go", Unit: "New", Kinds: "file:Open@1", Digest: strings.Repeat("5", 64)})
+ g.Declarations["internal/a/c.go:New"] = strings.Repeat("5", 64)
+ },
+ key: "internal/a/c.go:New",
+ class: censusNew,
+ row: "@legacy\t",
+ },
+ "a unit that reads nothing now": {
+ edit: func(g *rootReadScan) {
+ g.Entries = g.Entries[1:]
+ g.Declarations["internal/a/a.go:Wake"] = strings.Repeat("7", 64)
+ },
+ key: "internal/a/a.go:Wake",
+ class: censusQuiet,
+ row: "@removed\tinternal/a/a.go\tWake\tH3\tcensus-ruling-x;basis=a claim",
+ },
+ } {
+ t.Run(name, func(t *testing.T) {
+ got, inv, seal := proposeFixture(t)
+ tc.edit(&got)
+ if classes := classesOf(classifyRootReads(got, inv, seal)); classes[tc.key] != tc.class {
+ t.Fatalf("classes %v", classes)
+ }
+ p, err := proposeRootReads(got, inv, seal, "x", map[string]string{tc.key: "a claim"})
+ if err != nil {
+ t.Fatal(err)
+ }
+ if !strings.Contains(p.Overlay, tc.row) {
+ t.Fatalf("overlay lacks %q:\n%s", tc.row, p.Overlay)
+ }
+ if !strings.Contains(p.Card, tc.key) || !strings.Contains(p.Card, "New dispositions") {
+ t.Fatalf("card:\n%s", p.Card)
+ }
+ after := cloneRootReadInventory(inv)
+ if err := loadRootReadInventory(writeOverlay(t, p.Overlay), &after, true); err != nil {
+ t.Fatal(err)
+ }
+ if errs := censusDiscrepancies(got, after, p.Seal); len(errs) != 0 {
+ t.Fatalf("after the overlay: %v\n%s", errs, p.Overlay)
+ }
+ })
+ }
+ // The registry schema: re-pinned.
+ got, inv, seal := proposeFixture(t)
+ got.Fields = []string{"Host", "Socket"}
+ p, err := proposeRootReads(got, inv, seal, "x", nil)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if !strings.Contains(p.Overlay, "@fields\tHost,Socket\n") {
+ t.Fatalf("overlay:\n%s", p.Overlay)
+ }
+ // A new unit still needs its claim.
+ got, inv, seal = proposeFixture(t)
+ got.Entries = append(got.Entries, rootReadEntry{File: "internal/a/c.go", Unit: "New", Kinds: "file:Open@1", Digest: strings.Repeat("5", 64)})
+ got.Declarations["internal/a/c.go:New"] = strings.Repeat("5", 64)
+ if _, err := proposeRootReads(got, inv, seal, "x", nil); err == nil || !strings.Contains(err.Error(), "no claim") {
+ t.Fatalf("a new unit with no claim: %v", err)
+ }
+}
diff --git a/internal/provision/census_scope_fixture_test.go b/internal/provision/census_scope_fixture_test.go
index d9c70dc10..566268e3f 100644
--- a/internal/provision/census_scope_fixture_test.go
+++ b/internal/provision/census_scope_fixture_test.go
@@ -205,8 +205,8 @@ func TestCensusLeftPackageIsAnApproval(t *testing.T) {
if classes["internal/helper/helper.go:Load"] != censusLeft || classes["internal/helper"] != censusLeft || classes["internal/host"] != censusEnvelope {
t.Fatalf("classes %v", classes)
}
- if censusDecision(censusLeft) {
- t.Fatal("left must be an approval")
+ if censusNewDisposition(censusLeft) {
+ t.Fatal("left keeps its disposition")
}
p, err := proposeRootReads(got, inv, seal, "drop-helper", nil)
if err != nil {
@@ -228,7 +228,7 @@ func TestCensusLeftPackageIsAnApproval(t *testing.T) {
t.Fatalf("after the overlay: %v", errs)
}
- // Linked again with no row: a new unit, a decision, and an unpinned envelope.
+ // Linked again with no row: a new unit and an unpinned envelope.
editFile(t, root, "internal/host/host.go", "\t_ \"fixture/root/internal/initpkg\"\n", "\t\"fixture/root/internal/helper\"\n\t_ \"fixture/root/internal/initpkg\"\n")
editFile(t, root, "internal/host/host.go", "\treadConfig()\n", "\treadConfig()\n\thelper.Load()\n")
back := scopedTree(t, root)
diff --git a/internal/provision/census_scope_guard_test.go b/internal/provision/census_scope_guard_test.go
index b1d90453f..f077f8a4e 100644
--- a/internal/provision/census_scope_guard_test.go
+++ b/internal/provision/census_scope_guard_test.go
@@ -7,7 +7,10 @@ import (
// TestCensusScopeIsTheRootBinary: the census's scope is the root carlos
// binary's packages and embeds for linux on amd64 and arm64, asked of go
-// list independently of how the scope was built.
+// list independently of how the scope was built; every file infra
+// installs or a unit runs is fingerprinted; and no package of the root
+// binary holds cgo files, which the census, scanning with cgo off, would
+// not see.
func TestCensusScopeIsTheRootBinary(t *testing.T) {
t.Parallel()
root := censusRoot(t)
@@ -15,11 +18,19 @@ func TestCensusScopeIsTheRootBinary(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- errs, err := checkRootScopeIsBinary(root, scan)
- if err != nil {
- t.Fatal(err)
+ var all []string
+ for _, check := range []func() ([]string, error){
+ func() ([]string, error) { return checkRootScopeIsBinary(root, scan) },
+ func() ([]string, error) { return checkRootExecInputs(root, scan) },
+ func() ([]string, error) { return checkRootNoCgo(root) },
+ } {
+ errs, err := check()
+ if err != nil {
+ t.Fatal(err)
+ }
+ all = append(all, errs...)
}
- if len(errs) != 0 {
- t.Fatal(strings.Join(errs, "\n"))
+ if len(all) != 0 {
+ t.Fatal(strings.Join(all, "\n"))
}
}
diff --git a/internal/provision/census_scope_test.go b/internal/provision/census_scope_test.go
index 21283aee0..8dee7482d 100644
--- a/internal/provision/census_scope_test.go
+++ b/internal/provision/census_scope_test.go
@@ -18,9 +18,11 @@ import (
"encoding/json"
"fmt"
"io"
+ "io/fs"
"os"
"os/exec"
"path/filepath"
+ "regexp"
"sort"
"strings"
"sync"
@@ -116,11 +118,16 @@ func rootReadScopedShared(root string) (rootReadScan, error) {
return r.scan, r.err
}
+// rootExecDirs hold what root installs and runs that is not Go: every
+// regular file in them is in scope, Markdown aside.
+var rootExecDirs = []string{"infra", "internal/host/units"}
+
// rootReadScope narrows a scan of the whole tree to the root binary's
// source. In scope: every file s lists, the non-Go files the scanner
// takes (units, shell, tf and the like) in a directory of one of its
-// packages, and those under infra/ (user_data and the units it installs
-// run as root at boot; its IAM decides who writes what root reads). Go
+// packages, and every regular file under infra/ and internal/host/units
+// but Markdown (user_data and the units and scripts it installs run as
+// root at boot; its IAM decides who writes what root reads). Go
// units come from the scanner, cut to in-scope files; every in-scope
// non-Go file is an external unit, read here, so a file only arm64 embeds
// is fingerprinted too. An envelope is one per directory holding an
@@ -143,10 +150,35 @@ func rootReadScope(root string, raw rootReadScan, s rootScope) (rootReadScan, er
if f == "go.mod" || f == "go.sum" {
continue
}
- if s.Packages[filepath.ToSlash(filepath.Dir(f))] || strings.HasPrefix(f, "infra/") {
+ if s.Packages[filepath.ToSlash(filepath.Dir(f))] {
files[f] = true
}
}
+ // Whatever infra installs and whatever a unit runs is root's, whatever
+ // its extension (scanner-selftest has none): every regular file under
+ // infra/ and the units directory, documentation aside.
+ for _, dir := range rootExecDirs {
+ err := filepath.WalkDir(filepath.Join(root, dir), func(p string, d fs.DirEntry, err error) error {
+ if os.IsNotExist(err) && p == filepath.Join(root, dir) {
+ return filepath.SkipDir
+ }
+ if err != nil {
+ return err
+ }
+ if !d.Type().IsRegular() || strings.HasSuffix(d.Name(), ".md") {
+ return nil
+ }
+ rel, err := filepath.Rel(root, p)
+ if err != nil {
+ return err
+ }
+ files[filepath.ToSlash(rel)] = true
+ return nil
+ })
+ if err != nil {
+ return out, err
+ }
+ }
digests := map[string]string{}
for f := range files {
body, err := os.ReadFile(filepath.Join(root, filepath.FromSlash(f)))
@@ -262,6 +294,121 @@ func checkRootScopeIsBinary(root string, scan rootReadScan) ([]string, error) {
return errs, nil
}
+// rootExecRef finds a repository file a terraform file installs.
+var rootExecRef = regexp.MustCompile(`\$\{path\.module\}/([^"}\s)]+)`)
+
+// checkRootExecInputs is the guard on what root executes outside Go: a
+// file a terraform file under infra/ reads by ${path.module}, and a
+// repository file whose name a unit's Exec line runs (by base name, as
+// infra installs scanner-selftest to /usr/local/sbin), must each be a
+// fingerprinted census unit.
+func checkRootExecInputs(root string, scan rootReadScan) ([]string, error) {
+ var errs []string
+ byName := map[string][]string{}
+ var units, tf []string
+ err := filepath.WalkDir(root, func(p string, d fs.DirEntry, err error) error {
+ if err != nil {
+ return err
+ }
+ if d.IsDir() {
+ if p != root && (strings.HasPrefix(d.Name(), ".") || d.Name() == "testdata") {
+ return filepath.SkipDir
+ }
+ return nil
+ }
+ if !d.Type().IsRegular() {
+ return nil
+ }
+ rel, err := filepath.Rel(root, p)
+ if err != nil {
+ return err
+ }
+ rel = filepath.ToSlash(rel)
+ byName[d.Name()] = append(byName[d.Name()], rel)
+ switch {
+ case strings.HasSuffix(rel, ".service") && (strings.HasPrefix(rel, "infra/") || strings.HasPrefix(rel, "internal/host/units/")):
+ units = append(units, rel)
+ case strings.HasPrefix(rel, "infra/") && (strings.HasSuffix(rel, ".tf") || strings.HasSuffix(rel, ".tftpl")):
+ tf = append(tf, rel)
+ }
+ return nil
+ })
+ if err != nil {
+ return nil, err
+ }
+ printed := func(f string) bool { return rootReadScanned(scan, f+":external") }
+ for _, f := range tf {
+ body, err := os.ReadFile(filepath.Join(root, filepath.FromSlash(f)))
+ if err != nil {
+ return nil, err
+ }
+ for _, m := range rootExecRef.FindAllStringSubmatch(string(body), -1) {
+ target := filepath.ToSlash(filepath.Join(filepath.Dir(f), m[1]))
+ if _, err := os.Stat(filepath.Join(root, filepath.FromSlash(target))); err == nil && !printed(target) {
+ errs = append(errs, f+" installs "+target+", which has no census fingerprint")
+ }
+ }
+ }
+ for _, f := range units {
+ body, err := os.ReadFile(filepath.Join(root, filepath.FromSlash(f)))
+ if err != nil {
+ return nil, err
+ }
+ for _, line := range strings.Split(string(body), "\n") {
+ key, value, ok := strings.Cut(strings.TrimSpace(line), "=")
+ if !ok || !(strings.HasPrefix(key, "ExecStart") || strings.HasPrefix(key, "ExecStop") || key == "ExecReload" || key == "ExecCondition") {
+ continue
+ }
+ for _, tok := range strings.Fields(value) {
+ tok = strings.TrimLeft(tok, "-@:+!")
+ if !strings.HasPrefix(tok, "/") {
+ continue
+ }
+ for _, target := range byName[filepath.Base(tok)] {
+ if !printed(target) {
+ errs = append(errs, f+" runs "+target+" ("+tok+"), which has no census fingerprint")
+ }
+ }
+ }
+ }
+ }
+ sort.Strings(errs)
+ return errs, nil
+}
+
+// checkRootNoCgo refuses cgo: the census lists the root binary with cgo
+// off, as releases build it, so a package of the root binary that holds
+// cgo files on a linux build with cgo on would be source the census does
+// not see.
+func checkRootNoCgo(root string) ([]string, error) {
+ var errs []string
+ for _, arch := range rootArchitectures {
+ cmd := exec.Command("go", "list", "-deps", "-f", `{{if not .Standard}}{{.Dir}}|{{join .CgoFiles ","}}{{end}}`, ".")
+ cmd.Dir = root
+ cmd.Env = append(os.Environ(), "GOOS=linux", "GOARCH="+arch, "CGO_ENABLED=1")
+ var stderr bytes.Buffer
+ cmd.Stderr = &stderr
+ raw, err := cmd.Output()
+ if err != nil {
+ return nil, fmt.Errorf("go list (linux/%s, cgo on): %w: %s", arch, err, stderr.String())
+ }
+ for _, line := range strings.Split(strings.TrimSpace(string(raw)), "\n") {
+ dir, cgo, _ := strings.Cut(line, "|")
+ rel, err := filepath.Rel(root, dir)
+ if dir == "" || err != nil || rel == ".." || strings.HasPrefix(rel, ".."+string(filepath.Separator)) || cgo == "" {
+ continue
+ }
+ errs = append(errs, fmt.Sprintf("%s holds cgo files (linux/%s): %s; the census scans the root binary with cgo off", filepath.ToSlash(rel), arch, cgo))
+ }
+ }
+ sort.Strings(errs)
+ return errs, nil
+}
+
+func removeFile(root, rel string) error {
+ return os.Remove(filepath.Join(root, filepath.FromSlash(rel)))
+}
+
func sortedStrings(s []string) []string {
out := append([]string(nil), s...)
sort.Strings(out)
diff --git a/internal/provision/plan14_root_reads_test.go b/internal/provision/plan14_root_reads_test.go
index ff39b7238..7f6e103b4 100644
--- a/internal/provision/plan14_root_reads_test.go
+++ b/internal/provision/plan14_root_reads_test.go
@@ -1796,6 +1796,12 @@ func checkRootReadDeclarations(scan rootReadScan, inv rootReadInventory) []strin
// A unit that left scope (C2) is re-admitted by a later row that
// classifies it again; it is then checked as any frozen unit is.
if removal != "" && !(classified && rootReadLeftRemoval(removal)) {
+ // A deletion (;absent;) must stay out of the tree, inside the
+ // census's scope or outside it; only a left removal is
+ // scope-only (Astra round 3 on C2).
+ if rootReadAbsentRemoval(removal) && scan.Outside[key] {
+ exists = true
+ }
// Census ruling zddr3: an H3 census-ruling removal may retire a
// unit that is still declared only when this scan finds no read in
// it. The basis text is never evidence; the scan is.
diff --git a/internal/provision/testdata/census-base-scope.txt b/internal/provision/testdata/census-base-scope.txt
new file mode 100644
index 000000000..a1cace254
--- /dev/null
+++ b/internal/provision/testdata/census-base-scope.txt
@@ -0,0 +1,1524 @@
+# The files in the census's scope when census-base.tsv was written (TestCensusRebaseWrite).
+account_choose.go
+accounts.go
+accounts_plan.go
+accounts_plan_copy.go
+accounts_record_sequence.go
+analytics_cmd.go
+apimode.go
+apimode_rootfs.go
+appconfig_cli.go
+apps.go
+apps_buildprobe.go
+apps_policy.go
+apps_region.go
+apps_swap.go
+apps_updates.go
+assets_cli.go
+auth.go
+availability_cmd.go
+billing_cli.go
+billing_cli_copy.go
+canary.go
+channels_digests.go
+cli.go
+color.go
+config.go
+config_cli.go
+db.go
+dbforward.go
+deploy.go
+deploywatch.go
+domains_cli.go
+doorkeys_cli.go
+economics.go
+errors_cmd.go
+explain_cmd.go
+features_cli.go
+flags.go
+fleets.go
+gate_cli.go
+geo_cmd.go
+history_cli.go
+hostclaim_cli.go
+infra/modules/box-fence-writer/main.tf
+infra/modules/box-fence-writer/tests/writer.tftest.hcl
+infra/modules/deployment-buckets/main.tf
+infra/modules/deployment-buckets/outputs.tf
+infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl
+infra/modules/deployment-buckets/tests/db_reads.tftest.hcl
+infra/modules/deployment-buckets/tests/evidence.tftest.hcl
+infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl
+infra/modules/deployment-buckets/variables.tf
+infra/modules/deployment-buckets/versions.tf
+infra/modules/region-host/main.tf
+infra/modules/region-host/outputs.tf
+infra/modules/region-host/tests/console_mail.tftest.hcl
+infra/modules/region-host/tests/instance_metadata.tftest.hcl
+infra/modules/region-host/tests/store_scanning.tftest.hcl
+infra/modules/region-host/variables.tf
+infra/modules/region-host/versions.tf
+infra/modules/region-remote-host/main.tf
+infra/modules/region-remote-host/outputs.tf
+infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl
+infra/modules/region-remote-host/variables.tf
+infra/modules/scanner-host/files/scanner-selftest
+infra/modules/scanner-host/files/scanner-selftest.service
+infra/modules/scanner-host/files/scanner-tcp.service
+infra/modules/scanner-host/files/scanner-tcp.socket
+infra/modules/scanner-host/main.tf
+infra/modules/scanner-host/outputs.tf
+infra/modules/scanner-host/scanner-init.sh.tftpl
+infra/modules/scanner-host/tests/scanner_host.tftest.hcl
+infra/modules/scanner-host/variables.tf
+infra/modules/scanner-host/versions.tf
+instances_assets.go
+instances_cli.go
+instances_import.go
+instances_seed.go
+instances_updates.go
+internal/activator/activator.go
+internal/activator/admintoken.go
+internal/activator/backend_exec.go
+internal/activator/backend_unit.go
+internal/activator/beforeexec.go
+internal/activator/buildstatelocation.go
+internal/activator/canonlink.go
+internal/activator/claim_shape.go
+internal/activator/claim_snapshot.go
+internal/activator/claimgen.go
+internal/activator/claimprocess_root.go
+internal/activator/claimprocess_root_linux.go
+internal/activator/claimspawn.go
+internal/activator/claimwake.go
+internal/activator/claimwindow.go
+internal/activator/cleanup.go
+internal/activator/cmd.go
+internal/activator/cmdunit.go
+internal/activator/containment.go
+internal/activator/control.go
+internal/activator/genbackend.go
+internal/activator/generations.go
+internal/activator/generations_file.go
+internal/activator/genservice.go
+internal/activator/identity.go
+internal/activator/installed.go
+internal/activator/instancekey.go
+internal/activator/keyadoption.go
+internal/activator/layout.go
+internal/activator/loglistener.go
+internal/activator/logsink.go
+internal/activator/maintenance.go
+internal/activator/opset.go
+internal/activator/ownenv_unix.go
+internal/activator/paths.go
+internal/activator/plannedselection.go
+internal/activator/prepare.go
+internal/activator/probewake.go
+internal/activator/recoveryprobe.go
+internal/activator/replicakey.go
+internal/activator/rolelaunch.go
+internal/activator/rolelaunch_linux.go
+internal/activator/rolelaunch_root_linux.go
+internal/activator/rootfs.go
+internal/activator/schedfence.go
+internal/activator/scheduled_token.go
+internal/activator/seed_diagnostic.go
+internal/activator/seed_exclusion.go
+internal/activator/seedkey.go
+internal/activator/seedplace.go
+internal/activator/servingretry.go
+internal/activator/settle.go
+internal/activator/size.go
+internal/activator/staged.go
+internal/activator/swap.go
+internal/activator/swapadmit.go
+internal/activator/swaphold.go
+internal/activator/unitproc.go
+internal/activator/wakecheck.go
+internal/activator/wakeidentity.go
+internal/activator/wakeplan.go
+internal/activator/wakesteps.go
+internal/activator/workerbuild.go
+internal/activator/workerswap.go
+internal/agentsock/agentsock.go
+internal/alerting/alerting.go
+internal/analytics/bots.go
+internal/analytics/day.go
+internal/analytics/hll.go
+internal/analytics/meter.go
+internal/analytics/read.go
+internal/analytics/salt.go
+internal/analytics/topk.go
+internal/appconfig/agentvars.go
+internal/appconfig/appconfig.go
+internal/appconfig/canprovide.go
+internal/appconfig/claim_identity.go
+internal/appconfig/claimsync.go
+internal/appconfig/configack.go
+internal/appconfig/crypto.go
+internal/appconfig/environments.go
+internal/appconfig/fingerprint.go
+internal/appconfig/generation.go
+internal/appconfig/instancekey.go
+internal/appconfig/instances.go
+internal/appconfig/materialize.go
+internal/appconfig/renderheld.go
+internal/appconfig/routefingerprint.go
+internal/appconfig/store.go
+internal/appconfig/swap.go
+internal/appconfig/sync.go
+internal/appconfig/syncexec.go
+internal/apperr/availability.go
+internal/apperr/fingerprint.go
+internal/apperr/group.go
+internal/apperr/read.go
+internal/apperr/record.go
+internal/apperr/sanitize.go
+internal/apperr/sink.go
+internal/applog/chunk.go
+internal/applog/cursor.go
+internal/applog/filter.go
+internal/applog/read.go
+internal/applog/record.go
+internal/applog/sink.go
+internal/apppolicy/apppolicy.go
+internal/apppolicy/signed.go
+internal/awsinv/awsinv.go
+internal/awsinv/clients.go
+internal/awsinv/ec2.go
+internal/awsinv/exact_instance.go
+internal/awsinv/rest.go
+internal/boxchoice/boxchoice.go
+internal/boxchoice/policy.go
+internal/boxid/certs.go
+internal/boxid/certs/ap-southeast-2.pem
+internal/boxid/certs/eu-west-1.pem
+internal/boxid/certs/eu-west-2.pem
+internal/boxid/certs/us-east-1.pem
+internal/boxid/record.go
+internal/boxid/verify.go
+internal/boxvolumes/volumes.go
+internal/caps/caps.go
+internal/caps/converge.go
+internal/caps/grants.go
+internal/caps/render.go
+internal/caps/rootauthority.go
+internal/certwarm/certwarm.go
+internal/cgroup/cgroup.go
+internal/cgroup/cgroup_linux.go
+internal/cgroup/cleanup.go
+internal/cgroup/cleanup_linux.go
+internal/cgroup/gen.go
+internal/cgroup/hostprocs.go
+internal/cgroup/hostprocs_linux.go
+internal/cgroup/inflight.go
+internal/cgroup/recreate_linux.go
+internal/cgroup/role_linux.go
+internal/cgroup/shim.go
+internal/cgroup/shim_linux.go
+internal/cgroup/sizes.go
+internal/cgroup/strict.go
+internal/cgroup/strict_gen_linux.go
+internal/cgroup/strict_linux.go
+internal/cgroup/verify_linux.go
+internal/clamd/clamd.go
+internal/cliflag/cliflag.go
+internal/controlname/names.go
+internal/controlsock/controlsock.go
+internal/dbdoor/client.go
+internal/dbdoor/client_handles.go
+internal/dbdoor/coords.go
+internal/dbdoor/forward.go
+internal/dbdoor/plan.go
+internal/dbdoor/plan_from.go
+internal/dbdoor/restore.go
+internal/dbquery/dbquery.go
+internal/dbreads/admission.go
+internal/dbreads/agent.go
+internal/dbreads/chunks.go
+internal/dbreads/class.go
+internal/dbreads/envelope.go
+internal/dbreads/ids.go
+internal/dbreads/limits.go
+internal/dbreads/lines.go
+internal/dbreads/protocol.go
+internal/dbreads/read.go
+internal/dbreads/result.go
+internal/dbreads/seal.go
+internal/dbreads/worker.go
+internal/dbreads/worker_linux.go
+internal/dbverify/dbverify.go
+internal/domains/aliases.go
+internal/domains/claimcache.go
+internal/domains/claims.go
+internal/domains/mint.go
+internal/domains/reconcile.go
+internal/domains/reserved.go
+internal/domains/slugname.go
+internal/domains/sqid.go
+internal/doorkey/doorkey.go
+internal/economics/bill.go
+internal/economics/compute.go
+internal/economics/scenario.go
+internal/edge/analytics.go
+internal/edge/answered.go
+internal/edge/assettypes.go
+internal/edge/cache.go
+internal/edge/certcache.go
+internal/edge/certsweep.go
+internal/edge/certsync.go
+internal/edge/certwarm.go
+internal/edge/compress.go
+internal/edge/cookiescope.go
+internal/edge/dns.go
+internal/edge/door.go
+internal/edge/doorkeys.go
+internal/edge/edge.go
+internal/edge/forwardproof.go
+internal/edge/genproxy.go
+internal/edge/gensource.go
+internal/edge/geoipheaders.go
+internal/edge/geoipmirror.go
+internal/edge/guard.go
+internal/edge/homemap.go
+internal/edge/importgate.go
+internal/edge/lbhealth.go
+internal/edge/mesh.go
+internal/edge/pending.go
+internal/edge/plandisabled.go
+internal/edge/planthrottle.go
+internal/edge/prober.go
+internal/edge/purge.go
+internal/edge/purge_header.go
+internal/edge/purge_listen_linux.go
+internal/edge/ratelimit.go
+internal/edge/redirects.go
+internal/edge/reqrecords.go
+internal/edge/route53dns.go
+internal/edge/static.go
+internal/edge/static_sweep_unix.go
+internal/edge/status.go
+internal/edge/steeringprobe.go
+internal/edge/storedoor.go
+internal/edge/tunnel.go
+internal/edge/usagemeter.go
+internal/edge/wildcard.go
+internal/edgeguard/catalogue.go
+internal/edgeguard/catalogue.txt
+internal/edgeguard/match.go
+internal/edgeproof/edgeproof.go
+internal/edgesfile/addrs.go
+internal/edgesfile/dial.go
+internal/edgesfile/edgesfile.go
+internal/edgesfile/fold.go
+internal/edgesfile/private.go
+internal/edgesfile/snapshot.go
+internal/egressaddr/egressaddr.go
+internal/fleetapi/fleetapi.go
+internal/gate/cookie.go
+internal/gate/gate.go
+internal/gate/limiter.go
+internal/gate/login.html
+internal/gate/page.go
+internal/genselect/select.go
+internal/geo/awsregions.go
+internal/geo/data/VERSION
+internal/geo/data/links.txt
+internal/geo/data/zone.tab
+internal/geo/mmdb.go
+internal/geo/nearest.go
+internal/geo/point.go
+internal/geo/swappable.go
+internal/geo/tz.go
+internal/geoip/answer.go
+internal/geoip/archive.go
+internal/geoip/feed.go
+internal/geoip/pointer.go
+internal/historyreadback/completion.go
+internal/historyreadback/readback.go
+internal/historyreadback/workflow.go
+internal/host/adopt_advice.go
+internal/host/adoptlock.go
+internal/host/agent.go
+internal/host/alertsink.go
+internal/host/assetauthority.go
+internal/host/assetmanifests.go
+internal/host/assetpolicy.go
+internal/host/awsaddr.go
+internal/host/bootstrap.go
+internal/host/bootstrapfs_linux.go
+internal/host/boxaddress.go
+internal/host/boxjudge.go
+internal/host/boxpublish.go
+internal/host/boxrecord.go
+internal/host/boxreference.go
+internal/host/buildstate.go
+internal/host/caps_pass.go
+internal/host/changeindex.go
+internal/host/claim_evidence_producer.go
+internal/host/claim_evidence_wiring.go
+internal/host/claimactivation_preflight.go
+internal/host/claimassembly.go
+internal/host/claimbackfill.go
+internal/host/claimcensus.go
+internal/host/claimcensus_migration_linux.go
+internal/host/claimcleanup_identity.go
+internal/host/claimconstruction.go
+internal/host/claimempty_recovery.go
+internal/host/claimfiles.go
+internal/host/claimfilesseed.go
+internal/host/claimfilesseed_command.go
+internal/host/claimfilesseed_delegation_linux.go
+internal/host/claimfilesseed_guard.go
+internal/host/claimfilesseed_killed_linux.go
+internal/host/claimfilesseed_retry.go
+internal/host/claimfilesseed_runtime.go
+internal/host/claimfilesseed_select.go
+internal/host/claimfilesseed_shutdown.go
+internal/host/claimfilesseed_stage.go
+internal/host/claimfilesseed_transport_linux.go
+internal/host/claimhandover_crossbox.go
+internal/host/claimhandover_recovery.go
+internal/host/claimhandover_transport.go
+internal/host/claimjournal_containment.go
+internal/host/claimjournal_containment_linux.go
+internal/host/claimjournal_migration.go
+internal/host/claimjournal_migration_linux.go
+internal/host/claimjournal_proof.go
+internal/host/claimjournal_transport.go
+internal/host/claimlaunch_authority.go
+internal/host/claimlaunch_execpermit.go
+internal/host/claimlaunch_kernel_linux.go
+internal/host/claimlaunch_observations.go
+internal/host/claimlaunch_production.go
+internal/host/claimlaunch_root.go
+internal/host/claimlaunch_transport.go
+internal/host/claimmoveaccess.go
+internal/host/claimmovefence.go
+internal/host/claimmoveparks.go
+internal/host/claimoperations.go
+internal/host/claimordinaryparks.go
+internal/host/claimoriginproof.go
+internal/host/claimowners.go
+internal/host/claimparticipation.go
+internal/host/claimparticipation_completed.go
+internal/host/claimparticipation_relocation.go
+internal/host/claimparticipation_retired.go
+internal/host/claimparticipation_stale.go
+internal/host/claimproduction.go
+internal/host/claimproduction_linux.go
+internal/host/claimproduction_marker.go
+internal/host/claimready_linux.go
+internal/host/claimrecovery_remote.go
+internal/host/claimrecoveryjournal.go
+internal/host/claimrecoveryreceipt.go
+internal/host/claimregion.go
+internal/host/claimrelocation.go
+internal/host/claimrelocationrelease.go
+internal/host/claimreport.go
+internal/host/claimreset_worker.go
+internal/host/claimrestore_observation.go
+internal/host/claimretire_local.go
+internal/host/claimretire_transport.go
+internal/host/claimretirementcensus.go
+internal/host/claimroleassembly.go
+internal/host/claimroleassembly_linux.go
+internal/host/claimservingartifact.go
+internal/host/claimservingartifact_linux.go
+internal/host/claimservingboot_linux.go
+internal/host/claimservingcollection.go
+internal/host/claimservingdisplaced_linux.go
+internal/host/claimservinghandover.go
+internal/host/claimservinghandover_reboot_linux.go
+internal/host/claimservingidentity.go
+internal/host/claimservingidentity_linux.go
+internal/host/claimservinglegacy.go
+internal/host/claimservinglegacyroot_linux.go
+internal/host/claimservingmaintenance.go
+internal/host/claimservingmaintenance_linux.go
+internal/host/claimservingnamespace_linux.go
+internal/host/claimservingpark.go
+internal/host/claimservingpark_linux.go
+internal/host/claimservingpark_records.go
+internal/host/claimservingpark_recovery.go
+internal/host/claimservingpark_recovery_linux.go
+internal/host/claimservingpark_transport.go
+internal/host/claimservingparkroot_linux.go
+internal/host/claimservingparksource_linux.go
+internal/host/claimservingquarantine_linux.go
+internal/host/claimservingreboot_binding.go
+internal/host/claimservingreboot_commit_linux.go
+internal/host/claimservingreboot_linux.go
+internal/host/claimservingreboot_prepare_linux.go
+internal/host/claimservingretire.go
+internal/host/claimservingtopology_linux.go
+internal/host/claimservingvolume_linux.go
+internal/host/claimstate_linux.go
+internal/host/claimstop.go
+internal/host/claimstop_kernel_linux.go
+internal/host/claimstop_producers.go
+internal/host/claimstop_production.go
+internal/host/claimstop_recovery.go
+internal/host/claimstop_run.go
+internal/host/claimstop_transport.go
+internal/host/claimstop_writers.go
+internal/host/claimstop_writers_linux.go
+internal/host/claimtimer.go
+internal/host/claimtoken_directory.go
+internal/host/claimtoken_inventory_linux.go
+internal/host/claimunit.go
+internal/host/claimunit_binding.go
+internal/host/claimunit_binding_source.go
+internal/host/claimunit_definition.go
+internal/host/claimunit_dispatch.go
+internal/host/claimunit_dropin.go
+internal/host/claimunit_dropin_linux.go
+internal/host/claimunit_effective.go
+internal/host/claimunit_files_linux.go
+internal/host/claimunit_handover.go
+internal/host/claimunit_inputs.go
+internal/host/claimunit_materialize.go
+internal/host/claimunit_migrate.go
+internal/host/claimunit_migrate_kernel.go
+internal/host/claimunit_migrate_linux.go
+internal/host/claimunit_placement.go
+internal/host/claimunit_policy.go
+internal/host/claimunit_production.go
+internal/host/claimunit_program.go
+internal/host/claimunit_ready_linux.go
+internal/host/claimunit_retire.go
+internal/host/claimunit_socket_migration_linux.go
+internal/host/claimunit_template.go
+internal/host/claimwakeassembly.go
+internal/host/claimwakestop.go
+internal/host/claimwakewriters.go
+internal/host/claimwiring.go
+internal/host/configguard.go
+internal/host/dbreads.go
+internal/host/dbreads_linux.go
+internal/host/displayname.go
+internal/host/edgesclaims.go
+internal/host/edgesfile.go
+internal/host/egress_nudge.go
+internal/host/egress_rail.go
+internal/host/egress_rail_linux.go
+internal/host/egress_source.go
+internal/host/egress_status.go
+internal/host/errship.go
+internal/host/fileowner_unix.go
+internal/host/fleetbind.go
+internal/host/fleetidentity.go
+internal/host/flock_unix.go
+internal/host/guardarm.go
+internal/host/guardexec.go
+internal/host/guardroster.go
+internal/host/guardtransaction.go
+internal/host/headroom.go
+internal/host/headroom_linux.go
+internal/host/heldstage.go
+internal/host/hostfencepass.go
+internal/host/housekeeper.go
+internal/host/installchannel.go
+internal/host/installchannel_linux.go
+internal/host/instancekeys.go
+internal/host/joining.go
+internal/host/joinmode.go
+internal/host/joinroot.go
+internal/host/layoutleg.go
+internal/host/legacyrestart.go
+internal/host/logship.go
+internal/host/memtier.go
+internal/host/memwatch.go
+internal/host/metrics_loop.go
+internal/host/metrics_probes.go
+internal/host/movesabort.go
+internal/host/movesarchive.go
+internal/host/movescut.go
+internal/host/movesevents.go
+internal/host/movesevidence.go
+internal/host/movesfiles.go
+internal/host/movesfinal.go
+internal/host/movesfloor.go
+internal/host/movesfloor_linux.go
+internal/host/movesfloorgate.go
+internal/host/movesfloorgate_linux.go
+internal/host/movesguard.go
+internal/host/movesheldenv.go
+internal/host/movesheldlock.go
+internal/host/movesheldrelease.go
+internal/host/movesheldrelease_linux.go
+internal/host/movesheldrelease_production.go
+internal/host/movesheldrelease_root.go
+internal/host/moveshold.go
+internal/host/movesinstall.go
+internal/host/movesland.go
+internal/host/moveslandcommit.go
+internal/host/moveslandinstall.go
+internal/host/moveslandpark.go
+internal/host/moveslandprobe.go
+internal/host/moveslogoutbox.go
+internal/host/movesloss.go
+internal/host/movesmeasure.go
+internal/host/movesmeasure_linux.go
+internal/host/movesoffline.go
+internal/host/movesoffline_land.go
+internal/host/movesoffline_seal.go
+internal/host/movesoffline_stage.go
+internal/host/movespaging.go
+internal/host/movesparks.go
+internal/host/movespass.go
+internal/host/movesphase1.go
+internal/host/movespolicy.go
+internal/host/movesprobe.go
+internal/host/movesprobeattempts.go
+internal/host/movesprobeowners.go
+internal/host/movesrecover.go
+internal/host/movesrecoveryowners.go
+internal/host/movesrecoveryprobe.go
+internal/host/movesrefusals.go
+internal/host/movesreport.go
+internal/host/movesretire.go
+internal/host/movesrevert.go
+internal/host/movesrollback.go
+internal/host/movessources.go
+internal/host/movesstage.go
+internal/host/movesstore.go
+internal/host/moveswakesource.go
+internal/host/namedrecovery.go
+internal/host/namedrecovery_active.go
+internal/host/namedrecovery_pass.go
+internal/host/nofollowdir_linux.go
+internal/host/offcloudcredentials_linux.go
+internal/host/plans_pass.go
+internal/host/pointerdigests.go
+internal/host/probes.go
+internal/host/proofask.go
+internal/host/proofbinding.go
+internal/host/prooffile.go
+internal/host/proofnamed.go
+internal/host/proofobserve.go
+internal/host/proofroot.go
+internal/host/proofstatus.go
+internal/host/recoveryrefusals.go
+internal/host/refusalwatch.go
+internal/host/registrychild_exec_linux.go
+internal/host/registrychild_unix.go
+internal/host/registryowner.go
+internal/host/registryowner_chown_unix.go
+internal/host/registryowner_descriptor_linux.go
+internal/host/registryreadonly.go
+internal/host/relocatepass.go
+internal/host/relocationassembly.go
+internal/host/relocationattempts.go
+internal/host/relocationbuild.go
+internal/host/relocationeffects.go
+internal/host/relocationflush.go
+internal/host/relocationhandover.go
+internal/host/relocationinstall.go
+internal/host/relocationlanding.go
+internal/host/relocationowners.go
+internal/host/relocationreleases.go
+internal/host/relocationsourcehold.go
+internal/host/relocationsweep.go
+internal/host/relocationwake.go
+internal/host/replicahomekeys.go
+internal/host/reqrec_loop.go
+internal/host/restart.go
+internal/host/restartscope.go
+internal/host/retention.go
+internal/host/rollout.go
+internal/host/rolloutdeclined.go
+internal/host/rootadoption_options.go
+internal/host/rootexecution_authority.go
+internal/host/rootexecution_client.go
+internal/host/rootexecution_migration.go
+internal/host/rootexecution_read.go
+internal/host/rootexecution_recovery.go
+internal/host/rootexecution_runtime.go
+internal/host/rootexecution_settle.go
+internal/host/rootexecution_source.go
+internal/host/rootexecution_transport.go
+internal/host/rootfenceview.go
+internal/host/rootfloor_available.go
+internal/host/rootfloor_healthy.go
+internal/host/rootfloor_reconstruct.go
+internal/host/rootfsplacement.go
+internal/host/rootgeneration_census_linux.go
+internal/host/rootgeneration_containment_linux.go
+internal/host/rootgeneration_handover.go
+internal/host/rootgeneration_inventory.go
+internal/host/rootgeneration_kernel_linux.go
+internal/host/rootgeneration_parked.go
+internal/host/rootgeneration_payload_linux.go
+internal/host/rootgeneration_refusal.go
+internal/host/rootgeneration_requirements.go
+internal/host/rootgeneration_retired_linux.go
+internal/host/rootgeneration_retirement.go
+internal/host/rootgeneration_rows.go
+internal/host/rootgeneration_services_linux.go
+internal/host/rootgenerationpins.go
+internal/host/rootgenerations_launch.go
+internal/host/roothistory.go
+internal/host/roothistory_creation.go
+internal/host/roothistory_launch.go
+internal/host/roothistory_maintenance.go
+internal/host/roothistory_readback.go
+internal/host/roothistory_recovery.go
+internal/host/rootinstallation.go
+internal/host/rootinventory.go
+internal/host/rootinventory_identity.go
+internal/host/rootinventory_install.go
+internal/host/rootinventory_requirements.go
+internal/host/rootinventory_sibling.go
+internal/host/rootinventory_startup.go
+internal/host/rootinventory_state_linux.go
+internal/host/rootinventory_timer.go
+internal/host/rootinventory_timer_mutation.go
+internal/host/rootinventory_timer_recovery.go
+internal/host/rootlaunchverifier.go
+internal/host/rootmigration.go
+internal/host/rootmigration_census.go
+internal/host/rootmigration_collect_linux.go
+internal/host/rootmigration_evidence.go
+internal/host/rootmigration_preflight.go
+internal/host/rootmigration_production_linux.go
+internal/host/rootmigration_startup.go
+internal/host/rootmigration_stopped_linux.go
+internal/host/rootmigration_timers.go
+internal/host/rootmovesfloor.go
+internal/host/rootmovesfloor_authorization.go
+internal/host/rootmovesfloor_boot.go
+internal/host/rootmovesfloor_identity.go
+internal/host/rootmovesfloor_refresh.go
+internal/host/rootmovesfloor_source.go
+internal/host/rootrecord_claim.go
+internal/host/rootrecovery_rebind.go
+internal/host/rootreleaselock.go
+internal/host/rootrestart.go
+internal/host/rootrestart_requests.go
+internal/host/rootrestart_requests_source.go
+internal/host/rootrollback.go
+internal/host/rootrollback_resume.go
+internal/host/rootroute.go
+internal/host/rootseedsfloor.go
+internal/host/rootseedsfloor_publication.go
+internal/host/rootstop_reboot_linux.go
+internal/host/rootupdates.go
+internal/host/rootupdates_runtime.go
+internal/host/runevents.go
+internal/host/runexec.go
+internal/host/runs.go
+internal/host/schedule_wiring.go
+internal/host/seedsfloor.go
+internal/host/seedwiring.go
+internal/host/sidecarwake.go
+internal/host/sidecarwake_identity.go
+internal/host/sizestatus.go
+internal/host/snapshot_loop.go
+internal/host/socket_advice.go
+internal/host/stagerelay.go
+internal/host/stagingcleanup.go
+internal/host/startup.go
+internal/host/statfs_unix.go
+internal/host/steering_loop.go
+internal/host/systemapply.go
+internal/host/systemapply_unix.go
+internal/host/systemdshow.go
+internal/host/systemleg.go
+internal/host/systemparticipation.go
+internal/host/systemprobe.go
+internal/host/systemstate.go
+internal/host/systemunits.go
+internal/host/telemetry_pass.go
+internal/host/tunnel_client.go
+internal/host/units/carlos-adopt.path
+internal/host/units/carlos-adopt.service
+internal/host/units/carlos-adopt.timer
+internal/host/units/carlos-app@.service
+internal/host/units/carlos-app@.socket
+internal/host/units/carlos-config-sync.service
+internal/host/units/carlos-dbread.socket
+internal/host/units/carlos-dbread@.service
+internal/host/units/carlos-edge.service
+internal/host/units/carlos-hibernate-verify.service
+internal/host/units/carlos-hibernate-verify.timer
+internal/host/units/carlos-instance-cmd@.service
+internal/host/units/carlos-instance-control.service
+internal/host/units/carlos-instance-control.socket
+internal/host/units/carlos-instance-gen@.service
+internal/host/units/carlos-instance-probe.service
+internal/host/units/carlos-instance-rootfs-cmd@.service
+internal/host/units/carlos-instance-rootfs-gen@.service
+internal/host/units/carlos-instance-rootfs-probe.service
+internal/host/units/carlos-instance-rootfs-worker@.service
+internal/host/units/carlos-instance-rootfs@.service
+internal/host/units/carlos-instance-seed@.service
+internal/host/units/carlos-instance-sidecar@.service
+internal/host/units/carlos-instance@.service
+internal/host/units/carlos-instances.slice
+internal/host/units/carlos-litestream.service
+internal/host/units/carlos-relay.service
+internal/host/units/carlos-restart.path
+internal/host/units/carlos-restart.service
+internal/host/units/carlos-restore-verify.service
+internal/host/units/carlos-restore-verify.timer
+internal/host/units/carlos-stage.path
+internal/host/units/carlos-stage.service
+internal/host/units/carlos-system-join.path
+internal/host/units/carlos-system-join.service
+internal/host/units/carlos-system-recover.service
+internal/host/units/carlos-system-update.path
+internal/host/units/carlos-system-update.service
+internal/host/units/carlos.slice
+internal/host/units/data-instances.mount
+internal/host/units/run-carlos-instances.mount
+internal/host/units/run-carlos-logs.mount
+internal/host/unitsettle.go
+internal/host/updatesreport.go
+internal/host/updatesroot.go
+internal/host/usage_loop.go
+internal/host/versionsweep.go
+internal/hostactors/activation_complete.go
+internal/hostactors/activation_publication.go
+internal/hostactors/autoenroll.go
+internal/hostactors/binding.go
+internal/hostactors/census.go
+internal/hostactors/censuskey.go
+internal/hostactors/console_invitation.go
+internal/hostactors/enroll.go
+internal/hostactors/enrollment_confirmation.go
+internal/hostactors/fence_authority.go
+internal/hostactors/groupref.go
+internal/hostactors/invitation.go
+internal/hostactors/lifecycle.go
+internal/hostactors/membership.go
+internal/hostactors/membershipread.go
+internal/hostactors/private.go
+internal/hostactors/publication.go
+internal/hostactors/references.go
+internal/hostactors/reservations.go
+internal/hostactors/roles.go
+internal/hostactors/roster.go
+internal/hostbox/aggregateleases.go
+internal/hostbox/census_vendor_linux.go
+internal/hostbox/cleanup_authority.go
+internal/hostbox/coldhandover.go
+internal/hostbox/empty_census.go
+internal/hostbox/generationhandover.go
+internal/hostbox/generationinventory.go
+internal/hostbox/generationpayload.go
+internal/hostbox/hold.go
+internal/hostbox/identity.go
+internal/hostbox/inventory_expected.go
+internal/hostbox/inventory_identity.go
+internal/hostbox/inventory_identity_linux.go
+internal/hostbox/inventory_registration.go
+internal/hostbox/inventoryscope.go
+internal/hostbox/journalmigration_linux.go
+internal/hostbox/journalnamespace_linux.go
+internal/hostbox/journalpath.go
+internal/hostbox/journalservice.go
+internal/hostbox/journaltrust_linux.go
+internal/hostbox/launchhosts.go
+internal/hostbox/launchjournal.go
+internal/hostbox/launchspec.go
+internal/hostbox/migration_census_linux.go
+internal/hostbox/park.go
+internal/hostbox/parkleases.go
+internal/hostbox/reconcile.go
+internal/hostbox/reconcile_adapter.go
+internal/hostbox/regionalworker.go
+internal/hostbox/registryrows.go
+internal/hostbox/relocationrows.go
+internal/hostbox/relocationsource.go
+internal/hostbox/renewing.go
+internal/hostbox/requeststore.go
+internal/hostbox/restore.go
+internal/hostbox/retirement_timers.go
+internal/hostbox/roleintention.go
+internal/hostbox/roleintention_linux.go
+internal/hostbox/rolelaunch.go
+internal/hostbox/servinghandover.go
+internal/hostbox/servingpark.go
+internal/hostbox/servingpark_service.go
+internal/hostbox/servingpark_transport.go
+internal/hostbox/stopinventory.go
+internal/hostbox/stopinventory_db.go
+internal/hostbox/stopjournal.go
+internal/hostbox/stopjournal_producers.go
+internal/hostbox/stopjournal_reader.go
+internal/hostbox/timer_registration.go
+internal/hostbox/typedpark_linux.go
+internal/hostbox/typedpark_path.go
+internal/hostbox/typedretire.go
+internal/hostbox/wakepolicy.go
+internal/hostbox/work.go
+internal/hostbox/writer.go
+internal/hostbox/writer_loss.go
+internal/hostclaim/adopt.go
+internal/hostclaim/automaticloss.go
+internal/hostclaim/claim.go
+internal/hostclaim/create.go
+internal/hostclaim/create_selection.go
+internal/hostclaim/delete.go
+internal/hostclaim/delete_scopes.go
+internal/hostclaim/evidence_reference.go
+internal/hostclaim/execution_ack.go
+internal/hostclaim/fence.go
+internal/hostclaim/generation.go
+internal/hostclaim/lossrecord.go
+internal/hostclaim/lost.go
+internal/hostclaim/move.go
+internal/hostclaim/move_fence_admission.go
+internal/hostclaim/move_loss.go
+internal/hostclaim/move_target_fence.go
+internal/hostclaim/operation_loss.go
+internal/hostclaim/ops.go
+internal/hostclaim/origins.go
+internal/hostclaim/orphan.go
+internal/hostclaim/relocating.go
+internal/hostclaim/relocation.go
+internal/hostclaim/relocation_probestop.go
+internal/hostclaim/relocationrelease.go
+internal/hostclaim/retainedloss.go
+internal/hostclaim/sessionstep.go
+internal/hostclaim/store.go
+internal/hostclaim/wakeretry.go
+internal/hostclaim/writer_identity.go
+internal/hostenv/awsssm.go
+internal/hostenv/cli.go
+internal/hostenv/hostenv.go
+internal/hostenv/write_linux.go
+internal/hostevidence/signature.go
+internal/hostexec/clock_linux.go
+internal/hostexec/controller.go
+internal/hostexec/inspect.go
+internal/hostexec/local_unix.go
+internal/hostexec/participation.go
+internal/hostexec/pending_linux.go
+internal/hostexec/probe_unix.go
+internal/hostexec/record.go
+internal/hostexec/rootbroker.go
+internal/hostexec/rootclient.go
+internal/hostexec/rootmirror.go
+internal/hostexec/rootprocess_linux.go
+internal/hostexec/rootread.go
+internal/hostexec/rootserving.go
+internal/hostfence/activation_credentials.go
+internal/hostfence/challenge.go
+internal/hostfence/claim_fence.go
+internal/hostfence/onebox.go
+internal/hostfence/termination.go
+internal/hostfence/writer.go
+internal/hostfiles/contract.go
+internal/hostfiles/deadline.go
+internal/hostfiles/dir_unix.go
+internal/hostfiles/manifest.go
+internal/hostfiles/manifestcheck.go
+internal/hostfiles/platform.go
+internal/hostfiles/prepared.go
+internal/hostfiles/present.go
+internal/hostfiles/publisher.go
+internal/hostfiles/relay.go
+internal/hostfiles/restore.go
+internal/hostfiles/run.go
+internal/hostfiles/seed.go
+internal/hostfiles/sync.go
+internal/hostfiles/wake.go
+internal/hostfiles/walk_unix.go
+internal/hostfiles/watch_linux.go
+internal/hostfloor/begun.go
+internal/hostfloor/controllers_linux.go
+internal/hostfloor/disk.go
+internal/hostfloor/floor.go
+internal/hostfloor/image_linux.go
+internal/hostfloor/participation.go
+internal/hostfloor/remote.go
+internal/hostfloor/report.go
+internal/hostguard/admissionfence.go
+internal/hostguard/coldhandover.go
+internal/hostguard/fence.go
+internal/hostguard/flock_unix.go
+internal/hostguard/generationinventory.go
+internal/hostguard/guard.go
+internal/hostguard/local.go
+internal/hostguard/record.go
+internal/hostguard/record_unix.go
+internal/hostguard/recoveryfence.go
+internal/hostguard/retirement.go
+internal/hostguard/root.go
+internal/hostguard/rootinventory_settle.go
+internal/hostguard/rootmigration.go
+internal/hostguard/rootmigration_inventory.go
+internal/hostguard/rootrebind.go
+internal/hostguard/rootretired_host.go
+internal/hostguard/rootview.go
+internal/hostguard/servingretirement.go
+internal/hostguard/writerstop.go
+internal/hostops/admission.go
+internal/hostops/app_mutation_runner.go
+internal/hostops/automatic_loss.go
+internal/hostops/backfill.go
+internal/hostops/backfill_controller.go
+internal/hostops/backfill_publish.go
+internal/hostops/backfill_seeds.go
+internal/hostops/chosen.go
+internal/hostops/completion_fence.go
+internal/hostops/console_move_grant.go
+internal/hostops/control_writer.go
+internal/hostops/create_effects.go
+internal/hostops/create_freeze.go
+internal/hostops/delete_refresh.go
+internal/hostops/effect_runner.go
+internal/hostops/enroll.go
+internal/hostops/evidence.go
+internal/hostops/evidence_scope.go
+internal/hostops/executor.go
+internal/hostops/fencerelease/token.go
+internal/hostops/geoip_classifier.go
+internal/hostops/ingest.go
+internal/hostops/internal/fencerelease/token.go
+internal/hostops/lifecycle_grant.go
+internal/hostops/lifecycle_record.go
+internal/hostops/loads.go
+internal/hostops/mail_gate.go
+internal/hostops/mail_reconcile.go
+internal/hostops/move_enrollment.go
+internal/hostops/move_fence_regions.go
+internal/hostops/move_fence_release.go
+internal/hostops/move_home.go
+internal/hostops/move_local_loss.go
+internal/hostops/move_log_writer.go
+internal/hostops/move_loss_admission.go
+internal/hostops/move_loss_authority.go
+internal/hostops/move_loss_grant.go
+internal/hostops/move_loss_owner.go
+internal/hostops/move_recovery_bridge.go
+internal/hostops/move_recovery_grant.go
+internal/hostops/move_region.go
+internal/hostops/move_start_resolve.go
+internal/hostops/mutation_boundary.go
+internal/hostops/mutation_boundary_putfrom.go
+internal/hostops/mutation_classifier.go
+internal/hostops/mutation_permit.go
+internal/hostops/operations.go
+internal/hostops/production_create.go
+internal/hostops/production_delete.go
+internal/hostops/production_held_start.go
+internal/hostops/projection.go
+internal/hostops/purge.go
+internal/hostops/purge_control.go
+internal/hostops/purge_fences.go
+internal/hostops/purge_hosts.go
+internal/hostops/purge_journal.go
+internal/hostops/record.go
+internal/hostops/record_sequence.go
+internal/hostops/record_writes.go
+internal/hostops/recovery.go
+internal/hostops/remote.go
+internal/hostops/restore_recover.go
+internal/hostops/retired_record_versions.go
+internal/hostops/retirement.go
+internal/hostops/sidecarwake.go
+internal/hostops/storage_classifier.go
+internal/hostops/versioned_boundary.go
+internal/hostops/wake_reset_transport.go
+internal/hostops/wake_retry_reset.go
+internal/hostquarantine/quarantine.go
+internal/hostrelocate/chooser.go
+internal/hostrelocate/participant.go
+internal/hostrelocate/pin.go
+internal/hostrelocate/worker.go
+internal/hostresolve/operation_owner.go
+internal/hostresolve/readmit.go
+internal/hostresolve/service.go
+internal/hostwrite/callback.go
+internal/hostwrite/write.go
+internal/infraview/infraview.go
+internal/instancectl/claim.go
+internal/instancectl/claimexec.go
+internal/instancectl/claimexec_linux.go
+internal/instancectl/claimexec_socket_linux.go
+internal/instancectl/claimlaunch_snapshot.go
+internal/instancectl/claimlaunch_snapshot_linux.go
+internal/instancectl/claimnetwork_linux.go
+internal/instancectl/claimunit.go
+internal/instancectl/claimunit_bound.go
+internal/instancectl/claimunit_bound_stop.go
+internal/instancectl/client.go
+internal/instancectl/cmd.go
+internal/instancectl/egress.go
+internal/instancectl/egress_cgroup_linux.go
+internal/instancectl/egress_dropin.go
+internal/instancectl/egress_dropin_linux.go
+internal/instancectl/egress_due.go
+internal/instancectl/gen.go
+internal/instancectl/hardening.go
+internal/instancectl/legacy_claim_cleanup.go
+internal/instancectl/legacystart.go
+internal/instancectl/localaddrs.go
+internal/instancectl/names.go
+internal/instancectl/peer_linux.go
+internal/instancectl/peer_tuple_linux.go
+internal/instancectl/probeimage.go
+internal/instancectl/rootfs.go
+internal/instancectl/rootfs_identity_linux.go
+internal/instancectl/rootfs_unitlock.go
+internal/instancectl/server.go
+internal/instancectl/size.go
+internal/instancectl/stagedexe.go
+internal/instanceexec/claim_generation_linux.go
+internal/instanceexec/claimexec_linux.go
+internal/instanceexec/exec.go
+internal/instanceexec/exec_rootfs.go
+internal/instanceexec/exec_rootfs_linux.go
+internal/instanceexec/exit.go
+internal/instanceexec/init_linux.go
+internal/instanceexec/probe.go
+internal/instanceexec/probe_hardening.go
+internal/instanceexec/probe_hardening_linux.go
+internal/instanceexec/probe_linux.go
+internal/instanceexec/probe_rootfs.go
+internal/instanceexec/probe_rootfs_linux.go
+internal/instanceexec/scope_linux.go
+internal/instancefs/dirs_linux.go
+internal/instancefs/instancefs.go
+internal/instancefs/instancefs_linux.go
+internal/instancekey/instancekey.go
+internal/instanceupdates/control.go
+internal/layout/census.go
+internal/layout/extras.go
+internal/layout/journal.go
+internal/layout/journal_linux.go
+internal/layout/links_linux.go
+internal/layout/pass.go
+internal/layout/plan.go
+internal/layout/preflight.go
+internal/lbhealth/lbhealth.go
+internal/lease/check.go
+internal/lease/checkpoint.go
+internal/lease/claimgeneration.go
+internal/lease/createlease.go
+internal/lease/endpoint.go
+internal/lease/execution_store.go
+internal/lease/health.go
+internal/lease/lease.go
+internal/lease/lockstate.go
+internal/lease/mirror.go
+internal/lease/staging.go
+internal/lease/tombstone.go
+internal/lease/versioned.go
+internal/ledger/append.go
+internal/ledger/blob.go
+internal/ledger/claim_app_writes.go
+internal/ledger/ledger.go
+internal/ledger/manifest.go
+internal/ledger/verify.go
+internal/maintenanceguard/guard.go
+internal/maintenanceguard/json.go
+internal/maintenanceguard/lifecycle.go
+internal/maintenanceguard/store.go
+internal/maintenanceguard/types.go
+internal/metrics/alert.go
+internal/metrics/chunk.go
+internal/metrics/parse.go
+internal/metrics/rollup.go
+internal/metrics/sample.go
+internal/moves/abort.go
+internal/moves/archive/archive.go
+internal/moves/archive/extract.go
+internal/moves/archive/limits.go
+internal/moves/archive/open_unix.go
+internal/moves/archive/seal.go
+internal/moves/archive/sync_linux.go
+internal/moves/archive/verify.go
+internal/moves/budget.go
+internal/moves/build.go
+internal/moves/check.go
+internal/moves/envreport.go
+internal/moves/evidence.go
+internal/moves/floor.go
+internal/moves/ids.go
+internal/moves/install_contract.go
+internal/moves/journal.go
+internal/moves/lease.go
+internal/moves/log.go
+internal/moves/ltxbuild.go
+internal/moves/offline.go
+internal/moves/operatorcopy.go
+internal/moves/parkscope.go
+internal/moves/probe.go
+internal/moves/readiness.go
+internal/moves/returnlane.go
+internal/moves/seal.go
+internal/moves/sealedclient.go
+internal/moves/source.go
+internal/moves/staging.go
+internal/moves/startcheck.go
+internal/moves/switch.go
+internal/moves/timers.go
+internal/moves/transition.go
+internal/objstore/aws.go
+internal/objstore/clamav.go
+internal/objstore/entitlement.go
+internal/objstore/memprovisioner.go
+internal/objstore/memscanner.go
+internal/objstore/nameclaim.go
+internal/objstore/objstore.go
+internal/objstore/provisioner.go
+internal/objstore/queue.go
+internal/objstore/scanner.go
+internal/objstore/scanresult.go
+internal/objstore/scantag.go
+internal/objstore/sidecar.go
+internal/objstore/sweep.go
+internal/objstore/walk.go
+internal/objstore/writesdenied.go
+internal/ops/freshness.go
+internal/ops/hibernate_verify.go
+internal/ops/litestream.go
+internal/ops/ops.go
+internal/park/home_view.go
+internal/park/local.go
+internal/park/local_linux.go
+internal/park/move_sweep.go
+internal/park/region.go
+internal/park/region_names.go
+internal/park/remote.go
+internal/park/sweep.go
+internal/plans/catalog.go
+internal/plans/export.go
+internal/plans/lapse.go
+internal/plans/marker.go
+internal/plans/pricebook.go
+internal/plans/record.go
+internal/plans/throttle.go
+internal/provision/apppolicy_cache.go
+internal/provision/apppolicy_reconcile.go
+internal/provision/assetgen.go
+internal/provision/claim_app_writes.go
+internal/provision/claim_export.go
+internal/provision/claimassembly.go
+internal/provision/incarnation.go
+internal/provision/lifetime.go
+internal/provision/lifetime_judge.go
+internal/provision/lifetime_migration.go
+internal/provision/lifetime_report_cache.go
+internal/provision/maintenance.go
+internal/provision/move_loss_rebind.go
+internal/provision/move_relocation.go
+internal/provision/moveinputs_contract.go
+internal/provision/offline_move.go
+internal/provision/provision.go
+internal/provision/reconcile.go
+internal/provision/record_sequence.go
+internal/provision/recordview.go
+internal/provision/recordview_store.go
+internal/provision/replica.go
+internal/provision/retirement.go
+internal/provision/rootrecord.go
+internal/provision/run.go
+internal/provision/seed.go
+internal/provision/seedreconcile.go
+internal/provision/seedrollback.go
+internal/provision/seedswap.go
+internal/provision/sidecar.go
+internal/provision/sidecar_reconcile.go
+internal/provision/updates.go
+internal/publicrelease/feed.go
+internal/publicrelease/verifysums.go
+internal/ratelimit/clientkey.go
+internal/ratelimit/limiter.go
+internal/ratelimit/settings.go
+internal/ratelimit/shares.go
+internal/regionname/region.go
+internal/registry/artifacthosts.go
+internal/registry/claimhold.go
+internal/registry/claimrows.go
+internal/registry/claimtimers.go
+internal/registry/claimtransaction.go
+internal/registry/coldhandover.go
+internal/registry/fencegen.go
+internal/registry/fleets.go
+internal/registry/importjournal.go
+internal/registry/readonly.go
+internal/registry/recoveryhandover.go
+internal/registry/recoveryjournal.go
+internal/registry/registry.go
+internal/registry/remote.go
+internal/registry/remote_dispatch.go
+internal/registry/routecas.go
+internal/registry/timer_materialization.go
+internal/registry/timers.go
+internal/relay/authority.go
+internal/relay/config.go
+internal/relay/conn.go
+internal/relay/keys.go
+internal/relay/limits.go
+internal/relay/masters.go
+internal/relay/meter.go
+internal/relay/record.go
+internal/relay/serve.go
+internal/relay/server.go
+internal/release/adopt.go
+internal/release/app_mutation.go
+internal/release/assets.go
+internal/release/authorize.go
+internal/release/authorize_record.go
+internal/release/bake.go
+internal/release/buildstate.go
+internal/release/canary_ttl.go
+internal/release/candidates.go
+internal/release/changeindex.go
+internal/release/changewatch.go
+internal/release/claim_app_writes.go
+internal/release/claim_identity.go
+internal/release/claim_purge_request.go
+internal/release/claims.go
+internal/release/conditional_delete.go
+internal/release/consumedfence.go
+internal/release/consumedfence_linux.go
+internal/release/demand.go
+internal/release/digestcache.go
+internal/release/digestcache_linux.go
+internal/release/digestmarker.go
+internal/release/digests.go
+internal/release/digestwords.go
+internal/release/elfbounds.go
+internal/release/features.go
+internal/release/fetch.go
+internal/release/grant.go
+internal/release/healthy.go
+internal/release/healthy_root.go
+internal/release/heldwake.go
+internal/release/hostretry.go
+internal/release/hostretrylog.go
+internal/release/ladder.go
+internal/release/layoutintent.go
+internal/release/materialize.go
+internal/release/materializeheld.go
+internal/release/pins.go
+internal/release/pipeline.go
+internal/release/production.go
+internal/release/program.go
+internal/release/programhistory.go
+internal/release/promotion.go
+internal/release/proof.go
+internal/release/proofgate.go
+internal/release/proofpolicy.go
+internal/release/prune.go
+internal/release/qualified.go
+internal/release/ratchet.go
+internal/release/ratchet_shared.go
+internal/release/rebind.go
+internal/release/refusal.go
+internal/release/release.go
+internal/release/releaseexclusion.go
+internal/release/resign.go
+internal/release/restartgen.go
+internal/release/restartscope.go
+internal/release/retention.go
+internal/release/rollback.go
+internal/release/rootbake.go
+internal/release/rootenvelope.go
+internal/release/rootfs.go
+internal/release/rootfs_ship.go
+internal/release/rootgenerationcompleteness.go
+internal/release/rootgenerationpins.go
+internal/release/rootgenerationproof.go
+internal/release/rootgenerations.go
+internal/release/roothistory.go
+internal/release/roothistory_app.go
+internal/release/roothistory_creation.go
+internal/release/roothistory_delivery.go
+internal/release/roothistory_outcomes.go
+internal/release/roothistory_pass.go
+internal/release/roothistory_reconstruct.go
+internal/release/roothistory_recovery_policy.go
+internal/release/roothistory_replace.go
+internal/release/roothistory_retirement.go
+internal/release/roothistory_status.go
+internal/release/rootrestart_history.go
+internal/release/rootupdates.go
+internal/release/semver.go
+internal/release/serial.go
+internal/release/sidecarwake.go
+internal/release/signedhead.go
+internal/release/signer.go
+internal/release/staged.go
+internal/release/store.go
+internal/release/sweep.go
+internal/release/system.go
+internal/release/systemidentity.go
+internal/release/systempointer.go
+internal/release/systempublication.go
+internal/release/tag.go
+internal/release/target.go
+internal/release/temporary.go
+internal/release/trash.go
+internal/release/updatesettings.go
+internal/release/updatetarget.go
+internal/release/versions.go
+internal/release/workerassignment.go
+internal/release/workercontrol.go
+internal/reqrec/classify.go
+internal/reqrec/recorder.go
+internal/reqrec/redact.go
+internal/reqrec/ref.go
+internal/rollout/acks.go
+internal/rollout/config.go
+internal/rollout/events.go
+internal/rollout/failures.go
+internal/rollout/flag.go
+internal/rollout/manager.go
+internal/rollout/policy.go
+internal/rollout/queue.go
+internal/rollout/rootfailures.go
+internal/rollout/scheduler.go
+internal/rollout/status.go
+internal/rollout/wakeplan.go
+internal/rollout/worker.go
+internal/rolloutwords/words.go
+internal/rootaws/config.go
+internal/rootaws/credentials.go
+internal/rootaws/credentials_unix.go
+internal/rootaws/environment.go
+internal/rootaws/open_linux.go
+internal/rootfsimage/archive.go
+internal/rootfsimage/dir.go
+internal/rootfsimage/dir_unix.go
+internal/rootfsimage/errors.go
+internal/rootfsimage/flatten.go
+internal/rootfsimage/framework.go
+internal/rootfsimage/mounts.go
+internal/rootfsimage/normalise.go
+internal/rootfsimage/oci.go
+internal/rootfsimage/processes.go
+internal/rootfsimage/progarch.go
+internal/rootfsimage/squashfs.go
+internal/rootfsimage/tar.go
+internal/rootfsimage/tree.go
+internal/rootparticipation/ledger.go
+internal/rootparticipation/migration.go
+internal/rootparticipation/production.go
+internal/rootparticipation/record.go
+internal/rootparticipation/request.go
+internal/rootparticipation/transaction.go
+internal/rootstate/authoritydir_linux.go
+internal/rootstate/authorityfile_linux.go
+internal/rootstate/file_linux.go
+internal/rootstate/link_linux.go
+internal/rootstate/live.go
+internal/rootstate/live_linux.go
+internal/rootstate/persistent_linux.go
+internal/rootstate/release.go
+internal/rootstate/shared_linux.go
+internal/rootstate/state.go
+internal/rootstate/state_linux.go
+internal/runs/check.go
+internal/runs/chunker.go
+internal/runs/commands.go
+internal/runs/keys.go
+internal/runs/runs.go
+internal/runs/stage.go
+internal/runs/store.go
+internal/s3compat/s3compat.go
+internal/safefile/file.go
+internal/safefile/file_linux.go
+internal/safefile/reap_linux.go
+internal/schedule/claimdelivery.go
+internal/schedule/claimtimers.go
+internal/schedule/control.go
+internal/schedule/converge.go
+internal/schedule/cron.go
+internal/schedule/declaration.go
+internal/schedule/envfile.go
+internal/schedule/hostgate.go
+internal/schedule/mingap.go
+internal/schedule/runner.go
+internal/schedule/spec.go
+internal/schedule/status.go
+internal/schedule/timer_mutation.go
+internal/seeds/floor.go
+internal/seeds/legacyowners.go
+internal/seeds/row.go
+internal/seeds/seeds.go
+internal/seeds/token.go
+internal/status/assets/index.html
+internal/status/assets/status.css
+internal/status/console_process.go
+internal/status/displayname.go
+internal/status/dryrun.go
+internal/status/fleet.go
+internal/status/instanceid.go
+internal/status/page.go
+internal/status/snapshot.go
+internal/steering/deployment.go
+internal/steering/route53.go
+internal/steering/steering.go
+internal/stopevidence/evidence.go
+internal/stopevidence/fds.go
+internal/stopevidence/fds_linux.go
+internal/stopevidence/holders.go
+internal/stopevidence/holders_linux.go
+internal/stopevidence/reconstruct.go
+internal/stopevidence/reconstruct_linux.go
+internal/svcrole/svcrole.go
+internal/telemetry/telemetry.go
+internal/termfence/fence.go
+internal/tunnelclient/tunnelclient.go
+internal/unixdial/unixdial.go
+internal/updatewords/words.go
+internal/updatewords/words_authorize.go
+internal/updatewords/words_box.go
+internal/updatewords/words_console.go
+internal/updatewords/words_surfaces.go
+internal/usage/census.go
+internal/usage/edge.go
+internal/usage/scan.go
+internal/usage/statement.go
+internal/usage/storage.go
+internal/usage/usage.go
+internal/version/version.go
+internal/vet/vet.go
+launchctx/controlname/names.go
+launchctx/wireid/id.go
+logs.go
+mail_cli.go
+main.go
+move.go
+mutation_message.go
+pipeline.go
+planwarnings.go
+proof_cli.go
+ratelimit_cli.go
+region_copy.go
+relay.go
+releases_authorize.go
+restart.go
+retention.go
+routes_cli.go
+run.go
+scan.go
+schedule.go
+services.go
+ship_check.go
+ship_check_probe.go
+ship_rootfs.go
+ship_runtime.go
+ship_stop.go
+sidecars_cli.go
+skills.go
+status_instances.go
+store.go
+system.go
+system_activation.go
+system_geoip.go
+system_legacy_routes.go
+system_lifetimes.go
+system_roles.go
+system_seeds.go
+temporary.go
+timezone.go
+update.go
diff --git a/internal/provision/testdata/census-base.tsv b/internal/provision/testdata/census-base.tsv
index e8d3bb0c7..23e774004 100644
--- a/internal/provision/testdata/census-base.tsv
+++ b/internal/provision/testdata/census-base.tsv
@@ -5325,11 +5325,16 @@ update.go runUpdate legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-in
update.go selfReplace legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input file:Command@843,file:CreateTemp@244 c97bcb69dde01d481ddc7c645cbb44e4ab61af7ddea89fac51760106525c7324
@coverage . 33f11a7128a4be8da0707dab0c9c97b494efb89bec376683cb9b94ca89eee18d
@coverage infra/modules/box-fence-writer ce152993976241873b2a39813d7d98c78ec5f0a5cf117c6b89cf920137ae2591
+@coverage infra/modules/box-fence-writer/tests 41d9a8730785bf40f073ad4b7da38e74ea4c4100e396af05916c18ee6bbf858b
@coverage infra/modules/deployment-buckets 90574aa9cab03043c37aabbaf70e0fc852bbce5a428f38085a752f52f4e6747b
+@coverage infra/modules/deployment-buckets/tests 76d5342a4c8a0c18d7d8d2c18413d6f8182fbd8f330cc767208171cbc339a798
@coverage infra/modules/region-host b37e844136b6c967f539dd6428c2955eeb5359be8750de4bbbf3dc97cbf12788
+@coverage infra/modules/region-host/tests b8ebddf1014d105d26d5a8aee278c00c2f857fe13cbc63aa96459cf08ec903bc
@coverage infra/modules/region-remote-host 58a1425a489a6d1b1dbe3dbec3c28b8c99e799ab134dd03d0db9fd60badbf957
+@coverage infra/modules/region-remote-host/tests de552515a1bc875497f2629c4060b01cbc6ba5bd562f582cf6147d56bf148718
@coverage infra/modules/scanner-host 9a6676a7b23210c3fcd09db0112934ef25d83f5285b0b37df90641b1acec1cff
-@coverage infra/modules/scanner-host/files ade16019eab3cc2b79e106c1f0b6557654ef9a852ead0f3b11f0505071cbbe03
+@coverage infra/modules/scanner-host/files 50df04b14dee651f1e2c97914d3408b8a1535f0757ac3af6623e7d920ae0aece
+@coverage infra/modules/scanner-host/tests 599fb02e8d939e8e425c2b247d6f7a91a4c9f2820265c6e58c9a4418541734c3
@coverage internal/activator ce702aa99d48f8c952407cc58f182015dd4fe08563365443a034ed6b2f79b995
@coverage internal/agentsock c9296c72cfa80c882fc6130f8bd92fd89b1c12e8201ba1ce5d41d02309de4b22
@coverage internal/alerting 11731f92da401e275f068cc916bbded5bb9c8fd6d13aa6081173ef25e992d490
diff --git a/internal/provision/testdata/plan14-root-reads-c2-root-exec-inputs.tsv b/internal/provision/testdata/plan14-root-reads-c2-root-exec-inputs.tsv
new file mode 100644
index 000000000..d11e2f512
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-c2-root-exec-inputs.tsv
@@ -0,0 +1,25 @@
+# Census overlay c2-root-exec-inputs, written by census-propose (#369). census-ruling-c2-root-exec-inputs, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-c2-root-exec-inputs.md.
+# 0 body, 0 sites, 0 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 11 new dispositions: 0 reads re-frozen at their disposition with the claim, 11 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
+@legacy 011a32d5f4201f689edbf845a0f18cf21857468d458feaa26aad86adf878da51 infra/modules/box-fence-writer/tests/writer.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 c249aacda93b63c983310cac86720b3e517e8d7bda53af07551515668f18f007
+@legacy 0132ecd9c17a756d96b49a165d4e136ae62a1db506e074c346881eb8870551e1 infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 d66a7224a572656da26d0ad0d24fe2af63cdc69ba1adc23b1e9bd0e49f056390
+@legacy 6b8f514e9a4ef24c607aba07899291453df9c4a96505edbc9709d12d245d042e infra/modules/deployment-buckets/tests/db_reads.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 4dd5c1c5f5a0a97c323410abf2773f2b5aaf51af3c604469de3546871367c900
+@legacy c969b179bd41bb8752ca871335ba840e6819d2a8f407028056ef613adc7f669f infra/modules/deployment-buckets/tests/evidence.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 dda72212c770ecafe45ca9360d4f72c815ae7392db8e77ad2460f13a3196bcee
+@legacy fb776ab537071e25f7f1ce5be0b584e0d3912b7b8ec37586f6e030268b39f665 infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 277896ea63687aa5367c6d7cbfa754f5be90adab3f67985daf0fe977c78cef8d
+@legacy ef0ffdf6ee21be749674360e56241cc366e4de7ac3d681ed96acab8c9be42236 infra/modules/region-host/tests/console_mail.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 a83c4a2c358bb64ad207122c223cd74980c3c8b4039cacd53f4ac24c8fdcf5b4
+@legacy 3c52c324b2ddddd8df43387872603a655658bf7cffc65327d8f4b3cecc1b55a5 infra/modules/region-host/tests/instance_metadata.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 153138192e5b2dabb901af0e6f468a89b10b1880bd04e5bd330eb53fe70540cd
+@legacy 78cc636b6f7db1db3575c0280263c3dc24061b1c187dfcdeb93b2e6fa195267c infra/modules/region-host/tests/store_scanning.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 314aa7a0d47d6ac14a79886d5831a0caff5beb9ae0b0e56835e91819bea01cc6
+@legacy 1e4333d4cddeb3cafeaf1048123e5c4c950b381697d50614367d1bc68856d698 infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 f93d95a07499c6b1943de331ccc77b09953861aa391252b25a458b16786036f0
+@legacy 9bf5a590a0bf6c09172ad578b448fe943d136739cf5f53fa9a19201f0eb3facc infra/modules/scanner-host/files/scanner-selftest external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted (Astra round 3 P1): the scanner self-test script main.tf installs to /usr/local/sbin and scanner-selftest.service runs as root; unchanged bytes, no read added file:external@0 9fd81ebe11027d2ba27e675898f741d2a5e730231a6324d2c6088eea5512afa8
+@legacy 3b3aa4041be5015b9343079b98dd6b1be7ea879253aafe6173d84fb1c1171c81 infra/modules/scanner-host/tests/scanner_host.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 a10fe7ebab299c571e1ae3171982e620f46d5baa8a706e7b3e1350d959a4e653
+infra/modules/box-fence-writer/tests/writer.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 c249aacda93b63c983310cac86720b3e517e8d7bda53af07551515668f18f007
+infra/modules/deployment-buckets/tests/data_lifecycle.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 d66a7224a572656da26d0ad0d24fe2af63cdc69ba1adc23b1e9bd0e49f056390
+infra/modules/deployment-buckets/tests/db_reads.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 4dd5c1c5f5a0a97c323410abf2773f2b5aaf51af3c604469de3546871367c900
+infra/modules/deployment-buckets/tests/evidence.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 dda72212c770ecafe45ca9360d4f72c815ae7392db8e77ad2460f13a3196bcee
+infra/modules/deployment-buckets/tests/fence_writers.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 277896ea63687aa5367c6d7cbfa754f5be90adab3f67985daf0fe977c78cef8d
+infra/modules/region-host/tests/console_mail.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 a83c4a2c358bb64ad207122c223cd74980c3c8b4039cacd53f4ac24c8fdcf5b4
+infra/modules/region-host/tests/instance_metadata.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 153138192e5b2dabb901af0e6f468a89b10b1880bd04e5bd330eb53fe70540cd
+infra/modules/region-host/tests/store_scanning.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 314aa7a0d47d6ac14a79886d5831a0caff5beb9ae0b0e56835e91819bea01cc6
+infra/modules/region-remote-host/tests/data_lifecycle.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 f93d95a07499c6b1943de331ccc77b09953861aa391252b25a458b16786036f0
+infra/modules/scanner-host/files/scanner-selftest external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted (Astra round 3 P1): the scanner self-test script main.tf installs to /usr/local/sbin and scanner-selftest.service runs as root; unchanged bytes, no read added file:external@0 9fd81ebe11027d2ba27e675898f741d2a5e730231a6324d2c6088eea5512afa8
+infra/modules/scanner-host/tests/scanner_host.tftest.hcl external legacy accepted-legacy accepted-legacy;rev3=census-ruling-c2-root-exec-inputs;basis=now fingerprinted: a tofu test file under infra/ (every regular file there is in scope); run by tofu test on an operator machine, never on a box; unchanged bytes file:external@0 a10fe7ebab299c571e1ae3171982e620f46d5baa8a706e7b3e1350d959a4e653
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index f155f5219..93cd54efe 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -1,2 +1,3 @@
# The census chain since the re-base (C2): one "<overlay file>\t<seal>" per line,
# loaded in order onto census-base.tsv. census-propose appends to it.
+plan14-root-reads-c2-root-exec-inputs.tsv 85043db5fa90b66e116e92e63fc33c68dc2ffe9038d8685031a99d42ee1e2ca9