Repository navigation
C# keyword families: closures, decorators, bitwise, io, regex, time rules count the named construct (Part of #8863) - #9362
Conversation
…ules count the named construct (Part of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…t of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…228Z # Conflicts: # docs/self_scan/family_validity_chart.svg
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
1 similar comment
|
No description provided. |
|
PR #9362 @ 7223179: 1 failed check(s) == rosetta-audit (failure) -- real |
…rt of #8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (ea90fdb) is not the one a maintainer labelled |
…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
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
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. |
|
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. |
#8863) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (39f4f82) is not the one a maintainer labelled |
|
CI shepherd: the head of this PR (39f4f82) is not the one a maintainer labelled |
|
No description provided. |
|
No description provided. |
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.delegate {/delegate (..) {and lambda=>, not expression-bodied members (get =>,Foo() =>)^,~,<<,>>, and spaced&/|operators; generics>>,&&,||,?.-style text no longer matchPath; addednew FileStream/StreamReader/...and.GetAsync(-style async callsRegex.Match/Matches/Replace/IsMatch/Split/Count/EnumerateMatches,new Regex,.IsMatch(Stopwatch,TimeZoneInfo,DateOnly,TimeOnly,Environment.TickCount, bareDateTimeOffset/TimeSpanFamily-validity checklist (pinned language-crucible v1.9.0, C#, 907 matched functions)
tests/family_validity_baseline.jsonand both SVGs regenerated byfamily_oracle_sweep.py --write/family_validity_chart.py --write, not hand-edited. One cell not from this PR moved in the same sweep: Pythonio0.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).galaxyscopeon the crucible C# data, user CPU, 3 runs: base 7.85-8.18 s, branch 8.14-8.15 s (flat).Gates
pr_gates --fast9/9,--ratchets9/9,audit_check.pyall clear, existing C# test files and family oracle/chart/red-cell tests pass.golden-lock.sh+crucible_check.py --update --yesafter 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
SuppressMessageattribute miss in one scheduled-task unit predates this change.Checklist: done [c:5b3a3632]
Lessons for agents
🤖 Generated with Claude Code