Repository navigation
D-LGJ-MASK-PARENT-1: a mask is accepted only against its own resource (ABI minor 14) - #96
Merged
Merged
Conversation
Nine mask arguments checked only the row count: lgj_op_eq_u32, lgj_op_gt_i32, lgj_plan_eval, lgj_reduce_sum_i32, lgj_reduce_i32, lgj_op_eq_classid, lgj_op_ternary_match, and the source and destination of lgj_hop. They now compare the mask's parent with the resource by registry identity (Arc::ptr_eq), as the register sweeps already did. Status stays MASK_LENGTH_MISMATCH. No new symbol, no registry change. docs/abi.md section 3.1 is new and normative. The change narrows accepted input, so it is not additive. The major is not bumped; the minor is (13 -> 14), and 3.1 records that as a deliberate exception to section 2 together with its reason. provenance.rs is re-pinned: all twelve exports refuse a sibling mask and a mask of the other resource kind, every refusal leaves the mask and all other outputs unchanged, lgj_hop is checked per mask, and the earlier relabelling hazard is now a refusal. Four disable runs, four red. Measured: native 212 tests; AllTests 617 checks; consumers 70 / 68 / 3 / 12; TinkerPop 25 + 55. bench/ not run. Board: the scalar-terminal entries now say merged in #95. Claude-Session: https://claude.ai/code/session_01XAqKMP36eRfzsppfaEWMVz
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
AdaWorldAPI
marked this pull request as ready for review
November 12, 2026 22:52
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
What changes
A mask may be read or written only against the resource it was created over. Nine mask arguments checked only the row count; they now compare the mask's parent with the resource by registry identity (
Arc::ptr_eq), as the register sweeps already did.lgj_op_eq_u32,lgj_op_gt_i32,lgj_plan_eval,lgj_reduce_sum_i32,lgj_reduce_i32,lgj_op_eq_classid,lgj_op_ternary_match, and the source and the destination oflgj_hop.MASK_LENGTH_MISMATCH. No new status, no new symbol.resolve_mask_with_parentalready returns.PARENT_CLOSED, lock order, mask aliasing, every same-parent call.lgj_plan_scalar, mask-RISC, Quack, SoA, ClassView.This is a contract change
docs/abi.mddocumented the lenient reading as deliberate, so this is not an internal refactor. §3.1 is new and normative and states the rule, the order of checks, and the compatibility effect.Versioning decision, for review. §2 reserves the major for incompatible change, and narrowing accepted input is not additive. I did not bump the major: that would make every existing Java build refuse to load a library that serves it correctly, for a pairing no shipped caller makes. The minor goes 13 → 14 so the stricter rule is visible in the manifest, and §3.1 records this as a deliberate exception to §2. If you want the major instead, it is one constant on each side.
Who is affected. A raw-ABI caller that used one mask across two equally sized resources now gets
MASK_LENGTH_MISMATCHwhere it gotOK. No caller in this repository does that.Falsifiers (
provenance.rs, re-pinned)PARENT_CLOSED, all 12lgj_hopAnti-vacuity: for the six exports that write the mask under test, a successful call is shown to change an all-rows mask, so "unchanged after a refusal" is evidence.
Disable runs, each restored from the commit: removing the check in the pattern paths, in the classid/ternary paths, for the hop source, and for the hop destination. Four runs, four red.
Results
Against lance-graph
0683c74, ndarray5fc71d7, JDK 28+23-ea, abi 0.14:fmtandclippy -D warningscleanAllTests: 617 checksNot run:
bench/(JMH), andOldAbiCompatTestagainst historical libraries.Also in this PR
Board hygiene: the scalar-terminal entries in
LATEST_STATE.mdandSTATUS_BOARD.mdsaid "in a draft PR"; #95 is merged and they now say so.Generated by Claude Code