Skip to content

C++ keyword families: decorators, panics_and_aborts, thread_sleeps, io, bitwise_ops count the named construct (Part of #8863, #9335) - #9380

Open
squid-protocol wants to merge 9 commits into
mainfrom
churn/9335-20261126T0802Z-regraft
Open

squid-protocol wants to merge 9 commits into
mainfrom
churn/9335-20261126T0802Z-regraft

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

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++ decorators stays 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 / .h files. pr_gates --fast 9/9 and audit_check all 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):

Cell Before After Cause
bitwise_ops R 0.12 / P 0.50 R 0.88 / P 0.91 rule: << / >> in stream insertions, ~Foo destructors and Type &x declarators counted; oracle: (Type)&x and string-literal << chains read as bitwise
io R 0.08 / P 0.50 green (under 10 oracle functions) oracle counted member .write/->open, std::bind, qualified socket verbs; rule gains Class::open(
panics_and_aborts 6 fire vs 0 oracle green bare word exit / abort (a bool exit variable, span.exit()) now call form only; exit( takes no space so prose in a string is not a call
thread_sleeps 1 vs 1, both 0.00 1.00 / 1.00 call form; Sleep, SleepEx, thrd_sleep added
decorators 4 fire vs 0 oracle 2 fire vs 0 oracle [[fallthrough]]; (a statement) no longer counts; the rest is the contract question above

Files: cpp.py rules, 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 --yes via golden-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 --fast 9/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 --check current; crucible_check.py --update --yes via golden-lock.sh, drift in C++ files only (.cpp / .cc / .h); audit_check.py all clear; pinned ruff format --check clean on the changed files; 584 family / C++ family-validity tests and test_cpp_strict.py pass. family_red_cells.py --lang cpp: 1 red cell (decorators). The sweep also moves Rust regex_execution from 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-run refused locally (data/cpp/expected_signals.json does 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

  • Same bare-word shape in C: c.py bitwise_ops counts bare << / >> (around line 512); not touched here.
  • C++ high_risk_execution still matches exit\s*\( inside strings (same shape as the one fixed for panics_and_aborts).
  • io: the engine now counts a capitalised Class::open(; a lowercase-namespace ns::open( and a plain open( are still not io.
  • Contract question: is [[maybe_unused]] on a local declaration an attribute "on the function" (oracle) or on the declaration it precedes (contract, rule)? Blocks decorators.
  • Remaining bitwise_ops misses are oracle-side s << x chains with no literal, and rotate_left.

Lessons for agents

  • rebless.py refuses a rosetta clone whose JSON does not round-trip; check clone formatting before counting on a dry run.
  • Prism leaves string contents in code_stream, so a bare-word rule fires inside string literals; test with a string case.

🤖 Generated with Claude Code

…o, bitwise_ops count the named construct (Part of #8863, #9335)

Regraft of #9366 onto main; baseline, charts and goldens regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@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 08:18
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 08:22
@squid-shepherd

Copy link
Copy Markdown
Contributor

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.

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 08:26
@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (757f24e) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 26, 2026 08:38
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 26, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels 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 08:50
@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 enabled auto-merge (squash) November 26, 2026 08:51
@squid-shepherd squid-shepherd Bot removed 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 disabled auto-merge November 26, 2026 09:20
@squid-shepherd

Copy link
Copy Markdown
Contributor

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.

@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 enabled auto-merge (squash) November 26, 2026 09:28
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 09:30
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9380 @ f0f84ad: 13 failed check(s)

== crucible (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45791649842/job/139812094855
repro: tests/tools/box/heavy-run.sh python -m pytest -q tests/cics_crucible && tests/tools/box/heavy-run.sh python tests/tools/cics_crucible.py --ci --out /tmp/gitgalaxy-scratch/ci-digest/cics
log tail:
(log unavailable: gh: HTTP 404)

== db2 (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45791649635/job/139812075577
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== db2 ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45791649719/job/139812164164
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== full-suite (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45791649418/job/139812030218
repro: python -m pytest -q tests
log tail:
(log unavailable: gh: HTTP 404)

== full-suite part ${{ matrix.group }}/${{ needs.shard-plan.outputs.splits }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45791649418/job/139812027877
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== ground-truth (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45791649699/job/139812180196
repro: python tests/tools/pr_gates.py --ratchets --only-ratchets ground-truth (when a ground-truth part failed too, run that part's repro)
log tail:
(log unavailable: gh: HTTP 404)

== ground-truth part ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45791649699/job/139812178480
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== ground-truth-warm (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45791649699/job/139812178711
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== publish-history (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45791649699/job/139812180443
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== shard ${{ matrix.group }}/${{ needs.plan.outputs.splits }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45791649635/job/139812074958
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== shard ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45791649719/job/139812163568
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== store the suite's durations (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45791649418/job/139812029381
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== suite time budget (#5166) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45791649418/job/139812029629
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)
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.

@squid-shepherd squid-shepherd Bot added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md and removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md labels Nov 26, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 11:00
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 11:00
@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
squid-protocol and others added 4 commits November 26, 2026 06:31
…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
…rt of #9335)

Main's PHP/JS/C family PRs (#9370, #9375, #9373) conflicted in generated files;
took main's side and regenerated each with its tool. Drift vs main: C++ only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…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
…in (Part of #9335)

Java family PR #9377 conflicted in generated files; took main's side and
regenerated with the tools. Drift vs main: C++ cells and C++ files only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@squid-shepherd squid-shepherd Bot removed 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

CI shepherd: the head of this PR (fed16c7) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 26, 2026 11:49
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: shepherd:merge was added by @squid-protocol, who has no write access to this repository, so it was removed. Maintainers set these labels (docs/ci.md).

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels 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 11:52
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 11:53
@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-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 26, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

This branch has not been deployed

No deployments
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