Repository navigation
feat(security): --offline on the completeness report and audit recorder CLIs (Part of #8624) - #8634
Merged
Merged
Conversation
…er CLIs (Part of #8624) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
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 (slice 2 of 3; slice 1 is #8628).
What
--offline(andGITGALAXY_OFFLINE=1) now works on the first two report/recorder CLIs through one shared helper ingitgalaxy/tools/readiness/offline.py(add_flag(parser)adds the flag,enforce(args)installs the guard and sets the worker env var, reusing slice 1'senable_if_requested). Wired intocompleteness_reportand theaudit_recorderCLI. 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 deliberatesocket.create_connectionafterwards raisesOfflineViolation; 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_recorderimport is lazy under__main__). Ran with the selfscan venv; thetranslatorextra was not needed.Class / Sibling gaps
Class: every report/recorder/audit CLI that has its own argparse
mainand can run without the network. Handled here:completeness_report,audit_recorder. Siblings left (same mechanism, oneadd_flag+enforcecall 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, andera_tags. Not here: the LLM port runner refusal by name (slice 3).Remaining slices
cobol_system_limits_reporter.py,cobol_jcl_auditor.py,cobol_graveyard_finder.py), their tests, README rows.supply_chain_firewall,full_api_network_map) and refuse it by name rather than guard it silently.🤖 Generated with Claude Code