Skip to content

feat(security): port_runner refuses --offline by name (Part of #8624) - #8670

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8624 (slice 11; not closing it).

port_runner (the opt-in LLM port runner) now exits with port_runner refuses --offline / GITGALAXY_OFFLINE=1: it can call a model API (network) when --offline appears 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 --offline by name (the #8624 "known network users" list: tiktoken download and the LLM port runner). Members: port_runner (handled here, all six subcommands including the local det/command backends and status, refused as a whole tool); tiktoken download in core/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.py drives port_runner and was not checked for its own --offline behaviour; no change to allow det/command backends 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

@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 13:41
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 13:42
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot disabled auto-merge November 19, 2026 14:01
@squid-shepherd

Copy link
Copy Markdown
Contributor

PR #8670 @ f227af6: 1 failed check(s)

== shard 2/2 (failure) -- real
https://github.com/squid-protocol/gitgalaxy/actions/runs/44536008185/job/135602606708
repro: tests/tools/box/heavy-run.sh python tests/tools/proof_sweep.py --det-only --skip-db2 --cases --work /tmp/gitgalaxy-scratch/ci-digest/sweep
failing tests: tests/cobol_mainframe/test_address_areas_e2e_5079.py::test_the_sized_areas_are_proven_against_gnucobol tests/cobol_mainframe/test_address_e2e_5079.py::test_a_address_program_is_proven_against_gnucobol tests/cobol_mainframe/test_bll_cells_5119.py::test_a_bll_program_is_proven_against_gnucobol tests/cobol_mainframe/test_bll_cells_5119.py::test_an_address_in_a_table_and_a_qualified_field_is_proven_against_gnucobol tests/cobol_mainframe/test_cbstm03a_case_5856.py::test_the_port_is_proved_end_to_end tests/cobol_mainframe/test_equivalence_cics.py::test_a_facade_that_builds_its_own_task_fails_the_java_facade_side tests/cobol_mainframe/test_equivalence_cics.py::test_carddemo_account_view_is_equivalent_end_to_end tests/cobol_mainframe/test_equivalence_cics_dli.py::test_a_cics_dli_program_is_compared_against_gnucobol_database_bytes tests/cobol_mainframe/test_equivalence_environments.py::test_a_locale_naive_port_passes_in_en_us_and_fails_in_thai tests/cobol_mainframe/test_equivalence_inputs.py::test_the_hand_written_ports_hold_on_generated_inputs[carddemo-acctview-generated-None] tests/cobol_mainframe/test_equivalence_inputs.py::test_the_hand_written_ports_hold_on_generated_inputs[carddemo-posttran-generated-expect0] tests/cobol_mainframe/test_equivalence_inputs.py::test_the_hand_written_ports_hold_on_generated_inputs[carddemo-readcard-generated-expect2] tests/cobol_mainframe/test_equivalence_inputs.py::test_the_hand_written_ports_hold_on_generated_inputs[carddemo-readcust-generated-expect4] tests/cobol_mainframe/test_link_commarea_bytes_4806.py::test_the_target_leaves_the_bytes_it_did_not_write[link] tests/cobol_mainframe/test_link_commarea_bytes_4806.py::test_the_target_leaves_the_bytes_it_did_not_write[xctl] tests/cobol_mainframe/test_link_commarea_untouched_sign_7485.py::test_the_untouched_signed_field_comes_back_as_sent[S9(10)V99_SIGN_LEADING] tests/cobol_mainframe/test_link_commarea_untouched_sign_7485.py::test_the_untouched_signed_field_comes_back_as_sent[S9(8)_SIGN_LEADING_SEPARATE] tests/cobol_mainframe/test_link_xctl_commarea_4816.py::test_the_oracle_and_the_port_stop_at_an_xctl_of_the_callers_area[copy-False] tests/cobol_mainframe/test_pointer_compare_5042.py::test_pointer_comparisons_are_proven_against_gnucobol tests/cobol_mainframe/test_porting_loop_tooling.py::test_the_loops_committed_ports_are_proven[carddemo-dateutil] tests/cobol_mainframe/test_porting_loop_tooling.py::test_the_loops_committed_ports_are_proven[carddemo-menu] tests/cobol_mainframe/test_porting_loop_tooling.py::test_the_loops_committed_ports_are_proven[carddemo-report] tests/cobol_mainframe/test_porting_loop_tooling.py::test_the_loops_committed_ports_are_proven[carddemo-tranadd] tests/cobol_mainframe/test_porting_loop_tooling.py::test_the_loops_committed_ports_are_proven[carddemo-trnrpt] tests/cobol_mainframe/test_porting_loop_tooling.py::test_the_loops_committed_ports_are_proven[carddemo-useradd] tests/cobol_mainframe/test_porting_loop_tooling.py::test_the_loops_committed_ports_are_proven[carddemo-userlist] tests/cobol_mainframe/test_porting_loop_tooling.py::test_the_loops_committed_ports_are_proven[carddemo-userupd] tests/cobol_mainframe/test_porting_loop_tooling.py::test_the_loops_committed_ports_are_proven[cbsa-updacc] tests/cobol_mainframe/test_porting_loop_tooling.py::test_the_loops_committed_ports_are_proven[genapp-lgapvs01] tests/cobol_mainframe/test_post_wait_converse_e2e_5079.py::test_a_post_wait_converse_program_is_proven_against_gnucobol[converse-set] tests/cobol_mainframe/test_td_enablestatus_e2e_5168.py::test_an_enablestatus_program_is_proven_against_gnucobol tests/cobol_mainframe/test_web_converse_urimap_e2e_7525.py::test_a_converse_urimap_program_is_proven_against_gnucobol
errors:
fail-on-cache-miss: false
E AssertionError:
tests/cobol_mainframe/test_bll_cells_5119.py:822: AssertionError
tests/cobol_mainframe/test_address_areas_e2e_5079.py:132: AssertionError
tests/cobol_mainframe/test_address_e2e_5079.py:126: AssertionError
E AssertionError: otrtlicController.java
tests/cobol_mainframe/test_equivalence_inputs.py:202: AssertionError
E AssertionError: er.java
tests/cobol_mainframe/test_cbstm03a_case_5856.py:79: AssertionError
tests/cobol_mainframe/test_equivalence_cics.py:793: AssertionError
every runTask scenario still passes, every java-facade scenario is refused, and the case is not proven."""
E KeyError: 'facade'
tests/cobol_mainframe/test_link_commarea_bytes_4806.py:164: AssertionError
tests/cobol_mainframe/test_equivalence_cics_dli.py:172: AssertionError
tests/cobol_mainframe/test_porting_loop_tooling.py:241: AssertionError
E KeyError: 'environments'
tests/cobol_mainframe/test_link_commarea_untouched_sign_7485.py:168: AssertionError
tests/cobol_mainframe/test_post_wait_converse_e2e_5079.py:239: AssertionError
tests/cobol_mainframe/test_td_enablestatus_e2e_5168.py:175: AssertionError
tests/cobol_mainframe/test_web_converse_urimap_e2e_7525.py:211: AssertionError
E AssertionError: ,831 [WARNING] [GalaxyScope.Worker.chronometer] ⏱️ TEMPORAL COLLAPSE DETECTED: Filesystem timeline spans only 0.0s. This indicates a shallow CI/CD clone. Neutralizing temporal math to prevent false positives.
tests/cobol_mainframe/test_link_xctl_commarea_4816.py:181: AssertionError
E AssertionError: ICS API: GetcompyController.java
E AssertionError: stp3Controller.java
FAILED tests/cobol_mainframe/test_bll_cells_5119.py::test_an_address_in_a_table_and_a_qualified_field_is_proven_against_gnucobol - AssertionError:
... 32 more
log tail:
pythonLocation: /opt/hostedtoolcache/Python/3.12.16/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.16/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.16/x64/lib
JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.21-9/x64
MAVEN_ARGS: -ntp
GITGALAXY_ORACLE_PREBUILT: 1
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
Uploading artifact: test-times-equivalence-e2e-shard-2.zip
Beginning upload of artifact content to blob storage
Uploaded bytes 64038
Finished uploading artifact content to blob storage!
SHA256 digest of uploaded artifact is c40385d05f5696a7d83661174144658b05aed9293ca47dafa5bf11f038cb0cc5
Finalizing artifact upload
Artifact test-times-equivalence-e2e-shard-2 successfully finalized. Artifact ID 14537098575
Artifact test-times-equivalence-e2e-shard-2 has been successfully uploaded! Final size is 64038 bytes. Artifact ID is 14537098575
Artifact download URL: https://github.com/squid-protocol/gitgalaxy/actions/runs/44536008185/artifacts/14537098575
Post job cleanup.
Post job cleanup.
[command]/usr/bin/git version
git version 2.56.1
Temporarily overriding HOME='/home/runner/work/_temp/8671db45-209e-4021-9f2f-d2e55320ddf4' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/usr/bin/git config --global --add safe.directory /home/runner/work/gitgalaxy/gitgalaxy
Removing SSH command configuration
[command]/usr/bin/git config --local --name-only --get-regexp core.sshCommand
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/usr/bin/git config --local --name-only --get-regexp http.https://github.com/.extraheader
[command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http.https://github.com/.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/usr/bin/git config --local --name-only --get-regexp ^includeIf.gitdir:
[command]/usr/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
Cleaning up orphan processes

@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 19, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 14:42
@squid-shepherd squid-shepherd Bot removed the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Nov 19, 2026
@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