Skip to content

feat: implement language-aware calls_out router and fix COBOL (Epic #3264) - #3267

Merged
squid-protocol merged 4 commits into
mainfrom
feat/3264-calls-out-paradigm-router
Sep 22, 2026
Merged

squid-protocol merged 4 commits into
mainfrom
feat/3264-calls-out-paradigm-router

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #3264. Closes #3202.

What

This PR fundamentally fixes the structural extraction blindness and intrinsic-pollution caused by the legacy hardcoded name( fallback for calls_out_to.

  1. The Infrastructure: Upgrades detector.py to use the Regex Paradigm Switcher. It checks the rules.get(calls_out) dictionary entry first, gracefully falling back to the legacy C-style parenthesis syntax only if unconfigured.
  2. The Fix (COBOL): Implements a highly precise calls_out regex for COBOL: (?:PERFORM|CALL|GO TO)\s+['"]?([A-Za-z0-9_-]+)
  3. The Validation: Adds comprehensive adversarial ReDoS scaling tests and signature boundary tests in test_cobol_strict.py to guarantee O(N) performance and absolute correctness.

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the rosetta:rebless-owed Intentionally moves keyword-rosetta counts; audit warns, corpus re-blesses after merge label Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rosetta:rebless-owed Intentionally moves keyword-rosetta counts; audit warns, corpus re-blesses after merge

Projects

None yet

1 participant