Skip to content

Add SOP-001/SOP-002 keyword-family decoy protocols, skills, runner, and 65-language first-pass sweep (Part of #8863) - #9315

Merged
squid-protocol merged 3 commits into
mainfrom
feat/family-decoy-tests
Nov 25, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
feat/family-decoy-tests

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

Establishes a two-tier decoy testing framework for measuring keyword-family detection quality without requiring AST parsers at full semantic resolution (Part of #8863):

  • Tier 1 — SOP-001 (docs/agents/decoy-testing-protocol.md, .claude/skills/family-decoy-rigor/SKILL.md): Fast automated 6-gate decoy battery (G1 positive control, G2 primary comment, G3 block/secondary comment, G4 inline trailing comment, G5 identifier-substring word boundary, G6a string literal, G6b string-to-comment boundary) run through the real Prism.split_streams() + StructuralExtractor.splice() pipeline to eliminate systemic blindness across all 65 code-stream languages.
  • Tier 2 — SOP-002 (docs/agents/decoy-spec-protocol.md, .claude/skills/family-decoy-spec/SKILL.md): Progressive per-language specification-grade hardening (1–3 languages per PR): complete language-spec comment matrix (incl. alternate markers and nested block comments), exhaustive all-branch G5 word/call-prefix boundary checks, structured G1 positive controls for 0 untested code-stream families, and cross-family negative controls locked in tests/decoys/test_decoy_<lang>.py.
  • Runner & Tests (tests/tools/family_decoy_runner.py, tests/tools/test_family_decoy_runner.py): Implements SOP-001-v1 and --audit-superficial to track graduation from untested → SOP-001-v1 → SOP-002-v1.

Fleet First-Pass Sweep Results (SOP-001-v1)

  • 65 / 65 languages with code-stream rules covered (1,918 cells tested; 0 superficial pre-SOP entries remaining; 318 structured code-stream cells queued for SOP-002 batches).
  • Regenerated docs/self_scan/family_validity_chart.svg and docs/self_scan/family_validity_matrix.svg.

Real Leaks Surfaced (Honest Reporting)

SOP-001 PR Checklist

# Conflicts:
#	docs/self_scan/family_validity_matrix.svg
#	tests/family_validity_baseline.json
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

# Conflicts:
#	docs/self_scan/family_validity_chart.svg
#	docs/self_scan/family_validity_matrix.svg
#	tests/family_validity_baseline.json
@squid-protocol
squid-protocol merged commit abcbf10 into main Nov 25, 2026
36 checks passed
@squid-protocol
squid-protocol deleted the feat/family-decoy-tests branch November 25, 2026 18:00
squid-protocol added a commit that referenced this pull request Nov 25, 2026
…protocols #9315)

#9315 touched no engine files, so the golden masters are unchanged. The only conflict was tests/family_validity_baseline.json: main's file with this change's one cell (python/comprehensions: n_family 177 -> 175, recall 0.859 -> 0.848) re-applied, and the two family-validity SVGs regenerated from it (--check passes).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant