Repository navigation
C++ keyword families: the oracle reads an attribute on a local declaration, last red cell decorators 0.00 -> 1.00 (Part of #8863, #9335) - #9386
Merged
Conversation
…rator: last red cell, decorators 0.00 -> 1.00 (Part of #8863, #9335) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
1 task
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.
What
Follow-up to #9384, which landed four of the five C++ red cells (
panics_and_aborts,thread_sleeps,io,bitwise_ops). The fifth,decorators(2 fire vs 0 oracle, precision 0.00), was left waiting on a contract reading: is[[maybe_unused]]on a local variable declaration an attribute?The
decoratorscontract says an attribute attaches to the declaration it precedes, so the rule is right to count[[maybe_unused]] auto cpuid1 = ...;(serenityCPUFeatures.cpp, godotnode.cpp). The oracle read only attributes on the function itself.CppOraclenow counts anattribute_declarationchild of adeclaration. A standalone[[fallthrough]];statement is a different node and stays uncounted, matching the rule's(?![ \t]*;).Result on the pinned crucible (language-crucible v1.9.0),
family_red_cells.py --lang cpp: 1 red cell -> 0.decorators: n_family 2, n_oracle 2, precision 1.0, recall 1.0. No other baseline cell moved (8-line baseline diff).Engine code is untouched (oracle, docs, baseline, charts only), so the golden masters are unaffected and not re-blessed. CPU: no engine change, nothing to measure. keyword-rosetta: no rule change, so no dry-run needed.
Gates:
pr_gates --fast9/9,--ratchets9 pass 0 fail,audit_checkall clear,ruff format --checkclean on changed files.Class / Sibling gaps
Class: C++ keyword-family cells below 0.8 on the pinned crucible (#9335's five). All five members are now at or above the bar: four via #9384,
decoratorshere via the oracle reading, with the pending-question entry indocs/family_oracle_readings.mdreplaced by the C++ row's recorded reading.Sibling gaps: C
bitwise_opsstill counts bare shifts; C++high_risk_executionstill matchesexit\s*\(loosely; C++debug_prints,regex_executionandpanics_and_abortshave no instances in the corpus (cell statusno-instances), so they are untested rather than green. None is a red cell and none needs a different mechanism in this PR.Checklist: done [c:cpp]
Doc-refs fixes: none.
🤖 Generated with Claude Code