Repository navigation
feat(security): --offline on four cobol_to_cobol forges (Part of #8624, slice 7) - #8655
Conversation
… slice 7) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
PR #8655 @ b9b6c8c: 2 failed check(s) == db2 (failure) -- real == equivalence-e2e (failure) -- real |
Part of #8624 (slice 7). Copies the slice 6 pattern (#8652):
add_flag(parser)beforeparse_args(),enforce(args)right after, so--offline(orGITGALAXY_OFFLINE=1) installs the socket guard in four more cobol_to_cobol CLIs.What changed
cobol_compiler_forge.py,cobol_schema_forge.py,cobol_jcl_forge.py,cobol_dag_architect.py: shared--offlineflag plusenforce(args).tests/core_engine/test_offline_cobol_forges_8624.py: for each forge, runs the real__main__on a small COBOL fixture. With--offlineand with the env var alone a socket connect is refused (RC 0 otherwise); without either it is not guarded.tests/tools/docs_read_by_tests.txt: regenerated bychange_classifier.py --write(not hand-written).Class / Sibling gaps
Class: every
gitgalaxy/tools/cobol_to_cobol/*.pyCLI with an argparsemain()takes the shared--offlineflag fromgitgalaxy/tools/readiness/offline.py.Members:
cobol_graveyard_finder,cobol_jcl_auditor,cobol_system_limits_reporter,completeness_reportwere already handled; this PR addscobol_compiler_forge,cobol_schema_forge,cobol_jcl_forge,cobol_dag_architect.Sibling gaps:
cobol_etl_unpacker.pyandcobol_microservice_slicer.pystill lack the flag (same mechanism; held back by the 5-file cap, see Remaining slices).cobol_agent_task_forge.pyandcobol_lexical_patcher.pyhave no argparse CLI (library-only, nothing to flag).Remaining slices
Slice 8: add the flag to
cobol_etl_unpacker.pyandcobol_microservice_slicer.py(2 sources) plus one test file extending this one's pattern (3 hand-written files).Gates
pytest tests/core_engine/test_offline_cobol_forges_8624.py: 8 passed.pr_gates --fast: 8 of 9 pass;affectedfails ontest_runtime_option_table.py::test_used_by_is_exactly_the_burned_corpora_that_hold_the_construct(burned-corpus listing forle.runtime_options.TRAP, a path this PR does not touch; fails identically on a pristine origin/main worktree with the same local corpora, whereexample-health-apislacks the construct;pr_gates --vs-mainlabelled it "caused by branch" but the direct main run disproves that).🤖 Generated with Claude Code