Repository navigation
review: the assertion macros do not count as stage logic (VX_ASSERT, __assert) - #567
Merged
Merged
Conversation
tinebp
force-pushed
the
docs/policy-vx-assert
branch
from
December 2, 2026 13:47
cc15c51 to
8a79c6a
Compare
…__assert) The pipeline-stage detector and the SimX/RTL lockstep check drop the assertion and trace macros before they compare a SimX file, but their C list named only `assert`. The project's own assertion macro, `__assert` (sw/common/util.h), and its replacement name, `VX_ASSERT`, were counted as logic. A pure rename of an assertion in a SimX pipeline model was therefore classified R3 (pipeline-stage), with a lockstep warning, although nothing that is built or timed changes. - change-impact.yaml: `VX_ASSERT` and `__assert` join `c_ignore_macros` (pipeline-stage) and `simx_ignore_macros` (simx-rtl-lockstep), next to `assert`. `policy_version` 6 -> 7. - test_change_impact.py: a rename of `__assert` to `VX_ASSERT` in sim/simx/scheduler.cpp raises neither pipeline-stage nor the lockstep warning. It fails on the v6 policy and passes on v7. Checks: - `python3 ci/change_impact.py lint-policy`: OK, policy v7, 9 path rules, 16 detectors, 5 evidence checks. - `python3 -m pytest ci/test_change_impact.py`: 144 passed. - `change_impact.py replay --range origin/master --max-count 300`: R0 28 (9.3%), R1 34 (11.3%), R2 155 (51.7%), R3 83 (27.7%). This is identical to v6: no commit in that window renames an assertion in a stage file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tinebp
force-pushed
the
docs/policy-vx-assert
branch
from
December 3, 2026 10:09
8a79c6a to
60cbe3e
Compare
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.
The
pipeline-stagedetector (policy v4) and the SimX/RTL lockstep check ignoreassertion macros so that a pure assertion edit in a shared stage is not read as
logic. They listed
assertbut not the project's ownVX_ASSERT(or the old__assert), so the__assert→VX_ASSERTrename in #560 (F10) was classifiedR3
pipeline-stageand raised a lockstep warning. Reported as P3 in the #560review.
docs/review/change-impact.yaml:VX_ASSERTand__assertjoinc_ignore_macros(pipeline-stage) andsimx_ignore_macros(lockstep);policy_version5 → 6.ci/test_change_impact.py: a rename case. It fails on v5 and passes on v6.Checks
python3 ci/change_impact.py lint-policy: OK, policy v6.python3 -m pytest ci/test_change_impact.py: 141 passed, 1 skipped (the replay-against-origin case, which needs an origin remote).change_impact.py replay --max-count 300: R0 28, R1 34, R2 155, R3 83, identical to v5. No commit in that window renames an assertion in a stage file.🤖 Generated with Claude Code