fix(metal): close out motion_v2 mirror reflect-101 parity and test observability - #1294
Merged
Merged
Conversation
lusoris
force-pushed
the
fix/metal-motion-v2-mirror-closeout
branch
from
September 5, 2026 16:07
f655f5c to
0e679d7
Compare
lusoris
marked this pull request as ready for review
September 5, 2026 16:22
lusoris
marked this pull request as draft
September 5, 2026 16:28
lusoris
force-pushed
the
fix/metal-motion-v2-mirror-closeout
branch
2 times, most recently
from
September 5, 2026 23:11
5172f7b to
4a31a31
Compare
11 tasks
lusoris
force-pushed
the
fix/metal-motion-v2-mirror-closeout
branch
from
September 6, 2026 00:02
4a31a31 to
65745ff
Compare
lusoris
marked this pull request as ready for review
September 6, 2026 00:41
lusoris
marked this pull request as draft
September 6, 2026 00:52
lusoris
force-pushed
the
fix/metal-motion-v2-mirror-closeout
branch
from
September 6, 2026 00:55
65745ff to
983f680
Compare
lusoris
marked this pull request as ready for review
September 6, 2026 00:58
…servability - Correct integer_motion_v2.metal header comment to document reflect-101 mirror padding matching CPU, CUDA, SYCL, and HIP twins - Set mu_skipped = 1 on -ENODEV in test_metal_motion_v2_parity.c to exit 77 on systems without Metal devices, and log stdout on active hardware - Configure test_metal_motion_v2_parity with protocol 'exitcode', should_fail false, and verbose true in core/test/meson.build - Add ADR-1176 closing out the Metal motion_v2 mirror fix landed in #1223, linking from ADR-1166 and docs/adr/README.md - Move T-METAL-MOTION-V2-MIRROR-OFF-BY-ONE-2026-09-03 to Recently closed in docs/state.md with HTML marker at line 337 - Add mv2_mirror reflect-101 invariant to core/src/feature/metal/AGENTS.md - Add changelog fragment and rebase notes entry
lusoris
force-pushed
the
fix/metal-motion-v2-mirror-closeout
branch
from
September 6, 2026 01:11
983f680 to
6241930
Compare
lusoris
marked this pull request as draft
September 6, 2026 01:13
lusoris
marked this pull request as ready for review
September 6, 2026 01:34
26 tasks
lusoris
pushed a commit
that referenced
this pull request
Sep 8, 2026
#1238) Fix issue #1238 by auditing all rows in docs/state.md ## Open bugs: - Move 4 confirmed resolved bug tracking rows to ## Recently closed: * T-UPSTREAM-818-POOLING-ENUM-NO-PERCENTILES-2026-09-03 (PR #1340, commit b43fc44) * T-AI-PTQ-STATIC-QUANT-FORMAT-UNPINNED-2026-09-03 (PR #1306, commit aebb9e1) * T-SVTAV1-HDR-ADAPTER-2026-05-20 (PR #1296, commit e335857) * T-VMAFTUNE-PROFILE-REPORT-AUDIT-2026-05-20 (PR #1296, commit e335857) - Restore 2 closed rows accidentally dropped during dedup in commit 02f9ee4: * T-METAL-MOTION-V2-MIRROR-OFF-BY-ONE-2026-09-03 (PR #1294, commit 8d103e3) * T-UPSTREAM-1564-ADM-CM-GPU-BORDER-AND-ROUNDING-2026-09-03 (PR #1224, commit 6c843bb) - Clean up duplicate tombstone comments in ## Open bugs. - Add changelog fragment changelog.d/changed/docs-1238-state-md-stale-rows.md and regenerate CHANGELOG.md via concat-changelog-fragments.sh. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
lusoris
pushed a commit
that referenced
this pull request
Sep 8, 2026
#1238) Fix issue #1238 by auditing all rows in docs/state.md ## Open bugs: - Move 4 confirmed resolved bug tracking rows to ## Recently closed: * T-UPSTREAM-818-POOLING-ENUM-NO-PERCENTILES-2026-09-03 (PR #1340, commit b43fc44) * T-AI-PTQ-STATIC-QUANT-FORMAT-UNPINNED-2026-09-03 (PR #1306, commit aebb9e1) * T-SVTAV1-HDR-ADAPTER-2026-05-20 (PR #1296, commit e335857) * T-VMAFTUNE-PROFILE-REPORT-AUDIT-2026-05-20 (PR #1296, commit e335857) - Restore 2 closed rows accidentally dropped during dedup in commit 02f9ee4: * T-METAL-MOTION-V2-MIRROR-OFF-BY-ONE-2026-09-03 (PR #1294, commit 8d103e3) * T-UPSTREAM-1564-ADM-CM-GPU-BORDER-AND-ROUNDING-2026-09-03 (PR #1224, commit 6c843bb) - Clean up duplicate tombstone comments in ## Open bugs. - Add changelog fragment changelog.d/changed/docs-1238-state-md-stale-rows.md and regenerate CHANGELOG.md via concat-changelog-fragments.sh. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
lusoris
pushed a commit
that referenced
this pull request
Sep 8, 2026
#1238) Fix issue #1238 by auditing all rows in docs/state.md ## Open bugs: - Move 4 confirmed resolved bug tracking rows to ## Recently closed: * T-UPSTREAM-818-POOLING-ENUM-NO-PERCENTILES-2026-09-03 (PR #1340, commit b43fc44) * T-AI-PTQ-STATIC-QUANT-FORMAT-UNPINNED-2026-09-03 (PR #1306, commit aebb9e1) * T-SVTAV1-HDR-ADAPTER-2026-05-20 (PR #1296, commit e335857) * T-VMAFTUNE-PROFILE-REPORT-AUDIT-2026-05-20 (PR #1296, commit e335857) - Restore 2 closed rows accidentally dropped during dedup in commit 02f9ee4: * T-METAL-MOTION-V2-MIRROR-OFF-BY-ONE-2026-09-03 (PR #1294, commit 8d103e3) * T-UPSTREAM-1564-ADM-CM-GPU-BORDER-AND-ROUNDING-2026-09-03 (PR #1224, commit 6c843bb) - Clean up duplicate tombstone comments in ## Open bugs. - Add changelog fragment changelog.d/changed/docs-1238-state-md-stale-rows.md and regenerate CHANGELOG.md via concat-changelog-fragments.sh. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes out
T-METAL-MOTION-V2-MIRROR-OFF-BY-ONE-2026-09-03. The Metalinteger_motion_v2mirror kernel was already corrected to iterated reflect-101 (idx = (idx < 0) ? -idx : 2 * (sup - 1) - idx) in PR #1223 (71da046db), but the file header still described the old2 * size - idx - 1fold,docs/state.mdand ADR-1166 still recorded the fix as deferred, and the parity test's no-device skip was indistinguishable from a device pass in CI logs. This PR fixes the header comment (comment-only, no kernel change), adds closeout ADR-1176 with a dated Superseded-in-part note on ADR-1166, moves the state.md row to Recently closed, records the cross-twin invariant incore/src/feature/metal/AGENTS.md, and makestest_metal_motion_v2_parityexit 77 (Meson SKIP viamu_skipped = 1) on-ENODEVwhile printing[metal device active: motion_v2 parity run on device]to stdout on real hardware. Verification on the Linux workstation: all four twins re-read and confirmed reflect-101 (CPUinteger_motion_v2.c:157, CUDAmotion_v2_score.cu:51, SYCLinteger_motion_v2_sycl.cpp:109dev_mirror_mv2, HIPmotion_v2_score.hip:67);git ls-tree origin/master testdata | grep -i metalreturns 0 hits so no/regen-snapshotsis needed;concat-changelog-fragments.sh --check,concat-adr-index.sh --check,check-copyright.sh,assertion-density.sh(256 asserts / 151 functions, PASS) and pre-commit on all 14 touched files are green. The reviewer corrected the SYCL twin citation fromdev_mirror_motion(motion v1) todev_mirror_mv2(motion_v2) in the header comment, AGENTS.md, ADR-1176 and the state.md row. Unverified: on-device execution of the parity test on Apple Silicon (no Mac on the workstation) — theBuild — macOS MetalCI leg must show either the[metal device active ...]stdout line or a SKIP for this test; zero score movement is expected since no kernel line changes.Type
fix— Metal motion_v2 mirror closeout: header comment, docs/state, observable test skipChecklist
make format && make lintis green locally (pre-commit on every touched file).test_metal_motion_v2_paritynow exits 77 (SKIP) on non-Metal hosts and prints a device-active stdout line on Apple Silicon; the macOS CI leg exercises it (no local Mac).docs/adr/1176-metal-motion-v2-mirror-closeout.md,docs/adr/README.md,docs/state.md,docs/rebase-notes.md,core/src/feature/metal/AGENTS.md.Bug-status hygiene (ADR-0165)
docs/state.md—T-METAL-MOTION-V2-MIRROR-OFF-BY-ONE-2026-09-03moved from Open to Recently closed (HTML marker left in Open, closerfix/metal-motion-v2-mirror-closeout).Netflix golden-data gate (ADR-0024)
assertAlmostEqual(...)score in the Netflix golden Python tests.Deep-dive deliverables (ADR-0108)
docs/research/1166-upstream-issue-harvest-2026-09-03.md; comment/docs/test-exit-code only.docs/adr/1176-metal-motion-v2-mirror-closeout.md§Alternatives consideredAGENTS.mdinvariant note —core/src/feature/metal/AGENTS.md(mv2_mirror is reflect-101, identical across backends)changelog.d/fixed/metal-motion-v2-mirror-closeout.mddocs/rebase-notes.mdentry (no rebase impact: fork-only Metal backend)Reproducer
🤖 Generated with Claude Code