Skip to content

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

Closed
squid-protocol wants to merge 6 commits into
mainfrom
churn/9335-20261126T0441Z
Closed

squid-protocol wants to merge 6 commits into
mainfrom
churn/9335-20261126T0441Z

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Part of #8863. Part of #9335.

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".

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

pr_gates.py --fast: 8/9 pass; the failure was the two tests below, fixed afterwards (the affected lane ran 306 of 1100 files, rest left to CI). audit_check.py all clear. Pinned ruff format/check clean on changed files. test_cpp_strict.py, family oracle and red-cell tests pass. family_red_cells.py --lang cpp: 1 red cell (decorators).

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

Rescue (Opus, 2026-11-26): merged origin/main (#9372 conflicts were all generated files: main's taken, then the family sweep, charts and both goldens regenerated; drift is cpp-only, C++ cell numbers unchanged). pr_gates.py --fast 9/9, audit_check.py all clear.

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

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@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.

1 similar comment
@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 05:07
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 05:09
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 05:14
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9366 @ 1fd25b4: 1 failed check(s)

== full-suite part 1/5 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45759547713/job/139706219585
repro: python -m pytest -q tests/tools/test_sweep_plan.py::test_the_sweeps_import_no_non_input_module
failing tests: tests/tools/test_sweep_plan.py::test_the_sweeps_import_no_non_input_module
errors:
fail-on-cache-miss: false
[--ai-guardrails] [--fail-on-secrets]
--fail-on-secrets CI/CD Gate: Fail build if hardcoded secrets are
CI/CD Gate: Fail build if any file exceeds this risk
CI/CD Gate: fail the build if any file's structural
E AssertionError: ['tests/extraction/languages/test_cpp_family_validity_9335.py: family_oracle_specs_c', 'tests/extraction/languages/test_cpp_family_validity_9335.py: family_oracle_ts']
tests/tools/test_sweep_plan.py:165: AssertionError
FAILED tests/tools/test_sweep_plan.py::test_the_sweeps_import_no_non_input_module - AssertionError: ['tests/extraction/languages/test_cpp_family_validity_9335.py: family_oracle_specs_c', 'tests/extraction/languages/test_cpp_family_validity_
##[error]Process completed with exit code 1.
log tail:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
OMP_NUM_THREADS: 1
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
PYTEST_ADDOPTS: --ignore=tests/cobol_mainframe
##[endgroup]
Multiple search paths detected. Calculating the least common ancestor of all paths
The least common ancestor is /home/runner/work/_temp. This will be the root directory of the artifact
With the provided path, there will be 2 files uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-part-1.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 1055007
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is 2876edf89cf9ddc2a55a8f27b053a1190652b3381e97d8c9d780de50f76dfe8a
Finalizing artifact upload
Artifact test-times-part-1 successfully finalized. Artifact ID 15089482204
Artifact test-times-part-1 has been successfully uploaded! Final size is 1055007 bytes. Artifact ID is 15089482204
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/45759547713/artifacts/15089482204
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/c3b84644-5ad9-4c9e-818a-dc03285c7fb1' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@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
… import a tests/tools module (#9335)

Co-Authored-By: Claude Sonnet 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 (bfbbb24) 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 05:23
@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-shepherd
squid-shepherd Bot marked this pull request as ready for review November 26, 2026 05:24
@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 05:25
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 05:33
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9366 @ bfbbb24: 6 failed check(s)

== db2 ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45761197941/job/139711550453
repro: python tests/tools/pr_gates.py --fast
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/45761197828/job/139711502690
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/45761197996/job/139711634587
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)

== publish-history (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45761197996/job/139711635969
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/45761197941/job/139711550067
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/45761197828/job/139711502668
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-protocol and others added 2 commits November 26, 2026 01:00
…en from main, regenerated next)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
)

Co-Authored-By: Claude Sonnet 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 (3fdbf54) 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

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 06:52
@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-protocol and others added 2 commits November 26, 2026 01:58
…en from main, regenerated next)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ng main (#9335)

Main's versions of the generated files were taken at the merge (b8eb1e3, #9372), then regenerated:
family_oracle_sweep.py --write, family_validity_chart.py --write, and crucible_check.py --update --yes
under golden-lock.sh. All golden drift is in cpp files (116 changed per-file entries in the signal and
graph parts); the C++ cell numbers are the same as before the merge.

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 (5618015) 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 07:10
@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-shepherd
squid-shepherd Bot marked this pull request as ready for review November 26, 2026 07:13
@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

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 07:14
@squid-shepherd
squid-shepherd Bot disabled auto-merge November 26, 2026 07:26
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9366 @ 5618015: 10 failed check(s)

== db2 (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45773272732/job/139750994928
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/45773272718/job/139750982492
repro: python tests/tools/pr_gates.py --fast
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/45773272530/job/139750975857
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== ground-truth part ${{ matrix.shard }} (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45773272700/job/139751017395
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/45773272700/job/139751016135
repro: python tests/tools/pr_gates.py --fast
log tail:
(log unavailable: gh: HTTP 404)

== measure (shard ${{ matrix.shard }}/${{ matrix.total }}) (cancelled) -- infra
https://github.com/squid-protocol/gitgalaxy/actions/runs/45773272537/job/139750967977
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/45773272700/job/139751018108
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/45773272732/job/139750995000
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/45773272718/job/139750982012
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/45773272530/job/139750976621
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 shepherd:merge Maintainer: merge when green (auto-merge, squash). 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

Copy link
Copy Markdown
Owner Author

Superseded by #9380: the same 5 hand-written files re-applied on current main (after #9374) with the family baseline, charts and both goldens regenerated there, since merging main into this branch had stopped working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant