Skip to content

test(crucible): rebless fixtures and baselines, bump the language-crucible pin to v1.9.0 - #9307

Merged
squid-protocol merged 10 commits into
mainfrom
crucible-bump-v1.9.0
Nov 25, 2026
Merged

squid-protocol merged 10 commits into
mainfrom
crucible-bump-v1.9.0

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

Status

language-crucible v1.9.0 is released (fd4fb0f, https://github.com/squid-protocol/language-crucible/releases/tag/v1.9.0) and this PR now includes the pin bump (tests/crucible_pins.toml v1.8.0 to v1.9.0, plus the pin note and clone command in docs/self_scan/README.md) on top of the reblessed fixtures. Still a draft until CI is green.

What changed in the corpus (v1.8.0 to fd4fb0f)

12 commits, 53 new folders, 608 new files, 0 new categories (302 to 355 folders, 3,962 to 4,570 files): language-crucible #42 to #46. They broaden thin categories (abap, agc_assembly, yacc, m4, bms, db2_sql, hlasm, rexx, pli, apex, nix, scheme and 13 mainstream languages) and add upstream license files for every folder.

What this PR regenerates

  • golden_master_audit + golden_master_zero_dep_audit, both legs, CI-matched venvs, under golden-lock.sh, at low box load. crucible_check.py (read-only) then passes both legs; crucible_path_check.py passes (identical from both parent paths).
  • Tri-comparison ledger, chart, points-of-interest: 51 new entries, all unvalidated; 0 removed; 0 status changes (the checklist's expectation).
  • Tree-sitter accuracy history, chart, and the summary table.
  • 13 stale tree-sitter baselines: apex csharp dart fortran haskell kotlin makefile matlab objective-c ruby scala solidity swift. Exactly the languages whose corpus grew; the other 24 match unchanged (a clean control: no phantom drift).
  • tests/tools/ctags_reader.py: decode ctags output with errors="replace" (+ regression test, which fails without the fix). ctags can cut a field mid-character; the new Kotlin sources crashed tri_comparison_chart.py --all --write with UnicodeDecodeError ... 0xbb.

Reading the golden-master bless (not the line diff)

bless_scope.py: 61,422 differences = 3,433 topological re-solves + 57,989 substantive. Almost all of the substantive bucket is the new files' own entries (about 205k added leaves; only 4 leaves removed). In pre-existing files no LOC / function / class count moved; what moved is global (PageRank, popularity rank, composition z-scores, file clusters, import-list order) and cross-file call counts that grew because new files in the same language call into old ones (e.g. WRF module_initialize_real.F: 112 to 120 call sites). The 4 removals: an aperture message whose LOC figure changed because PROVENANCE.json grew, and 3 cross-file fcall: edges (e.g. an assembly boot file listed as a caller of SQLite's parse.y) that re-resolve as new files add matching names, an existing name-collision quirk and not something this corpus introduced.

Tree-sitter baselines: accepted after reading the examples

--regenerate refuses when extras rise, and they rose in 10 of the 13 (a corpus 5 to 40 times larger mechanically adds hits). I accepted through a wrapper that records each overridden regression, then the normal run_regenerate. Before and after, found / extra for functions and classes:

lang files functions found / extra classes found / extra
apex 4 to 16 38 / 0 to 178 / 43 4 / 0 to 32 / 6
csharp 6 to 42 964 / 0 to 1223 / 1 33 / 0 to 91 / 1
dart 7 to 31 1750 / 0 to 1922 / 14 200 / 0 to 244 / 9
fortran 6 to 40 139 / 0 to 246 / 0 11 / 0 to 28 / 2
haskell 7 to 41 146 / 1 to 617 / 11 16 / 0 to 60 / 20
kotlin 6 to 36 28 / 0 to 195 / 51 7 / 0 to 113 / 13
makefile 1 to 12 1 / 0 to 12 / 0 (real: 1 to 28) 0 / 0
matlab 6 to 28 23 / 0 to 89 / 0 0 to 1
objective-c 5 to 36 153 / 1 to 620 / 21 5 / 0 to 46 / 7
ruby 8 to 32 133 / 0 to 225 / 1 20 / 0 to 87 / 1
scala 7 to 29 541 / 0 to 575 / 0 17 / 0 to 46 / 0
solidity 7 to 28 99 / 6 to 350 / 18 7 / 0 to 28 / 0
swift 6 to 54 132 / 1 to 340 / 14 38 / 0 to 159 / 0

Recall rose almost everywhere. The new extras are not noise; they sort into three kinds:

  1. Engine captures a keyword as a name (real regex defects): kotlin fun `backtick name`() yields fun (51 extras, backticked test names missed); apex yields return, plus constructors and inner classes as functions, and misses interface method declarations; dart async / operator / static; fortran module / function as class names; ruby self.
  2. Reference gaps, not engine bugs: tree-sitter's node map doesn't count constructors and special members the engine reports correctly (objective-c init / dealloc, solidity constructor / receive / fallback, swift init? / subscript).
  3. A definition question: makefile .PHONY / .DELETE_ON_ERROR special targets count as rules in tree-sitter but not in the engine; haskell also misses prop_* test functions and reports calls such as maybe, forever, pure as definitions.

The accepted baselines record these numbers as they are today. Fixing any of them will show up as an improvement and a normal --regenerate. I have not filed the follow-up issue; the class-sweep rule says one consolidated issue for the set.

After merge

python tests/tools/crucible_pins.py sync language moves the shared language-crucible checkout to v1.9.0 (not done yet: other branches still pin v1.8.0). The embedded_python and sqlite baselines from #9292 should be re-measured once both PRs are in.

Generated artifacts were produced with LANGUAGE_CRUCIBLE_PATH at a clean checkout directory named language-crucible (no machine paths in any baseline corpus_path).

🤖 Generated with Claude Code

squid-protocol and others added 3 commits November 25, 2026 10:22
…ble v1.9.0 candidate (fd4fb0f)

Regenerates every artifact the BUMPING_THE_CRUCIBLE_PIN checklist names, against language-crucible
main fd4fb0f (v1.8.0 plus 12 commits: 53 new folders, 608 new files, no new categories). The pin
itself is NOT moved and no tag exists yet: tests/crucible_pins.toml still says v1.8.0, so this
branch is expected to be red in CI until the tag is cut and the pin is bumped on top of it.

- golden_master_audit + golden_master_zero_dep_audit (both legs, CI-matched venvs, under golden-lock)
- tri-comparison ledger + chart + points-of-interest (51 new entries, all unvalidated; 0 removed,
  0 status changes)
- tree-sitter accuracy history + chart; summary table in language_standards/__init__.py
- 13 stale tree-sitter baselines: apex csharp dart fortran haskell kotlin makefile matlab
  objective-c ruby scala solidity swift (exactly the languages whose corpus grew; the other 24 match)
- ctags_reader: decode ctags output with errors="replace". ctags can cut a field mid-character, which
  crashed tri_comparison_chart on the new Kotlin sources (UnicodeDecodeError 0xbb); + regression test.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
v1.9.0 is language-crucible fd4fb0f (the commit the fixtures in the previous commit were blessed
against): 53 new folders, 555 source files, no new categories.
https://github.com/squid-protocol/language-crucible/releases/tag/v1.9.0

tests/crucible_pins.toml is the only source of the pin; docs/self_scan/README.md's pin note and
clone command follow it. Generated reports that state the version they were measured at
(docs/*_family_contracts.md) and test fixture strings are left as they are.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol changed the title test(crucible): rebless fixtures and baselines for the language-crucible v1.9.0 candidate (pin not yet moved) test(crucible): rebless fixtures and baselines, bump the language-crucible pin to v1.9.0 Nov 25, 2026
@squid-protocol
squid-protocol marked this pull request as ready for review November 25, 2026 15:29
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

squid-protocol and others added 5 commits November 25, 2026 10:50
…eep and call-graph baseline for v1.9.0

CI on the first push of the bump found three things the BUMPING_THE_CRUCIBLE_PIN checklist does not list:

1. tests/test_source_reads.py (#3813) rejected the ctags fix: errors="replace" is a lossy handler.
   read_ctags_symbols now captures bytes and decodes through gitgalaxy.core.source_text.decode_bytes
   (no byte dropped or replaced). The regression test fails against main's original reader and passes
   with this one.
2. tests/tools/test_family_oracle_sweep.py: every pinned cell in tests/family_validity_baseline.json
   names the pin it was measured on. Reran `family_oracle_sweep.py --write` at v1.9.0 (the crucible
   checkout is exactly the tag). 178 cells take the new label; counts moved where corpora grew;
   11 cells changed status. Two runs, at different box loads, produced byte-identical files.
3. Call Graph Accuracy Audit has its own committed baseline (tests/call_graph_accuracy_baseline.json)
   that the larger apex / fortran / haskell / objective-c / ruby corpora regress. Regenerated with
   `call_graph_accuracy.py --regenerate` after reading the cause buckets; local numbers equal the ones
   CI printed (objective-c precision 97.8 -> 84.7: method-signature `void` and selector label parts such
   as `forKey` are taken as callees; ruby recall 96.3 -> 93.9: `raise` missed, Sorbet `void` taken as a call).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…t for 3f15f01

No content change. The branch already held 3f15f01 but the PR never picked it up (Pull Requests / Actions / Webhooks were degraded), so no checks ran on it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…he next commit)

Three engine-affecting commits (keyword families: reflection_metaprogramming, python, mining report) landed on main while the PR was stuck behind the GitHub incident, and conflicted in every blessed fixture. The conflicted files are main's version here, only as a base: the next commit regenerates all of them against the v1.9.0 corpus on the merged tree.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…the tree merged with main

Reran, on the merge of origin/main (3 keyword-family commits) with the v1.9.0 corpus: both golden-master legs, family_oracle_sweep --write, the tri-comparison ledger + points doc. tree_sitter_accuracy_audit --all --ci and call_graph_accuracy --ci pass unchanged. Ledger vs main: 0 removed, 0 status changes, 51 new unvalidated.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…9.0 sweep

test_family_validity_chart::test_committed_svgs_are_current: both SVGs are rendered from tests/family_validity_baseline.json, which the v1.9.0 sweep rewrote. family_validity_chart.py --check passes.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
squid-protocol and others added 2 commits November 25, 2026 13:17
…ed in the next commit)

main took the python keyword-family fix (#9316), Swift keyword families, decoy protocols and others, which re-blessed the same golden masters, family baseline and charts. The 17 conflicted generated files are main's version here only as a base.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… on the tree merged with main

Reran on the merge of origin/main (python keyword-family fix #9316, Swift keyword families, decoy protocols) with the v1.9.0 corpus and pin: both golden-master legs, family_oracle_sweep --write (every pinned cell carries 'language-crucible v1.9.0'; swept with the selfscan venv, which the committed baseline matches), the family-validity charts, the tri-comparison ledger and points doc. tree_sitter_accuracy_audit --all --ci (37 OK) and call_graph_accuracy --ci pass. Ledger vs main: 0 removed, 0 status changes, 51 new unvalidated. A read-only crucible_check passes both legs afterwards.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol
squid-protocol enabled auto-merge (squash) November 25, 2026 18:43
@squid-protocol
squid-protocol merged commit f8a4c51 into main Nov 25, 2026
74 checks passed
@squid-protocol
squid-protocol deleted the crucible-bump-v1.9.0 branch November 25, 2026 19:25
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