Repository navigation
CG-BEH-1: trace a changed dispatch arm to the registered methods that use its algebra word (read-only) - #2003
Draft
AdaWorldAPI wants to merge 2 commits into
Draft
AdaWorldAPI wants to merge 2 commits into
AdaWorldAPI wants to merge 2 commits into
Conversation
…n v1 Two r2il integration tests read the algebra-word uses of two existing test bindings through method_ref and admit, cross-check words_used and users_of, and export the rows. No preparation or execution. Plan: ownership crosswalk, PR #2001 / #2002 reconciliation proposal, CG-BEH-1 definition and gate. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMMWgnUU9g7Ldyn6sbk
beh.py reads the POLYFILL table and the FoldDialect::call match arms from source and joins them to method uses exported from a bind store. Each row names its evidence. Negative controls: missing dispatch mapping, stale witness, name match, unused word, missing uses file; 13 self-tests and 12 disable runs. Report and board entry included. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XAqKMMWgnUU9g7Ldyn6sbk
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This branch has not been deployed
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.
This is a read-only experiment under D-CODEGRAPH-BEHAVIOR-RULING-1. It adds no word, classid or binding, and it prepares and executes nothing. The area owner is EXO-155 (D-CGMM-0). Coordination is on the board
P-EXO-18, channel EXO-232.It touches neither
impact_reportnor the Codegraph crate, so it does not depend on #2001 or #2002 and conflicts with neither.Question
A function changes. Which registered behaviours may change with it, and on what evidence?
What this adds
.claude/plans/codegraph-behaviour-v1.mdcontains:crates/lance-graph-r2il/tests/integration/polyfill.rs:BindStore::method_refandadmit.words_usedandusers_of.CG_BEH_USES_OUTis set..claude/probes/2026-11-11-cg-beh-1/holdsbeh.py(words,dispatch,impact),disable_runs.py, the outputs andREPORT.md.Result
The trace has three hops and two kinds of evidence:
match farms ofFoldDialect::callPOLYFILL[p], cross-checked againstbinding::EXECUTABLEmethod_ref+admitin a test runMeasured at
317c4ffc0:0xFFFF_F000has 17 words, and all 17 opcodes have a dispatch arm.lib.rs:980is inside theINT_S_LESSarm (lines 976 to 1018). That is word 5, used at ordinal 0 by methods 1 and 2 of class0x7F0B_0001.Negative controls
UNKNOWN, itsusesrows are withdrawn, every other row is unchangedSTALE, exit 4, no impact rowARTIFACT_MISSING, exit 3beh.py --self-testruns 13 tests.disable_runs.pyruns 12 cases, and all go red.What it does not show
realizesis an arm reading from source. It is not a compiler call fact and not a behavioural witness for the word's declared meaning.binding_native::prepare_native) and everything below it are not mapped.can_cook_methodhaseffects: Vec::new(), so the uses come from one test store.For the #2001 and #2002 sessions
Plan §4 compares the two
impact_reportshapes field by field and proposes one. One point needs a decision either way:UnresolvedDispatchmeans trait dispatch in #2001 and dynamic calls in #2002. Nothing was pushed to either branch.Checks run
cargo test -p lance-graph-r2il --test integration: 57 passed.cargo clippy -p lance-graph-r2il --all-targets -- -D warningsandcargo fmt: clean.python3 -I beh.py --self-testandpython3 -I disable_runs.py: pass.codegraph_index.py --check: current. The supersession index regenerates unchanged.Generated by Claude Code