Skip to content

feat(security): --offline on the completeness report and audit recorder CLIs (Part of #8624) - #8634

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8624-20261118T2207Z
Nov 18, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8624-20261118T2207Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8624 (slice 2 of 3; slice 1 is #8628).

What

--offline (and GITGALAXY_OFFLINE=1) now works on the first two report/recorder CLIs through one shared helper in gitgalaxy/tools/readiness/offline.py (add_flag(parser) adds the flag, enforce(args) installs the guard and sets the worker env var, reusing slice 1's enable_if_requested). Wired into completeness_report and the audit_recorder CLI. README "Offline guarantee, by command" table has a row for each.

Tests

tests/core_engine/test_offline_report_clis_8624.py, per CLI (2 CLIs x 3): a planted repo, scanned offline to a master DB, completes under the guard; a deliberate socket.create_connection afterwards raises OfflineViolation; the env var alone guards, and with no opt-in nothing is guarded. 6 passed.

Gates

audit_check.py (ruff, mypy, dead-key, doc-refs, ast-accuracy, signal-coverage) OK; tree-wide guards (test_source_reads, test_change_classifier, shepherd markers) pass; slice 1's tests still pass. Not run: golden and --ratchets (no parsing logic touched; audit_recorder import is lazy under __main__). Ran with the selfscan venv; the translator extra was not needed.

Class / Sibling gaps

Class: every report/recorder/audit CLI that has its own argparse main and can run without the network. Handled here: completeness_report, audit_recorder. Siblings left (same mechanism, one add_flag + enforce call each, but over the 5-file cap): cobol_system_limits_reporter, cobol_jcl_auditor, cobol_graveyard_finder, the supply-chain CLIs (vault_sentinel, supply_chain_firewall, binary_anomaly_detector), the log scanners (pii_leak_hunter, terabyte_log_scanner), full_api_network_map, and era_tags. Not here: the LLM port runner refusal by name (slice 3).

Remaining slices

  1. The cobol_to_cobol reporters (cobol_system_limits_reporter.py, cobol_jcl_auditor.py, cobol_graveyard_finder.py), their tests, README rows.
  2. The supply_chain_security and terabyte_log_scanning CLIs, same shape. Check each first for a deliberate network use (supply_chain_firewall, full_api_network_map) and refuse it by name rather than guard it silently.
  3. Slice 3 of Offline guarantee for every scan entry point, not only assess: block the network in galaxyscope and the report tools, name the exceptions #8624: LLM port runner refusal by name.

🤖 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 18, 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 18, 2026 22:12
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

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