Repository navigation
Conversation
|
The open-PR overlap gate remains blocked after stacking on approved #4882: The PR is intentionally |
042f597 to
5d1bc8e
Compare
|
Retargeted to master: the base PR #4882 merged but its branch was not deleted, so GitHub kept this PR on the merged branch. The three owned commits were replayed with |
5d1bc8e to
6a57c38
Compare
Perf gateHead host slug: perf comparison: bb78d69 → 9df519a-cibaseline: host calibration
thresholds: regress ≥ 10%, improve ≥ 5% voxel cull effectiveness
frame timing (ms)
GPU frame timing (ms; separate from stage samples)
GPU stage timing (avg ms per sampled invocation)
top CPU systems by avg ms (head)
|
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
259.823 → 262.269 (+0.9%) |
| RENDER | ComputeLightVolume |
37.661 → 38.700 (+2.8%) |
| RENDER | CanvasToFramebuffer |
18.125 → 18.697 (+3.2%) |
| RENDER | BakeSunShadowMap |
0.238 → 10.283 (+4220.6%) ⚠ |
| RENDER | ComputeSunShadow |
6.157 → 7.631 (+23.9%) ⚠ |
| UPDATE | PropagateTransform |
4.992 → 4.919 (-1.5%) |
| RENDER | LightingToTrixel |
3.820 → 3.964 (+3.8%) |
| UPDATE | FogRevealEval |
3.808 → 3.929 (+3.2%) |
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1043.404 → 1057.075 (+1.3%) |
| RENDER | ComputeLightVolume |
31.649 → 33.057 (+4.4%) |
| RENDER | ComputeSunShadow |
16.333 → 21.275 (+30.3%) ⚠ |
| RENDER | CanvasToFramebuffer |
16.630 → 17.217 (+3.5%) |
| RENDER | ComputeVoxelAO |
9.193 → 9.211 (+0.2%) |
| RENDER | BakeSunShadowMap |
0.236 → 8.588 (+3539.0%) ⚠ |
| RENDER | LightingToTrixel |
7.758 → 8.138 (+4.9%) |
| UPDATE | PropagateTransform |
4.765 → 4.763 (-0.0%) |
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
290.184 → 297.793 (+2.6%) |
| RENDER | ComputeSunShadow |
51.563 → 55.381 (+7.4%) |
| RENDER | ComputeLightVolume |
35.815 → 37.389 (+4.4%) |
| RENDER | LightingToTrixel |
33.295 → 35.051 (+5.3%) |
| RENDER | BakeSunShadowMap |
3.645 → 21.869 (+500.0%) ⚠ |
| RENDER | CanvasToFramebuffer |
18.265 → 19.189 (+5.1%) |
| RENDER | FogToTrixel |
6.954 → 7.045 (+1.3%) |
| UPDATE | PropagateTransform |
6.821 → 6.798 (-0.3%) |
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1
| pipeline | system | avg ms (base→head) |
|---|---|---|
| RENDER | SingleVoxelToCanvasFirst |
1475.114 → 1480.396 (+0.4%) |
| RENDER | ComputeLightVolume |
31.550 → 32.915 (+4.3%) |
| RENDER | ComputeSunShadow |
12.076 → 18.317 (+51.7%) ⚠ |
| RENDER | CanvasToFramebuffer |
16.579 → 17.213 (+3.8%) |
| RENDER | BakeSunShadowMap |
0.237 → 8.883 (+3648.1%) ⚠ |
| RENDER | ComputeVoxelAO |
7.600 → 7.879 (+3.7%) |
| UPDATE | PropagateTransform |
6.704 → 6.811 (+1.6%) |
| RENDER | LightingToTrixel |
6.207 → 6.786 (+9.3%) |
|
Holding review: upstream PR #4908 is not yet approved. This stacked PR will be re-evaluated once the upstream lands an approval label. |
jakildev
left a comment
There was a problem hiding this comment.
Review — editor: report scene clicks swallowed by UI (#4910)
Verdict: approve
Stacked on #4908 (cross-author). Reviewing the child diff only — upstream is approved separately. Head 6a57c385; CI rollup is all green (linux-build, format-check, header-checks, comment-refs, instruction-size, fleet-tests, perf-gate, whitespace).
The PR does what #4910 asked. The authoring UI gate is now one function, cursorOverEditorUi(), used by both the live click driver and the replay check. The initSystems call site keeps the gizmo-handle term ORed in separately, as before. Session::Builder records an operation name and target cell on every world-aimed MOVE. flushSegment then turns each left PRESS whose preceding MOVE was a world aim into a SceneUiPress. It appends one latched predicate per affected segment.
I checked the following and found no defects:
- Sample timing. The
GuiTesthook runs every live frame fromshotFrame_ == 0, before the event phase.g_sessionAssertFrameresets on a new shot index, so it tracksshotFrame_. A press injected at offsetfis consumed atf+1, which issampleFrame_. Sampling sits beforeGuiTest::onFrameinonSessionAssertFrame. A press atmaxOffsetis therefore sampled bymaxOffset+1, before the capture frame atmaxOffset + 1 + settleFrames_. - Exclusions. GUI-aimed presses have no
AimFixup, sosceneAimis null for them and they are excluded. Keyboard events, releases and the held-drag second MOVE can never precede a PRESS that gets checked. - Fail-safe. An unsampled press fails with "was not sampled", so a timing drift is loud rather than silently green.
- Lifetime.
SceneUiPressChecklives in astd::deque(sceneUiPressChecks_), soSegment::sceneUiPressCheck_andname_.c_str()stay stable. It is the same pattern as the other*Checks_members.sceneAimpoints intom_current.aims_, which is not mutated during the loop. - Refactor equivalence. The
overWidgetexpression and the two swatch loops moved intocursorOverEditorUi()unchanged apart from term order. All terms are pure reads. - Test stub.
IR_SESSION_PREDICATE_STUB(evaluateSceneUiPressCheck)is added inlua_editor_session_bindings_test.cpp, so the binding test still links.
Acceptance (issue #4910)
| Criterion | Grade | Basis |
|---|---|---|
1. Positive fire: test_click_under_panel exits 1 with the new diagnostic and the downstream occupancy failure |
met | The fixture and the format string match the evidence row (click cell=(12,7,5) gui=(604.000000,67.000000) landed on editor UI). The pinned registry-comparison.json shows rc 1 with on_end_filled and the new scene-press row. The target and zoom departure is declared under ## Plan departures. |
2. Discriminating control: test_click_after_focus exits 0 and the GUI-aimed Focus press is not flagged |
met | The same op and cell as criterion 1, plus clickGui({910,69}), the centre of the Focus button. The JSON shows rc 0 with 2 assertions. |
| 3. No regression: existing verdicts are retained | met | The JSON has 73 same_verdict cases and 2 added. drag_probe and remove_part pass; test_unreachable and test_bake_radius_guard stay at rc 1. The six baseline failures keep their names and counts. The comparison covers the gui-verify registry only; I saw no run of scripts/author-entity.py, which the criterion also names. |
| 4. Instruction size | met | lint_instruction_size.py --against origin/master exited 0 (grader ran it at head). |
The grader audited the evidence table for plausibility: the comparison JSON final is 6a57c385… (the PR head) and its baseline is c7627354. I did not build or run the editor myself.
Nits (follow-up)
docs/design/editor-validation.md— the new fixture-list line and the new trailing paragraph are single long lines. Wrap them to match the surrounding bullets.- The plan listed
creations/editors/voxel_editor/CLAUDE.mdfor one contract line. The PR put the contract ineditor-validation.mdinstead and does not list that under## Plan departures. - The base
claude/4897-editor-actions-adoptionhas moved tof5daf7d32(part-size workspace fix), which is not in this branch.mergeStateStatusis CLEAN, so there is no textual conflict. That commit adds a newpart_sizessegment starting with aclickGui; when the stack is next rebased, rerun the two new fixtures plusremove_partanddrag_probein case the layout shifted.
Praise
- The generic check has no exemption. The
remove_partgesture was fixed by panning its segment, which repairs a press that was being swallowed in the old session. - The positive/control fixture pair is well formed: the same op and cell differ only by the Focus click, so the negative case is not vacuous.
Escalation: none. Safe for merge.
🤖 Reviewed by Claude Sonnet 5.5 (review-pr skill)
Opus recheck not required.
6a57c38 to
1f3ec22
Compare
Aim the focus control fixture at its current toolbar position and provide its new scene-press predicate to the Lua binding test harness. Document the Builder scope of the UI check without growing editor instructions.
1f3ec22 to
31fa1fb
Compare
A Builder scene click that lands on editor UI now fails its segment with the operation, target cell or world position, and resolved GUI coordinates. Previously the UI could swallow the click and leave only a downstream occupancy failure.
This follows #4908 in #4903 → #4908 → #4918. Dock layouts, tools, Actions, and keymaps are inherited; this PR owns the shared UI-occlusion predicate, replay checks, and diagnostic fixtures.
Changes
test_click_under_paneland itstest_click_after_focuscounterpart. Both target(12,7,5)at 22×; the negative aims under GRID, while the control clicks Focus at(910,69)in the same segment.remove_partgizmo gesture clear of UI. Keep the replay contracts indocs/design/editor-validation.md.Validation
Final revision:
6a57c385727d256a11d3e37525ef9dd797a5702f, macOS/Metal.python3 scripts/lint_instruction_size.py --against origin/master.c7627354binary and registry: 73 sessions, with the six failures below. This is not an all-green baseline. The final comparison retains their existing failure rows and layout findings without new failures, apart from the deliberate negative fixture. The 75-case run contains 1,524 assertions: 1,490 pass, 32 are unchanged baseline failures, and two intentionally fail in the negative control. All 73 existing cases retain their verdicts. The two new Lua fixtures were rerun after their final framing adjustment; the C++ binary was unchanged. Per-case comparison.c7627354fill_ghostclick_orbitclick_origin_stays_anchoredfailuresmode_previewcomponent_field_keytext-over-widgetlayout findings fail the runtext_input_command_capturetab_walk_wraps_candidate_cyclefailstest_recipe_reapplymanual_color_appliedandmanual_color_preservedfailAcceptance evidence
gui-verifywith--module test/module --module-session test_click_under_panel --gui-layout-checkclick cell=(12,7,5) gui=(604.000000,67.000000) landed on editor UI; occupancy also fails (occupied=no want=yes). Zero layout findings.test_click_after_focus1 scene press(es) clear of editor UI; zero layout findings.c7627354baseline, includingdrag_probe,test_unreachable, andtest_bake_radius_guarddrag_probepasses 22/22;remove_partpasses 45/45; unreachable and bake-radius guards remain expected failures.python3 scripts/lint_instruction_size.py --against origin/masterOverlap gate against
claude/4897-editor-actions-adoption: clean.Plan departures
remove_partfixture pans its gizmo-press segment to repair a latent swallowed press; the generic check has no exemption.Screenshots
Closes #4910