review: Astra brief for audit-bugs-2, round 1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+48
−0
docs/superpowers/reviews/REVIEW-BRIEF-audit-bugs-2.md+48 −0
CI failed — run details
Intent
diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-audit-bugs-2.md b/docs/superpowers/reviews/REVIEW-BRIEF-audit-bugs-2.md| new file mode 100644 |
| index 000000000..2a036ac74 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/REVIEW-BRIEF-audit-bugs-2.md |
| @@ -0,0 +1,48 @@ |
| +# Review brief: branch audit-bugs-2, round 1 of 3 |
| + |
| +Repo carlos/platform, branch `audit-bugs-2`, commit 6658a8dbdb595c16ccaae9813defc1385f4e4c64. |
| +Under review: the diff `origin/main...6658a8dbdb595c16ccaae9813defc1385f4e4c64` (base c4b44c34). |
| +Authorities: AGENTS.md on main ("The census", "Stopping rules"). Context: |
| +amadan #1123 batch 2, and #1141. |
| + |
| +You are the independent reviewer and the census reviewer. Card: |
| +`docs/superpowers/notes/census-proposal-audit-bugs-2.md`. Give a verdict |
| +for every unit and envelope, citing the lines you read. |
| + |
| +## What to check (one commit per item) |
| + |
| +1. ledger verify (cli.go, internal/ledger/verify.go): `checkHead` refuses |
| + a malformed HEAD; the claim that no empty-ledger HEAD exists (Append |
| + writes HEAD only after the first entry): true? Could a legitimate |
| + published ledger now fail verification? 30 s client bound. |
| +2. system update (system.go): status read, systemUpdateJob and |
| + watchSystemJob refuse unreadable answers and empty job ids; the |
| + rollback path reports an unknown version without failing. Any case |
| + where a promote that DID start is now reported as not started, or where |
| + an operator is told to retry something that would double-run? |
| +3. console ownership.go: `errOpsAccountUndeletable` sentinel, every path |
| + that returned the old text now returns the sentinel (wrapped or not)? |
| +4. #1141 apisubdomain.go: the lost-race path now judges the winning claim; |
| + all branches after it see the right err, cur and etag. |
| +5. host/haplacement.go: failed capacity page now logged. |
| +6. activator/escrow.go: `escrowAlert` type with identical text; both call |
| + sites use errors.As. Behaviour identical except a joined alert is now |
| + recognised; at the sweep site the joined alert is logged as an alert |
| + instead of a routine failure. Does anything else consume these |
| + errors' text (tests, log scanners, runbooks, alerting) that the type |
| + change could break? |
| +7. AGENTS.md sandbox note. |
| +Tests: each new one fails on the old code; any flake risk. |
| + |
| +## Severity |
| + |
| +- **P1**: unsafe, would not compile, a test fails, or it would not work. |
| +- **P2**: wrong or missing. Fixed without reopening this review. |
| +- **P3**: clarity or polish. Follow-up list only. |
| + |
| +## Output |
| + |
| +Findings ranked P1, P2, P3 with file:line, failure scenario and fix. Then |
| +the census verdict per unit and envelope. End with exactly one verdict: |
| +READY, READY AFTER FIXES, or NOT READY. Do not edit files, spawn |
| +reviewers or run full suites. |