Skip to content

scripts: grade yaw crossings by cardinal-only pixels - #5195

Open
jakildev wants to merge 2 commits into
masterfrom
claude/5184-yaw-crossing-cardinal-mask
Open

jakildev wants to merge 2 commits into
masterfrom
claude/5184-yaw-crossing-cardinal-mask

Conversation

@jakildev

@jakildev jakildev commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Grade cardinal-yaw crossings by receiver pixels whose neighbours agree while
the cardinal alone differs. Continuous shadow-edge motion can now pass even
when its largest step lands at the cardinal, while one-frame model switches
still fail and all existing pair diagnostics remain available.

Acceptance evidence

Criterion Check run Observed
1a. 90° continuous positive fire python3 scripts/render-yaw-crossing-metric.py grade docs/evidence/receiver-model-gl/crossing-90/head --cardinal-deg 90 coverage_valid: true, lone_cardinal_px: 0, RESULT=PASS
1b. 90° former-model control python3 scripts/render-yaw-crossing-metric.py grade docs/evidence/receiver-model-gl/crossing-90/parent --cardinal-deg 90 lone_cardinal_px: 222, RESULT=FAIL
2a. Existing 0° positive fire python3 scripts/render-yaw-crossing-metric.py grade docs/evidence/receiver-model-gl/crossing-0/head --cardinal-deg 0 lone_cardinal_px: 0, RESULT=PASS
2b. Existing 0° control python3 scripts/render-yaw-crossing-metric.py grade docs/evidence/receiver-model-gl/crossing-0/parent --cardinal-deg 0 lone_cardinal_px: 224, RESULT=FAIL
3. Unit and mutation controls python3 -m unittest discover -s scripts/tests -p test_render_yaw_crossing_metric.py 18 tests pass; continuous edge reads cardinal 12 vs rotated 4 with zero lone pixels and passes, while the cardinal-only block reads 24 lone pixels and fails
4a. Validation contract rg -n "Yaw crossing shadow mask" docs/agents/VALIDATION-RENDER-FEATURES.md Row requires valid coverage and zero cardinal-only receiver pixels while retaining capture and grade commands, including the fog-pass arm
4b. Python lint ruff check scripts/render-yaw-crossing-metric.py scripts/tests/test_render_yaw_crossing_metric.py All checks passed
4c. Diff hygiene git diff --check origin/master...HEAD Exit 0
Changed-surface verification python3 scripts/light-verify.py --if-changed 0 of 4 changed paths in trigger surface; not required

Closes #5184

🤖 Authored by Codex (GPT-5)

@jakildev jakildev added fleet:wip Work in progress — not ready for review 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:awaiting-infra Complete-but-unverifiable PR parked until an infra blocker lands; body carries Parked-until: #N labels Nov 19, 2026
@jakildev

Copy link
Copy Markdown
Owner Author

Steward note: #5123 landed first (PR #5202, 7ed1e271f)

This changes nothing in #5184's plan. There is no amendment.

— epic-steward (#4961)

@jakildev

Copy link
Copy Markdown
Owner Author

Steward note: master moved under this head (update to the 19:19Z note)

This changes nothing in #5184's plan. There is no amendment.

— epic-steward (#4961)

@evin-mac-claude-app evin-mac-claude-app Bot added fleet:design-unblocked Architect responded; worker resumes per the architect comment + updated plan file and removed fleet:awaiting-infra Complete-but-unverifiable PR parked until an infra blocker lands; body carries Parked-until: #N labels Nov 26, 2026
@jakildev jakildev removed the fleet:design-unblocked Architect responded; worker resumes per the architect comment + updated plan file label Nov 26, 2026
Allow ordinary continuous shadow-edge motion through the yaw crossing gate while retaining the pair-difference diagnostics. Reject only receiver pixels whose neighbours agree and cardinal frame differs.
@jakildev
jakildev force-pushed the claude/5184-yaw-crossing-cardinal-mask branch from 5aefbe7 to 2a3fffa Compare November 26, 2026 04:51
@jakildev jakildev added fleet:changes-made Agent addressed human feedback — ready for human re-review and removed fleet:wip Work in progress — not ready for review fleet:amending-mac-pool-3 labels Nov 26, 2026
@jakildev

Copy link
Copy Markdown
Owner Author

Addressed feedback:

  • Rebased the PR onto current master and resolved the validation-index conflict by preserving master’s updated lone-frame and rotated-view rows.
  • Kept this PR’s cardinal-only yaw-crossing rule while retaining master’s fog-pass command contract.
  • Re-ran the plan’s offline grade, unit, lint, diff-hygiene, and changed-surface checks; refreshed the PR’s acceptance evidence.
  • Removed the completed infrastructure park and returned the PR to review.

— worker (Codex)

@jakildev jakildev removed the fleet:changes-made Agent addressed human feedback — ready for human re-review label Nov 26, 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 — scripts: grade yaw crossings by cardinal-only pixels

Verdict: approve

The predicate is exactly the plan's Decision 1. All four committed evidence directories keep their discriminating verdicts, and the mutation control bites.

Praise

  • test_one_sided_jump_is_outside_the_cardinal_only_gate pins the plan review's C1 scope decision as a test. The validation row states the same scope ("across the single route boundary"), so nobody will read the gate as a general continuity check.

Acceptance (issue #5184)

4 of 4 met (graded by hand on head 2a3fffa79).

Checked

  • grade replays on head: crossing-90 head lone_cardinal_px 0, coverage_valid true, PASS; parent 222, FAIL. crossing-0 head 0, PASS; parent 224, FAIL.
  • python3 -m unittest discover -s scripts/tests -p test_render_yaw_crossing_metric.py: 18 of 18 OK.
  • Mutation control: I put cardinal <= rotated back into grade's pass. That makes test_largest_step_at_the_cardinal_passes fail (and the one-sided case), so criterion 3's control holds. The file was restored afterwards.
  • ruff check on both files: clean.
  • Fog-arm frames from #5214 under this head's rule: fog-reveal-crossing-gl/frames-head PASS (0), frames-parent FAIL (242). The rebase kept #5206's --fog-reveal clause in the validation row.
  • The predicate counts only positions where all three frames are receiver (if a and b and c), matching the plan's gotcha. Coverage floors are unchanged, and capture/grade share one verdict path.
  • docs/design/voxel-receiver-yaw-continuity.md: the C2 bullet is reworded. No stale "no larger than the rotated pair" wording is left in that file or in the VALIDATION docs. The Metal tables' PASS/FAIL columns still hold under the new rule.
  • CI at review time: lint jobs green; fleet-tests and render-harness-tests still pending.

🤖 Reviewed by Claude Sonnet 5.5 (review-pr skill)

Opus recheck not required.

@jakildev jakildev added fleet:approved Fleet reviewer approved — ready for human merge and removed fleet:reviewing-mac-pool-7 labels Nov 26, 2026
@evin-mac-claude-app

Copy link
Copy Markdown
Contributor

Every failed workflow on this head is also red on master:

These failures are inherited and are not this pull request's to fix.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

render: the yaw crossing metric fails 90° and 270° cardinals on a continuous receiver (edge motion, no lone-frame pixels)

1 participant