Repository navigation
feat(security): --offline on three cobol_to_java forges and the guardrail CLI (Part of #8624) - #8662
Merged
Merged
Conversation
…rail CLI (Part of #8624) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
This was referenced Nov 19, 2026
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 (security epic #8427), slice 9. Builds on #8655 and #8657.
Adds the shared
--offlineflag (add_flag(parser)beforeparse_args(),enforce(args)after; alsoGITGALAXY_OFFLINE=1) to three cobol_to_java forge CLIs (API contract, Spring entity/DTO, service skeleton) and the guardrail CLI. One test file covers all four: with the flag the CLI completes (RC 0) and a deliberatesocket.create_connectionraisesOfflineViolation; the env var alone guards, and with neither nothing is guarded.Class / Sibling gaps
Class: CLI entry points under
gitgalaxy/tools/that have no--offlineguarantee. Handled here:cobol_to_java_api_contract_forge,cobol_to_java_spring_forge,cobol_to_java_service_forge,cobol_to_java_guardrail(each tested). Sibling gaps (5-file cap, same mechanism, a few lines each):cobol_to_java_test_forgemain,batch_test_harnessmain,proof_reachmain;port_runner(calls an LLM: refuse by name, a different decision); controllers, standards cics/cobol CLIs; README table row for slices 6-9.Remaining slices
cobol_to_java_test_forge.py,batch_test_harness.py,proof_reach.py: same 3-line edit plus a test each (3 source + 1 test).port_runner.py: refuse--offlineby name when a model is used; test.Gates
audit_check.pyall clear (ruff, mypy, dead-key, doc-refs, ast-accuracy, signal-coverage); new test 8 passed; ruff 0.16.10 format applied. No parsing logic touched, so no golden bless.pr_gates --ratchetsnot run (no ratchet input changed).🤖 Generated with Claude Code