Repository navigation
feat(security): --offline on the ETL unpacker and the microservice slicer (Part of #8624, slice 8) - #8657
Merged
Conversation
…icer (Part of #8624) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
This was referenced Nov 19, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #8624 (slice 8 of 8). Adds the shared
--offlineflag to the last two cobol_to_cobol argparse CLIs:add_flag(parser)beforeparse_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-runchange_classifier.py --writeif one merges first).What changed
cobol_etl_unpacker.py,cobol_microservice_slicer.py:--offlineflag plusenforce(args).tests/core_engine/test_offline_cobol_unpacker_slicer_8624.py: runs each real__main__on a small fixture (EBCDIC binary + schema; a.cblwith--var). With--offlineit exits 0 and a socket connect raisesOfflineViolation;GITGALAXY_OFFLINE=1alone 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 bychange_classifier.py --write.Class / Sibling gaps
Class: every
gitgalaxy/tools/cobol_to_cobol/*.pyCLI with an argparsemain()takes the shared--offlineflag fromgitgalaxy/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.pyhave 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 formatclean;audit_check.py: all clear.🤖 Generated with Claude Code