Skip to content

Extraction: Erlang record sigil, one-line Nim/F#/OCaml units, Nim operator names (Part of #9200) - #9212

Merged
squid-shepherd[bot] merged 4 commits into
mainfrom
churn/9200-20261124T1545Z
Nov 24, 2026
Merged

squid-shepherd[bot] merged 4 commits into
mainfrom
churn/9200-20261124T1545Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #9200 (first slice: items 2, 3 and the one-line half of item 1 for Nim / F# / OCaml).

What changed

  • Erlang (item 2): root cause was not the spec or the rules. erlang had no language_delimiters entry under line_exclusive, so prism fell back to the family default # and treated #state{} as a comment, swallowing the -spec clause terminator (.) and merging the spec with the next function. Added "erlang": ["%"] in gitgalaxy_config.py.
  • One-line definitions (item 1, Nim / F#): Mode C (_slice_by_indentation) dropped any unit under two lines. nim, fsharp and ocaml (same offside route) now join the exemption list in detector.py.
  • Nim operator names (item 3): _extract_name has a Nim branch that keeps a backticked operator as written (`+`, `==`, `[]`, `$`).
  • Tests: one regression test each in test_erlang_strict.py, test_nim_strict.py, test_fsharp_strict.py; the stale F# comment about the limit is replaced.

Golden drift

Re-blessed via golden-lock.sh crucible_check.py --update --yes. Per-file drift is confined to erlang (17 file digests), nim (8), fsharp (4) and ocaml (3); the rest is the global rollups those feed.

Facts checked

Repro of each defect before the fix, and after: erlang init now found; nim oneLiner and all operator procs found and named; F# / OCaml one-liners found. audit_check.py all clear; strict tests for the four languages pass.

Remaining slices

  • Julia short form f(x) = ... (item 1, biggest recall gap): Mode D (keywords) has no end opener to open a unit; needs a short-form pass in _slice_by_keywords (detector.py + test_julia_strict.py).
  • Regenerate the tree-sitter accuracy baselines (--lang erlang|nim|fsharp|julia --regenerate): the node maps are not in this tree yet (not supported in NODE_MAPS), so do it after that PR merges.
  • Item 4 (class naming allowlist) is a follow-up per the issue.

Sibling gaps

  • crystal, elixir, nim, julia, hcl, r, markdown, easytrieve also have no language_delimiters entry and fall back to #; correct for most, worth confirming for markdown and easytrieve. No burned-estate program needs these.

Lessons for agents

  • A language in line_exclusive with no language_delimiters entry silently gets # as its comment token: %/; languages must be listed.
  • Never run bare git stash in a worktree (shared stack); use a WIP commit.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits November 24, 2026 10:52
…rator names (Part of #9200)

WIP: Erlang `#` was read as a comment (no `%` delimiter entry); Mode C's two-line floor
dropped one-line nim/fsharp/ocaml units; Nim backticked operator procs were unnamed.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 24, 2026 15:58
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 15:59
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 24, 2026 16:02
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9212 @ 3f241d8: 1 failed check(s)

== shard 3 (1675759 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45431636317/job/138578440125
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[fsharp-doom]
errors:
E AssertionError:
tests/doom_rosetta/test_doom_rosetta.py:47: AssertionError
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[fsharp-doom] - AssertionError:
##[error]Process completed with exit code 1.
log tail:
summary.functions: 53 -> 56
file FSharpDoom/OpenGl/Shader.fs: functions 8 -> 9, func_hash '66fc80b7ddb119e0' -> '0cd250a96bbd9a42'
file FSharpDoom/OpenGl/Texture.fs: functions 3 -> 4, func_hash '128a2bdaa574295d' -> '6773b2c148d8d9bd'
file FSharpDoom/Timer.fs: functions 3 -> 4, func_hash '92dcd626b3cb31eb' -> 'f9077567cb789df3'
(bless an intended change with tests/tools/doom_rosetta_check.py --update --yes)
assert not "fsharp-doom: 4 difference(s) from the golden\n summary.functions: 53 -> 56\n file FSharpDoom/OpenGl/Shader.fs: func...> '6773b2c148d8d9bd'\n file FSharpDoom/Timer.fs: functions 3 -> 4, func_hash '92dcd626b3cb31eb' -> 'f907756
1 failed, 11 passed, 28 deselected in 159.41s (0:02:39)
##[error]Process completed with exit code 1.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 3 (1675759 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: agentic-cobol-doom-codex,dartdoom,doom-ios,doom3-bfg,doomgeneric,dsda-doom,eternity,fsharp-doom,mood,room4doom,rust-doom,sdl-doom
T0: 1795535922
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/5bbfb8f5-7ef7-464e-831e-0ad52e2778ab' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #9212 @ 3f241d8: 1 failed check(s)

== shard 3 (1675759 LOC) (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/45431636317/job/138578440125
repro: python tests/tools/pr_gates.py --fast
failing tests: tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[fsharp-doom]
errors:
E AssertionError:
tests/doom_rosetta/test_doom_rosetta.py:47: AssertionError
FAILED tests/doom_rosetta/test_doom_rosetta.py::test_port_matches_golden[fsharp-doom] - AssertionError:
##[error]Process completed with exit code 1.
log tail:
summary.functions: 53 -> 56
file FSharpDoom/OpenGl/Shader.fs: functions 8 -> 9, func_hash '66fc80b7ddb119e0' -> '0cd250a96bbd9a42'
file FSharpDoom/OpenGl/Texture.fs: functions 3 -> 4, func_hash '128a2bdaa574295d' -> '6773b2c148d8d9bd'
file FSharpDoom/Timer.fs: functions 3 -> 4, func_hash '92dcd626b3cb31eb' -> 'f9077567cb789df3'
(bless an intended change with tests/tools/doom_rosetta_check.py --update --yes)
assert not "fsharp-doom: 4 difference(s) from the golden\n summary.functions: 53 -> 56\n file FSharpDoom/OpenGl/Shader.fs: func...> '6773b2c148d8d9bd'\n file FSharpDoom/Timer.fs: functions 3 -> 4, func_hash '92dcd626b3cb31eb' -> 'f907756
1 failed, 11 passed, 28 deselected in 159.41s (0:02:39)
##[error]Process completed with exit code 1.
##[group]Run s=$(( $(date +%s) - T0 ))
s=$(( $(date +%s) - T0 ))
echo "shard 3 (1675759 LOC): ${s}s" >> "$GITHUB_STEP_SUMMARY"
shell: /usr/bin/bash -e {0}
env:
GITGALAXY_LICENSE_KEY: COMMUNITY_FREE_TIER
DOOM_SPEEDRUN_WORK: /home/runner/work/gitgalaxy/gitgalaxy/../doom-work
DOOM_ROSETTA_PORTS: agentic-cobol-doom-codex,dartdoom,doom-ios,doom3-bfg,doomgeneric,dsda-doom,eternity,fsharp-doom,mood,room4doom,rust-doom,sdl-doom
T0: 1795535922
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
##[endgroup]
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/5bbfb8f5-7ef7-464e-831e-0ad52e2778ab' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 24, 2026
… (Part of #9200)

summary.functions 53 -> 56 (Shader.fs 8->9, Texture.fs 3->4, Timer.fs 3->4),
the intended effect of the one-line F# unit fix.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (b1a5ab4) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 24, 2026 16:21
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 24, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 24, 2026 16:24
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

1 similar comment
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 24, 2026 16:25
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd squid-shepherd Bot added the shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md label Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md shepherd:waiting-on-main Bot: the failing check fails on main too (main's to fix). Guide: docs/ci.md labels Nov 24, 2026
@squid-shepherd
squid-shepherd Bot merged commit 660995e into main Nov 24, 2026
77 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/9200-20261124T1545Z branch November 24, 2026 16:57
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 24, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant