Add dead code inventory: confirmed-dead Rust functions and uncertain test/skill assets - #4
Draft
ProjectAI00 with Copilot wants to merge 2 commits into
Draft
Add dead code inventory: confirmed-dead Rust functions and uncertain test/skill assets#4ProjectAI00 with Copilot wants to merge 2 commits into
ProjectAI00 with Copilot wants to merge 2 commits into
Conversation
…tain labels Co-authored-by: ProjectAI00 <174952601+ProjectAI00@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Audit and inventory unused code and assets
Add dead code inventory: confirmed-dead Rust functions and uncertain test/skill assets
Mar 4, 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.
Scans
src/main.rs,scripts/,npm/skills/,skills/,prompts/, andtests/to produce a concrete, evidence-backed inventory of unused code and assets, labeled SAFE (conclusively dead) or UNCERTAIN (needs manual verification).Confirmed dead — SAFE to remove
cmd_goals(src/main.rs:1116–1176) —cargo checkwarns unused; noCommands::Goalsenum variant; no dispatch arm; no test ever callsimi goalscmd_tasks(src/main.rs:1190–1287) — same: compiler warning, no enum variant, no dispatch, zero test coverageBoth functions' logic is superseded by
imi plan/imi context/imi status.Uncertain — manual review needed
tests/eval-loop.shmake testor CI; hardcoded dev-machine binary path; covers distinct loop flows not inintegration.shtests/eval-human-sim.shskills/imi/scripts/session-start.shmarketplace.jsonpoints to./skills/imias plugin skill root, but SKILL.md is absent there; npm install reads fromnpm/skills/imi/instead;integration.shtests this file's existenceActive (confirmed not dead)
scripts/session-start.sh,prompts/(used bycmd_run/cmd_wrapatsrc/main.rs:2367,2467),npm/skills/imi/*.md,tests/integration.sh.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.