You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add AST-accuracy as a baseline-gated CI regression check (ruff/mypy-style), pinned to a fixed corpus snapshot #1200
#1193's fix was validated by diffing GitGalaxy's own self-scan against Python's ast module as
ground truth (function/class recall, precision, args-count accuracy) -- the same methodology docs/language_status/python.md §9 documents. That measurement was ad hoc (a one-off local
script) and would have caught #1193-class regressions immediately if it had existed as a CI gate
before now.
Add it as a fourth baseline-gated regression check alongside tests/ruff_audit.py/ tests/mypy_audit.py/tests/dead_key_audit.py: PRs can make extraction accuracy better, are
free to leave it unchanged, but CI fails if any tracked metric (function recall, class recall,
false-positive/hallucination rate, args-count accuracy) gets worse than the committed baseline.
Unlike ruff/mypy (which scan this checkout's own live code -- target and tool-under-test are the
same moving thing), the corpus being parsed here needs to be pinned to a fixed snapshot
(a specific git tag of GitGalaxy's own source, extracted via git archive), not "whatever's
currently checked out." Without a fixed target, a changed recall number can't be distinguished
from "the engine changed" vs. "the corpus of files being measured changed" (files added/removed/
edited as this repo's own source naturally grows) -- the same reason crucible_check.py diffs
against the external language-crucible corpus rather than this repo's own current tree.
Suggested implementation
tests/ast_accuracy_audit.py, same --ci/--regenerate shape as the other three audits.
Corpus pinned to tag v2.4.7 (CORPUS_REF constant, deliberately bumpable later alongside a
same-PR baseline regeneration), cached locally under a gitignored .ast_accuracy_corpus/.
New GitHub Actions workflow, same shape as ruff-audit.yml/mypy-audit.yml, but needs fetch-depth: 0 on checkout (the pinned tag's objects aren't in a shallow clone).
Implemented and merged — landed as part of #1197's squash merge (3dd93d2 on main), even though the commit implementing this (f4b5cc6, on the fix/1193-line-exclusive-per-language-delimiters branch) doesn't show up in main's ancestry directly. Confirmed the tree is byte-identical between that commit and current main for all 5 files it touched, and re-ran python tests/ast_accuracy_audit.py --ci locally against the real pinned v2.4.7 corpus — passes, matches the committed baseline (98.1% function recall, 0 hallucinated names). ast-accuracy-audit.yml has also run green on real PRs since. Closing.
Activity
ci(core): add AST-accuracy baseline-gated regression check (#1200)
fix(core): resolve line_exclusive comment delimiters per-language, no…
squid-protocol commentedon Aug 10, 2026
Implemented and merged — landed as part of #1197's squash merge (3dd93d2 on main), even though the commit implementing this (f4b5cc6, on the
fix/1193-line-exclusive-per-language-delimitersbranch) doesn't show up inmain's ancestry directly. Confirmed the tree is byte-identical between that commit and currentmainfor all 5 files it touched, and re-ranpython tests/ast_accuracy_audit.py --cilocally against the real pinned v2.4.7 corpus — passes, matches the committed baseline (98.1% function recall, 0 hallucinated names).ast-accuracy-audit.ymlhas also run green on real PRs since. Closing.docs: add JavaScript language-status doc, first tree-sitter-based §9 …
fix(core): critical-leak synthetic risk_vector hardcoded to stale 18-…