carlos / platform Public

Review brief for the probe-burst promotion branch, round 1 (#491)

So the Astra review has the scope, the round budget and the census
question in one place, per the review brief template.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 374bcff00711d247235b7bab0425e3c5ac6f11d8 parent e974371
1 file changed, +103 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-PROBE-BURST-BLOCK.md +103 −0

CI passed — run details

diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-PROBE-BURST-BLOCK.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-PROBE-BURST-BLOCK.md
new file mode 100644
index 000000000..50e502f4f
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-PROBE-BURST-BLOCK.md
@@ -0,0 +1,103 @@
+# Review brief: branch probe-burst-block-491 (whole branch, with its census card), round 1 of 3
+
+Repo carlos/platform, branch `probe-burst-block-491`, commit e974371a182279e35011108630d624e07cf657bc.
+Under review: the diff `4c6416787..e974371a1` (base is amadan's main).
+Authorities, merged on main:
+`docs/superpowers/specs/2026-10-31-probe-burst-limit-design.md` (§3, §4, §5a, §6),
+`docs/superpowers/specs/2026-10-24-edge-request-protection-design.md` §5.5,
+`docs/superpowers/plans/2026-10-31-probe-burst-limit.md`, and the precedent
+commit 378646f1c ("Edge protection: the hard tier blocks by default").
+
+You are an independent reviewer. Read the diff, then the code it touches,
+and check every claim against that code.
+
+## What the branch does
+
+1. `internal/edgeguard/catalogue.go`: `BurstRule.Mode` goes from watch to
+ block, so in the default mode (`guardCatalogue`) a client in a probe-burst
+ cool-down is refused (429) the catalogue paths an app is not known to
+ serve, on every app, including cool-downs received as mesh notices.
+ Tests that relied on watch now name watch mode or demote the rule;
+ new witness `TestBurstCatalogueRefusesByDefault`;
+ `TestBurstNoticeAppliesOnThePeer` runs in the default and block modes.
+2. `internal/console/apierrors.go`: the telemetry GET
+ (`GET /api/cli/apps/{account}/{app}/telemetry`, read by
+ `carlos protection`) answers a person who is a member but not an owner
+ with the protection half alone, instead of 403. Owners and Operate
+ service credentials read the whole object. The PUT is unchanged.
+3. `internal/edge/burst_notice.go`: a notice worker checks its peer against
+ the current home map before taking each budget slot (`burstPeerCurrent`),
+ prunes departed peers, and drops the notice as Gone. New test
+ `TestBurstNoticeDepartedPeerStopsAtDispatch`.
+4. Census: `docs/superpowers/notes/census-proposal-probe-burst-block.md`
+ re-pins the `internal/edge` and `internal/edgeguard` envelopes; no unit
+ changes.
+
+## Fixed: do not re-argue
+
+- Paul's rulings in the probe-burst spec (thresholds 60/60 s/10 min,
+ per-app counting, platform-wide cool-down, Sec-Fetch-Mode never counts,
+ fleet apps only recorded, record-only switch per app). Report only
+ mechanisms that fail to honour them.
+- Whether to promote at all is Paul's call on the calibration evidence,
+ not this review's.
+
+## What to check
+
+1. Promotion: with the rule blocking by default, can anything now be
+ refused that the spec says must never be: a page not in the catalogue,
+ a static site's existing file, a fleet app's request, a request to an
+ app whose record-only switch is on, or a request from a client not
+ cooling? Is `guardBlock` / `guardWatch` / `guardOff` behaviour unchanged?
+ Does verdict precedence (`decideVerdict`) still never let a burst
+ verdict replace or weaken a hard block?
+2. Tests: do the changed tests still test what their names say, and does
+ any test elsewhere (edge, edgeguard, console, reqrec, host) still
+ assume the burst rule watches by default? Does `demoteBurstRule` restore
+ global state safely (no `t.Parallel` races on `edgeguard.BurstRule`)?
+3. Telemetry GET: is the member read gated correctly (instanceGate, then
+ role)? Can a member, a non-member, an Instance-role service token or a
+ linked/scoped credential now read anything beyond the protection half,
+ or anything at all they could not before? Is the response for an absent
+ protection half `{}`? Does any other caller of `handleAPITelemetryGet`
+ or `telemetryGate` change behaviour?
+4. Notice workers: can `burstPeerCurrent` deadlock (it takes `n.mu`; is it
+ ever called with `n.mu` held, or while `sendBurstNotices` holds it and
+ waits on the worker)? Can pruning close `p.stop` twice, or prune a
+ freshly created peer for the same box? Does a nil home map now drop
+ notices that were sent before? Is anything sent to a box no longer in
+ the targets?
+5. Census: give a verdict on each re-pinned envelope (`internal/edge`,
+ `internal/edgeguard`) per AGENTS.md "The census": reject if the change
+ lets root open, run, query or follow anything new from tenant-, app- or
+ agent-controlled input, or weakens a check root relies on.
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work.
+ Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review. (The
+ census, and review of any newly changed security, root, termination
+ or production-storage behaviour, still check the fix; see AGENTS.md,
+ "Stopping rules".)
+- **P3**: clarity or polish. Goes on a follow-up list; never a reason for
+ another round.
+
+A P1 states its failure scenario and the evidence (file:line). Do not
+raise a P2 to P1 to keep the review open.
+
+## Output
+
+Findings ranked P1, P2, P3. Each gives the section or task, the problem,
+the evidence (file:line, verified), the failure scenario, a concrete
+fix and the invariant or trust boundary it breaks (that is its fault
+family). Then the census verdict per envelope (approve or reject, citing
+the lines read). End with exactly one verdict:
+
+- **READY**: no P1 and no P2.
+- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another
+ round.
+- **NOT READY**: one or more P1s, listed.
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of
+your own. Do not run the full test suites.