Skip to content

feat(security): porting_loop refuses --offline by name for run and run-many (Part of #8624) - #8676

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8624 (slice 12): tests/tools/porting_loop.py --offline.

Before: --offline died in argparse as an unrecognized argument; GITGALAXY_OFFLINE=1 let run start and fail obscurely inside the port_runner subprocess (which refuses since #8670), while report/adopt/tidy ignored it.

Now: run and run-many (they drive the model, or a --backend-command) exit naming themselves when --offline or GITGALAXY_OFFLINE=1 is set. report, adopt and tidy accept the flag and run under the network guard. README exceptions paragraph updated.

Class / Sibling gaps

Class: every tests/tools / gitgalaxy/tools CLI that can reach a model API or accept --offline. Handled: port_runner (#8670), porting_loop run/run-many (refused), report/adopt/tidy (guarded; this PR). Sibling gaps: other tests/tools drivers that shell out to port_runner or claude -p (e.g. strengthen.py, listed by ci_network_inventory.py) are not yet checked for --offline behaviour; controllers (cobol_refractor_controller etc.) and the standards cics/cobol CLIs remain from the #8624 handoff.

Tests

tests/cobol_mainframe/test_porting_loop_tooling.py: 3 new offline tests pass; test_source_reads.py and test_change_classifier.py pass; doc-refs audit clean. mypy audit fails identically on main (environmental). pr_gates --fast / --ratchets not run (test-tool-only change, no parsing logic).

Remaining slices

strengthen.py and other tests/tools model drivers; controllers; standards cics/cobol CLIs.

🤖 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 15:17
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 15:18
@squid-shepherd
squid-shepherd Bot merged commit de3e0cc into main Nov 19, 2026
62 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8624-20261119T1512Z branch November 19, 2026 15:47
@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