Repository navigation
feat: calls_out Phase 3 foundation — per-language ignore mechanism + family paradigm constants (#3282) - #3288
Merged
Merged
Conversation
Foundation for Epic #3264 Phase 3, output-neutral by construction: - detector.py: hoist the inline ignore_keywords literal to module-level _CALLS_OUT_GLOBAL_IGNORE (contents verbatim) and union it with an optional per-language rules['calls_out_ignore'] frozenset, authored lowercase and compared casefolded so case-insensitive languages (fortran/abap/pli/rexx/db2_sql/ada) filter keywords in any spelling. - _shared_patterns.py: add CALLS_OUT_CALL_VERB, CALLS_OUT_LISP_FAMILY, CALLS_OUT_COMMAND_POSITION. No profile consumes any of this yet. - strict tests for the three constants (positives from the rosetta control-shell idioms, keyword/label negatives, groups==1, ReDoS) and a detector unit test proving the union/casefold filter. Full extraction suite: 8326 passed. rosetta-audit must show zero diffs. Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
…land The foundation ships the read site ahead of the per-language writers (#3284-#3287) by design; the entry documents its own removal condition. Co-Authored-By: Claude Fable 5 <[email protected]>
This was referenced Sep 22, 2026
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.
Closes #3282. Epic #3264 Phase 3, Batch 0 of 6.
What
ignore_keywordsliteral (rebuilt every call) becomes module-level_CALLS_OUT_GLOBAL_IGNORE(contents verbatim), unioned with an optional per-languagerules["calls_out_ignore"]frozenset — authored lowercase, compared casefolded, so case-insensitive languages filter their keywords in any spelling. Global set behavior unchanged.CALLS_OUT_CALL_VERB(fortran/pli/rexx/db2_sql/assemblyCALL name; deliberately not cobol's regex —GO TOwould capture fortran numeric labels),CALLS_OUT_LISP_FAMILY,CALLS_OUT_COMMAND_POSITION.Output-neutral
No language profile consumes any of this yet — every batch that does lands separately (#3283–#3287) with
rosetta:rebless-owed. This PR's rosetta-audit must be green with zero diffs; that is the neutrality proof.Truth oracle for the follow-up batches: squid-protocol/keyword-rosetta#144.
Verification
tests/extractionfull suite: 8326 passed (worktree, v6 venv)ruff format --check+ruff checkclean on changed source (test-file S101s pre-exist); mypy delta vs origin/main: none (tiktoken stub error pre-exists)🤖 Generated with Claude Code