C2 Astra findings round 2: NOT READY (3 P1, same fault family), unedited; stopping rule 2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+39
−0
docs/superpowers/reviews/CODEX-FINDINGS-census-rebase-c2-R2.md+39 −0
CI failed — run details
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-census-rebase-c2-R2.md b/docs/superpowers/reviews/CODEX-FINDINGS-census-rebase-c2-R2.md| new file mode 100644 |
| index 000000000..a34420a61 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-FINDINGS-census-rebase-c2-R2.md |
| @@ -0,0 +1,39 @@ |
| +- **R1 P1-1 — Resolved:** unconditional dispatcher references use `rootOutside` and are traversed ([census_scope_test.go:307](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/census_scope_test.go:307)). |
| +- **R1 P1-2 — Partly resolved:** initializer declarations are seeded, including library calls and function values; repeated declaration keys still lose fingerprints. See finding 1. |
| +- **R1 P1-3 — Partly resolved:** the graph unions amd64 and arm64; embedded-file collection remains amd64-only. See finding 3. |
| +- **R1 P1-4 — Resolved:** declaration fingerprints include import bindings ([plan14_root_reads_test.go:409](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/plan14_root_reads_test.go:409)). |
| +- **R1 P1-5 — Resolved:** reached types expand to all their methods, covering dependency callbacks ([census_scope_test.go:450](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/census_scope_test.go:450)). |
| + |
| +1. **P1 — §§1–2: repeated initializers overwrite one another’s fingerprints.** |
| + **Evidence:** `rootReadDeclName` gives every ungrouped blank variable the name `var _`, and every initializer function the name `init` ([plan14_root_reads_test.go:453](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/plan14_root_reads_test.go:453)). `Declarations` and `Sources` overwrite earlier declarations under that key ([line 400](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/plan14_root_reads_test.go:400)). There are four such blank-variable declarations in [control.go:30](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/activator/control.go:30). |
| + |
| + **Failure scenario:** replace the first initializer with a function literal that calls `os.Chmod("/opt/carlos", 0777)` before returning the same typed nil. Root executes it during package initialization. The imports and reached declarations remain unchanged; `Chmod` is outside the scanner’s primitive list; the last `var _` still supplies the fingerprint. The census therefore misses a change making root’s installation directory writable by other users. |
| + |
| + **Concrete fix:** assign collision-free declaration identities, or reject collisions before constructing the graph and fingerprints. Add mutation checks for repeated blank initializers and multiple `init` functions. |
| + **Invariant:** every initializer executed by root must contribute its own fingerprint. |
| + |
| +2. **P1 — §2: comment directives are absent from declaration fingerprints.** |
| + **Evidence:** the scanner calls `parser.ParseFile` with mode `0` ([plan14_root_reads_test.go:347](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/plan14_root_reads_test.go:347)). Consequently, the new `rootReadDeclDoc` branch receives no doc comments ([line 403](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/plan14_root_reads_test.go:403)). |
| + |
| + **Failure scenario:** swap the two `go:embed` directives for `zoneTab` and `linksTxt` in [tz.go:11](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/geo/tz.go:11). Both files remain reached, their contents remain unchanged, and both variable declarations retain identical fingerprints. The compiled values change, breaking their consumers, without changing the census. The graph records the changed edges, but envelopes hash only the reached declarations and files—not their bindings. |
| + |
| + **Concrete fix:** parse comments and fingerprint the directives attached to reached declarations. Add an embed-binding swap regression test. |
| + **Invariant:** changing how root-executed code binds its inputs must change its census fingerprint. |
| + |
| +3. **P1 — §§1–2: ARM64-only embedded inputs can remain completely unscanned.** |
| + **Evidence:** `rootReadTyped` still fixes `GOARCH=amd64` ([plan14_root_reads_test.go:103](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/plan14_root_reads_test.go:103)) and obtains embedded files from that build ([line 146](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/plan14_root_reads_test.go:146)). The fallback extension list excludes `.json` ([line 256](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/plan14_root_reads_test.go:256)). Scope validation skips external keys before checking that reached sources were scanned ([census_scope_test.go:569](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/census-rebase-c2/internal/provision/census_scope_test.go:569)). |
| + |
| + **Failure scenario:** a reached ARM64-only declaration embeds a JSON policy. The ARM64 graph reaches its path, but the raw scan never records its contents. Subsequent policy edits change the production binary without moving any census row or envelope. |
| + |
| + **Concrete fix:** collect embedded inputs across both supported architectures and fail when any reached external input lacks a fingerprint. Add an ARM64-only embedded-file mutation test. |
| + **Invariant:** every input compiled into a supported root binary must be covered. |
| + |
| +No additional P2 or P3 findings. |
| + |
| +The read-only archive replay verified all **3,402 carried rows and 1,783 freezes**, the schema, and the base seal. Archived files match `origin/main` byte for byte. The new manifest is empty; the proposal writer retains its append-or-replace-last restriction. |
| + |
| +Targeted tests could not start because the sandbox denied Go’s work-directory creation. Findings above are from code inspection; no files were edited, no subagents were spawned, and no full suites ran. |
| + |
| +This is the second round in the same coverage fault family. Under the repository’s stopping rule, further fixes require choosing an upfront refusal gate, cutting the narrowing feature, or enforcing completeness centrally with guard tests. I recommend the third option. |
| + |
| +NOT READY |
| \ No newline at end of file |