Skip to content

SOP-002-v1 gap-cell decoys: csharp, java, kotlin (11 cells) (#8863) - #9428

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

Specification-grade SOP-002-v1 decoy suites for the 11 keyword-family cells on C#, Java and Kotlin that had a rule but no decoy test of any kind (tests/decoys/test_decoy_csharp.py, test_decoy_java.py, test_decoy_kotlin.py). Gap cells only, not a full-language graduation.

  • C# (4): auth_middleware, comprehensions, explicit_casts, import
  • Java (3): api, explicit_casts, import
  • Kotlin (4): api, explicit_casts, immutability_locks, listeners

Each cell has a real positive control, every comment form in the language specification (C# //, ///, XML-doc, /* */, /** */; Java //, /* */, Javadoc; Kotlin //, /* */, KDoc), each also checked inline and after a string-then-comment boundary (plain, escaped, C# verbatim and interpolated strings, a Java text block, Kotlin raw and template strings), an all-branch boundary audit of every alternation in the rule, and cross-family negative controls (type tests are not casts, a using statement is not an import, const/val/var are not locks, non-public declarations are not API).

What it found (four engine leaks, each filed and locked as xfail(strict=True))

Two things I noticed and did not file, because they are recall gaps and not the precision leaks this protocol tests: C# comprehensions only matches from x in ... at the start of a line, and C# Convert.ToInt32(x) is not counted as a cast.

No rule or engine code is changed here, as the protocol requires. Every family counts its keyword inside a string literal today (by design, #2535), recorded as string_counts: true for 10 of 11 cells; import in C# and Java is line-anchored and gives false.

Baseline

11 new SOP-002-v1 rows under decoys.<lang> (additions only); both family-validity charts regenerated. The SOP audit's untested code-stream cells drop from 301 to 290.

SOP-002 checklist

  • Protocol: SOP-002-v1
  • Scope: 3 languages (csharp, java, kotlin), gap cells only
  • Req A: all spec comment forms, inline and string-comment boundaries; nesting tested per language (Kotlin leaks, Kotlin: nested block comments are not nested (lexical_family standard_block), commented code leaks into every family #9423)
  • Req B: all-branch boundary audit for the 11 rules
  • Req C: the 11 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; 271 tests pass, 11 xfail as intended; ruff audit and doc-refs audit: no new findings

🤖 Generated with Claude Code

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 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 23:57
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 27, 2026 00:02
@squid-shepherd

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (7f6d42a) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 27, 2026 00:53
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 27, 2026
@squid-protocol
squid-protocol marked this pull request as ready for review November 27, 2026 00:54
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 27, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

2 similar comments
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 27, 2026 00:56
@squid-shepherd squid-shepherd Bot added shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 27, 2026
@squid-shepherd
squid-shepherd Bot merged commit 442410d into main Nov 27, 2026
72 of 90 checks passed
@squid-shepherd
squid-shepherd Bot deleted the sop2-gaps-b branch November 27, 2026 01:40
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