Skip to content

SOP-002-v1 gap-cell decoys: ruby, lua, shell (12 cells, 2 dead rules) (#8863) - #9465

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

What

Specification-grade SOP-002-v1 decoy suites for 12 of the 14 keyword-family cells on Ruby, Lua and Shell that had a rule but no decoy test (tests/decoys/test_decoy_ruby.py, test_decoy_lua.py, test_decoy_shell.py). Gap cells only, not a full-language graduation, and no rule is changed (the fleet is editing Ruby, Lua and Shell rules in other PRs).

  • Ruby (4): auth_middleware, comprehensions, import, telemetry
  • Lua (3 of 5): immutability_locks, import, scientific
  • Shell (5): comprehensions, dependency_injection, pointers, safety, state_mutation

Two cells could not be covered, and that is a finding: Lua decorators and generics are dead rules. Both only read EmmyLua ---@ annotation lines, which are comments and are blanked first, so no authentic snippet fires them (generics only fires on '---@generic T' inside a string). They have no baseline row and a strict-xfail positive control (#9450).

Each covered cell has a real positive control, every comment form in the language spec (Ruby # including after "#{1}" and inside strings, =begin ... =end, __END__; Lua --, ---, --[[ ]], leveled --[=[ ]=]; Shell # including the non-comment cases $#, ${#x}, ${x#p}, $((16#ff))), string-then-comment boundaries, an all-branch boundary audit, and negative controls. None of the three languages nests block comments.

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

Recorded, not endorsed: Shell here-document bodies and : '...' pseudo-comments count as strings; Ruby and Shell heredoc bodies count by design (#2535). Recall gaps noticed and not filed: Shell local -n ref=x and set -o errexit do not fire pointers / safety; ${1:-us-east-1} does not fire dependency_injection; Lua pcall(require, 'x') is not an import.

Baseline

12 new SOP-002-v1 rows (additions only); both charts regenerated. Untested code-stream cells go from 301 to 289 (the 12 covered).

SOP-002 checklist

  • Protocol: SOP-002-v1
  • Scope: 3 languages (ruby, lua, shell), gap cells only
  • Req A: all spec comment forms, inline and string-comment boundaries; no nesting in these languages
  • Req B: all-branch boundary audit for the 12 covered rules
  • Req C: 12 untested code-stream families now have positive controls; the two dead rules have an issue (Lua decorators / generics: EmmyLua ---@ annotations are comments, so both rules are dead on authentic code #9450)
  • 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; 471 tests pass, 45 xfail as intended; ruff audit and doc-refs audit: no new findings

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem

…l) (Part of #8863)

Spec-grade decoy suites for 12 code-stream cells that had no decoy row:
ruby auth_middleware/comprehensions/import/telemetry, lua
immutability_locks/import/scientific, shell
comprehensions/dependency_injection/pointers/safety/state_mutation.
Leaks are pinned with strict xfails (#9435 #9436 #9437 #9438 #9440 #9442
#9449 #9450 #9462). 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.

@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

No description provided.

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 27, 2026
@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 (eee7ea7) 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 06:13
@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 06:14
@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 06:16
@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 cedd0dc into main Nov 27, 2026
71 of 89 checks passed
@squid-shepherd
squid-shepherd Bot deleted the sop2-gaps-e branch November 27, 2026 06:46
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