Skip to content

feat(security): --offline on the three cobol_to_cobol reporters (Part of #8624) - #8635

Merged
squid-shepherd[bot] merged 5 commits into
mainfrom
churn/8624-20261118T2214Z
Nov 19, 2026
Merged

squid-shepherd[bot] merged 5 commits into
mainfrom
churn/8624-20261118T2214Z

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Part of #8624 (slice 3 of 4). Builds on the shared --offline helper merged in #8634.

Adds --offline (and GITGALAXY_OFFLINE=1) to the three cobol_to_cobol reporters: cobol_system_limits_reporter, cobol_jcl_auditor, cobol_graveyard_finder. Each calls add_flag(parser) before parse_args() and enforce(args) right after, so any network call raises OfflineViolation.

Tests: tests/core_engine/test_offline_cobol_reporters_8624.py runs each CLI in a subprocess. Per CLI, it checks that the run completes with --offline, that a socket connect is then refused, that the env var alone guards, and that with neither the connect is not refused.

README guarantee table gets one row for the three tools.

Cross-repo: none.

Class / Sibling gaps

Class: report and audit CLIs that run without galaxyscope and so have no --offline guard (#8624). Handled so far: galaxyscope (#8628), completeness_report and audit_recorder (#8634), and the three reporters here. Sibling gaps: the other CLIs under gitgalaxy/tools/ that parse their own args (cobol_dag_architect, cobol_schema_forge, cobol_jcl_forge, cobol_microservice_slicer, cics_transaction_reader and the rest of the tools tree). They need the same two lines each, not a different mechanism; they are slice 4's inventory. Not done here because of the 5-file cap.

Remaining slices

Slice 4 of 4: the remaining tool CLIs, each a two-line change plus a test row, in batches of 5 files.

🤖 Generated with Claude Code

Base automatically changed from churn/8624-20261118T2207Z to main November 18, 2026 22:45
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 18, 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 18, 2026 23:45
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 18, 2026 23:45
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

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