census: re-pin host and hostenv; re-digest the two ship flushes
logshipFlush and errshipFlush now tell the prune ledger what they wrote (in-memory only). The internal/host and internal/hostenv envelopes re-pin for the retention settings and the ledger. Card: docs/superpowers/notes/census-proposal-log-retention-knobs.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 files changed,
+20
−2
docs/superpowers/notes/census-proposal-log-retention-knobs.md+11 −0internal/provision/plan9_b8_census_test.go+4 −2internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-log-retention-knobs.tsv+4 −0
CI cancelled — superseded by a newer push — run details
diff --git a/docs/superpowers/notes/census-proposal-log-retention-knobs.md b/docs/superpowers/notes/census-proposal-log-retention-knobs.md| new file mode 100644 |
| index 000000000..127fb77c8 |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-log-retention-knobs.md |
| @@ -0,0 +1,11 @@ |
| +# Census approval: log-retention-knobs |
| + |
| +Ruling `census-ruling-log-retention-knobs`. The independent reviewer approves or rejects every change below, 0 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26). |
| + |
| +Envelopes re-pinned: `internal/host`, `internal/hostenv`. |
| + |
| +Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner. |
| + |
| +Seal: `94ccbabaf19c3a449cec248a0c32fcc8593c82d3f7f433c6a48b6e0fdf068167` → `94ccbabaf19c3a449cec248a0c32fcc8593c82d3f7f433c6a48b6e0fdf068167`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-log-retention-knobs.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`. |
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go| index 24b76f516..9bc78108d 100644 |
| --- a/internal/provision/plan9_b8_census_test.go |
| +++ b/internal/provision/plan9_b8_census_test.go |
| @@ -781,11 +781,13 @@ var plan9B8CensusInventory = []censusEntry{ |
| {"internal/host/rootexecution_authority.go", "ClaimRootHTTP.executionAuthority", "key-site", "key:RecordKey", "107989f561409fd8c11c2666d0672b8dbeb368842fe00ad6a7b84fece2150438"}, |
| // Re-digested for fix-empty-app-key (census-ruling-fix-empty-app-key, platform-1e 2026-10-16): a chunk key the errors builder refuses (empty or invalid account or app) drops that app's records and logs once; no Put happens for it. Same single Put of the errors chunk; no record key. |
| // Re-digested for agent-start-demo-log-skip (Opus review, 2026-11-05): a tmp-demo- app's pending records are dropped before any Put, as UpsertDay drops demo analytics. One fewer write; same single Put of the errors chunk otherwise; no record key. |
| - {"internal/host/errship.go", "errshipFlush", "nonrecord", "sel:Put", "cbd28ca322e52f3d0ee67e483c04911f635223963fba9e306d5148e54439585c"}, |
| + // Re-digested for log-retention-knobs (Astra review, 2026-11-14): after a successful Put it tells the prune ledger the chunk's key and size (ledger.wrote, in-memory only). Same single Put of the errors chunk; no record key. |
| + {"internal/host/errship.go", "errshipFlush", "nonrecord", "sel:Put", "c4a77f8d81c0b045715d42395ae7fae3adcf901002537eba01df713af1e21f4c"}, |
| {"internal/host/fleetbind.go", "WriteFleetBinding", "nonrecord", "sel:Put", "44ab984c2c9b30abcc938132118f61a6922ccc0cd40ed2b6cb61c7654aa0a1c3"}, |
| // Re-digested for fix-empty-app-key (census-ruling-fix-empty-app-key, platform-1e 2026-10-16): as errshipFlush, for the logs family. Same single Put of the log chunk; no record key. |
| // Re-digested for agent-start-demo-log-skip (Opus review, 2026-11-05): as errshipFlush, for the logs family. Same single Put of the log chunk otherwise; no record key. |
| - {"internal/host/logship.go", "logshipFlush", "nonrecord", "sel:Put", "6458f1225c8f079c5ecab6635f154e53fb5c5d643de9451854d75ab976a840d7"}, |
| + // Re-digested for log-retention-knobs (Astra review, 2026-11-14): as errshipFlush, for the logs family. Same single Put of the log chunk; no record key. |
| + {"internal/host/logship.go", "logshipFlush", "nonrecord", "sel:Put", "8af5df40824469d43813170bd0e152048a676c3db35afbb5fc07dd0796be258a"}, |
| {"internal/host/metrics_loop.go", "putAlertState", "nonrecord", "sel:Put", "d5b6e8b34dc5a731d6bbafeac0b7d0c5c20706d6f413dff38088b3321b35a26c"}, |
| // Clears an aborting record through SetRecordMove (MoveGuardedAbortComplete) once nothing is owed under the op, then ReleaseAbort: record first, ruling M4. |
| {"internal/host/movesabort.go", "movesWorker.abortSource", "record-writer", "key:SetRecordMove", "51bafe02fe16f07c1f1e08cfbc224ba21c8277ec065fff1142349afe0dde675b"}, |
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv| index 431df369d..6db81656f 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -214,3 +214,4 @@ plan14-root-reads-replica-console-account.tsv 87e151a55efb12fb84e9c5939f2ead9058 |
| plan14-root-reads-offline-move-pool-target-413.tsv f79b455e32eb0f63e19ba8b5c67129e1af9315b8650c9e0807e83ec630a82182 |
| plan14-root-reads-probe-burst-block.tsv 94ccbabaf19c3a449cec248a0c32fcc8593c82d3f7f433c6a48b6e0fdf068167 |
| plan14-root-reads-g6-pool.tsv 94ccbabaf19c3a449cec248a0c32fcc8593c82d3f7f433c6a48b6e0fdf068167 |
| +plan14-root-reads-log-retention-knobs.tsv 94ccbabaf19c3a449cec248a0c32fcc8593c82d3f7f433c6a48b6e0fdf068167 |
diff --git a/internal/provision/testdata/plan14-root-reads-log-retention-knobs.tsv b/internal/provision/testdata/plan14-root-reads-log-retention-knobs.tsv| new file mode 100644 |
| index 000000000..a2d943449 |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-log-retention-knobs.tsv |
| @@ -0,0 +1,4 @@ |
| +# Census overlay log-retention-knobs, written by census-propose (#369). census-ruling-log-retention-knobs, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-log-retention-knobs.md. |
| +# 0 body, 0 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +@coverage internal/host 5db3bd1ba62cb0a5fc25e53aa9748319adb53fedbb7c611a972533ed5f421d9d |
| +@coverage internal/hostenv d7eaaec935c96536449b38210eec2d3d8c71c3178f070a00bb97c5506f69db11 |