census: record-write layer for offline-move-run
routeDecls and linkedPolicies gain the nudge door's row and moveMain wires carlos move offline run; re-digested at their existing class and kinds. No record write added.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
internal/provision/omr_run_census_test.go+37 −0internal/provision/plan9_b8_census_test.go+1 −1
CI passed — run details
Intent
<task-notification> <task-id>b1fp9hy97</task-id> <tool-use-id>toolu_01E5N7yBF45f5xdbkzQKc4fB</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/96a09f74-e398-48ed-a97f-140bd1f7e255/tasks/b1fp9hy97.output</output-file> <status>completed</status> <summary>Background command "Wait for census verdict" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 29.6 g CO₂e (3,719,663 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on offline-move-run, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/internal/provision/omr_run_census_test.go b/internal/provision/omr_run_census_test.go| new file mode 100644 |
| index 000000000..d13df4e14 |
| --- /dev/null |
| +++ b/internal/provision/omr_run_census_test.go |
| @@ -0,0 +1,37 @@ |
| +package provision |
| + |
| +// omrRunWriteCensusInventory is the offline-move-run branch's review of the |
| +// record-write census (plan 2026-11-15-offline-move-run), layered on |
| +// srFollowupsWriteCensusInventory. Self-review; the independent #280 verdict |
| +// is the reviewer's. |
| +// |
| +// No record write is added and no class or kind changes. Three units are |
| +// re-digested: |
| +// - var routeDecls (internal/console/routedecls.go) and var linkedPolicies |
| +// (internal/console/linkedpolicy.go): one row each for the offline move |
| +// nudge door (POST .../move/offline/nudge), operator-only like its |
| +// sibling verbs. The door bumps the serial and writes no record. |
| +// key-site, lit:instances,lit:sidecars, as before. |
| +// - moveMain (move.go): the CLI's move entry wires carlos move offline run |
| +// (flags, usage line OR66). A person's own CLI; key-site, |
| +// lit:instances, as before. |
| +func omrRunWriteCensusInventory() []censusEntry { |
| + entries := append([]censusEntry(nil), srFollowupsWriteCensusInventory()...) |
| + for _, r := range []censusEntry{ |
| + {"internal/console/routedecls.go", "var routeDecls", "key-site", "lit:instances,lit:sidecars", "547921f8e990e57e780ad8c7103db2d166b44206d652e706b9ef731ed3f90f03"}, |
| + {"internal/console/linkedpolicy.go", "var linkedPolicies", "key-site", "lit:instances,lit:sidecars", "d312ee7b1a02c62ae968476772be28172b479f80596875148ad8a009e13588d9"}, |
| + {"move.go", "moveMain", "key-site", "lit:instances", "99abb602259f92a1757b654eda636644f757a8fba5704297d26eaf642a5742da"}, |
| + } { |
| + replaced := false |
| + for i, e := range entries { |
| + if e.File == r.File && e.Unit == r.Unit { |
| + entries[i], replaced = r, true |
| + break |
| + } |
| + } |
| + if !replaced { |
| + entries = append(entries, r) |
| + } |
| + } |
| + return entries |
| +} |
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go| index caec27cc6..f9e4fe4f0 100644 |
| --- a/internal/provision/plan9_b8_census_test.go |
| +++ b/internal/provision/plan9_b8_census_test.go |
| @@ -366,7 +366,7 @@ func TestPlan9B8RecordWriteCensus(t *testing.T) { |
| if len(got) < 100 { |
| t.Fatalf("census found only %d units under %s; the walk is broken", len(got), root) |
| } |
| - inventory := srFollowupsWriteCensusInventory() |
| + inventory := omrRunWriteCensusInventory() |
| problems := append(censusDiff(inventory, got), censusPolicy(inventory)...) |
| if len(problems) > 0 { |
| t.Fatalf("record-write census rejected %d site(s); update the explicit inventory only after reviewing the source:\n %s", len(problems), strings.Join(problems, "\n ")) |