Repository navigation
SOP-002-v1 gap-cell decoys: python, typescript, javascript (32 cells) (#8863) - #9466
Merged
Merged
Conversation
…avascript (Part of #8863) Adds SOP-002-v1 decoy suites for the 32 code-stream cells in these three languages that had a rule but no decoy row: python (11), typescript (10), javascript (11). Each cell has a positive control, every comment form of the language, string and string-to-comment boundary checks, an all-branch word-boundary audit and contract negative controls. Adds the 32 baseline rows and regenerates the validity charts. No engine or rule change. Leaks found are locked as strict xfails, one issue per root cause: #9451 #9452 #9453 #9454 #9455 #9456 #9457 #9458 #9459 #9460. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
This was referenced Nov 27, 2026
Open
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
Contributor
|
No description provided. |
1 similar comment
Contributor
|
No description provided. |
Contributor
|
No description provided. |
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
Specification-grade SOP-002-v1 decoy suites for the 32 keyword-family cells on Python, TypeScript and JavaScript that had a rule but no decoy test of any kind (
tests/decoys/test_decoy_python.py,test_decoy_typescript.py,test_decoy_javascript.py). Gap cells only, not a full-language graduation. No dead rules: every cell has an authentic positive control.cryptography,dl_frameworks,encapsulation,exfiltration_camouflage,hardware_bridge,llm_api,llm_orchestrator,llm_vector_store,memory_scraping,ml_traditional,scientificcryptography,dl_frameworks,exfiltration_camouflage,explicit_casts,hardware_bridge,llm_api,llm_orchestrator,llm_vector_store,rce_funnel,telemetrycryptography,dl_frameworks,encapsulation,exfiltration_camouflage,hardware_bridge,llm_api,llm_orchestrator,llm_vector_store,rce_funnel,scientific,telemetryMost are library-detection families (an import or call of a named library), so the positive controls are real import and call lines and the negatives are look-alike names that must not fire. Each cell also has every comment form in the language spec (Python
#, docstrings; JS/TS//,/* */, JSDoc, JSX{/* */}; neither JS nor TS nests block comments, asserted), string-then-comment boundaries (URLs, escaped quotes, template literals,"#"/"/*"/"//"in strings), and an all-branch boundary audit.What it found (ten engine leaks, each filed and locked as
xfail(strict=True))#!and JavaScript's HTML-like<!--/-->comments are not stripped.\/\/(/^https?:\/\//) is read as a//comment, so the rest of the line is lost.scientific: the library name has no left boundary (import my_numpy,"./my-numpy"count) and the match spans the whole line.encapsulation:myself._x = 1counts as a private declaration.exfiltration_camouflage:loghas no left boundary, sofetch("/api/blog"),.../changelogandurl_catalogcount.exfiltration_camouflage: theurllib.request(arm is dead (urllib.request.urlopen(...)never fires; the cell still fires through its other branches).rce_funnel:my_child_process.spawn("python")counts.explicit_casts: import and export aliases (import * as React,import { A as B },export { X as Y }) count as casts.explicit_casts: a generic before a keyword (extends B<T> implements C) counts as a cast.memory_scraping:"/proc/" + str(pid)fires for any file under that process (cmdline, status), not only the memory file.Noticed and not filed:
rce_funnelmisses"python3"; TSexfiltration_camouflagemisses a keyword inside nested parentheses that JS catches; detail on the/proc/self/memexclusion is in #9460's body.No rule or engine code is changed here, as the protocol requires. Strings: for Python the eight import-anchored families do not count a one-line string while
exfiltration_camouflage,memory_scrapingandscientificdo; for JS/TS every covered family counts the quoted package name (#2535). Recorded per cell.Baseline
32 new
SOP-002-v1rows (additions only); both charts regenerated. Untested code-stream cells go from 301 to 269; Python, TypeScript and JavaScript now have none.SOP-002 checklist
SOP-002-v1family_validity_chart.py --checkpasses; 442 tests pass, 49 xfail as intended; ruff audit and doc-refs audit: no new findings🤖 Generated with Claude Code
https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem