Repository navigation
C++ keyword families: decorators, panics_and_aborts, thread_sleeps, io, bitwise_ops count the named construct (Part of #8863, #9335) - #9380
Conversation
|
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. |
|
CI shepherd: the head of this PR (757f24e) is not the one a maintainer labelled |
|
No description provided. |
|
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. |
|
PR #9380 @ f0f84ad: 13 failed check(s) == crucible (cancelled) -- infra == db2 (cancelled) -- infra == db2 ${{ matrix.shard }} (cancelled) -- infra == full-suite (cancelled) -- infra == full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra == ground-truth (cancelled) -- infra == ground-truth part ${{ matrix.shard }} (cancelled) -- infra == ground-truth-warm (cancelled) -- infra == publish-history (cancelled) -- infra == shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra == shard ${{ matrix.shard }} (cancelled) -- infra == store the suite's durations (cancelled) -- infra == suite time budget (#5166) (cancelled) -- infra |
…802Z-regraft # Conflicts: # docs/self_scan/family_validity_chart.svg # tests/golden_master_audit/12_scan_output_snapshots/gpu_json.json # tests/golden_master_audit/12_scan_output_snapshots/graph_sqlite.json # tests/golden_master_audit/12_scan_output_snapshots/llm_brief.json # tests/golden_master_audit/2_global_ecosystem_summary/function_archetype_distribution.json # tests/golden_master_zero_dep_audit/12_scan_output_snapshots/gpu_json.json # tests/golden_master_zero_dep_audit/12_scan_output_snapshots/graph_sqlite.json # tests/golden_master_zero_dep_audit/12_scan_output_snapshots/llm_brief.json # tests/golden_master_zero_dep_audit/2_global_ecosystem_summary/function_archetype_distribution.json
…802Z-regraft # Conflicts: # docs/self_scan/family_validity_chart.svg # tests/golden_master_audit/12_scan_output_snapshots/gpu_json.json # tests/golden_master_audit/12_scan_output_snapshots/graph_sqlite.json # tests/golden_master_audit/2_global_ecosystem_summary/function_archetype_distribution.json # tests/golden_master_zero_dep_audit/12_scan_output_snapshots/gpu_json.json # tests/golden_master_zero_dep_audit/12_scan_output_snapshots/graph_sqlite.json # tests/golden_master_zero_dep_audit/2_global_ecosystem_summary/function_archetype_distribution.json
|
CI shepherd: the head of this PR (fed16c7) is not the one a maintainer labelled |
|
CI shepherd: |
|
No description provided. |
|
No description provided. |
|
No description provided. |
Part of #8863. Part of #9335. Supersedes #9366.
Regraft: the 5 hand-written files of #9366 re-applied on current main (
e7b6a49a3e, after #9374) with no conflicts; the family baseline, both SVGs and both golden masters regenerated from scratch here, never carried over.Checklist: partial [c:720a7918] -- C++
decoratorsstays red on the pinned crucible: 2[[maybe_unused]]on local declarations fire against an oracle that reads only function-level attributes. Filed as a contract question on #8863 (#8863 (comment)) and recorded in docs/family_oracle_readings.md, "Also pending".Rescue (2026-11-26, Opus): merged main twice (#9370, #9375, #9373, then #9377). Every conflict was in generated files: took main's side, then regenerated the family baseline (
family_oracle_sweep.py --write, pinned crucible v1.9.0), both SVGs, and both goldens (golden-lock.sh+crucible_check.py --update --yes). Against main, the baseline moves only the five C++ cells and the golden drift is only in.cpp/.cc/.hfiles.pr_gates --fast9/9 andaudit_checkall clear after the first merge;audit_check, the chart check and the C++ / Java family tests (143) pass after the second.What changed
Five red C++ cells on the pinned language-crucible (v1.9.0), before -> after (weaker of recall / precision):
bitwise_ops<</>>in stream insertions,~Foodestructors andType &xdeclarators counted; oracle:(Type)&xand string-literal<<chains read as bitwiseio.write/->open,std::bind, qualified socket verbs; rule gainsClass::open(panics_and_abortsexit/abort(abool exitvariable,span.exit()) now call form only;exit(takes no space so prose in a string is not a callthread_sleepsSleep,SleepEx,thrd_sleepaddeddecorators[[fallthrough]];(a statement) no longer counts; the rest is the contract question aboveFiles:
cpp.pyrules,family_oracle_specs_c.py(CppOracle),test_cpp_family_validity_9335.py(85 cases, positives and motivating false positives),docs/family_oracle_readings.md. Regenerated, not hand-written:family_validity_baseline.json, the two family-validity SVGs, both golden masters (cpp files only move).Golden diff
crucible_check.py --update --yesviagolden-lock.sh; only cpp corpus files move: Bitwise Operations, Decorators, plus the file-cluster float noise that follows a signal change (e.g. SipHash.cpp bitwise 30 -> 39 as^/ mask forms now count, decorators 6 -> 0 as[[fallthrough]];statements drop).Cost
Raw regex scan of 1500 godot C++ files (19.9 MB), five changed rules, before -> after: 1.3 s -> 4.7 s of regex time in total (bitwise_ops 0.31 -> 1.84, panics 0.19 -> 0.67, thread_sleeps 0.18 -> 0.52, io 0.56 -> 0.75), about +0.14 s per MB of C++ source. Not a full-scan A/B.
Gates
On this regraft (main
e7b6a49a3e):pr_gates.py --fast9/9 pass;family_oracle_sweep.py --write(pinned language-crucible v1.9.0) gives the same C++ cell numbers as #9366;family_validity_chart.py --checkcurrent;crucible_check.py --update --yesviagolden-lock.sh, drift in C++ files only (.cpp/.cc/.h);audit_check.pyall clear; pinnedruff format --checkclean on the changed files; 584 family / C++ family-validity tests andtest_cpp_strict.pypass.family_red_cells.py --lang cpp: 1 red cell (decorators). The sweep also moves Rustregex_executionfrom an unpinned tokio reading to the pinned crucible (no-instances in both), the same as #9366 did.Cross-repo
keyword-rosetta:
rebless.py cpp --dry-runrefused locally (data/cpp/expected_signals.jsondoes not round-trip under indent=2, a formatting fault in the local clone), so I have no rosetta drift reading. Whoever merges should run the rosetta sweep against this branch; no companion PR opened.Class / Sibling gaps
c.pybitwise_opscounts bare<</>>(around line 512); not touched here.high_risk_executionstill matchesexit\s*\(inside strings (same shape as the one fixed forpanics_and_aborts).io: the engine now counts a capitalisedClass::open(; a lowercase-namespacens::open(and a plainopen(are still not io.[[maybe_unused]]on a local declaration an attribute "on the function" (oracle) or on the declaration it precedes (contract, rule)? Blocksdecorators.bitwise_opsmisses are oracle-sides << xchains with no literal, androtate_left.Lessons for agents
rebless.pyrefuses a rosetta clone whose JSON does not round-trip; check clone formatting before counting on a dry run.code_stream, so a bare-word rule fires inside string literals; test with a string case.🤖 Generated with Claude Code