review: Astra round 1 findings for audit-govulncheck
READY AFTER FIXES; the P2 fixed in 1e20fe90.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+32
−0
docs/superpowers/reviews/FINDINGS-audit-govulncheck-R1.md+32 −0
diff --git a/docs/superpowers/reviews/FINDINGS-audit-govulncheck-R1.md b/docs/superpowers/reviews/FINDINGS-audit-govulncheck-R1.md| new file mode 100644 |
| index 000000000..f5e7e9212 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/FINDINGS-audit-govulncheck-R1.md |
| @@ -0,0 +1,32 @@ |
| +Reviewed `origin/main...efec794771b8c364aa701bb1e6470df1955560ef`, round 1 of 3. The difference from the implementation commit named in the brief is only the brief itself. |
| + |
| +No P1 findings. |
| + |
| +**P2 — Reject config-only and wrong-mode streams.** [main.go:181](/home/paulca/amadan.net/carlos/platform-audit-govulncheck/scripts/govulncheck-gate/main.go:181), [main.go:219](/home/paulca/amadan.net/carlos/platform-audit-govulncheck/scripts/govulncheck-gate/main.go:219). Fault family: only valid symbol-level source scans may contribute to a green verdict. |
| + |
| +The only required evidence of a scan is a config message containing `"scan_level":"symbol"`. Consequently: |
| + |
| +- `{"config":{"scan_level":"symbol"}}` is accepted despite containing no scan results or module inventory. |
| +- Actual govulncheck query-mode output is accepted: v1.8.0 reports `scan_level: symbol` in query mode but emits OSV records without analyzing calls. |
| +- Missing or unsupported protocol versions are accepted. |
| +- Truncation between complete JSON messages is accepted, although truncation inside a message is rejected. |
| + |
| +With an empty exceptions file, these inputs can produce “clean.” With the checked-in exception, a valid first scan satisfying that exception can mask a config-only second scan. |
| + |
| +**Fix:** validate the supported protocol version and source scan mode, require a single leading config and an SBOM identifying scanned modules and package roots, and add rejection tests. [main_test.go:152](/home/paulca/amadan.net/carlos/platform-audit-govulncheck/scripts/govulncheck-gate/main_test.go:152) currently covers only empty input, garbage and package-level scans. |
| + |
| +Keep the successful-process-exit requirement in the Makefile: govulncheck’s JSON protocol has no completion marker, so structural validation alone cannot detect every truncation between messages. The current `&&` chain already prevents ordinary scanner crashes and network failures from reaching the checker; this finding does **not** establish a bypass of that protection. |
| + |
| +The remaining checks were satisfactory on inspection: |
| + |
| +- Called findings retain their highest observed level across scans. Unexcepted calls fail; expired and stale exceptions fail independently. Expiry is inclusive through the stated UTC day. |
| +- Both modules are scanned using pinned govulncheck v1.8.0. Default Go caches remain untouched. A file-free `dash` harness confirmed that failures in either scan or the checker preserve failure status through cleanup, and temporary-directory creation failure stops execution. |
| +- GO-2026-6859’s exception and 2027-01-31 expiry are consistent with the recorded go1.26.10 pin and the justification in `.amadan/go-toolchain.sh`. I did not independently repeat #904’s production call-site audit. |
| +- Runner-only platform coverage is acceptable for this first version because it is explicitly documented. Darwin, Windows and the other Linux architecture remain useful follow-up work; cross-compilation does not provide vulnerability coverage. |
| +- README and AGENTS.md otherwise match the implementation. Existing policy tests assert specific outcomes and diagnostics, rather than accepting any error indiscriminately. |
| + |
| +`git diff --check`, formatting checks on both new Go files, and shell syntax validation passed. The focused Go test command could not start because the read-only sandbox denied creation of its temporary build directory. No full suites or live vulnerability scans ran. No files were changed. |
| + |
| +With no P1 findings, apply the P2 fix without reopening review, per the stopping rule. |
| + |
| +READY AFTER FIXES |
| \ No newline at end of file |