Repository navigation
feat(security): port_runner refuses --offline by name (Part of #8624) - #8670
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #8670 @ f227af6: 1 failed check(s) == shard 2/2 (failure) -- real |
|
No description provided. |
|
No description provided. |
Part of #8624 (slice 11; not closing it).
port_runner(the opt-in LLM port runner) now exits withport_runner refuses --offline / GITGALAXY_OFFLINE=1: it can call a model API (network)when--offlineappears anywhere in argv or the env var is set, before any parsing, request or file write. A test covers every subcommand, flag before and after the subcommand, and the env var. The README exception line now says it is refused by name.Class / Sibling gaps
Class: entry points that cannot honour the offline guarantee and must refuse
--offlineby name (the #8624 "known network users" list: tiktoken download and the LLM port runner). Members: port_runner (handled here, all six subcommands including the localdet/commandbackends andstatus, refused as a whole tool); tiktoken download incore/detector.py(already falls back to a byte count; handled in earlier slices). Sibling gaps: other report/audit tools still unguarded per the README table (tracked in #8624);porting_loop.pydrives port_runner and was not checked for its own--offlinebehaviour; no change to allowdet/commandbackends offline (they make no network call, deliberately not split out).Files: gitgalaxy/tools/cobol_to_java/port_runner.py, tests/cobol_mainframe/test_port_runner.py, README.md.
🤖 Generated with Claude Code