edge PPv2 idle: Astra round 2 findings (READY)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+30
−0
docs/superpowers/reviews/ASTRA-FINDINGS-edge-ppv2-idle-R2.md+30 −0
CI cancelled — superseded by a newer push — run details
diff --git a/docs/superpowers/reviews/ASTRA-FINDINGS-edge-ppv2-idle-R2.md b/docs/superpowers/reviews/ASTRA-FINDINGS-edge-ppv2-idle-R2.md| new file mode 100644 |
| index 000000000..f3b593c3f |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/ASTRA-FINDINGS-edge-ppv2-idle-R2.md |
| @@ -0,0 +1,30 @@ |
| +R1 findings: |
| + |
| +- **P1 — resolved:** missing `idle` remains absent through CLI serialization; B-step baselines reject older edges. [Conversion](internal/host/edgetrust.go:196), [serialization](internal/host/edgetrust.go:617), [refusal](scripts/ppv2-step.py:767). |
| +- **P2, late parse — resolved:** the 5 ms read is replaced with a nonblocking peek. Unknown results conservatively count as timeout. [Deadline handling](internal/proxyproto/conn.go:360), [peek](internal/proxyproto/peek_unix.go:19). |
| +- **P2, mixed presence — resolved:** validation requires `idle` everywhere or nowhere and compares sums by value, including presence. [Validation](internal/host/edgetrust.go:242). |
| + |
| +Reviewed `03ff5d17..23f5bdad079948cab4c99f4c227bfd1b1098bc1e`. No outstanding or new P1, P2 or P3 findings. |
| + |
| +The idle branch requires a trusted peer, zero consumed bytes, a timeout and confirmed absence of queued bytes. Started headers and queued late headers remain failures counted as timeout. Both probe outcomes close the connection before deferred deadline restoration. The peek consumes nothing, never waits for readiness, and safely handles concurrent closure. Untrusted connections cannot enter the idle branch; marker checks, the barrier and the S3 metric remain unchanged. |
| + |
| +The B-step refusal is reached by both [apply](scripts/ppv2-step.py:898) and [reverify](scripts/ppv2-step.py:848). A and R steps retain their exceptions. Restart detection includes idle decreases; `STILL` and S3 checks are unchanged. The runbook and spec amendments agree with these paths. |
| + |
| +The three new Python test bodies passed using `FunctionTestCase`, bypassing unused temporary-directory setup. Against the base implementation, the optional-counter and old-edge-refusal cases failed as expected; idle movement already passed. Additional checks passed for all eight presence combinations and idle reset/disappearance. |
| + |
| +Go tests and ordinary Python test setup were blocked before execution by the read-only filesystem. Static inspection confirms that the idle test distinguishes the new behavior; partial-header and untrusted-silence tests protect existing behavior. The 5 ms scheduling hazard is removed. The Go tests retain one-second completion bounds that can fail under extreme scheduling delays; runtime timing behavior remains unverified here. |
| + |
| +Census verdicts: |
| + |
| +| Unit or envelope | Verdict and evidence | |
| +|---|---| |
| +| `Conn.parse` | **Approve.** [Lines 243–313](internal/proxyproto/conn.go:243): classification changes only; trust, marker and barrier checks remain. | |
| +| `Conn.sentAnything` | **Approve.** [Lines 354–379](internal/proxyproto/conn.go:354): checks the existing socket, then closes; no new root path or execution authority. | |
| +| `queuedBytes` | **Approve, accepted-legacy.** [Lines 19–46](internal/proxyproto/peek_unix.go:19): peeks one byte from the accepted socket through `RawConn`; no path lookup or execution. | |
| +| `internal/edge` | **Approve.** [Sum](internal/edge/proxyingress.go:332) and [journal](internal/edge/proxyingress.go:407) propagate the counter without changing authority. | |
| +| `internal/host` | **Approve.** [Conversion and validation](internal/host/edgetrust.go:196), [snapshot](internal/host/edgetrust.go:378), and [root handling](internal/host/edgetrust.go:577): absence is preserved; idle grants no root authority. | |
| +| `internal/proxyproto` | **Approve.** The parse, peek and close paths above, plus the [atomic snapshot](internal/proxyproto/counters.go:69), introduce no new root-controlled resource access. | |
| + |
| +No files changed, subagents spawned or full suites run. |
| + |
| +**READY** |
| \ No newline at end of file |