carlos / platform Public

docs: stage-hold review brief notes the merge and its test run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev a6f2d24078b344ca636931a001daaeb930609e4b parent f4d68f7
1 file changed, +11 −6
  • docs/superpowers/reviews/REVIEW-BRIEF-flake-demo-claim-stage-hold.md +11 −6

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/reviews/REVIEW-BRIEF-flake-demo-claim-stage-hold.md b/docs/superpowers/reviews/REVIEW-BRIEF-flake-demo-claim-stage-hold.md
index bfc589c4f..8bfffe46e 100644
--- a/docs/superpowers/reviews/REVIEW-BRIEF-flake-demo-claim-stage-hold.md
+++ b/docs/superpowers/reviews/REVIEW-BRIEF-flake-demo-claim-stage-hold.md
@@ -3,8 +3,11 @@
Repo carlos/platform, branch `flake-demo-claim-stage-hold`, fix commit
f1193adc2653e12dc8cab648d9fc0d3a84dbe99e, golden commit
9ced5534862463871a92ca667cfc750120f54221.
-Under review: the diff `origin/main..flake-demo-claim-stage-hold` (base
-365a79ca). Changed files:
+Under review: the diff `origin/main..flake-demo-claim-stage-hold`. The
+branch started at 365a79ca. It merged main at 619c64c5 (the sibling
+navigation-wait fix, which also edits `demo_claim_browser.mjs`) without
+conflicts in f4d68f71. Line numbers below are at the branch tip. Changed
+files:
- `internal/console/static/demo_claim.js` (product JS, +7 lines)
- `internal/console/testdata/demo_claim_layout.mjs` (`watchClaimCSP`)
@@ -83,8 +86,8 @@ From `demo_claim.js`:
first-paint heuristic is gone. The blank-frame counter is unchanged.
- `demo_claim_browser.mjs`: `assertHeld()` (`:24`) checks that stages 1,
2, 3, 4 were shown in order and that the page-recorded hold of each of
- stages 1 to 3 is `>= heldAtLeast`. Both callers (the fast scene, `:195`,
- and every `liveMotion` variant, `:245`) use it.
+ stages 1 to 3 is `>= heldAtLeast`. Both callers (the fast scene, `:232`,
+ and every `liveMotion` variant, `:284`) use it.
- `heldAtLeast = 650 - 1 - 0.2` (`:20`). The 1 ms: `setTimeout` takes a
WebIDL `long`, so the fractional delay `hold()` asks for is truncated
(under 1 ms lost). The 0.2 ms: Chromium coarsens `performance.now()` to
@@ -93,7 +96,7 @@ From `demo_claim.js`:
`since` is both the hold's base and the recorded start, so its error
cancels. The reading inside `hold()` and the recorded end do not. The
bound is: recorded hold > 649 - e(hold read) + e(end read) > 648.8.
-- The working-button hold (`:213-223`) keeps its check. It does not have
+- The working-button hold (`:252-262`) keeps its check. It does not have
the observer's weakness: the test reads `performance.now()` in the page
before `requestSubmit()` and again inside the overridden `submit`, so the
two readings bracket a whole-number `wait(650)` plus a double rAF. It
@@ -127,6 +130,8 @@ From `demo_claim.js`:
gave `ok ... 144.430s`, with every UX browser test, the spent-token
browser test and all eight footer tests PASS. So each UX browser test has
passed three times.
+- After the merge, at f4d68f71: `go test ./internal/console -run 'TestDemoClaimUX|TestDemoSpentTokenBrowserHeadless|TestDemoClaimBrowserHeadless|TestDemoClaimSelectStepUpHeadless|TestDemoClaimKeptHeadless|TestDemoClaimFooterAbsent' -count=1 -timeout 30m -v`
+ gave `ok ... 260.685s`, with all fourteen PASS.
- Census and code-health do not read these files (no references in
`internal/provision` census tests, `internal/codehealth` or
`.amadan/code-health.tsv`), so I did not run them.
@@ -156,7 +161,7 @@ From `demo_claim.js`:
callback)? If it did, the test fails rather than passes; confirm.
6. Is any timing check left on the observer's clock, or on node's clock in
a way that can fail under load? Known and left as is: the
- `button submitted before 650ms` check (`demo_claim_browser.mjs:221`)
+ `button submitted before 650ms` check (`demo_claim_browser.mjs:260`)
waits 500 ms in node and expects no submit yet. Under heavy load it can
only fail falsely, not pass falsely. Say whether it should change in
this branch.