Repository navigation
feat(security): trial.py run refuses --offline by name (Part of #8624) - #8683
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
1 similar comment
|
No description provided. |
|
No description provided. |
…624Z # Conflicts: # README.md
|
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. |
|
CI shepherd: the head of this PR (e3c8908) is not the one a maintainer labelled |
|
No description provided. |
Part of #8624, slice 14.
tests/tools/trial.py runlaunchesport_runner runas a subprocess (det or the model backend);port_runnerrefuses--offline/GITGALAXY_OFFLINE=1by name (#8670), sotrial runnow refuses the same way before any work. Every othertrialsubcommand runs under the offline network guard. Pattern as instrengthen.py(#8682); this PR is independent of it (different files) and based on main.Changes
tests/tools/trial.py: strip--offline, refuse forrun,enable_if_requestedotherwise.tests/cobol_mainframe/test_trial_run.py: refusal test (flag and env) and a guard-installed test forverify.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 runanddet_refine run(#8682),trial.py run(this PR).trial.pyhas twoport_runnerlaunch sites:run(refused) andprove(a harness call, no model; runs under the guard). Sibling gaps: controllers (cobol_refractor_controlleretc.) and the standards cics/cobol CLIs still need areadiness.offlineaudit (status: not checked, different mechanism, outside this slice).Remaining slices
Controllers and the standards cics/cobol CLIs: grep
__main__outsidetools/for a missingreadiness.offline; README rows for slices 6-10.Gates
pytest on test_trial_run, test_trials, test_trial_record_8322, test_source_reads: pass.
audit_checkdead-key and doc-refs: OK; ruff_audit: no new findings.mypy_audit --cifails here on untouched files (uow_forge, det/stmt: local env), not on this change.pr_gates --fast/--ratchetsnot run (no parsing logic touched; pr_gates takes ~25 min).🤖 Generated with Claude Code