Repository navigation
feat(security): --offline guard on a direct galaxyscope scan (Part of #8624) - #8628
Conversation
…t galaxyscope scan (Part of #8624) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #8628 @ 839af96: 1 failed check(s) == full-suite part 1/1 (failure) -- real |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (2b88aed) is not the one a maintainer labelled |
|
No description provided. |
|
PR #8628 @ 2b88aed: 4 failed check(s) == crucible (failure) -- flake == full-suite (failure) -- real == full-suite part 1/1 (failure) -- real == measure (shard 1/4) (failure) -- flake |
|
PR #8628 @ 2b88aed: 4 failed check(s) == crucible (failure) -- flake == full-suite (failure) -- real == full-suite part 1/1 (failure) -- real == measure (shard 1/4) (failure) -- flake |
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
CI shepherd: the head of this PR (eae0c10) is not the one a maintainer labelled |
|
No description provided. |
1 similar comment
|
No description provided. |
|
No description provided. |
Part of #8624 (epic #8427). Slice 1: the direct
galaxyscopescan entry point.What
galaxyscope --offline(orGITGALAXY_OFFLINE=1) installs the existingreadiness/offline.pysocket guard, and setsGITGALAXY_ASSESS_OFFLINEso_init_workerguards spawn-start workers too.offline.requested()/enable_if_requested()are the shared helpers.core/detector.pybefore the tiktoken import, because that import is where the encoding download happens. With the opt-in the download is refused by name in the warning ("offline mode refuses the tiktoken cl100k_base download"); the byte-count fallback is unchanged.tests/core_engine/test_offline_flag_8624.py): env var and argv each install the guard; no opt-in leaves it off; a planted repo scans to a DB with--offline; the tiktoken download is refused by name.Class / Sibling gaps
Class: every documented scan, report or audit entry point must either run under the offline guard in a test or be listed as an exception with its reason.
gitgalaxy assessgalaxyscopescan, incl. spawn workersgitgalaxy/tools/*CLIs,blast)--offlineflag and a test, sliced by entry pointcobol_to_java_port_tickets/ porting loop)Remaining slices
--offlinethrough the shared helper, one test each (files: each CLI'smain, one test file, README row).Gates
ruff check/ruff format --checkon changed files clean (one existing PERF401 in detector.py is on main);dead_key_audit,doc_refs_audit,test_assess.py,test_source_reads.py,test_change_classifier.pypass. Not run:pr_gates --ratchets, golden crucible.mypy_audit --cireports 20 findings on lines this PR does not touch (local env, no CI stubs), so I read it as environment drift, not checked against main.Lessons for agents
galaxyscope.pyhas ~50 module-level E402 imports after its first code; put an import-time side effect in the module that needs it (herecore/detector.py) rather than above the import block.🤖 Generated with Claude Code