Repository navigation
SOP-002-v1 gap-cell decoys: ruby, lua, shell (12 cells, 2 dead rules) (#8863) - #9465
Conversation
…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
|
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. |
|
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 (eee7ea7) is not the one a maintainer labelled |
|
No description provided. |
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).auth_middleware,comprehensions,import,telemetryimmutability_locks,import,scientificcomprehensions,dependency_injection,pointers,safety,state_mutationTwo cells could not be covered, and that is a finding: Lua
decoratorsandgenericsare dead rules. Both only read EmmyLua---@annotation lines, which are comments and are blanked first, so no authentic snippet fires them (genericsonly 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))=begin ... =endblock comments leak commented code into every family.__END__is counted as code.telemetry: a barelogger.infoor@logger.warnnever fires (the rule needs an identifier prefix).import:YAML.load(...),JSON.load(...)and a variable namedloadcount as imports.auth_middleware:def authenticate_user!(a definition) counts as an auth call.comprehensions:.inject(0) { }and.each_with_object([]) { }never fire, so that branch is unreachable on real code.--[=[ ... ]=],--[==[) leak into every family (15 cases).decorators/genericsare dead (above).#!interpreter line stays in the code stream for four families.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: Shelllocal -n ref=xandset -o errexitdo not firepointers/safety;${1:-us-east-1}does not firedependency_injection; Luapcall(require, 'x')is not an import.Baseline
12 new
SOP-002-v1rows (additions only); both charts regenerated. Untested code-stream cells go from 301 to 289 (the 12 covered).SOP-002 checklist
SOP-002-v1family_validity_chart.py --checkpasses; 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