Skip to content

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
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/9335-20261126T0904Z
Nov 26, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/9335-20261126T0904Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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 decorators contract says an attribute attaches to the declaration it precedes, so the rule is right to count [[maybe_unused]] auto cpuid1 = ...; (serenity CPUFeatures.cpp, godot node.cpp). The oracle read only attributes on the function itself. CppOracle now counts an attribute_declaration child of a declaration. 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 --fast 9/9, --ratchets 9 pass 0 fail, audit_check all clear, ruff format --check clean 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, decorators here via the oracle reading, with the pending-question entry in docs/family_oracle_readings.md replaced by the C++ row's recorded reading.

Sibling gaps: C bitwise_ops still counts bare shifts; C++ high_risk_execution still matches exit\s*\( loosely; C++ debug_prints, regex_execution and panics_and_aborts have no instances in the corpus (cell status no-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

…rator: last red cell, decorators 0.00 -> 1.00 (Part of #8863, #9335)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 26, 2026 13:27
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 14:01
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot merged commit b347c1d into main Nov 26, 2026
65 of 66 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/9335-20261126T0904Z branch November 26, 2026 14:01
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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 shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant