Skip to content

SOP-002-v1 gap-cell decoys: python, typescript, javascript (32 cells) (#8863) - #9466

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
sop2-gaps-a
Nov 27, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
sop2-gaps-a

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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.

  • Python (11): cryptography, dl_frameworks, encapsulation, exfiltration_camouflage, hardware_bridge, llm_api, llm_orchestrator, llm_vector_store, memory_scraping, ml_traditional, scientific
  • TypeScript (10): cryptography, dl_frameworks, exfiltration_camouflage, explicit_casts, hardware_bridge, llm_api, llm_orchestrator, llm_vector_store, rce_funnel, telemetry
  • JavaScript (11): cryptography, dl_frameworks, encapsulation, exfiltration_camouflage, hardware_bridge, llm_api, llm_orchestrator, llm_vector_store, rce_funnel, scientific, telemetry

Most 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))

Noticed and not filed: rce_funnel misses "python3"; TS exfiltration_camouflage misses a keyword inside nested parentheses that JS catches; detail on the /proc/self/mem exclusion 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_scraping and scientific do; for JS/TS every covered family counts the quoted package name (#2535). Recorded per cell.

Baseline

32 new SOP-002-v1 rows (additions only); both charts regenerated. Untested code-stream cells go from 301 to 269; Python, TypeScript and JavaScript now have none.

SOP-002 checklist

  • Protocol: SOP-002-v1
  • Scope: 3 languages (python, typescript, javascript), gap cells only
  • Req A: all spec comment forms, inline and string-comment boundaries; no nesting in these languages, asserted
  • Req B: all-branch boundary audit for the 32 rules (the gate is null where a rule has no identifier-shaped branch)
  • Req C: 32 untested code-stream families now have positive controls
  • Req D: negative controls against the signal contracts
  • Req E: every leak has an issue and a strict xfail; baseline rows promoted
  • family_validity_chart.py --check passes; 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

…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
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 27, 2026 06:47
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 2715508 into main Nov 27, 2026
35 checks passed
@squid-shepherd
squid-shepherd Bot deleted the sop2-gaps-a branch November 27, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant