Skip to content

editor: report scene clicks swallowed by UI (#4910) - #4918

Merged
jakildev merged 4 commits into
claude/4897-editor-actions-adoptionfrom
claude/4910-session-ui-occlusion
Nov 10, 2026
Merged

jakildev merged 4 commits into
claude/4897-editor-actions-adoptionfrom
claude/4910-session-ui-occlusion

Conversation

@jakildev

@jakildev jakildev commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

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

  • Share the authoring UI gate with replay checks, retaining Shapes, docks, and panel terms. Gizmo handles remain scene consumers.
  • Sample world-aimed left presses on their consume tick and emit one latched assertion per affected Builder segment. GUI aims, keyboard events, held-drag positions, and releases are excluded.
  • Add the intentionally failing test_click_under_panel and its test_click_after_focus counterpart. Both target (12,7,5) at 22×; the negative aims under GRID, while the control clicks Focus at (910,69) in the same segment.
  • Frame the remove_part gizmo gesture clear of UI. Keep the replay contracts in docs/design/editor-validation.md.

Validation

Final revision: 6a57c385727d256a11d3e37525ef9dd797a5702f, macOS/Metal.

  • Editor/test builds pass; all 273 focused unit tests pass.
  • Header, comment-reference, and instruction-size checks pass. Instruction size was checked with python3 scripts/lint_instruction_size.py --against origin/master.
  • The preceding-stack baseline uses the c7627354 binary 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.
Retained baseline failure Existing result at c7627354
fill_ghost 24/32 assertions pass; eight before/after ghost-visibility failures
click_orbit 66/70 pass; four click_origin_stays_anchored failures
mode_preview 4/21 pass; 17 mode, occupancy, private-canvas, array, and preview failures
component_field_key 9/9 assertions pass; five text-over-widget layout findings fail the run
text_input_command_capture 100/101 pass; tab_walk_wraps_candidate_cycle fails
test_recipe_reapply 14/16 pass; manual_color_applied and manual_color_preserved fail

Acceptance evidence

Criterion from the #4910 Plan Check Observed
1. Positive fire: the under-panel fixture exits 1, with the new diagnostic and the downstream occupancy failure gui-verify with --module test/module --module-session test_click_under_panel --gui-layout-check Exit 1: click cell=(12,7,5) gui=(604.000000,67.000000) landed on editor UI; occupancy also fails (occupied=no want=yes). Zero layout findings.
2. Discriminating control: Focus clears the scene aim, the new row passes, and the GUI-aimed Focus press is excluded Same command with test_click_after_focus Exit 0, 2/2 assertions pass, including 1 scene press(es) clear of editor UI; zero layout findings.
3. No regression: all existing built-in and test-module verdicts retain their failure rows; gizmo-owned presses pass; expected pre-replay failures remain expected Full registry comparison against the c7627354 baseline, including drag_probe, test_unreachable, and test_bake_radius_guard 73 existing cases preserve their verdicts, failure names, layout findings, and absence of missing shots or runtime errors; all six baseline failures above remain unchanged. drag_probe passes 22/22; remove_part passes 45/45; unreachable and bake-radius guards remain expected failures.
4. Instruction size python3 scripts/lint_instruction_size.py --against origin/master PASS

Overlap gate against claude/4897-editor-actions-adoption: clean.

Plan departures

  • Rebase onto the current editor layout required a new negative-fixture target/zoom and the current Focus center. The old RECIPES target no longer landed under UI.
  • The remove_part fixture pans its gizmo-press segment to repair a latent swallowed press; the generic check has no exemption.

Screenshots

Click swallowed by GRID Same target after Focus
Under GRID After Focus

Closes #4910

@jakildev jakildev added fleet:wip Work in progress — not ready for review fleet:awaiting-infra Complete-but-unverifiable PR parked until an infra blocker lands; body carries Parked-until: #N fleet:author-codex Implementation last authored by Codex; route review to Claude fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend labels Nov 5, 2026
@jakildev

jakildev commented Nov 5, 2026

Copy link
Copy Markdown
Owner Author

The open-PR overlap gate remains blocked after stacking on approved #4882:

#4883 #4885 #4886 #4888 #4889 #4890 #4893 #4895 #4896 #4903 main.cpp conflicts
#4883 #4885 #4886 #4888 #4889 #4890 #4893 #4895 #4896 #4903 session_builder.hpp conflicts
#4908 session_builder.hpp conflicts
VERDICT: block

The PR is intentionally fleet:wip + fleet:awaiting-infra; its body carries Parked-until: #1271, #4897. It must be rebased and the overlap gate rerun after those dependencies land.

@jakildev
jakildev force-pushed the claude/4910-session-ui-occlusion branch from 042f597 to 5d1bc8e Compare November 6, 2026 07:12
@jakildev
jakildev changed the base branch from codex/editor-grid-placement-feedback to master November 6, 2026 07:12
@jakildev

jakildev commented Nov 6, 2026

Copy link
Copy Markdown
Owner Author

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 git rebase --onto origin/master <old base head> (clean) and the base is now master; the Parked-until lines and fleet:awaiting-infra park are unchanged. — opus-architect

@jakildev
jakildev force-pushed the claude/4910-session-ui-occlusion branch from 5d1bc8e to 6a57c38 Compare November 7, 2026 19:01
@jakildev
jakildev changed the base branch from master to claude/4897-editor-actions-adoption November 7, 2026 19:01
@jakildev
jakildev added this pull request to stack #4870 November 7, 2026 19:01
@jakildev jakildev removed fleet:wip Work in progress — not ready for review fleet:awaiting-infra Complete-but-unverifiable PR parked until an infra blocker lands; body carries Parked-until: #N labels Nov 7, 2026
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

Perf gate

Head host slug: linux-x86_64-epyc-9v74-80-unknown

perf comparison: bb78d69 → 9df519a-ci

baseline: /home/runner/work/_temp/perf-baseline/history/linux-x86_64-epyc-9v74-80-unknown/bb78d69e2a267618fec4ee6c5007109ab9afff5e
head: /home/runner/work/IrredenEngine/IrredenEngine/save_files/perf/9df519a24-ci

host calibration

  • host: linux-x86_64-epyc-9v74-80-unknown (matches baseline)
  • ref_ms: head 115.69 vs baseline 116.24 (load_factor 1.00×)
  • calibration target: 50.00 ms (informational)
  • baseline capture: perf-baseline@bb78d69e2 (class-matched history capture, not the branch tip); master 468c8e57f, finished 2026-10-28T02:06:43Z, 10.7 d before the head run, ref_ms 116.24
  • weighting: raw (class-matched capture; load_factor 1.00×; no calibration-scaling entry)
  • attribution: improvement withheld, capture ahead: capture master 468c8e57f is not an ancestor of merge base 8e96ab1fc

thresholds: regress ≥ 10%, improve ≥ 5%

voxel cull effectiveness

cell ratio (base→head) avg visible total avg feeder
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 262144 → 262144 0 → 0
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.788 → 0.788 (+0.0pp) 156630 → 156630 262144 → 262144 50080 → 50080 (1.000×)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 1.000 → 1.000 (+0.0pp) 262144 → 262144 262144 → 262144 0 → 0
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 0.990 → 0.990 (+0.0pp) 255592 → 255592 262144 → 262144 3862 → 3862 (1.000×)

frame timing (ms)

cell avg p99
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 479.69 → 499.64 (+4.2%) 1653.38 → 1739.11 (+5.2%)
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 1272.08 → 1306.94 (+2.7%) 2518.74 → 2600.50 (+3.2%)
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 630.81 → 672.27 (+6.6%) 10984.86 → 12360.23 (+12.5%) ⚠
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 1729.33 → 1759.94 (+1.8%) 2941.51 → 3062.21 (+4.1%)

GPU frame timing (ms; separate from stage samples)

cell envelope (base→head) buffer spans (base→head) coverage (base→head)
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 unavailable → unavailable unavailable → unavailable unavailable → unavailable

GPU stage timing (avg ms per sampled invocation)

cell canvasClear voxelCompact voxelStage1 voxelCardinalElect voxelStage2 voxelSunFaces textToTrixel buildLightOcclusionGrid computeVoxelAO bakeSunShadowMap computeSunShadow computeLightVolume lightingToTrixel fogToTrixel trixelToFb resolvePerAxisScreenDepth fbToScreen
target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1 64.49→66.02 68.13→68.28 60.43→60.77 1.03→1.04 57.58→57.63 5.69→5.56 — 0.00→0.00 0.27→2.85 ⚠ 6.23→15.17 ⚠ 15.56→16.22 22.56→22.98 3.69→3.82 1.37→1.36 0.20→0.20 — 8.19→8.15
target=IRLuaPerfGrid,zoom=4,sub_mode=full,sub_base=1 116.70→119.30 427.16→431.10 261.68→267.51 4.03→4.06 230.80→231.59 4.70→5.14 — 0.00→0.00 0.25→2.43 ⚠ 16.37→27.47 ⚠ 12.94→13.97 19.12→19.56 7.53→7.92 1.32→1.31 0.18→0.18 — 7.67→7.72
target=IRPerfGrid,zoom=1,sub_mode=full,sub_base=1 57.68→59.02 81.48→81.59 66.70→67.28 12.45→12.41 51.12→51.11 8.16→8.92 0.92→0.92 0.00→0.00 0.88→0.92 52.44→62.62 ⚠ 14.24→15.19 53.74→56.12 7.71→7.83 1.88→1.90 0.18→0.18 0.00→0.00 9.20→9.24
target=IRPerfGrid,zoom=4,sub_mode=full,sub_base=1 126.43→128.36 546.84→549.90 426.25→425.28 6.33→6.31 363.98→364.68 5.26→5.62 0.94→0.93 0.00→0.00 0.69→0.71 12.15→24.70 ⚠ 13.18→13.74 18.81→19.65 6.02→6.59 1.35→1.43 0.18→0.18 0.00→0.00 7.68→7.73

top CPU systems by avg ms (head)

target=IRLuaPerfGrid,zoom=1,sub_mode=full,sub_base=1

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%)

@jakildev jakildev added the fleet:awaiting-upstream-review Stacked PR; reviewer is holding verdict until upstream PR is approved label Nov 8, 2026
@jakildev

jakildev commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Holding review: upstream PR #4908 is not yet approved. This stacked PR will be re-evaluated once the upstream lands an approval label.

@jakildev jakildev removed the fleet:awaiting-upstream-review Stacked PR; reviewer is holding verdict until upstream PR is approved label Nov 8, 2026

@jakildev jakildev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 GuiTest hook runs every live frame from shotFrame_ == 0, before the event phase. g_sessionAssertFrame resets on a new shot index, so it tracks shotFrame_. A press injected at offset f is consumed at f+1, which is sampleFrame_. Sampling sits before GuiTest::onFrame in onSessionAssertFrame. A press at maxOffset is therefore sampled by maxOffset+1, before the capture frame at maxOffset + 1 + settleFrames_.
  • Exclusions. GUI-aimed presses have no AimFixup, so sceneAim is 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. SceneUiPressCheck lives in a std::deque (sceneUiPressChecks_), so Segment::sceneUiPressCheck_ and name_.c_str() stay stable. It is the same pattern as the other *Checks_ members. sceneAim points into m_current.aims_, which is not mutated during the loop.
  • Refactor equivalence. The overWidget expression and the two swatch loops moved into cursorOverEditorUi() unchanged apart from term order. All terms are pure reads.
  • Test stub. IR_SESSION_PREDICATE_STUB(evaluateSceneUiPressCheck) is added in lua_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.md for one contract line. The PR put the contract in editor-validation.md instead and does not list that under ## Plan departures.
  • The base claude/4897-editor-actions-adoption has moved to f5daf7d32 (part-size workspace fix), which is not in this branch. mergeStateStatus is CLEAN, so there is no textual conflict. That commit adds a new part_sizes segment starting with a clickGui; when the stack is next rebased, rerun the two new fixtures plus remove_part and drag_probe in case the layout shifted.

Praise

  • The generic check has no exemption. The remove_part gesture 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.

@jakildev jakildev added the fleet:approved Fleet reviewer approved — ready for human merge label Nov 8, 2026
@jakildev
jakildev force-pushed the claude/4910-session-ui-occlusion branch from 6a57c38 to 1f3ec22 Compare November 9, 2026 00:01
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.
@jakildev
jakildev force-pushed the claude/4910-session-ui-occlusion branch from 1f3ec22 to 31fa1fb Compare November 10, 2026 05:56
@jakildev
jakildev merged commit 2b1d201 into master Nov 10, 2026
11 checks passed
@evin-mac-claude-app evin-mac-claude-app Bot added the fleet:needs-human Fleet can't complete autonomously; human must act. Keeps human:approved. Clears when human resolves. label Nov 10, 2026
@evin-mac-claude-app

Copy link
Copy Markdown
Contributor

Orphaned from merged PR #4908; the child conflicts while replaying onto master. No branch mutation was made. Repair manually with git rebase --onto origin/master acfa0eb, push, then gh pr edit --base master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fleet:approved Fleet reviewer approved — ready for human merge fleet:author-codex Implementation last authored by Codex; route review to Claude fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend fleet:needs-human Fleet can't complete autonomously; human must act. Keeps human:approved. Clears when human resolves.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

voxel_editor: a Session::Builder scene click that resolves onto a GUI panel is swallowed silently (no session error)

1 participant