Repository navigation
Docs testing updates - #1091
Merged
Merged
Docs testing updates#1091
Conversation
- Renamed `test_*_extraction_strict.py` to `test_*_extraction.py` to correctly match the architectural naming conventions (the `_strict` suffix is explicitly reserved for structural signatures like `branch`, `io`, etc., not the four extraction pillars). - Updated `tests/README.md` and `tests/extraction/readme.md` to fix outdated filename references. - Added explicit references to the new `sweep_redos_scaling.py` tool to definitively document how the 1.0s timeout ReDoS immunity is mathematically proven across the test suite.
# Conflicts: # tests/extraction/languages/test_haskell_strict.py # tests/extraction/languages/test_ruby_strict.py
… scala, swift, powershell, solidity, kotlin, lua - Fixed missing syntax bindings across all 6 languages (e.g. Swift `throws`, PowerShell `hidden`/`static` methods, Lua generic types). - Strengthened multiline limits and nested bracket guards to prevent ReDoS on closures/lambdas. - Added hundreds of adversarial positive and negative cases to the _SIMPLE_CASES test suites.
…ck on docs-testing-updates Removes 13 debug/scratch files that got committed alongside the real epic #1071 hardening work instead of being folded into or discarded before commit: test_c_scratch.py, test_go_strict_extra{,2,3,4,5}.py, test_m4_adversarial{,2,3,4}.py, test_fortran_deep.py, test_assembly_deep.py (all print-debugging scratch scripts, none with real pytest assertions), plus epic_1071_notes.md / pr_description_1071.md (planning notes, not meant to be committed files). test_fortran_strict_patch.py was actively breaking CI's full-suite job: a self-mutating script (module-level file write with a hardcoded local path) that re-appended the same _FORTRAN_DEEP_CASES block to test_fortran_strict.py every time pytest collected it -- which is how test_fortran_strict.py ended up with 13 byte-identical duplicate blocks (only the last was ever reachable; Python silently overwrote the name each time). Collapsed back down to one copy. Also runs `ruff format` on language_standards.py to clear the CI ruff-audit failure (zero-tolerance format check). Co-Authored-By: Claude Sonnet 5 <[email protected]>
…standards.py Follow-up to fa8d922 -- a git-add pathspec error silently dropped these two files from that commit despite being part of the same cleanup pass (the fortran_strict_patch.py deletion and the 13x-duplicate-block collapse belong together; ruff-audit needs this format pass to go green). Co-Authored-By: Claude Sonnet 5 <[email protected]>
#1053) Resolves #1053: _get_context_multipliers was fully implemented but never called. Wires it in mismatch-only -- native-context files stay neutral (1.0) rather than applying never-calibrated NATIVE_WEIGHTS baselines repo-wide, so only genuine architectural anomalies (e.g. C hiding in a JS folder) get penalized. Consumes the folder_dominant_lang metadata galaxyscope.py already computed for this purpose but signal_processor.py never read. memory now feeds _calc_safety; state_mutation already had a consumer via mp_map. injection has no consumer in this module and is deferred to #1089. Verified zero golden-master drift via crucible_check.py. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Scoped narrowly to commit/PR creation -- merging, force-pushing, and other destructive git operations still require explicit confirmation. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Signed-off-by: Joe Esquibel <[email protected]>
Contributor
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: Joe Esquibel <[email protected]>
…s, scratch files)
2 of 5 tasks
squid-protocol
added a commit
that referenced
this pull request
Aug 6, 2026
…#1093) Repeated ad hoc scratch/debug files dropped straight into the repo root by both agents (scratch*.py, fix_*.py, pr_*_body.md, etc.) required two full manual cleanup passes on this branch. Documents a per-model /tmp convention in CLAUDE.md and ANTIGRAVITY.md (/tmp/gitgalaxy-scratch/claude and /tmp/gitgalaxy-scratch/antigravity, so concurrent sessions don't collide), plus a .gitignore backstop matching the recurring filename patterns in case a throwaway file still lands in the tree. Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Sonnet 5 <[email protected]>
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.
Description of Structural Changes
Three independent changes landed on this branch:
1.
fix(metrics): wire ecosystem-mismatch multipliers intoSignalProcessor(#1053)_get_context_multipliersingitgalaxy/metrics/signal_processor.pywas fully implemented but never called anywhere — confirmed dead code.1.0multipliers; only genuine architectural anomalies (e.g. C code embedded in a JS-dominant folder) get penalized viaECOSYSTEM_MISMATCH_WEIGHTS. Deliberately did not apply theNATIVE_WEIGHTSbaseline repo-wide — that would re-score nearly every file in the corpus using multiplier values that had never been calibrated against real output.folder_dominant_lang, metadatagalaxyscope.pyalready computes specifically for this (comment: "INJECT THE FOLDER CONTEXT FOR THE SIGNAL PROCESSOR") butsignal_processor.pynever read until now.memorynow feeds_calc_safetyvia a newmem_mpparam;state_mutationalready had a consumer (_calc_state_flux).injectionhas no consumer anywhere in this module (that risk lives insecurity_auditor.py's taint tracking) — deliberately deferred, tracked in follow-up [METRICS] Wire ECOSYSTEM_MISMATCH_WEIGHTS injection penalty into security_auditor.py taint tracking #1089.self.NATIVE_WEIGHTSattribute.tests/core_engine/test_signal_processor.pyproving mismatched files score higher and a native-context match stays a no-op vs. no folder metadata at all.crucible_check.py) — confirms this is a scoped, low-blast-radius change, not a corpus-wide re-score.injectionkey needs wiring intosecurity_auditor.py) and [METRICS] SignalProcessor's CONTEXT_VIOLATION_MATRIX (archetype secrets-risk multiplier) is dead config #1090 (a separate, unrelated dead assignment —CONTEXT_VIOLATION_MATRIX— whose only key doesn't match any archetype name the engine actually produces anywhere).2.
docs: pre-authorize commits and PRs-to-main inCLAUDE.mdgit commitandgh pr createagainstmainno longer require a confirmation pause in agent sessions on this repo. Merging, force-pushing, and other destructive/irreversible git operations are explicitly excluded and still require confirmation every time.3.
chore: remove stale docs/scratch/PR-body debrisLESSONS_LEARNED.md,pr_841_body.md,pr_949_body.md,pr_951_body.md,pr_body.txt,rewrite_docs.py,ruby_lessons.txt,scratch.py,scratch_regex.py,scratch_ruby.py,zig_lessons.txt(775 lines removed, no production code affected).ab9dcda5, "Potential fix for pull request finding 'CodeQL / Unused import'") that had touchedscratch.py's imports mid-flight — kept the deletion since the file is being removed outright regardless.4.
docs: dedicated/tmpscratch directories for Claude and Antigravityscratch*.py,fix_*.py,pr_*_body.md, etc.) required two full manual cleanup passes on this branch alone.CLAUDE.mdandANTIGRAVITY.md(agy's own project-instructions file, mirrorsCLAUDE.md) now each document a dedicated, non-colliding/tmpworking directory per model —/tmp/gitgalaxy-scratch/claude/and/tmp/gitgalaxy-scratch/antigravity/— for throwaway scripts, repro cases, and generated test artifacts that shouldn't enter the repo tree at all..gitignorebackstop matching the recurring filename patterns from past cleanups (scratch*.py,fix*.py,patch*.py,pr_*body*,test_*.pyat repo root, etc.), anchored to repo-root only so it can't shadow legitimate nested files undergitgalaxy//tests/. Verified viagit check-ignorethat it catches new files matching those patterns without affecting any currently-tracked file (git ls-filesconfirms none match).Testing
python -m pytest tests/core_engine/ -q— 394 passed, 1 xfailed.python tests/tools/crucible_check.py—PASSin bothfull_precisionandzero_dependencymodes, zero output drift against the 80-repo corpus.python tests/tools/audit_check.py— clean (regenerated the ruff baseline for pure line-shifts the edit caused; no new lint/type/dead-key findings).Visual Observatory Testing
N/A — this PR touches risk-scoring math and repo hygiene only; no visualization/rendering code is affected.
The Differential Scan Acknowledgement
No single target repository — this fixes a general dead-code/scoring gap (#1053), not a bug surfaced by scanning one specific repo. Differential Scan already run locally via
crucible_check.pyagainst the full 80-repo calibrated corpus (see Testing above) — zero output drift in either precision mode, so no golden-master re-bless was required.