C2 Astra findings round 3: NOT READY (1 P1, 4 P2), unedited
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+66
−0
docs/superpowers/reviews/CODEX-FINDINGS-census-rebase-c2-R3.md+66 −0
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-census-rebase-c2-R3.md b/docs/superpowers/reviews/CODEX-FINDINGS-census-rebase-c2-R3.md| new file mode 100644 |
| index 000000000..0946b473e |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-FINDINGS-census-rebase-c2-R3.md |
| @@ -0,0 +1,66 @@ |
| +- **R1 P1-1 — Resolved:** whole-file scope includes unconditional dispatcher code. |
| +- **R1 P1-2 — Resolved:** package initializer bytes now contribute to envelopes. |
| +- **R1 P1-3 — Resolved:** scope joins Linux amd64 and arm64. |
| +- **R1 P1-4 — Resolved:** whole-file hashes include import bindings. |
| +- **R1 P1-5 — Resolved:** package scope includes dependency-invoked methods without a callback allowlist. |
| +- **R2 P1-1 — Resolved:** repeated initializer declarations cannot overwrite the whole-file fingerprint. |
| +- **R2 P1-2 — Resolved:** whole-file hashes include comment directives. |
| +- **R2 P1-3 — Resolved:** ARM64 embeds are collected and fingerprinted directly. |
| + |
| +1. **P1 — §1: an existing root-executed script has no fingerprint.** |
| + |
| + **Evidence:** [census_scope_test.go:142](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/census_scope_test.go:142) selects infrastructure inputs from `raw.Externals`, whose [extension filter](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/plan14_root_reads_test.go:252) excludes extensionless files. Terraform installs [scanner-selftest](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/infra/modules/scanner-host/main.tf:33), and its [service runs it as root](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/infra/modules/scanner-host/files/scanner-selftest.service:12). |
| + |
| + **Failure scenario:** replacing the script’s checks with `exit 0` changes root-executed code and bypasses the scanner gate without changing any census fingerprint. I recomputed its directory envelope: the pinned hash matches exactly with the script omitted. This is an inherited gap, preserved by C2—not a newly excluded `scripts/` file. |
| + |
| + **Fix:** fingerprint infrastructure execution inputs regardless of extension, and add an extensionless-script mutation proof plus a guard rejecting uncovered execution inputs. |
| + |
| + **Invariant:** every repository-controlled program root executes contributes its bytes to the census. |
| + |
| +2. **P2 — §1: cgo coverage is neither implemented nor explicitly refused.** |
| + |
| + **Evidence:** both [scope construction](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/census_scope_test.go:54) and the [independent guard](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/census_scope_test.go:218) force `CGO_ENABLED=0`. Consequently, listing `CgoFiles` does not provide cgo coverage. |
| + |
| + **Failure scenario:** a cgo-only initializer added to an existing package is excluded by both checks, although a cgo-enabled Linux build executes it. Current release builds disable cgo, and I found no current repository cgo inputs, so this is a completeness-contract gap rather than a demonstrated production omission. |
| + |
| + **Fix:** cover the required cgo build inputs, or explicitly refuse configurations introducing uncovered cgo code and document that restriction. |
| + |
| + **Invariant:** supported root build configurations cannot silently select unreviewed source. |
| + |
| +3. **P2 — §3: R0’s “absent from the tree” removal becomes “absent from scope.”** |
| + |
| + **Evidence:** [rootReadScope](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/census_scope_test.go:170) moves excluded declarations into `Outside`. [checkRootReadDeclarations](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/plan14_root_reads_test.go:1793) checks only `Declarations`, including for `;absent;` removals. |
| + |
| + **Failure scenario:** restore a removed frozen declaration in an excluded, build-tagged file inside a surviving package. Its `;absent;` removal remains accepted even though the declaration exists again. It does not execute in the covered builds, but R0’s stronger absence condition is lost. |
| + |
| + **Fix:** check both scoped and outside declarations for `;absent;` removals; reserve scope-only absence for `;left;`. Add a scoped regression test. |
| + |
| + **Invariant:** deletion approvals and scope-exit approvals retain distinct proof conditions. |
| + |
| +4. **P2 — §§3–4: the migration proof does not detect omitted non-frozen rows.** |
| + |
| + **Evidence:** [TestCensusRebaseCarriesDispositions](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/census_rebase_test.go:31) checks only rows present in the base. It never checks the reverse membership. |
| + |
| + **Failure scenario:** omit an in-scope, non-frozen row with no primitive sites, such as [CleanupContext](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/testdata/census-base.tsv:2005). The migration assertions and legacy seal remain satisfied; the scanner emits no read entry requiring that row. The committed base currently preserves it correctly. |
| + |
| + **Fix:** verify exact membership against the rebase’s fixed scope, and add a mutation test deleting such a row. |
| + |
| + **Invariant:** migration preserves every in-scope disposition, including rows without recognized reads. |
| + |
| +5. **P2 — §5: AGENTS.md incorrectly excludes agent-side writes categorically.** |
| + |
| + **Evidence:** [AGENTS.md:325](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/AGENTS.md:325) says changes to what the agent writes are outside the census, contradicting the whole-file scope described immediately above. |
| + |
| + **Failure scenario:** an agent changes a writer in `internal/host` and follows this paragraph’s instruction that no census coverage applies; its package envelope does change. |
| + |
| + **Fix:** distinguish runtime data provenance, which the census does not establish, from writer source changes in included packages, which remain covered. |
| + |
| + **Invariant:** contributor instructions describe the enforced scope accurately. |
| + |
| +No additional P3 findings. |
| + |
| +Verified against `origin/main` at `b85bbf8…`: all **3,549 rows**, **1,772 freezes**, the schema, base seal, archive bytes, scope membership, and **117 envelope hashes** match. The active manifest is empty. Targeted Go tests could not start because the sandbox denied work-directory creation. No files were edited, no subagents were spawned, and no full suites ran. |
| + |
| +The single P1 belongs to the earlier completeness fault family. An upfront refusal for uncovered root-executed inputs would close the bypass. Cutting package narrowing alone would not: the extensionless-script omission also exists in the old scanner. Round 3 is complete; a fourth review requires Paul’s approval. |
| + |
| +NOT READY |
| \ No newline at end of file |