Repository navigation
SOP-002-v1 gap-cell decoys: csharp, java, kotlin (11 cells) (#8863) - #9428
Conversation
…(11 cells) (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
|
No description provided. |
|
No description provided. |
|
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. |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
|
CI shepherd: the head of this PR (7f6d42a) is not the one a maintainer labelled |
|
No description provided. |
2 similar comments
|
No description provided. |
|
No description provided. |
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.auth_middleware,comprehensions,explicit_casts,importapi,explicit_casts,importapi,explicit_casts,immutability_locks,listenersEach 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, ausingstatement is not an import,const/val/varare not locks, non-public declarations are not API).What it found (four engine leaks, each filed and locked as
xfail(strict=True))standard_block(flat). C# and Java correctly do not nest.explicit_castscounts a parenthesised capitalised condition such asif (DEBUG) log(x);as a cast(Type) x(5 cases).explicit_castscounts theasinimport a.b.Bar as Baz(1 case).listenerscountsresult.onSuccess { }, which runs immediately and registers nothing (1 case).Two things I noticed and did not file, because they are recall gaps and not the precision leaks this protocol tests: C#
comprehensionsonly matchesfrom 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: truefor 10 of 11 cells;importin C# and Java is line-anchored and gives false.Baseline
11 new
SOP-002-v1rows underdecoys.<lang>(additions only); both family-validity charts regenerated. The SOP audit's untested code-stream cells drop from 301 to 290.SOP-002 checklist
SOP-002-v1family_validity_chart.py --checkpasses; 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