review: Astra findings for flake-demo-browser-siblings (READY)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+23
−0
docs/superpowers/reviews/FINDINGS-flake-demo-browser-siblings.md+23 −0
CI passed — run details
diff --git a/docs/superpowers/reviews/FINDINGS-flake-demo-browser-siblings.md b/docs/superpowers/reviews/FINDINGS-flake-demo-browser-siblings.md| new file mode 100644 |
| index 000000000..7178f3509 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/FINDINGS-flake-demo-browser-siblings.md |
| @@ -0,0 +1,23 @@ |
| +Reviewed `ff8a252794e5d252c78af243c4510ef7cdf2a6f2` against `origin/main` (`365a79ca0e60561a38eb31348ea159d1643f7d3c`), round 1. The diff contains the three named test scripts and the review brief. |
| + |
| +**P1: none. P2: none. P3: none.** |
| + |
| +1. **Navigation waits cover the intended document transitions.** The helpers record only main-frame commits from the attached session and wait without evaluating the document. Token exchange waits for both shell and replacement; refused tokens wait for one commit. Both reloads wait before checking the settled page. The motion helper waits for `about:blank` before changing its fixture, then waits for the scene document. See [demo_claim_browser.mjs:67](/home/paulca/amadan.net/carlos/platform-flake-siblings/internal/console/testdata/demo_claim_browser.mjs:67) and [demo_claim_motion.mjs:59](/home/paulca/amadan.net/carlos/platform-flake-siblings/internal/console/testdata/demo_claim_motion.mjs:59). |
| + |
| + One qualification to the brief’s wording: [key():76](/home/paulca/amadan.net/carlos/platform-flake-siblings/internal/console/testdata/demo_claim_browser.mjs:76) sends `keyUp` after the submitting `keyDown`, before entering `committed()`. Thus the entire interval is not literally command-free. This completes the input action; it does not inspect the outgoing document. Chromium handles keyboard dispatch through its browser-side input handler. I found no demonstrated failure from this exception. Source: [https://raw.githubusercontent.com/chromium/chromium/main/content/browser/devtools/protocol/input_handler.cc](https://raw.githubusercontent.com/chromium/chromium/main/content/browser/devtools/protocol/input_handler.cc). |
| + |
| +2. **No remaining document polling bypasses the waits after an expected navigation.** I checked `Page.navigate`, `Page.reload`, Enter, `requestSubmit`, submit-button clicks and `location` references. The other submission paths either deliberately suppress navigation or test that submission does not happen. |
| + |
| +3. **The expected sequences match the fixtures.** In particular, [the resume wait:231](/home/paulca/amadan.net/carlos/platform-flake-siblings/internal/console/testdata/demo_claim_resume_browser.mjs:231) correctly expects two `/demo/claim` documents. Keymail and the callback return redirects; the first rendered document automatically submits the resumed selection, producing the second. Refused-token scenes remain on their shell. `liveMotion` reloads `/demo/claim` because the page removes the query with `replaceState`. |
| + |
| + CDP defines `Frame.url` without its fragment and reports history API changes separately from document navigation. Source: [https://raw.githubusercontent.com/ChromeDevTools/devtools-protocol/master/pdl/domains/Page.pdl](https://raw.githubusercontent.com/ChromeDevTools/devtools-protocol/master/pdl/domains/Page.pdl). |
| + |
| +4. **The two submit stubs preserve the existing proof.** The page’s delayed `prototype.submit` bypasses the listeners’ `preventDefault`, so suppressing it closes an unintended navigation window. The token test retains its submitted-field, disabled-button, mail, leak and zero-operation checks. The resume stub belongs only to the preliminary disabled-button check; the following navigation creates a fresh document, and the real selection still exercises the complete round trip. Its Go assertions still require exactly one operation targeting the selected account. See [demo_claim_page_test.go:210](/home/paulca/amadan.net/carlos/platform-flake-siblings/internal/console/demo_claim_page_test.go:210) and [demo_claim_resume_browser_test.go:249](/home/paulca/amadan.net/carlos/platform-flake-siblings/internal/console/demo_claim_resume_browser_test.go:249). |
| + |
| +5. **The CSP assertion matches Chromium’s current behavior.** A `form-action` violation returns `ERR_ABORTED` specifically to avoid committing an error page. This top-level fixture has no parent-frame policy that would override that result. The empty commit sequence at [demo_claim_resume_browser.mjs:191](/home/paulca/amadan.net/carlos/platform-flake-siblings/internal/console/testdata/demo_claim_resume_browser.mjs:191) is therefore justified. A future browser behavior change could require adapting the test, but I found no current timing-dependent error-page path. Source: [https://raw.githubusercontent.com/chromium/chromium/main/content/browser/renderer_host/navigation_request.cc](https://raw.githubusercontent.com/chromium/chromium/main/content/browser/renderer_host/navigation_request.cc). |
| + |
| +6. **Strict sequence checking suits these flows.** They do not traverse history, and their status fetches update the DOM without navigating. Previous expected commits are consumed before the next snapshot. Unexpected commits should remain failures rather than be ignored. Existing assertions remain intact. |
| + |
| +Validation was static inspection and Chromium source verification. I did not run tests in this read-only environment or independently reproduce the reported failure or timings. No files were changed. |
| + |
| +**READY** |
| \ No newline at end of file |