Repository navigation
C keyword families: bitwise counts & and |, debug_prints console only, panics call form, io oracle reads stream/fs calls (Part of #8863) - #9367
Merged
Conversation
…ams only, panics call form, io oracle reads stream/fs calls (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
This was referenced Nov 26, 2026
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. Checklist item
[c:e86a22fb]of #9334.What this does
Four of the five red C cells on the pinned crucible (language-crucible v1.9.0, 2599 C functions) now clear 0.8 on both recall and precision. Measured with
family_oracle_sweep.py --write:Causes, per cell:
<<,>>,^,~and compound assignment but not binary&/|. Added operator-position arms (operand before, not&&/||, not address-of afterreturn/(/,/=).fprintf/fputsto anyFILE *counted. The contract is console output, so those now needstdout/stderr.exit/abortmatched member names, identifiers and string text. Now call form only, not after.,>or a word character.fputs,fputc,getline,getdelim,pread,pwrite,recvfrom,sendto,recvmsg,sendmsg,stat,rename. Fixed infamily_oracle_ts.py; no rule change.Contract question (not fixed here)
time_date_logicstays red, but it is a hatched cell (redis, not pinned). Recall is 1.00, precision 0.78: the rule counts the baretime_ttype in declarations, which is not an invocation, while the contract also names duration arithmetic. Changing it needs a ruling on #8863: should atime_tdeclaration count? Not changed without one.Class / Sibling gaps
Class: C keyword-family rules whose regex counts a neighbouring construct or misses an operator form. Sibling gaps found and not touched (one language per PR):
cpp.pybitwise_ops (line ~804) has no&/|arm and its debug_prints (~758) likely counts any-streamfprintfthe same way, so C++ probably shares the bitwise and debug_prints gaps;cpp.pytime rule countsstd::time_t(~849), the same question as C'stime_t. Each needs its own measure against the pinned crucible before a fix.Evidence and gates
tests/test_c_family_validity_8863.py(54 tests): positive and false-positive lines per rule, a linear-time check on adversarial input, and the oracle io forms.golden-lock.sh crucible_check.py --update --yes;scope_check.pyattributes the drift to C-scanned files and repo rollups.data/c, 3 alternating runs, user seconds: base 10.25 / 10.13 / 10.17, branch 10.18 / 10.18 / 10.20 (no regression).audit_check.py: all clear.pr_gates --ratchets: 9 pass.pr_gates --fast: one failure, the stale family-validity SVGs, regenerated in this PR; the affected-test run covered 294 of 1101 files within its budget, the rest is left to CI.verify_language.py c: 2 mismatches (a.csafety2 vs 1,calls_out_toassert), the same with and without this change, neither in a family touched here.rebless.py c --dry-runrefuses because the rosettadata/c/expected_signals.jsondoes not round-trip its own formatting; no rosetta file was changed.Not in this PR
time_date_logicrule change (needs the Epic: keyword-family validity -- do the per-function signals measure what their names say? #8863 ruling above).cpp.pysiblings listed above.Checklist: partial [c:e86a22fb] -- time_date_logic is a hatched cell, question for #8863
Lessons for agents
data/with--file-speed, so.c/.hfiles in other language directories count as C functions; trace misses through the sweep DB, not onlydata/c.pr_gates --fastfails on staledocs/self_scan/family_validity_*.svgafter any baseline rewrite: runfamily_validity_chart.py --write.🤖 Generated with Claude Code