Repository navigation
Bump language-crucible pin v1.7.0 to v1.8.0 and re-bless the golden masters - #9162
Merged
Merged
Conversation
…asters language-crucible v1.8.0 adds ten categories (crystal, elixir, erlang, fsharp, hcl, julia, nim, ocaml, r, postgresql): 279 files in 16 folders, permissive licenses only, and no change to any existing file (language-crucible#41). The golden masters are re-blessed in both dependency modes with golden-lock.sh python tests/tools/crucible_check.py --update --yes; a second run without --update passes in both modes. 23,340 differences, reviewed with bless_scope.py and by class: - 4,676 topological X/Y/Z re-solves (the expected coordinate shift when groups are added). - 14,644 per-function PageRank values in existing files, each diluted slightly by the larger graph (for example 2.5e-05 -> 2.4e-05). - About 900 other corpus-relative values in existing files: Composition Fit z-scores, file_cluster distances, Testing Exposure, upstream/downstream graph metrics, Repository Drift, popularity ranks, a few archetype re-assignments. - 1,277 differences inside the new folders and 69 new group keys. - Corpus summary counts: 10 new LICENSE files land in the blocked queue, and the unparsable-JSON LOC key moves because data/PROVENANCE.json grew by 176 lines. No existing file's extraction output (functions, counts, signals) changed. The pin is tests/crucible_pins.toml; tests/README.md and docs/self_scan/README.md mention the new tag. crucible_path_check.py passes. Not changed: the tri-comparison chart and ledger and the tree-sitter accuracy history (published by the history workflows; the ledger rule says not to commit a regeneration unless validated). tri_comparison_chart.py --all --ci passes. tree_sitter_accuracy_audit.py --all --ci reports php and powershell as stale (real_functions 1707 -> 1706 and 489 -> 487); both fail identically against the OLD v1.7.0 corpus at this commit, so they are pre-existing, not caused by the bump. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
squid-protocol
marked this pull request as ready for review
November 24, 2026 00:30
…anguage-crucible v1.8.0) The new nim_stdlib corpus folder made 'Security: Homoglyph Identifiers' fire on asyncfutures.nim for the first time, and test_signal_coverage failed because that signal is baselined as zero. The file is pure ASCII. It imports `cstrutils`, a real Nim stdlib module used once, which sits one edit from `strutils`, imported across the corpus, so the radar read a legitimate module as a squat. #4982 already exempts a stdlib module from being the suspect for Python, JavaScript and Go (a stdlib name cannot itself be a squat; a near-miss of one still fires). Nim had no list. This adds one, frozen from the module names under lib/ of nim-lang/Nim (devel at a109d698, the tree the corpus folder was staged from): 272 names, matched for `import x`, `import std/x` and the system/ and collections/ path forms. Third-party `mylib/os` and other languages' use of the same name are not exempt. The golden masters are re-blessed. Against the first bless of this PR the only changes are the ones this fix explains, 10 per mode, all about asyncfutures.nim: the typosquat hit 1 -> 0, its alert key gone, and the digests and LLM-brief line that cover it. The signal stays baselined at zero, which is the existing baseline's intent: its note says its earlier hits were typosquat false positives that #4982 removed. Tests: the Nim stdlib suite (40 modules as never-suspect, cstrutils/strutils, a near-miss that still fires, path forms and other languages). Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
Contributor
…s against current main main moved 24 commits while this PR was in review, including the estate pin bump to v0.9.0 and changes to the same golden masters, so the PR conflicted (14 golden-master files). tests/crucible_pins.toml merged cleanly: language v1.8.0 (this PR) with estate v0.9.0 (main). The golden masters are generated, so they were taken from main and re-blessed with the language v1.8.0 corpus and the estate v0.9.0 corpus, not hand-merged. Re-bless against current main: 23,354 differences (4,676 topological, 14,654 per-function PageRank, 927 other corpus-relative values, 1,315 in the new folders and groups, 1,782 other aggregates and digests), the same classes as before the merge. No typosquat or homoglyph difference from main, so the Nim stdlib fix still holds. crucible_check.py passes in both modes, and test_signal_coverage and the zero-coverage signal tests pass. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem
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.
What this does
Two commits. The first moves the pinned
language-cruciblecorpus from v1.7.0 to v1.8.0 (ten new language categories, language-crucible#41) and re-blesses the golden masters. This is the gitgalaxy half of the cross-repo step in the crucible'sRELEASING.md.Cross-repo: language-crucible#41 merged, then I cut and published the tag: https://github.com/squid-protocol/language-crucible/releases/tag/v1.8.0 (at
73102e6). This PR must not merge until its CI is green; afterwards runpython tests/tools/crucible_pins.py sync languageto move the shared checkouts (I did not touch them).Why the golden masters changed (23,340 differences)
Blessed with
golden-lock.sh python tests/tools/crucible_check.py --update --yes(both legs, CI-matched venvs), reviewed withbless_scope.pyand by class. A second run without--updatepasses in both modes.data/PROVENANCE.jsongrew by 176 linesThe four per-file changes inside an existing file's own record are three popularity ranks (php
Http.php, rubybase.rb, pythonhttp.py) and one composition archetype (cobolCOACTUPC.cbl, "Large Core Modules (3)" to "Large Core Modules"); both are relative to the whole corpus. The exact buckets above come from comparing againstorigin/main; the commit message's breakdown is approximate.No existing file's extraction output (functions, counts, signals) changed. The data diff between v1.7.0 and v1.8.0 is exactly the 279 new files, their 16 licenses and
PROVENANCE.json; I checked that withgit diff --statand excluded the new categories.Second commit: an engine fix this corpus exposed
CI on the first commit failed one test in
full-suiteparts 2/5 and 3/5,tests/test_signal_coverage.py:'Security: Homoglyph Identifiers' now fires on 1 file(s) but is baselined as zero. The file isnim/nim_stdlib/asyncfutures.nim. It is pure ASCII. It importscstrutils, a real Nim stdlib module used once, one edit fromstrutils, so the typosquat radar flagged a legitimate module.The radar already exempts a stdlib module from being the suspect for Python, JavaScript and Go (#4982); a near-miss of a stdlib name still fires. Nim had no list. This adds one: 272 module names frozen from
lib/of nim-lang/Nim (devel ata109d698, the tree the corpus folder came from), matched forimport x,import std/x, and thesystem/andcollections/path forms. A third-partymylib/osis not exempt. The signal stays baselined at zero, matching that baseline's own note that earlier hits were typosquat false positives.I re-blessed. Against the first bless the only differences are the 10 per mode this fix explains, all about
asyncfutures.nim(typosquat hit 1 to 0, its alert key, and the digests and LLM-brief line that cover it). New tests are intests/core_engine/test_typosquat_nonpackage_4982.py. I also ran that whole file locally (537 passed),test_signal_coverage.py, and the zero-coverage signal tests.Not changed, and why
main. The history workflows publish them, and the ledger rule says not to commit a regeneration unless validated. A regeneration did show 15 changed counts and 2still_reproducesflips on languages whose corpus did not change (typescript function existence 2,286 to 6,024, for instance); that looks like engine or ctags drift since the ledger was last refreshed on 2026-10-10 and I did not investigate it.tri_comparison_chart.py --all --cipasses.LANGUAGE_CRUCIBLE_REFrepo variable: no workflow reads it any more;crucible_pins.py checkwill warn that it lags.language v1.7.0in a pins line; they already carry older cics and estate pins from earlier bumps, so I left them.Read before merging
tree_sitter_accuracy_audit.py --all --cireported php and powershell as stale onmain. That was wrong. It came from my local venv (tree-sitter-language-pack1.21.0); CI installs 1.24.0, hash-pinned inci/requirements/treesitter.txt(the deliberate move tracked in Take tree-sitter-language-pack 1.24.0 deliberately: php / powershell baselines and the srb2 call-graph golden move #8481), and under 1.24.0 php and powershell pass. There is no stale-baseline problem onmain.LANGUAGE_CRUCIBLE_ALLOW_UNPINNED=1, against a clean worktree namedlanguage-crucibleat the tagged commit (73102e6), so the bakedcorpus_pathmatches CI's clone.BUMPING_THE_CRUCIBLE_PIN.md: a "0 files changed" view and two timing-out code-scanning checks)..gitattributesshould prevent it; if it recurs, review semantically rather than re-running the scanners.Checked
crucible_check.pyafter--update: full_precision PASS, zero_dependency PASScrucible_path_check.py: the corpus scans identically from both parent pathstri_comparison_chart.py --all --ci: all OKdoc_refs_audit.py --ci: no new findings🤖 Generated with Claude Code
https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem