Skip to content

C# keyword families: closures, decorators, bitwise, io, regex, time rules count the named construct (Part of #8863) - #9362

Merged
squid-shepherd[bot] merged 8 commits into
mainfrom
churn/9333-20261126T0228Z
Nov 26, 2026
Merged

squid-shepherd[bot] merged 8 commits into
mainfrom
churn/9333-20261126T0228Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8863. Plan item from #9333 (C# keyword families).

What changed

C# keyword-family rules now count the construct each family's contract names (csharp.py), plus one oracle change (family_oracle_specs_a.py: the C# decorators oracle reads parameter attributes, as the TypeScript parameter-decorator oracle does). One new test file pins every rule change with positives and negatives.

family cause class change
closures rule counts a different construct anonymous callables only: delegate { / delegate (..) { and lambda =>, not expression-bodied members (get =>, Foo() =>)
decorators oracle misses a form + rule misses a form oracle reads parameter attributes; rule counts mid-line parameter attributes
bitwise_ops rule counts a different construct ^, ~, <<, >>, and spaced & / | operators; generics >>, &&, ||, ?.-style text no longer match
io rule counts a different construct / named construct missing dropped bare Path; added new FileStream/StreamReader/... and .GetAsync(-style async calls
regex_execution named construct missing Regex.Match/Matches/Replace/IsMatch/Split/Count/EnumerateMatches, new Regex, .IsMatch(
time_date_logic named construct missing Stopwatch, TimeZoneInfo, DateOnly, TimeOnly, Environment.TickCount, bare DateTimeOffset/TimeSpan

Family-validity checklist (pinned language-crucible v1.9.0, C#, 907 matched functions)

cell before (recall / precision) after
closures 1.00 / 0.42 1.00 / 1.00
decorators 0.93 / 0.77 0.95 / 0.91
bitwise_ops 0.17 / 0.62 1.00 / 1.00
regex_execution, time_date_logic, io too few oracle functions on the pin (under 10) measurable only on an unpinned corpus; not quoted here
  • Other C# cells unchanged (branch, short_circuit, args, doc).
  • tests/family_validity_baseline.json and both SVGs regenerated by family_oracle_sweep.py --write / family_validity_chart.py --write, not hand-edited. One cell not from this PR moved in the same sweep: Python io 0.84 -> 0.797 precision (Python io rule changed in python io: bare builtin open and I/O module references count again (io contract C1) (#9311) #9314; baseline lag).
  • Timing: galaxyscope on the crucible C# data, user CPU, 3 runs: base 7.85-8.18 s, branch 8.14-8.15 s (flat).

Gates

  • pr_gates --fast 9/9, --ratchets 9/9, audit_check.py all clear, existing C# test files and family oracle/chart/red-cell tests pass.
  • Goldens blessed via golden-lock.sh + crucible_check.py --update --yes after merging main. scope_check.py --expect csharp: 558 csharp differences and 97 repo-wide rollup fields (archetype / composition distributions); nothing attributed to another language.

Class / Sibling gaps

Class: a C# keyword-family regex counts a different construct than its contract names, or omits a form the contract names. All six C# family rows in that class are addressed here. Sibling gaps: (1) regex_execution, time_date_logic and io have under 10 oracle functions on the pinned crucible, so their cells cannot go green or red there; the rules were validated on an unpinned corpus only, which cannot be quoted. A corpus file that exercises them is the fix. (2) Decorator over-count from unit slicing (the next member's attribute lands in the previous unit) is a slicing artifact, not a rule defect. (3) A SuppressMessage attribute miss in one scheduled-task unit predates this change.

Checklist: done [c:5b3a3632]

Lessons for agents

  • A bless that shows drift in a language you did not touch can be main having merged that language's change after your base: merge origin/main, regenerate, and re-bless before reading it as yours.

🤖 Generated with Claude Code

squid-protocol and others added 4 commits November 25, 2026 21:39
@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 03:18
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 26, 2026 03:19
@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 03:22
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9362 @ 7223179: 1 failed check(s)

== rosetta-audit (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45748071569/job/139668883723
repro: no local equivalent; read the check page
errors:
REG csharp FAIL csharp: 1 mismatch(es)
pre go FAIL go: 5 mismatch(es)
pre typescript FAIL typescript: 1 mismatch(es)
##[error]csharp: this build moves the control corpus -- FAIL csharp: 1 mismatch(es)
##[error]Process completed with exit code 1.
log tail:
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
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/077d6383-aa52-488e-b8e2-1f83467107fe' 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/gitgalaxy-baseline
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
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/180e1bd7-72be-4576-b0ce-7abee707aa8c' 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/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
@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 (ea90fdb) 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 03:36
@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 the rosetta:rebless-owed Intentionally moves keyword-rosetta counts; audit warns, corpus re-blesses after merge label Nov 26, 2026
squid-protocol and others added 2 commits November 25, 2026 22:39
…228Z

# Conflicts:
#	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
@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

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:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 26, 2026
@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-protocol
squid-protocol marked this pull request as ready for review November 26, 2026 04:06
@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 (39f4f82) 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 04:06
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (39f4f82) 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 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 04:09
@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 04:10
@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 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 merged commit 654fc5a into main Nov 26, 2026
193 of 232 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/9333-20261126T0228Z branch November 26, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rosetta:rebless-owed Intentionally moves keyword-rosetta counts; audit warns, corpus re-blesses after merge shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant