Skip to content

Fix #1892: COBOL func_start regex reserved word shield - #2111

Merged
squid-protocol merged 1 commit into
mainfrom
fix-1892-cobol-func-start
Aug 22, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
fix-1892-cobol-func-start

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Fixes #1892 by replacing the bare \b boundary with (?=[ \t\n.]) in the func_start reserved word shield, preventing hyphenated verbs like DELETE-POLICY from being incorrectly shielded.

@squid-protocol
squid-protocol force-pushed the fix-1892-cobol-func-start branch from f50a2e1 to c231237 Compare August 22, 2026 13:47
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol merged commit 1dcfeaa into main Aug 22, 2026
29 checks passed
@squid-protocol
squid-protocol deleted the fix-1892-cobol-func-start branch August 22, 2026 13:50
squid-protocol added a commit that referenced this pull request Aug 22, 2026
)

* Fix tri-comparison chart/ledger regen that ran without real ctags

PR #2111's regen (part of the #1892 cobol fix) ran with no universal-ctags
binary on PATH, so every language silently degraded to a 2-tool
(GitGalaxy + tree-sitter) comparison instead of erroring loudly -- exactly
the failure mode docs/self_scan/tri_comparison_README.md already warns
about (Ubuntu's arduino-ctags shadows the `ctags` binary name).

Concretely this dropped cobol's and fortran's ctags bars/badges entirely
(cobol lost its "G" full-precision badge and showed a nonsensical 0/168
precision; fortran's ctags bar vanished and gitgalaxy precision read as
degraded), and lost ctags data across every other ctags-covered language
in the chart.

Regenerated with a real universal-ctags on PATH via
tests/tools/tri_comparison_chart.py --all --write and
tests/tools/tri_comparison_report.py --write. cobol now correctly shows
168 (up from 148, reflecting the real #1892 recall improvement) against
ctags' 241, with the "G" badge restored; fortran is back to its prior
138/138 ctags-matched state. No validated ledger status/verdict was
touched by the regen (per tri_comparison_ledger.py's own lifecycle
rules) -- only last_seen_count/still_reproduces were recomputed from a
live gather, which also self-corrected a separate slip: the #1892 fix
commit had hand-set still_reproduces=false on
cobol/function/existence/agree[ctags]_vs[gitgalaxy] even though that
shape's majority cause (ctags mistagging END-IF as a paragraph) is a
permanent, structural ctags limitation that still reproduces.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* Point both agents' instructions at the tri-comparison regen README

Gemini/Antigravity had zero guidance on the tri-comparison chart/ledger
system, which is exactly how PR #2111's regen shipped without a real
ctags binary on PATH and went unnoticed. Adds a full section to
ANTIGRAVITY.md (the ctags-binary check, the --all-only write rule, the
never-hand-edit-ledger-status rule) mirroring what the
tri-comparison-ledger-sweep skill already taught Claude, and adds a
pointer from CLAUDE.md's existing tri-comparison section. Both now cite
docs/self_scan/tri_comparison_README.md as the single canonical regen
doc instead of each carrying its own copy of the procedure.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
squid-protocol added a commit that referenced this pull request Aug 22, 2026
)

* Fix tri-comparison chart/ledger regen that ran without real ctags

PR #2111's regen (part of the #1892 cobol fix) ran with no universal-ctags
binary on PATH, so every language silently degraded to a 2-tool
(GitGalaxy + tree-sitter) comparison instead of erroring loudly -- exactly
the failure mode docs/self_scan/tri_comparison_README.md already warns
about (Ubuntu's arduino-ctags shadows the `ctags` binary name).

Concretely this dropped cobol's and fortran's ctags bars/badges entirely
(cobol lost its "G" full-precision badge and showed a nonsensical 0/168
precision; fortran's ctags bar vanished and gitgalaxy precision read as
degraded), and lost ctags data across every other ctags-covered language
in the chart.

Regenerated with a real universal-ctags on PATH via
tests/tools/tri_comparison_chart.py --all --write and
tests/tools/tri_comparison_report.py --write. cobol now correctly shows
168 (up from 148, reflecting the real #1892 recall improvement) against
ctags' 241, with the "G" badge restored; fortran is back to its prior
138/138 ctags-matched state. No validated ledger status/verdict was
touched by the regen (per tri_comparison_ledger.py's own lifecycle
rules) -- only last_seen_count/still_reproduces were recomputed from a
live gather, which also self-corrected a separate slip: the #1892 fix
commit had hand-set still_reproduces=false on
cobol/function/existence/agree[ctags]_vs[gitgalaxy] even though that
shape's majority cause (ctags mistagging END-IF as a paragraph) is a
permanent, structural ctags limitation that still reproduces.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* Point both agents' instructions at the tri-comparison regen README

Gemini/Antigravity had zero guidance on the tri-comparison chart/ledger
system, which is exactly how PR #2111's regen shipped without a real
ctags binary on PATH and went unnoticed. Adds a full section to
ANTIGRAVITY.md (the ctags-binary check, the --all-only write rule, the
never-hand-edit-ledger-status rule) mirroring what the
tri-comparison-ledger-sweep skill already taught Claude, and adds a
pointer from CLAUDE.md's existing tri-comparison section. Both now cite
docs/self_scan/tri_comparison_README.md as the single canonical regen
doc instead of each carrying its own copy of the procedure.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(cobol): exclude LOCAL-STORAGE from func_start capture (#1890)

* chore: update golden master fixtures after fixing #1890

* docs: update ci-push-checklist skill with conflict resolution runbook and updated ledger rules

* chore: fix golden master diff drift from external language-crucible metadata

* docs: add corpus clone warning and CI watch instructions to push checklist

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
squid-protocol added a commit that referenced this pull request Aug 22, 2026
…2139)

Adds tests/tools/tri_comparison_chart.py's --ci/--regenerate mode, gated on
GitGalaxy's own ledger-validated precision (never a raw disagreement count) --
recall is deliberately excluded, since the chart's own docstring already
explains why that ratio's cross-tool denominator isn't trustworthy to rank on.

Two new workflows mirror the existing tree-sitter-accuracy split:
tri-comparison-audit.yml (PR-time, blocking, measures only) and
tri-comparison-history.yml (push-to-main, regenerates chart/ledger/report,
opens an auto-merged PR only when something actually changed). Both hard-fail
if ctags isn't really Universal Ctags, per the PR #2111 incident.

Updates ci-push-checklist and tree-sitter-accuracy-sweep skills, the
tri-comparison README, and CLAUDE.md's Differential Scan section to reflect
the new gate.

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
squid-protocol added a commit that referenced this pull request Aug 22, 2026
* ci: gate PR merges on tri-comparison validated-precision regression

Adds tests/tools/tri_comparison_chart.py's --ci/--regenerate mode, gated on
GitGalaxy's own ledger-validated precision (never a raw disagreement count) --
recall is deliberately excluded, since the chart's own docstring already
explains why that ratio's cross-tool denominator isn't trustworthy to rank on.

Two new workflows mirror the existing tree-sitter-accuracy split:
tri-comparison-audit.yml (PR-time, blocking, measures only) and
tri-comparison-history.yml (push-to-main, regenerates chart/ledger/report,
opens an auto-merged PR only when something actually changed). Both hard-fail
if ctags isn't really Universal Ctags, per the PR #2111 incident.

Updates ci-push-checklist and tree-sitter-accuracy-sweep skills, the
tri-comparison README, and CLAUDE.md's Differential Scan section to reflect
the new gate.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* docs(rules): update planning approval rule to enforce autonomous execution post-approval

* fix(fortran): correctly parse arguments truncated by preprocessor macros (#2077)

Fortran argument parsing was terminating early at the first `)', which could be part of an embedded preprocessor conditional. By overriding the args count with `_count_top_level_args`, we now track parenthesis depth correctly.

Fixes #2077

* chore: add self-healing and sandbox permission rules, document golden master timeout gotcha

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
squid-protocol added a commit that referenced this pull request Aug 26, 2026
…idated remain (#2243)

* fix(javascript): extract computed and dynamic property methods

* chore: update ledger

* chore: update JS tree-sitter accuracy baseline

* chore: update tree-sitter summary table

* feat(jcl): implement manual verification and fix class slicing

* fix: remove accidentally committed venv and scratch files

* chore: validate m4 tri-comparison ledger discrepancies

* docs(agents): add untracked file and ledger warnings to ci-push-checklist

* docs: validate remaining tri-comparison shapes and file issues

* fix(extraction): resolve unvalidated tri-comparison ledger shapes for Obj-C, Swift, Tcl, TS

This commit resolves a batch of unvalidated tri-comparison shapes by improving extraction accuracy:
- **Objective-C**: Updated `func_start` to correctly match unparenthesized return types (e.g., `- unsigned char next_input_block`).
- **Swift**: Modified `detector.py` normalizer to preserve standard operator characters (e.g., `==`), preventing them from collapsing into `Unknown_Block`.
- **Tcl**: Updated `func_start` to optionally consume the inline brace-wrapped argument list so it isn't mistaken for the function body by the balanced-brace finder.
- **TypeScript**: Fixed arrow function `func_start` branch to permit up to 3 levels of nested parentheses in the return type, enabling extraction of `const fn = <T>(): (returnType<...>) => {`.

Closes #2214
Closes #2217
Closes #2218
Closes #2220

Also updates all relevant baselines (Tree-sitter accuracy, Crucible Golden Masters, Tri-comparison Ledger/Chart).

* fix(docs): fix manual credit/debit for localized languages

* fix(docs): correct precision math for makefile, powershell, and shell

* fix(docs): correct precision math for ruby and perl

* fix(docs): correct perl ctags truncation verdict

* fix(docs): correct php synthetic class verdict and double credit

* fix(detector): confine swift operator extraction to swift to avoid python/lisp collisions

* fix(detector): remove dead key access for 'aliases' to satisfy dead key audit

* chore: rebless golden masters and apply ruff format

* fix(typescript): skip backward scanner operators and refine accuracy baseline

Resolves #2230 by ignoring multi-character operators like <=, <<, and => in the detector's backward scanner. Also adds tri_comparison baseline for typescript.

* docs: validate objective-c method-syntax shape, add Claim 13

objective-c/function/existence/agree[ctags,gitgalaxy]_vs[tree_sitter] (2
occurrences, worldwideweb/HyperText.m:1147,1289) confirmed: both are real
methods using old unparenthesized-return-type syntax ('- ReturnType name')
that ctags and GitGalaxy both handle correctly. tree-sitter-objc cannot
parse this form under any node type at all (confirmed via a direct parse:
the leading '-' gets read as a unary-minus operator once the return type
isn't parenthesized, corrupting the rest of the construct). No
credit/debit -- ctags+gitgalaxy are already an agreeing pair.

Logged as Claim 13 in why_gitgalaxy_beats_ast_here.md: a distinct
mechanism from Claim 2 (grammar has no concept of a dialect/extension) and
Claim 3 (grammar supports the construct but a parse bug cascades into
unrelated code) -- here the grammar never supported the looser historical
form of the SAME base language at all, and the misparse stays local.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* docs: validate 25 tri-comparison shapes (csharp, java, cpp, python, javascript, typescript, rust, perl, php, haskell)

Full ledger sweep after a proper regen with real Universal Ctags + tree-sitter
(the prior committed ledger had 48 unvalidated shapes, 47 of them stale
artifacts of two dated incidents: PR #2111's regen without real ctags on
PATH, degrading many languages to a 2-tool comparison, and an earlier
ctags-availability gap on the ledger's first-ever gather).

Validated 25 shapes across 9 languages:
- Most (18) are stale/superseded duplicates: the real, current disagreement
  is already captured and validated under a sibling 3-tool shape key; these
  are the same occurrences observed mid-incident with a tool missing from
  the reading set, not a separate cause.
- 3 are confirmed-fixed historical GitGalaxy defects (csharp bodyless
  interface/abstract methods, #2036; typescript curried arrow functions
  with nested-paren return types, #2220).
- 1 corrects a previously mis-validated live entry
  (perl/function/existence/agree[gitgalaxy]_vs[ctags,tree_sitter]) that
  credited GitGalaxy for a false positive -- mojo/Promise.pm's `get_p` is
  inside a POD SYNOPSIS documentation block, not real code. Same
  "Antigravity (direct sweep)" error pattern already caught twice before
  (dd496a5, 2af9219).
- 3 new confirmed engine defects filed as issues (#2237 csharp args on
  doubly-nested-paren attributes, #2238 python args on cdef/cpdef with a
  C return type, #2239 perl func_start matching POD code examples as real
  subroutines -- the false-positive mirror of closed #1606).

Also closed #2216 (php anonymous-class recall) as based on a
since-corrected ledger premise -- ctags fabricates a synthetic name for
these, GitGalaxy is right to skip them, not the other way around.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* docs: validate final 13 tri-comparison shapes (c, fortran, go, ruby, powershell, objc, tcl)

Completes the full ledger sweep -- 0 unvalidated shapes remain (from 49 at
the start of this sweep).

10 of these 13 are stale/superseded duplicates of already-validated sibling
shapes (same underlying occurrences, observed with a tool missing from the
reading set during the PR #2111 ctags-outage window or the ledger's first
gather).

3 new confirmed engine defects filed as issues:
- #2240: c/cpp KNOWN-MACRO SHIELD excludes a real function whenever its
  name is later redefined as a no-op stub macro (CPython's #ifdef-debug-fn/
  #else-stub idiom trips it on ASSERT_DICT_LOCKED, validate_list, and 8
  others).
- #2241: ruby args regex's do|...|/{|...|} block-parameter fallback isn't
  scoped to define_method, misattributing an unrelated iterator block deep
  in a paren-less method's body as that method's own argument list (6
  confirmed false positives in rails/*.rb).
- #2242: tcl's unbounded single-quote pairing in _build_brace_safe_stream
  mispairs SQL-literal apostrophes (no tcl-specific gate, unlike the
  existing rust/zig/scala/perl precedents in the same function), silently
  dropping drop_all_tables/drop_all_indexes from sqlite/tester.tcl.

Also corrects an already-validated ledger entry
(tcl/function/existence/agree[ctags,tree_sitter]_vs[gitgalaxy]) whose
recorded root cause was a surface-level guess ("nested braces in args")
rather than the real mechanism -- the direction (GitGalaxy defect) was
already right, the cause wasn't; root-caused by driving the pipeline
directly instead of guessing from symptoms.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* docs: auto-update tri-comparison chart, ledger, and points-of-interest

Final regen after the full ledger sweep (0 unvalidated shapes remaining).
Refreshes last_reconciled_at/last_seen_count/still_reproduces on every
shape against the current corpus with real Universal Ctags + tree-sitter;
no status/verdict/credit/debit changes beyond what the two preceding
commits already recorded.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* docs: refresh tri-comparison reconciliation timestamps post-merge

No status/verdict/credit/debit changes -- confirmed via diff before
committing. Just last_reconciled_at refresh from re-running the regen
after merging origin/main.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
squid-protocol added a commit that referenced this pull request Aug 26, 2026
…atures, and fix TS audit ground-truth filter (#2245)

* fix(javascript): extract computed and dynamic property methods

* chore: update ledger

* chore: update JS tree-sitter accuracy baseline

* chore: update tree-sitter summary table

* feat(jcl): implement manual verification and fix class slicing

* fix: remove accidentally committed venv and scratch files

* chore: validate m4 tri-comparison ledger discrepancies

* docs(agents): add untracked file and ledger warnings to ci-push-checklist

* docs: validate remaining tri-comparison shapes and file issues

* fix(extraction): resolve unvalidated tri-comparison ledger shapes for Obj-C, Swift, Tcl, TS

This commit resolves a batch of unvalidated tri-comparison shapes by improving extraction accuracy:
- **Objective-C**: Updated `func_start` to correctly match unparenthesized return types (e.g., `- unsigned char next_input_block`).
- **Swift**: Modified `detector.py` normalizer to preserve standard operator characters (e.g., `==`), preventing them from collapsing into `Unknown_Block`.
- **Tcl**: Updated `func_start` to optionally consume the inline brace-wrapped argument list so it isn't mistaken for the function body by the balanced-brace finder.
- **TypeScript**: Fixed arrow function `func_start` branch to permit up to 3 levels of nested parentheses in the return type, enabling extraction of `const fn = <T>(): (returnType<...>) => {`.

Closes #2214
Closes #2217
Closes #2218
Closes #2220

Also updates all relevant baselines (Tree-sitter accuracy, Crucible Golden Masters, Tri-comparison Ledger/Chart).

* fix(docs): fix manual credit/debit for localized languages

* fix(docs): correct precision math for makefile, powershell, and shell

* fix(docs): correct precision math for ruby and perl

* fix(docs): correct perl ctags truncation verdict

* fix(docs): correct php synthetic class verdict and double credit

* fix(detector): confine swift operator extraction to swift to avoid python/lisp collisions

* fix(detector): remove dead key access for 'aliases' to satisfy dead key audit

* chore: rebless golden masters and apply ruff format

* fix(typescript): skip backward scanner operators and refine accuracy baseline

Resolves #2230 by ignoring multi-character operators like <=, <<, and => in the detector's backward scanner. Also adds tri_comparison baseline for typescript.

* docs: validate objective-c method-syntax shape, add Claim 13

objective-c/function/existence/agree[ctags,gitgalaxy]_vs[tree_sitter] (2
occurrences, worldwideweb/HyperText.m:1147,1289) confirmed: both are real
methods using old unparenthesized-return-type syntax ('- ReturnType name')
that ctags and GitGalaxy both handle correctly. tree-sitter-objc cannot
parse this form under any node type at all (confirmed via a direct parse:
the leading '-' gets read as a unary-minus operator once the return type
isn't parenthesized, corrupting the rest of the construct). No
credit/debit -- ctags+gitgalaxy are already an agreeing pair.

Logged as Claim 13 in why_gitgalaxy_beats_ast_here.md: a distinct
mechanism from Claim 2 (grammar has no concept of a dialect/extension) and
Claim 3 (grammar supports the construct but a parse bug cascades into
unrelated code) -- here the grammar never supported the looser historical
form of the SAME base language at all, and the misparse stays local.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* docs: validate 25 tri-comparison shapes (csharp, java, cpp, python, javascript, typescript, rust, perl, php, haskell)

Full ledger sweep after a proper regen with real Universal Ctags + tree-sitter
(the prior committed ledger had 48 unvalidated shapes, 47 of them stale
artifacts of two dated incidents: PR #2111's regen without real ctags on
PATH, degrading many languages to a 2-tool comparison, and an earlier
ctags-availability gap on the ledger's first-ever gather).

Validated 25 shapes across 9 languages:
- Most (18) are stale/superseded duplicates: the real, current disagreement
  is already captured and validated under a sibling 3-tool shape key; these
  are the same occurrences observed mid-incident with a tool missing from
  the reading set, not a separate cause.
- 3 are confirmed-fixed historical GitGalaxy defects (csharp bodyless
  interface/abstract methods, #2036; typescript curried arrow functions
  with nested-paren return types, #2220).
- 1 corrects a previously mis-validated live entry
  (perl/function/existence/agree[gitgalaxy]_vs[ctags,tree_sitter]) that
  credited GitGalaxy for a false positive -- mojo/Promise.pm's `get_p` is
  inside a POD SYNOPSIS documentation block, not real code. Same
  "Antigravity (direct sweep)" error pattern already caught twice before
  (dd496a5, 2af9219).
- 3 new confirmed engine defects filed as issues (#2237 csharp args on
  doubly-nested-paren attributes, #2238 python args on cdef/cpdef with a
  C return type, #2239 perl func_start matching POD code examples as real
  subroutines -- the false-positive mirror of closed #1606).

Also closed #2216 (php anonymous-class recall) as based on a
since-corrected ledger premise -- ctags fabricates a synthetic name for
these, GitGalaxy is right to skip them, not the other way around.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* docs: validate final 13 tri-comparison shapes (c, fortran, go, ruby, powershell, objc, tcl)

Completes the full ledger sweep -- 0 unvalidated shapes remain (from 49 at
the start of this sweep).

10 of these 13 are stale/superseded duplicates of already-validated sibling
shapes (same underlying occurrences, observed with a tool missing from the
reading set during the PR #2111 ctags-outage window or the ledger's first
gather).

3 new confirmed engine defects filed as issues:
- #2240: c/cpp KNOWN-MACRO SHIELD excludes a real function whenever its
  name is later redefined as a no-op stub macro (CPython's #ifdef-debug-fn/
  #else-stub idiom trips it on ASSERT_DICT_LOCKED, validate_list, and 8
  others).
- #2241: ruby args regex's do|...|/{|...|} block-parameter fallback isn't
  scoped to define_method, misattributing an unrelated iterator block deep
  in a paren-less method's body as that method's own argument list (6
  confirmed false positives in rails/*.rb).
- #2242: tcl's unbounded single-quote pairing in _build_brace_safe_stream
  mispairs SQL-literal apostrophes (no tcl-specific gate, unlike the
  existing rust/zig/scala/perl precedents in the same function), silently
  dropping drop_all_tables/drop_all_indexes from sqlite/tester.tcl.

Also corrects an already-validated ledger entry
(tcl/function/existence/agree[ctags,tree_sitter]_vs[gitgalaxy]) whose
recorded root cause was a surface-level guess ("nested braces in args")
rather than the real mechanism -- the direction (GitGalaxy defect) was
already right, the cause wasn't; root-caused by driving the pipeline
directly instead of guessing from symptoms.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* docs: auto-update tri-comparison chart, ledger, and points-of-interest

Final regen after the full ledger sweep (0 unvalidated shapes remaining).
Refreshes last_reconciled_at/last_seen_count/still_reproduces on every
shape against the current corpus with real Universal Ctags + tree-sitter;
no status/verdict/credit/debit changes beyond what the two preceding
commits already recorded.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* docs: refresh tri-comparison reconciliation timestamps post-merge

No status/verdict/credit/debit changes -- confirmed via diff before
committing. Just last_reconciled_at refresh from re-running the regen
after merging origin/main.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(typescript): recognize `!`-body arrows and `?`-optional method signatures

func_start's arrow-body-start alternation had no allowance for a bare unary
`!` (`const predicate = (e: T) => !e.newDocument;`), and its two zero-generic
lookaheads had no allowance for TypeScript's optional-member `?` between a
name and its parameter list (`copy?(source: Uri): void;`, `flush?()`,
`handleDrag?()`), both silently dropping otherwise-real functions/methods.

Fixes #2231, #2232.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* fix(tests): apply JS reserved-keyword ground-truth filter to typescript too

tree_sitter_accuracy_audit.py's filter for GitGalaxy's intentional, correct
exclusion of reserved-word method names (catch, etc.) was scoped to
lang == "javascript" only, even though typescript's method_definition nodes
are the same tree-sitter-inherited shape and GitGalaxy's typescript
func_start carries the identical keyword blacklist. This made real
catch/return-named methods in vscode/async.ts show up as phantom
false-negative gaps. Widened the filter to cover typescript, and added
"return" to the shared reserved-keyword set (it was missing alongside
catch, the second name this issue names as a phantom gap). The
javascript-only Flow-hallucination half of the filter is left untouched.

Fixes #2233.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* chore: regenerate typescript tree-sitter accuracy baseline

Re-blesses the pinned ground-truth baseline after #2231/#2232/#2233's
regex and audit-filter fixes: found_functions 2736 -> 2773 (recall gain
from the `!`-body-arrow and `?`-optional-signature fixes across the full
23-file corpus, not just the two cited examples), real_functions 2789 ->
2788 (one phantom ground-truth entry correctly dropped by the widened
reserved-keyword filter). Accuracy summary table regenerated to match
(Typescript func_start: 98.1% -> 99.5%).

Co-Authored-By: Claude Sonnet 5 <[email protected]>

---------

Co-authored-by: Joe Esquibel <[email protected]>
Co-authored-by: Claude Sonnet 5 <[email protected]>
squid-protocol added a commit that referenced this pull request Aug 28, 2026
Per .claude/rules/tri-comparison-chart.md, regenerated for --all languages,
not just the ones that changed. Verified real Universal Ctags on PATH
first (ctags --version prints "Universal Ctags 5.9.0", not an Arduino
banner or a not-found error) -- the specific footgun that rule and
PR #2111 warn about.

- tri_comparison_chart.py --all --write: 13 new unvalidated discrepancy
  shapes appeared in cobol/lua/powershell/shell (matching those
  categories' real corpus growth), zero existing entries removed, zero
  existing validated statuses reverted -- only last_reconciled_at
  timestamps refreshed on those. Exactly the documented ledger lifecycle.
- tri_comparison_report.py --write: regenerated the points-of-interest
  doc from the refreshed ledger; diff is timestamp refreshes on existing
  entries plus new sections for the 13 new unvalidated shapes.
- tree_sitter_accuracy_audit.py --history then --chart: this system's
  own separate history CSV + SVG (purely observational, never touches
  the gating baseline JSON files, so safe to run independently of
  whether those baselines get regenerated).

The gating tree_sitter_accuracy_audit baselines for lua/powershell/shell
themselves are NOT regenerated by this commit -- CI failure investigation
and that decision are tracked separately.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BGRMgVLA1Cd5iksHux8s6D
squid-protocol added a commit that referenced this pull request Aug 28, 2026
…uth (#2398)

* Bump language-crucible pin to v1.10, unify the pin into one source of truth

language-crucible cut v1.10 (mainframe COBOL/JCL, shell/PowerShell, and
embedded-scripting Lua/LiveCode coverage, plus a full provenance audit --
see that repo's SOURCES.md and RELEASING.md). Regenerated both golden-
master fixtures against it first (per RELEASING.md's ordering -- fixtures
before pin, or this repo's own CI breaks on the next PR), verified the
crucible corpus checkout was completely clean of untracked/ignored
artifacts before each regeneration per golden-master-guidelines.md's
untracked-file-poisoning rule (found and cleaned a stray data/.gitgalaxy/
dependency-cache dir and some __pycache__ dirs; confirmed via a rerun that
neither affected scan output either way).

While bumping the two pins RELEASING.md documented, found four more:
tri-comparison-audit.yml, tri-comparison-history.yml,
tree-sitter-accuracy-audit.yml, and tree-sitter-accuracy-history.yml also
clone the crucible corpus at a hardcoded v1.0, undocumented anywhere.
Leaving those on v1.0 while golden-crucible/release-crucible-archive moved
to v1.10 would have left CI scanning two different corpus states
simultaneously. Also found ~7 more purely-informational "pinned to v1.0"
mentions in tests/README.md, docs/self_scan/*.md, docs/language_status/
csharp.md, and error/skip messages in test_golden_crucible.py,
crucible_check.py, update_golden_master.py, and
tree_sitter_accuracy_audit.py -- eleven independently-hardcoded copies of
one fact is exactly the kind of thing that silently drifts.

Replaced that with two sources of truth instead of eleven:
- LANGUAGE_CRUCIBLE_REF, a GitHub Actions repository variable, is what
  every one of the six workflows' `git clone --branch` steps now reads
  (${{ vars.LANGUAGE_CRUCIBLE_REF }}) instead of a literal tag.
- tests/_crucible_pin.py's PINNED_TAG constant is what the four Python
  scripts' human-facing skip-reason/error messages now interpolate,
  since a GitHub Actions variable isn't importable from a local pytest
  run. Its docstring explains why there are two, not one, and instructs
  future bumps to update both together.
- The four docs got a pointer to whichever of those two is authoritative,
  rather than a bare version number likely to go stale again silently.

Nothing enforces the two stay in sync -- that's a real limitation, noted
in _crucible_pin.py's docstring -- but two clearly-named, cross-referenced
sources beat eleven silent ones.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BGRMgVLA1Cd5iksHux8s6D

* Rename pin from v1.10 to v1.1.0 (proper semver retag)

language-crucible's v1.10 was a two-part naming slip, corrected to
three-part semver before any GitHub Release was published against it.
Retagged as v1.1.0 at the same commit; v1.10 deleted. Updates this PR's
own references (which pointed at v1.10 before it was renamed) plus the
LANGUAGE_CRUCIBLE_REF repo variable, already set to v1.1.0.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BGRMgVLA1Cd5iksHux8s6D

* Regenerate tri-comparison and tree-sitter-accuracy charts against v1.1.0

Per .claude/rules/tri-comparison-chart.md, regenerated for --all languages,
not just the ones that changed. Verified real Universal Ctags on PATH
first (ctags --version prints "Universal Ctags 5.9.0", not an Arduino
banner or a not-found error) -- the specific footgun that rule and
PR #2111 warn about.

- tri_comparison_chart.py --all --write: 13 new unvalidated discrepancy
  shapes appeared in cobol/lua/powershell/shell (matching those
  categories' real corpus growth), zero existing entries removed, zero
  existing validated statuses reverted -- only last_reconciled_at
  timestamps refreshed on those. Exactly the documented ledger lifecycle.
- tri_comparison_report.py --write: regenerated the points-of-interest
  doc from the refreshed ledger; diff is timestamp refreshes on existing
  entries plus new sections for the 13 new unvalidated shapes.
- tree_sitter_accuracy_audit.py --history then --chart: this system's
  own separate history CSV + SVG (purely observational, never touches
  the gating baseline JSON files, so safe to run independently of
  whether those baselines get regenerated).

The gating tree_sitter_accuracy_audit baselines for lua/powershell/shell
themselves are NOT regenerated by this commit -- CI failure investigation
and that decision are tracked separately.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BGRMgVLA1Cd5iksHux8s6D

* Regenerate tree-sitter-accuracy baselines for lua/powershell/shell

These three languages' baselines were pinned against a near-empty
corpus sample (0, 6, and 1 file respectively) -- essentially untested.
Against the real, diverse content those categories now have in
language-crucible v1.1.0 (109/105/200 files), these numbers are honest
first-time measurements, not regressions from any code change: this PR
touches zero parsing/engine code (detector.py, language_standards.py's
regex definitions are unchanged).

Accepted per explicit maintainer decision, overriding the tool's
absolute-count regression gate (which doesn't account for a 20-200x
file-count increase mechanically producing more raw false-positive
hits even at a flat or improved per-file rate) -- see run_regenerate()
in tree_sitter_accuracy_audit.py for the gate this bypasses. Every
number written is the tool's own measured output (measure()), not
hand-edited or estimated.

Net effect on the summary table:
- Lua: N/A -> 78.2% func recall / 97.6% func precision (previously
  untested; class precision 0.0% -- GitGalaxy's class heuristic
  produces 14 false-positive "class" hits on real Lua, which has no
  formal class syntax at all, worth a follow-up look but out of scope
  here).
- PowerShell: unchanged func recall/precision (100%/100%), args-exact-
  match slipped 100% -> 90% against 235 real functions vs. the
  previous 110.
- Shell: func recall/precision dropped sharply, 100%/100% -> 31.6%/
  68.3% -- the old baseline's "100%" was measured against a single
  trivial file and was never a meaningful signal. 65 extra_functions
  across 200 real files (kubernetes/etcd.sh, moby/check-config.sh, and
  several heredoc-heavy scripts among the samples) suggest a real,
  pre-existing regex over-matching gap on shell's especially varied
  function-definition syntax -- a legitimate finding worth its own
  investigation, not something to silently absorb into "expected."

One fix folded in: the tool computed corpus_path as
"all_language_repo/data/<lang>" from this local testing setup's
directory name, rather than "language-crucible/data/<lang>" (what
CI's actual `git clone ... language-crucible` produces). Left as
measured, the next CI run would have failed on a spurious corpus_path
ground-truth-drift mismatch having nothing to do with real content --
corrected before committing, no other field touched.

gitgalaxy/standards/language_standards.py's summary table regenerated
to match via --summary-table (run automatically by --regenerate).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BGRMgVLA1Cd5iksHux8s6D

* Consolidate the crucible-pin-bump procedure into one checklist

The v1.0 -> v1.1.0 bump this PR performs hit four separate rounds of CI
failures: golden masters, then a corpus_path baking-in bug (local
checkout named differently than CI's clone), then a tree-sitter-
accuracy baseline gate that doesn't account for corpus-size growth,
then two chart/history regenerations (tri-comparison, tree-sitter-
accuracy) nobody had touched at all because no single doc listed them
together. Every one of those was independently documented somewhere
already, just scattered across four files each describing only their
own slice.

New docs/self_scan/BUMPING_THE_CRUCIBLE_PIN.md collects the full
ordered procedure, environment prerequisites (real ctags, corpus
checkout named/pathed correctly, clean git status re-checked after
every step), and flags the tree-sitter-accuracy regression gate's
corpus-size blind spot as a known gap worth a proper --force-style fix
rather than a hand-written bypass script each time.

docs/self_scan/README.md, tri_comparison_README.md, and tests/README.md
now point at it instead of each carrying a partial, independently-
maintained procedure.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BGRMgVLA1Cd5iksHux8s6D

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
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.

cobol func_start regex's reserved-word shield uses a bare \b, wrongly excluding real paragraphs like DELETE-POLICY-DB2-INFO

1 participant