Skip to content

feat(security): strengthen and det_refine refuse --offline by name for run (Part of #8624) - #8682

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8624-20261119T1620Z
Nov 19, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8624-20261119T1620Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8624 (slice 13). Follows #8676 (porting_loop): a driver that calls a model refuses --offline / GITGALAXY_OFFLINE=1 by name; a local subcommand runs under the network guard.

What changed

  • tests/tools/strengthen.py: run (claude -p or --backend-command) exits naming --offline; report runs under offline.enable_if_requested.
  • tests/tools/det_refine.py: run is its only subcommand and calls a model (command / anthropic / openai backend), so it refuses by name. main now takes an optional argv.
  • README: the offline exceptions paragraph names both.
  • tests/cobol_mainframe/test_strengthen_loop.py: refusal for both drivers (flag and env var) and the guard on strengthen 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.py spawns port_runner run as a subprocess in its ported-run path (and port_runner prove); needs the refusal at the trial subcommand 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.py lines ~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

  1. tests/tools/trial.py (+ one test file, README line): refuse --offline for the subcommands that launch port_runner run; others under the guard.
  2. Audit the remaining 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

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 19, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 19, 2026 16:25
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 16:26
@squid-shepherd
squid-shepherd Bot merged commit ee52556 into main Nov 19, 2026
62 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8624-20261119T1620Z branch November 19, 2026 16:46
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 19, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant