Skip to content

refactor: rename supply-chain firewall to import policy gate, slice 1 of 2 (Part of #8427) - #8633

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8623-20261118T2025Z
Nov 18, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
churn/8623-20261118T2025Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #8427. Slice 1 of 2 of #8623.

Renames the supply-chain firewall to the import policy gate: module, CLI entry point, config keys, scan output key, GitHub Action tool name, workflows, tests and regenerated goldens. No alias, no behaviour change, no new checks.

File-cap exception: atomic rename of the supply-chain firewall to import policy gate (#8623)

Owner decisions

  • Owner OK (2026-11-18): full rename, no alias. Almost nobody uses the tool yet; the old command, keys and Action tool value are removed, not kept as aliases.

Changes

  • gitgalaxy/tools/supply_chain_security/supply_chain_firewall.py -> import_policy_gate.py; run_firewall_audit -> run_import_gate_audit; _FIREWALL_* -> _IMPORT_GATE_*; CLI banner "IMPORT POLICY GATE".
  • Console script supply-chain-firewall -> import-policy-gate (pyproject.toml).
  • Config key FIREWALL_NETWORK_WEIGHTING -> IMPORT_GATE_NETWORK_WEIGHTING (gitgalaxy_config.py, config_resolver.py). STRICT_IMPORT_MODE, APPROVED_IMPORTS, BLACKLISTED_IMPORTS unchanged.
  • Scan output ecosystem_audits.firewall -> ecosystem_audits.import_policy_gate (galaxyscope, llm_recorder, record_keeper).
  • Action tool: import-policy-gate (action.yml), the templates/ pipelines, and workflows gitgalaxy.yml, os-smoke-grid.yml, smoke-test.yml, mainframe-ground-truth.yml (path reference). No shepherd-*.yml touched.
  • Tests renamed/updated: test_import_policy_gate.py and every reference; .test_durations keys follow the rename.
  • Goldens regenerated with golden-lock.sh ... crucible_check.py --update --yes: 6 files (gpu_json, llm_brief, ecosystem_audits in both fixtures). Every diff line is the key/label rename or the hash of the renamed key; nothing else moved.
  • Doc-refs fixes: docs/security_claims_inventory.md, docs/vectors.md, docs/wiki/02-06-security-lens.md, docs/wiki/04-03-supply-chain-firewall.md, docs/wiki/cookbook/enforce-supply-chain-firewall.md (path/module-name references only, 15 lines; needed for doc-refs to stay clean; covered by the atomic-rename exception, not the 10-line doc-refs exemption).
  • Gates: audit_check.py all clear (ruff/mypy/dead-key/doc-refs/ast-accuracy/signal-coverage); pinned ruff format clean on changed .py; targeted tests pass (221 + 219). pr_gates --fast 9/9 pass. --ratchets: 6 pass; fact-crosscheck, completeness and ground-truth fail locally only because example-health-apis is not fetched (upstream gone, ci: referee panel reads the shared mainframe-corpora cache (upstream example-health-apis 404s) #8621), unrelated to the rename.
  • Left for slice 2 (docs): wiki pages 04-03-supply-chain-firewall.md and the cookbook page (so their link targets are unchanged here), mkdocs nav, docs/ inventory rows, CHANGELOG line, remaining prose "firewall" in READMEs. Out of scope: dev_agent_firewall, the supply_chain_security/ directory.

Class / Sibling gaps

Class: every place the supply-chain firewall's name is an identifier or a user-facing contract (module path, function/constant names, entry point, config keys, scan output key, Action tool value, workflow/template references, test names, test-duration keys, banners and labels in generated reports). All members in code, config, workflows, templates and tests are handled in this PR; the goldens that carry the output key are regenerated. Sibling gaps: the docs members (wiki 04-03, cookbook page, mkdocs nav, links, security claims inventory rows, CHANGELOG line, prose in tool READMEs) are slice 2 by the issue's own split, not a gap. Otherwise none.

Remaining slices

  1. Docs: page renames, nav, links, inventory rows, CHANGELOG line.

Cross-repo

None: no companion PR in another repo.

🤖 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 21:56
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 18, 2026 21:58
@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