ci: add zombie-import gate — detect imports from gutted modules#2247
Merged
alexey-pelykh merged 1 commit intomainfrom Apr 10, 2026
Merged
ci: add zombie-import gate — detect imports from gutted modules#2247alexey-pelykh merged 1 commit intomainfrom
alexey-pelykh merged 1 commit intomainfrom
Conversation
Adds a CI check that prevents imports from known-dead modules (pi-embedded, model-catalog, model-selection, skills, sandbox, memory, acp/runtime, etc.) from silently re-entering the codebase. Existing legacy callsites are allowlisted for incremental cleanup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Apr 14, 2026
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.
Summary
scripts/check-no-zombie-imports.mjs— a CI gate that detects imports (static, re-export, dynamicimport(), andtypeof import()) from gutted modules:pi-embedded,model-catalog,model-fallback,model-selection,skills,sandbox,pi-embedded-runner,memory/,acp/control-plane,acp/runtimezombie-import-gatejob to CI workflow, required to pass alongside rebrand-gate, lint, build, and testCloses #2195
Test plan
exit 0)import(),typeof import()acp-cli.tswithacp/client— not in dead list) produce no false positiveszombie-import-gatejob passes🤖 Generated with Claude Code