Repository navigation
feat(security): strengthen and det_refine refuse --offline by name for run (Part of #8624) - #8682
Merged
Merged
Conversation
…r run (Part of #8624) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
|
No description provided. |
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.
Part of #8624 (slice 13). Follows #8676 (porting_loop): a driver that calls a model refuses
--offline/GITGALAXY_OFFLINE=1by name; a local subcommand runs under the network guard.What changed
tests/tools/strengthen.py:run(claude -p or--backend-command) exits naming--offline;reportruns underoffline.enable_if_requested.tests/tools/det_refine.py:runis its only subcommand and calls a model (command / anthropic / openai backend), so it refuses by name.mainnow takes an optionalargv.tests/cobol_mainframe/test_strengthen_loop.py: refusal for both drivers (flag and env var) and the guard onstrengthen report.Class / Sibling gaps
Class: tests/tools drivers that call a model or the network and ignore
--offline/GITGALAXY_OFFLINE=1. Members: port_runner (done, #8670), porting_loop (done, #8676), strengthen (this PR), det_refine (this PR). Sibling gaps:tests/tools/trial.pyspawnsport_runner runas a subprocess in its ported-run path (andport_runner prove); needs the refusal at thetrialsubcommand that launches the model run, with a test, and a decision on its local subcommands. Not here: different mechanism (subprocess launcher, large file, 1900 lines) and it would pass the 5-file limit with its tests. Source:trial.pylines ~1784 and ~1808. Other tests/tools scripts with fetch/clone (crucible_pins, db2_image_cache, sync-pins) are network tools, not model drivers: not swept.Remaining slices
tests/tools/trial.py(+ one test file, README line): refuse--offlinefor the subcommands that launchport_runner run; others under the guard.ci_network_inventory.py-listed tools/ scripts for guard coverage.Verification
pytest tests/cobol_mainframe/test_strengthen_loop.py tests/cobol_mainframe/test_porting_loop_tooling.py: 110 passed, 26 skipped.audit_check.py: ruff, dead-key, doc-refs, ast-accuracy, signal-coverage OK; mypy lists 20 findings, all in files this PR does not touch (local mypy env differs from CI's), none in the changed files. No parsing logic touched: no golden bless. pr_gates / ratchets not run.🤖 Generated with Claude Code