Skip to content

feat(security): trial.py run refuses --offline by name (Part of #8624) - #8683

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8624-20261119T1624Z
Nov 19, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8624-20261119T1624Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8624, slice 14. tests/tools/trial.py run launches port_runner run as a subprocess (det or the model backend); port_runner refuses --offline / GITGALAXY_OFFLINE=1 by name (#8670), so trial run now refuses the same way before any work. Every other trial subcommand runs under the offline network guard. Pattern as in strengthen.py (#8682); this PR is independent of it (different files) and based on main.

Changes

  • tests/tools/trial.py: strip --offline, refuse for run, enable_if_requested otherwise.
  • tests/cobol_mainframe/test_trial_run.py: refusal test (flag and env) and a guard-installed test for verify.
  • README.md: one clause in the offline exceptions paragraph.

Class / Sibling gaps

Class: CLIs that launch a model-calling tool (port_runner run) and so cannot honour the offline guarantee. Members: port_runner (done #8670), porting_loop run/run-many (done #8676), strengthen run and det_refine run (#8682), trial.py run (this PR). trial.py has two port_runner launch sites: run (refused) and prove (a harness call, no model; runs under the guard). Sibling gaps: controllers (cobol_refractor_controller etc.) and the standards cics/cobol CLIs still need a readiness.offline audit (status: not checked, different mechanism, outside this slice).

Remaining slices

Controllers and the standards cics/cobol CLIs: grep __main__ outside tools/ for a missing readiness.offline; README rows for slices 6-10.

Gates

pytest on test_trial_run, test_trials, test_trial_record_8322, test_source_reads: pass. audit_check dead-key and doc-refs: OK; ruff_audit: no new findings. mypy_audit --ci fails here on untouched files (uow_forge, det/stmt: local env), not on this change. pr_gates --fast / --ratchets not run (no parsing logic touched; pr_gates takes ~25 min).

🤖 Generated with Claude Code

@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.

1 similar comment
@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:29
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 16:31
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 19, 2026 16:52
@squid-shepherd

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd squid-shepherd Bot added shepherd:needs-fix Bot: a real failure on this head; see the digest comment. 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

CI shepherd: the head of this PR (e3c8908) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then). Until then it is a draft and runs the cheap audits only; re-adding the label marks it ready, which starts the full set on that head.

@squid-shepherd
squid-shepherd Bot marked this pull request as draft November 19, 2026 18:01
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Nov 19, 2026
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md labels 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 18:04
@squid-shepherd squid-shepherd Bot added the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 19, 2026
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 18:05
@squid-shepherd squid-shepherd Bot removed the shepherd:retrying Bot: an infra/flake rerun is pending on this head. Guide: docs/ci.md label Nov 19, 2026
@squid-shepherd
squid-shepherd Bot merged commit 572d947 into main Nov 19, 2026
77 of 97 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8624-20261119T1624Z branch November 19, 2026 18:29
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