Repository navigation
Tighten extraction-hardening rigor + token-efficient tooling - #866
Merged
squid-protocol merged 1 commit intoJul 31, 2026
Merged
Conversation
Adds a "Testing conventions" section to CLAUDE.md documenting the tests/ no-__init__.py import gotcha (sys.path insertion, not dotted tests.x.y imports) discovered via the #815/typescript CI failure, plus a pointer to the new tests/tools/audit_check.py bundler. Documents in the methodology doc that crucible_check.py --update --yes already automates the full two-venv golden-master regeneration in one call, so future language passes don't hand-roll venv activation. Updates detector.py's _slice_by_braces comment to reflect that #859 (the PHP prism.py corruption blocking broader Mode-B string-shielding) is now fixed via PR #864, unblocking that gate's expansion as a future audited follow-up. Regenerates ruff_audit_baseline.json for the comment-only line shift. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Contributor
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.
Summary
CLAUDE.mddocumenting thetests/no-__init__.pyimport gotcha (sibling helper modules needsys.pathinsertion, never a dottedtests.x.yimport) — this is what broke CI on Extraction hardening: typescript #815/typescript, root-caused and fixed there, now written down so it isn't rediscovered per-language.tests/tools/crucible_check.py --update --yesalready automates the full two-venv golden-master regeneration in one call — several early sub-issues in the extraction-hardening epic (Epic: Harden the four extraction gauntlets (function/args/class/dependency) per language #813) hand-rolled venv activation before this was noticed; this saves real tokens on every future language pass (42 remaining).detector.py's_slice_by_bracescomment: prism.py: PHP docblock/comment stripping corrupts code_stream (found via extraction-hardening epic #813) #859 (PHPprism.pycorruption blocking broader Mode-B string-shielding) is now fixed via PR Fix/859 php docblock corruption #864, so broadening the js/ts-only gate is unblocked as a future audited follow-up (not done here).tests/extraction/tools/verify_candidates.py(empirical case verification harness) andtests/tools/audit_check.py(bundles ruff/mypy/dead-key audits with pure-line-shift auto-classification).tests/ruff_audit_baseline.jsonfor the detector.py comment-only line shift.No functional/parsing behavior changes — this is methodology/tooling documentation only, gated per the Differential Scan protocol (no
language_standards.pychanges, so no crucible check needed).Test plan
python tests/tools/audit_check.py— 0 new findings after regenerating the pure line-shift baseline entriespytest tests/core_engine/ tests/extraction/ -q— 3326 passed, 1 known pre-existing tiktoken-environment failure, 1 xfailedruff format --checkclean🤖 Generated with Claude Code