Skip to content

feat(security): --offline on three cobol_to_java forges and the guardrail CLI (Part of #8624) - #8662

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8624 (security epic #8427), slice 9. Builds on #8655 and #8657.

Adds the shared --offline flag (add_flag(parser) before parse_args(), enforce(args) after; also GITGALAXY_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 deliberate socket.create_connection raises OfflineViolation; the env var alone guards, and with neither nothing is guarded.

Class / Sibling gaps

Class: CLI entry points under gitgalaxy/tools/ that have no --offline guarantee. 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_forge main, batch_test_harness main, proof_reach main; 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

  1. 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).
  2. port_runner.py: refuse --offline by name when a model is used; test.
  3. controllers and standards cics/cobol CLIs.
  4. README rows for slices 6-9 (after feat(security): --offline on four cobol_to_cobol forges (Part of #8624, slice 7) #8655 and feat(security): --offline on the ETL unpacker and the microservice slicer (Part of #8624, slice 8) #8657 merge).

Gates

audit_check.py all 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 --ratchets not run (no ratchet input changed).

🤖 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 11:22
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 11:22
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit 1a56ab9 into main Nov 19, 2026
93 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8624-20261119T1119Z branch November 19, 2026 12:01
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