Skip to content

feat(security): --offline on the sensor subcommands and the API network map (Part of #8624) - #8652

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

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

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8624 (security epic #8427), slice 6. Prior slices: #8628, #8634, #8635, #8640, #8644.

What

--offline (and GITGALAXY_OFFLINE=1) on the gitgalaxy reach, libsurface, activity and change subcommands (one dispatcher edit in gitgalaxy/cli.py; assess is already always offline) and on full_api_network_map. Same add_flag(parser) then enforce(args) pattern as earlier slices.

Tests

tests/core_engine/test_offline_sensors_and_api_map_8624.py, per entry point: with the flag the command completes (RC 0) and a deliberate socket.create_connection raises OfflineViolation; env var alone guards; without either nothing is guarded. 10 pass; the existing reach / activity / change sensor tests (36) still pass. audit_check.py clear.

Class / Sibling gaps

Class: scan / report / audit CLI entry points that can run without the shared offline guard. Handled so far: galaxyscope, completeness report, audit recorder, 3 cobol_to_cobol reporters, 3 supply-chain CLIs, 2 log scanners, and now the 4 sensors + API network map.
Sibling gaps (not here, 5-file cap; all unguarded, no network use seen in them):

  • gitgalaxy/standards/cics/cli.py, gitgalaxy/standards/cobol/cli.py (spec / table tools, local only): add the flag.
  • cobol_to_cobol forges: cobol_schema_forge, cobol_jcl_forge, cobol_dag_architect, cobol_microservice_slicer, cobol_etl_unpacker, cobol_compiler_forge.
  • cobol_to_java: cobol_to_java_{test,spring,api_contract,service}_forge, cobol_to_java_guardrail, batch_test_harness, proof_reach, port_runner (LLM runner: needs refusal by name rather than a guard).
  • cobol_to_java_controller.py, cobol_refractor_controller.py, readiness/era_tags.py.

Remaining slices

  1. cobol_to_cobol forges (6 files). 2. cobol_to_java forges/guardrail (5). 3. controllers + spec CLIs. 4. README "local and air-gapped operation" docs once no entry point remains.

🤖 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 07:55
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 19, 2026 07:55
@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