Skip to content

Bump language-crucible pin v1.7.0 to v1.8.0 and re-bless the golden masters - #9162

Merged
squid-protocol merged 3 commits into
mainfrom
crucible-v1.8.0-pin
Nov 24, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
crucible-v1.8.0-pin

Conversation

@squid-protocol

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

Copy link
Copy Markdown
Owner

What this does

Two commits. The first moves the pinned language-crucible corpus 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's RELEASING.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 run python tests/tools/crucible_pins.py sync language to 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 with bless_scope.py and by class. A second run without --update passes in both modes.

class count
topological X/Y/Z re-solves (expected when groups are added) 4,676
per-function PageRank in existing files, diluted slightly by the larger graph (e.g. 2.5e-05 to 2.4e-05) 14,644
other corpus-relative metrics in existing files: Composition Fit z-scores, file_cluster distances, Testing Exposure, upstream/downstream graph metrics, Repository Drift, import-edge counts 928
inside the new folders, and the new language group keys 1,307
everything else: per-artifact row digests in the graph snapshot, which change because the rows they hash contain the shifted values (1,505); corpus summary counts and distributions such as File Composition Distribution (107); small GPU-JSON and graph-metadata aggregates; 4 per-file ranks or archetype re-assignments; 10 new LICENSE files in the blocked queue; the unparsable-JSON LOC key moving because data/PROVENANCE.json grew by 176 lines 1,785

The four per-file changes inside an existing file's own record are three popularity ranks (php Http.php, ruby base.rb, python http.py) and one composition archetype (cobol COACTUPC.cbl, "Large Core Modules (3)" to "Large Core Modules"); both are relative to the whole corpus. The exact buckets above come from comparing against origin/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 with git diff --stat and excluded the new categories.

Second commit: an engine fix this corpus exposed

CI on the first commit failed one test in full-suite parts 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 is nim/nim_stdlib/asyncfutures.nim. It is pure ASCII. It imports cstrutils, a real Nim stdlib module used once, one edit from strutils, 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 at a109d698, the tree the corpus folder came from), matched for import x, import std/x, and the system/ and collections/ path forms. A third-party mylib/os is 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 in tests/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

  • Tri-comparison chart and ledger, tree-sitter accuracy history: left as on 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 2 still_reproduces flips 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 --ci passes.
  • LANGUAGE_CRUCIBLE_REF repo variable: no workflow reads it any more; crucible_pins.py check will warn that it lags.
  • Evidence-report fixtures still say language v1.7.0 in a pins line; they already carry older cics and estate pins from earlier bumps, so I left them.

Read before merging

  • Correction (2026-11-24): an earlier version of this description said tree_sitter_accuracy_audit.py --all --ci reported php and powershell as stale on main. That was wrong. It came from my local venv (tree-sitter-language-pack 1.21.0); CI installs 1.24.0, hash-pinned in ci/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 on main.
  • I ran the blesses with LANGUAGE_CRUCIBLE_ALLOW_UNPINNED=1, against a clean worktree named language-crucible at the tagged commit (73102e6), so the baked corpus_path matches CI's clone.
  • GitHub may fail to render this diff (trap 1 in BUMPING_THE_CRUCIBLE_PIN.md: a "0 files changed" view and two timing-out code-scanning checks). .gitattributes should prevent it; if it recurs, review semantically rather than re-running the scanners.

Checked

  • crucible_check.py after --update: full_precision PASS, zero_dependency PASS
  • crucible_path_check.py: the corpus scans identically from both parent paths
  • tri_comparison_chart.py --all --ci: all OK
  • doc_refs_audit.py --ci: no new findings
  • Not run locally: the OS and Python matrix, and CI on the PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_018srRvhLsKhsTZmCyX36Qem

…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
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
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

…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
@squid-protocol
squid-protocol merged commit 7299a29 into main Nov 24, 2026
74 checks passed
@squid-protocol
squid-protocol deleted the crucible-v1.8.0-pin branch November 24, 2026 12:46
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