Repository navigation
test(crucible): rebless fixtures and baselines, bump the language-crucible pin to v1.9.0 - #9307
Merged
Merged
Conversation
…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
marked this pull request as ready for review
November 25, 2026 15:29
Contributor
…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]>
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tomlv1.8.0 to v1.9.0, plus the pin note and clone command indocs/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, undergolden-lock.sh, at low box load.crucible_check.py(read-only) then passes both legs;crucible_path_check.pypasses (identical from both parent paths).unvalidated; 0 removed; 0 status changes (the checklist's expectation).tests/tools/ctags_reader.py: decode ctags output witherrors="replace"(+ regression test, which fails without the fix). ctags can cut a field mid-character; the new Kotlin sources crashedtri_comparison_chart.py --all --writewithUnicodeDecodeError ... 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. WRFmodule_initialize_real.F: 112 to 120 call sites). The 4 removals: an aperture message whose LOC figure changed becausePROVENANCE.jsongrew, and 3 cross-filefcall:edges (e.g. an assembly boot file listed as a caller of SQLite'sparse.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
--regeneraterefuses 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 normalrun_regenerate. Before and after,found / extrafor functions and classes:Recall rose almost everywhere. The new extras are not noise; they sort into three kinds:
fun `backtick name`()yieldsfun(51 extras, backticked test names missed); apex yieldsreturn, plus constructors and inner classes as functions, and misses interface method declarations; dartasync/operator/static; fortranmodule/functionas class names; rubyself.init/dealloc, solidityconstructor/receive/fallback, swiftinit?/subscript)..PHONY/.DELETE_ON_ERRORspecial targets count as rules in tree-sitter but not in the engine; haskell also missesprop_*test functions and reports calls such asmaybe,forever,pureas 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 languagemoves the sharedlanguage-cruciblecheckout 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_PATHat a clean checkout directory namedlanguage-crucible(no machine paths in any baselinecorpus_path).🤖 Generated with Claude Code