Repository navigation
SOP-002-v1 gap-cell decoys: go, rust, c (11 cells, 1 dead rule) (#8863) - #9464
Merged
Merged
Conversation
#8863) 11 code-stream cells that had a rule but no decoy row now have one (go api, encapsulation, listeners, safety_bypasses, scientific; rust encapsulation, import, inline_asm; c explicit_casts, globals, import). go macros is dead (#9429) and stays without a row. Known leaks are strict xfails: #9430-#9434, #9461. No engine or rule change. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
Contributor
|
No description provided. |
1 similar comment
Contributor
|
No description provided. |
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. |
This was referenced Nov 27, 2026
Open
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
Contributor
|
CI shepherd: the head of this PR (a3836c0) is not the one a maintainer labelled |
squid-protocol
marked this pull request as ready for review
November 27, 2026 05:51
Contributor
|
No description provided. |
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.
What
Specification-grade SOP-002-v1 decoy suites for 11 of the 12 keyword-family cells on Go, Rust and C that had a rule but no decoy test (
tests/decoys/test_decoy_go.py,test_decoy_rust.py,test_decoy_c.py). Gap cells only, not a full-language graduation.api,encapsulation,listeners,safety_bypasses,scientificencapsulation,import,inline_asmexplicit_casts,globals,importOne cell could not be covered, and that is a finding: Go
macrosis a dead rule. Its only arm reads//go:generate///go:buildpragma comments, which the lexer blanks as comments before the rule runs, so it only fires inside a multi-line backtick raw string, which is not authentic Go. It has no baseline row and a strict-xfail positive control (#9429).Each covered cell has a real positive control, every comment form in the language specification (Go
//and/* */; Rust//,///,//!,/* */,/** */,/*! */; C//,/* */, comments on#definelines), nesting per language (Rust nests and passes 2-, 3-deep, multi-line and sibling; Go and C do not nest, asserted), string-then-comment boundaries (raw strings, rune literals, lifetimes), an all-branch boundary audit, and negative controls. For C the suite also pins how#if 0/#elsedead branches behave (the engine blanks them by design, #2814).What it found (seven leaks, each filed and locked as
xfail(strict=True))macrosis dead (above).apihandler-signature arm has no word boundary (myhttp.ResponseWriter,mygin.Contextcount).safety_bypassesreads a trailing underscore as the blank identifier (my_ = x,result_, err = f()count).scientificarms formath/cmplx.,math/rand.,crypto/rand.match only import-path text, so realcmplx.Abs(z)andrand.Intn(10)give 0.explicit_castscountsvoid abort(void) __attribute__((noreturn));andextern int f(void) __THROW;as casts.//comment ending in a backslash does not continue onto the next line (import, explicit_casts, globals)./*/ ... */is not recognised as a comment and its body leaks. Rust nested block comments themselves are fine.Noticed and not filed (recall gaps or design limits, not precision leaks): C
explicit_castsmisses common casts ((unsigned char)c,(size_t)c,(uint8_t)c); Rustinline_asmcounts anyother::asm!; C#include_nextis not counted.No rule or engine code is changed here, as the protocol requires. Strings count by design (#2535); results are recorded per cell.
Baseline
11 new
SOP-002-v1rows (additions only); both charts regenerated.SOP-002 checklist
SOP-002-v1family_validity_chart.py --checkpasses; 242 tests pass, 18 xfail as intended; ruff audit and doc-refs audit: no new findings🤖 Generated with Claude Code
https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem