Skip to content

SOP-002-v1 gap-cell decoys: go, rust, c (11 cells, 1 dead rule) (#8863) - #9464

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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.

  • Go (5 of 6): api, encapsulation, listeners, safety_bypasses, scientific
  • Rust (3): encapsulation, import, inline_asm
  • C (3): explicit_casts, globals, import

One cell could not be covered, and that is a finding: Go macros is a dead rule. Its only arm reads //go:generate / //go:build pragma 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 #define lines), 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 / #else dead branches behave (the engine blanks them by design, #2814).

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

Noticed and not filed (recall gaps or design limits, not precision leaks): C explicit_casts misses common casts ((unsigned char)c, (size_t)c, (uint8_t)c); Rust inline_asm counts any other::asm!; C #include_next is 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-v1 rows (additions only); both charts regenerated.

SOP-002 checklist

  • Protocol: SOP-002-v1
  • Scope: 3 languages (go, rust, c), gap cells only
  • Req A: all spec comment forms, inline and string-comment boundaries; nesting tested per language
  • Req B: all-branch boundary audit for the 11 covered rules
  • Req C: 11 untested code-stream families now have positive controls; the dead rule has an issue (Go macros: the rule matches only //go: pragma comments, which are blanked before the rule runs (dead outside a raw string) #9429)
  • 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; 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

#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
@squid-protocol squid-protocol added 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

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@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

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (a3836c0) 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 removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 27, 2026
@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 27, 2026 05:50
@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 05:51
@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.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 27, 2026 05:53
@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 af245b3 into main Nov 27, 2026
75 of 92 checks passed
@squid-shepherd
squid-shepherd Bot deleted the sop2-gaps-c branch November 27, 2026 06:12
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