Repository navigation
Lua keyword families: bitwise_ops, thread_sleeps, io, regex_execution count the named construct (Part of #8863, #9339) - #9410
Merged
Conversation
… count the named construct (Part of #8863, #9339) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
Waiting on an owner decision (asked privately, 2026-11-26). Nothing is needed from contributors; work resumes once it is answered. |
Owner
Author
|
The owner decided (2026-11-26); the bot applies it on its next tick. |
…validity baseline and charts Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
1 task done
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.
Part of #8863. Closes the #9339 checklist item.
Checklist: done [c:fa04726a]
What changed
All four red Lua cells on the pinned crucible (
data/lua, 623 functions, v1.9.0) are now ok. Before and after:Rule changes (
lua.py):^is exponentiation in Lua (xor is binary~), so it is dropped.<<,>>,&and|now need an operand on both sides, so">>> "log markers and"|"string separators no longer count.loader.delay,socket.sleep,ngx.sleep,posix.sleep,posix.usleepand theposix.unistd.*forms.io.tmpfileand file-handle method calls (f:read,f:write,f:lines,f:seek).io.stdout:andio.stderr:are skipped, since they are the console handles (print's).s:match(,s:gmatch(ands:gsub(, ands:find(only with a string-literal first argument.Oracle changes (
family_oracle_specs_b.py):^is no longer read as bitwise.os.remove,os.rename(cleanup's) andos.tmpname(returns a name only).loadfileis dropped from the io list: it is high_risk_execution's, and the rule does not count it as io either..read/.write/.lines/.seekcount only as method calls (f:read), sopandoc.readandpassword.readno longer match.Golden bless
golden-lock.sh crucible_check.py --update --yes.scope_check.py --expect luaattributes 517 differences to Lua; the other 128 are repo-wide rollup fields (file-composition and function-archetype counts shifting by one function). The golden diff is from the Lua rule changes only.Class / Sibling gaps
Class: a Lua keyword-family rule counts a different construct (
^is exponentiation, not xor) or misses an idiomatic form of its own construct (method-callx:f()syntax, host-library sleep names), plus an oracle that reads io too broadly. All four members (bitwise_ops, thread_sleeps, io, regex_execution) are handled here, each with positive and false-positive cases intests/test_lua_family_validity_8863.py. Sibling gaps: none. Every red Lua cell is handled.No contract question filed:
loadfile/dofilestay with high_risk_execution (existing rule), not io.Notes
tests/family_validity_baseline.jsonwas regenerated by the full sweep, so it also carries drift from main for other cells (Ruby doc and Luaargsoracle count) that earlier PRs had not re-measured. Not caused by this change.family_oracle_sweep.py --write,pr_gates.py --fast(9/9),pr_gates.py --ratchets(9 pass),audit_check.py(clear), pinnedruff formaton touched files, the Lua strict and family-oracle tests.🤖 Generated with Claude Code