Repository navigation
Add SOP-001/SOP-002 keyword-family decoy protocols, skills, runner, and 65-language first-pass sweep (Part of #8863) - #9315
Merged
Conversation
…anguage first-pass sweep (#8863)
# Conflicts: # docs/self_scan/family_validity_matrix.svg # tests/family_validity_baseline.json
Contributor
# Conflicts: # docs/self_scan/family_validity_chart.svg # docs/self_scan/family_validity_matrix.svg # tests/family_validity_baseline.json
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]>
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.
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):
docs/agents/decoy-testing-protocol.md,.claude/skills/family-decoy-rigor/SKILL.md): Fast automated 6-gate decoy battery (G1positive control,G2primary comment,G3block/secondary comment,G4inline trailing comment,G5identifier-substring word boundary,G6astring literal,G6bstring-to-comment boundary) run through the realPrism.split_streams()+StructuralExtractor.splice()pipeline to eliminate systemic blindness across all 65 code-stream languages.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 intests/decoys/test_decoy_<lang>.py.tests/tools/family_decoy_runner.py,tests/tools/test_family_decoy_runner.py): ImplementsSOP-001-v1and--audit-superficialto track graduation fromuntested→SOP-001-v1→SOP-002-v1.Fleet First-Pass Sweep Results (
SOP-001-v1)docs/self_scan/family_validity_chart.svganddocs/self_scan/family_validity_matrix.svg.Real Leaks Surfaced (Honest Reporting)
comment, 38 leaks):ocaml(* ... *)(34 — filed prism: OCaml(* ... *)block comments leak into code_stream (34/35 keyword families affected) #9303),easytrievecolumn-1*(4 — filed prism: Easytrieve column-1*comments leak into code_stream (4/6 keyword families affected) #9304).block_comment, 248 leaks):julia#= =#(40),fsharp(* *)(39),nim#[ ]#(39),ruby=begin =end(37),matlab%{ %}(36),ocaml(* *)(35),hcl/* */(22).inline_comment, 34 leaks) & G6b (string_comment_boundary, 34 leaks):ocamlonly (prism: OCaml(* ... *)block comments leak into code_stream (34/35 keyword families affected) #9303); 0 leaks across the other 64 languages.ident_boundary, 11 leaks):kotlin(3),erlang(1),html(1),java(1),php(1),powershell(1),ruby(1),rust(1),swift(1).SOP-001 PR Checklist
SOP-001-v1(docs/agents/decoy-testing-protocol.md) +SOP-002-v1(docs/agents/decoy-spec-protocol.md)Prism.split_streams+StructuralExtractor.splice(positive control G1 verified)tests/family_validity_baseline.json; GitHub issues filed for G2 leaks (prism: OCaml(* ... *)block comments leak into code_stream (34/35 keyword families affected) #9303, prism: Easytrieve column-1*comments leak into code_stream (4/6 keyword families affected) #9304)python tests/tools/family_validity_chart.py --writeand--checkpasspytest tests/tools/test_family_decoy_runner.py tests/tools/test_family_validity_chart.py tests/tools/test_language_sheets.pypass (50 passed)ruff_audit.py --ci,mypy_audit.py --ci,dead_key_audit.py --ci,doc_refs_audit.py --cipass with 0 new findings