Skip to content

feat(security): --offline on the ETL unpacker and the microservice slicer (Part of #8624, slice 8) - #8657

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8624-20261119T1030Z
Nov 19, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8624-20261119T1030Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8624 (slice 8 of 8). Adds the shared --offline flag to the last two cobol_to_cobol argparse CLIs: add_flag(parser) before parse_args(), enforce(args) right after.

Cross-repo: none. Companion within this repo: #8655 (slice 7, four forges, open). The two PRs touch disjoint files except tests/tools/docs_read_by_tests.txt (regenerated; take main's and re-run change_classifier.py --write if one merges first).

What changed

  • cobol_etl_unpacker.py, cobol_microservice_slicer.py: --offline flag plus enforce(args).
  • tests/core_engine/test_offline_cobol_unpacker_slicer_8624.py: runs each real __main__ on a small fixture (EBCDIC binary + schema; a .cbl with --var). With --offline it exits 0 and a socket connect raises OfflineViolation; GITGALAXY_OFFLINE=1 alone also guards; with neither, nothing is guarded.
  • README.md: one row in the "local and air-gapped operation" table.
  • tests/tools/docs_read_by_tests.txt: regenerated by change_classifier.py --write.

Class / Sibling gaps

Class: every gitgalaxy/tools/cobol_to_cobol/*.py CLI with an argparse main() takes the shared --offline flag from gitgalaxy/tools/readiness/offline.py. Members handled in this PR: cobol_etl_unpacker, cobol_microservice_slicer. Already handled: three reporters (#8635); four forges are in #8655.
Sibling gaps: cobol_agent_task_forge.py, cobol_lexical_patcher.py have no argparse CLI (library-only, nothing to flag). Outside this class, per the #8624 handoff and not done here: cobol_to_java forges/guardrail, controllers, standards cics/cobol CLIs, port_runner (LLM: refuse by name); README rows for slices 6-7 are not yet in the table.

Remaining slices

None for the two named CLIs. The README table has no rows for slices 6 and 7; add them when #8655 merges.

Gates

pytest tests/core_engine/test_offline_cobol_unpacker_slicer_8624.py: 4 passed. ruff format clean; audit_check.py: all clear.

🤖 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 10:39
@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