Repository navigation
shape_debug: grade rotation-pick samples on their own frame's pick - #5226
Conversation
The sweep, tie and cube rotation-pick probes graded each sample on whatever pick record was served one render after its pose was written. On OpenGL, which keeps frames in flight, that record belongs to the previous sample, so the cube probe failed 140/288. Each sample now stores the presenting frame id of the render that wrote its pose, holds the pose, and is graded on the first served record whose frame id reaches it. A stale record or one that misses a 16-render wait budget counts as a miss with its own log line; wait statistics go on a separate ROTATION-PICK waits line and the summary contract is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jakildev
left a comment
There was a problem hiding this comment.
Review — shape_debug: grade rotation-pick samples on their own frame's pick
Verdict: approve
The probe now keys its one-read completion and grading decision to the pose-writing frame, holds the pose while awaiting that record, and bounds the no-record path; I found no correctness defect in the scoped change.
Acceptance (issue #5219)
4 of 5 met. The Windows GL cube, sweep, tie, extra-lag, and both negative-control criteria are evidenced in the PR. The Windows GUI arm is 8/8; the macOS cube/preset/tie arms are explicitly deferred smoke debt in the issue's plan corrections, so they are unverifiable here rather than unmet.
Checked
- Read the complete PR and issue #5219 threads, the changed probe and design-contract context, and the
MouseTrixelPickreadback API. - Confirmed the pending branch reads exactly one pick record, uses its
frameId_for both completion and grading, and does not advance pose/input while waiting. - Confirmed the timeout path records a miss and the tie tallies only count completed, non-stale records.
- CI: completed format/header/instruction/whitespace and PR-lint checks are successful;
linux-buildand aggregateall-checksare still in progress, so unread. - Local
fleet-build --target IRShapeDebugwas not run: the runtime aborted it before dispatch and provided no terminal build result.
🤖 Reviewed by Codex (GPT-5; review-pr skill)
Opus recheck required: the frame-keyed probe exercises asynchronous GPU readback completion semantics.
jakildev
left a comment
There was a problem hiding this comment.
Review — shape_debug: grade rotation-pick samples on their own frame's pick
Verdict: approve
Sonnet flagged asynchronous GPU readback completion semantics; on closer read I confirm the probe respects them: it copies one completed record per attempt, keys completion to the pose-writing frame, and holds that pose until the accepted record or bounded timeout.
Acceptance (issue #5219)
4 of 5 met; 0 unmet; 1 unverifiable. The Windows GL cube, sweep, tie, extra-lag, negative-control, and GUI evidence satisfy the executable criteria. The macOS cube/preset/tie arms remain explicitly deferred, non-merge-gating smoke debt under the issue's plan corrections.
Checked
- Read the complete PR and issue threads, the changed probe and design contract, and the
MouseTrixelPickproducer, history, resolve, and frame-stamping paths. - Confirmed
tickRotationPickSweepperforms one draining read, never retains GPU-backed storage, rejects stale records, excludes ungraded records from tie tallies, and cannot wait without bound. - Detached
fleet-build --target IRShapeDebug:fleet-jobs: 20261120T035309Z-build-72578f succeeded exit=0. - CI: all completed checks are green;
linux-buildand aggregateall-checksare still pending, so unread.
🤖 Reviewed by Codex (GPT-5; review-pr skill)
Summary
--rotation-pick-test sweep|tie|cubeused to grade each sample on whatever pick record was served one render after the sample's pose was written. On OpenGL, which keeps frames in flight, that record is the previous sample's, so the cube probe failed 140/288. Now each sample stores the presenting frame id of the render that wrote its pose. The probe holds that pose and grades the sample on the first served record whoseframeId_reaches that id. Stale records and records that don't arrive within a 16-render budget count as misses and get their own log lines. TheROTATION-PICK <mode> frames=… result=…summary contract is unchanged. Only the probe changed: the engine pick path andguimode are untouched.Screenshots
No visual change: the diff touches only the headless
--rotation-pick-testgrading path and never runs in a normal or--auto-screenshotsession.Acceptance evidence
Host: Windows 10, NVIDIA RTX 3060 Ti,
windows-debug, OpenGL. Head77b7b0f48. The master control is the same tree withmain.cpptaken fromorigin/mastereea79792d.fleet-run --timeout 180 IRShapeDebug --rotation-pick-test cubeframes=288 hits=288 misses=0 result=PASS,RESULT=CLEAN exit=0(waits max=1 total=287)frames=288 hits=288 misses=0 result=PASS,RESULT=CLEAN exit=0(waits max=1 total=288)frames=288 hits=288 misses=0 result=PASS,RESULT=CLEAN exit=0(waits max=1 total=285)main.cppframes=288 hits=142 misses=146 result=FAIL,RESULT=CRASH exit=2fleet-run --timeout 180 IRShapeDebug --rotation-pick-test sweepframes=360 hits=360 misses=0 result=PASS,RESULT=CLEAN exit=0fleet-run --timeout 600 IRShapeDebug --rotation-pick-test tie×3frames=15372 hits=15372 misses=0 result=PASS,RESULT=CLEAN; wall 59 s / 60 s / 63 sfleet-run --timeout 180 IRShapeDebug --rotation-pick-test cube --config-preset configs/presented-pick-previous.luaframes=288 hits=288 misses=0 result=PASS(waits max=2 total=576)main.cppframes=288 hits=136 misses=152 result=FAIL, exit 2samples_[previous - 1].expected_frames=288 hits=141 misses=147 result=FAIL, exit 2sampleFrameId_ = UINT64_MAXframes=288 hits=0 misses=288 result=FAIL, exit 2;waits max=16 total=4608 timeouts=288; 19 s wall, inside--timeout 180python3 scripts/gui-verify.py IRShapeDebug -- --rotation-pick-test gui8/8 assertions passedfleet-runarms## Plan correctionsitem 1; not merge-gatingReviewer notes
Plan departures
ROTATION-PICK waits max= total= timeouts=line, printed before the unchanged summary line.Notes for reviewer
kRotationPickWaitBudget = 16. GL needs one wait per sample on its own, and two with the previous-record preset. Under the unreachable-id mutation, 288 × 16 renders finished in 19 s, so the bound in Plan corrections item 2 holds.fleet-pr-overlap --base master:VERDICT: overlap. The rows: render: configure LOD zoom thresholds and hysteresis per camera #4921main.cppbase-conflict (it conflicts with mastereea79792dalone); render: prototype event-cursor picks from completed images #5135 and render: turn canvas and framebuffer image draws about their centre #5215main.cppclean; render: give the per-axis list walks their own one-entry kernels #5131, docs: complete rotation picking image acceptance (#4820) #5217 and docs: record the opengl rotation-picking acceptance run (#4865) #5224docs/design/per-axis-trixel-canvas-rotation.mdclean. Per the plan, none of themain.cppneighbours touchestickRotationPickSweeporRotationPickFixture.format-changedcould not run on this host because clang-format is not installed. Changed lines were checked by hand againstColumnLimit: 100, and the build is clean.Closes #5219
🤖 Generated with Claude Code