Parallel analysis lane
You are doing a repo cleanup analysis in /home/akitav2/projects/4626. Goal: identify high-confidence old/unneeded files safe to delete NOW.
Method:
- Find files marked deprecated/legacy/retired/wrapper/archived.
- Check whether each candidate is referenced anywhere in repo (imports, scripts, docs links, package scripts, workflow references).
- Return only candidates with strong evidence of being unneeded (zero references or explicit replacement path).
- Separate into: A) Safe-to-delete now (high confidence) B) Needs confirmation (possible but uncertain)
Output format:
- Bullet list with file path + evidence (reference search summary).
- Keep it concise; prioritize <=15 highest-confidence candidates.
Do not suggest deleting active config files, lockfiles, migrations, or AGENTS/rules files.
Analysis
Searching the repo for deprecated, legacy, retired, wrapper, and archived markers, then checking references for each candidate.
[REDACTED]
Tools invoked: UpdateCurrentStep, Glob, Glob, Glob, Glob, Grep
Analysis
[REDACTED]
Tools invoked: Glob, Grep, Glob, Glob, Glob
Analysis
[REDACTED]
Tools invoked: Grep, Grep, Grep, Grep, Grep, Grep
Analysis
[REDACTED]
Tools invoked: Grep, Grep, Grep, Grep, Grep, Glob
Analysis
[REDACTED]
Tools invoked: Glob, Grep, Grep, Grep, Read, Read
Analysis
[REDACTED]
Tools invoked: Grep, Grep, Grep, Grep, Glob, Grep
Analysis
[REDACTED]
Tools invoked: Grep, Grep, Read, Grep, Glob, Grep
Analysis
[REDACTED]
Tools invoked: Read, Grep, Grep, Glob, Grep, Read
Analysis
[REDACTED]
Tools invoked: Read, Read, Grep, Grep, Grep, Grep
Analysis
[REDACTED]
Tools invoked: Grep, Glob, Grep, Grep, Read, Grep
Analysis
[REDACTED]
Tools invoked: Glob, Grep, Grep, Glob, Grep, Grep
Analysis
[REDACTED]
Tools invoked: Grep, Grep, Grep, Glob, Grep
Analysis
[REDACTED]
Tools invoked: Glob, Glob, Glob, Grep, Grep, Grep
Analysis
[REDACTED]
Tools invoked: Glob, Grep, Grep, Glob, Glob, Grep
Analysis
[REDACTED]
Tools invoked: Glob, Grep, Grep, Grep, Glob, Grep
Analysis
[REDACTED]
Tools invoked: Glob, Grep, Glob, Read, Grep
Analysis
[REDACTED]
Tools invoked: Grep, Grep, Grep, Read, Grep, Grep
Analysis
[REDACTED]
Tools invoked: Glob, Grep, Grep, Grep, Glob, Grep
Analysis
[REDACTED]
Tools invoked: Glob, Grep, Grep, Read, Grep
Analysis
[REDACTED]
Tools invoked: Read, Grep, Grep, Grep, Glob, Grep
Analysis
[REDACTED]
Tools invoked: Glob, Grep, Read, Grep, Grep
Analysis
[REDACTED]
Tools invoked: Grep, Glob, Grep, Glob, Grep, Grep
Analysis
[REDACTED]
Tools invoked: Grep, Grep, Glob, Grep, Read, Read
Analysis
[REDACTED]
Tools invoked: Grep, Read, Grep, Grep, Glob
Analysis
[REDACTED]
Tools invoked: Grep, Grep, Shell, Grep, Grep
Analysis
[REDACTED]
Tools invoked: Read, Grep, Grep, Grep, Grep
Analysis
[REDACTED]
Tools invoked: Grep, Grep, Shell, Grep, Grep
Analysis
[REDACTED]
Tools invoked: Grep, Glob, Grep, Grep
Analysis
[REDACTED]
Tools invoked: Grep, Read, Grep
Analysis
[REDACTED]
Tools invoked: UpdateCurrentStep
Analysis
A) Safe-to-delete now (high confidence)
-
/home/akitav2/projects/4626/frontend/scripts/ops/patch-fork-batcher-phase3-bytecode.ts— File header says@deprecated Do not use; zero imports/scripts/docs references. Replacement isensure-fork-phase3-helper-aligned.ts(wired indev-deploy-dry-run.sh). -
/home/akitav2/projects/4626/repo_path_mapping.json— Zero references anywhere in repo (repo_path_mapping,path_mappinggrep empty). Orphan contract-name → path map. -
/home/akitav2/projects/4626/akita-holo-refined.png— Zero references (akita-hologrep empty). Unreferenced root-level design mockup. -
/home/akitav2/projects/4626/docs/animations/cursor_3d_animated_card_concept.md— ~4.8k-line Cursor chat export; only mention is a code comment inDeployChoiceCards.tsx, not a runtime/doc link. Safe if you don’t need the design-history transcript.
B) Needs confirmation (possible, uncertain)
-
/home/akitav2/projects/4626/archives/(~90 files) — READMEs say retired 2026-05-25; zero imports from live*.ts/tsx/json/sh. Blocker: two runbooks linked from live docs exist only here:archives/add-owner/docs/operations/relay-owner-mutation-kit-guide.md(AGENTS + docs/operations/index.md link to missing docs/operations/relay-owner-mutation-kit-guide.md)archives/add-owner/docs/operations/owner-install-reference-methods.md(same pattern) Move these todocs/operations/before deleting archive code.
-
/home/akitav2/projects/4626/test/v183-release-target-guard.sh— Deprecated thin wrapper →current-release-target-guard.sh, but still whitelisted inamoe/tools/ci/check_no_orphan_addresses.shand cited in deployment docs. Delete after retargeting those references. -
/home/akitav2/projects/4626/docs/operations/dune/queries/*.sql(4 files) — Duplicate offrontend/server/_lib/dune/queries/(01/02 verified identical). Runtime loads the frontend copy viaduneMetricSql.ts; runbook still points at docs path. Consolidate docs links, then delete mirror. -
/home/akitav2/projects/4626/frontend/api/_handlers/vaults/_active.ts— Not registered in_routes.ts(live route uses_activeProtected.ts). Only imported by parity testkprVaultsActive.test.ts. AGENTS says keep until KPR parity migration. -
/home/akitav2/projects/4626/frontend/db/migrations-legacy/— Explicit read-only archive per AGENTS/schema docs; no runtime imports, but kept for bisect/history. Per your exclusion rule, treat as “don’t delete without explicit sign-off.” -
/home/akitav2/projects/4626/frontend/package.json→tenderly:part1-matrix— Script points to missing frontend/scripts/tenderly-part1-signature-matrix.ts; only copy is underarchives/owner-mutation-lane/. Remove dead script entry (or restore/move script), not a standalone file delete. -
/home/akitav2/projects/4626/archives/add-owner/docs/operations/base-app-session-key-relay-part1-recipe.md— Live copy exists at docs/operations/base-app-session-key-relay-part1-recipe.md but differs; don’t delete until reconciled. -
/home/akitav2/projects/4626/docs/operations/supabase-schema-duplication-report.md— Historical condensation report; only linked fromsupabase-schema-condensation.md. Safe only if you’re done referencing the migration narrative. -
/home/akitav2/projects/4626/frontend/scripts/ops/alfaclub-digest-room-setup.ts—dailyBrief.tsmarks separate digest room as retired; script still calls live brief helpers and is referenced inalfaclub-token-rotation.md. Likely stale ops tooling.
Explicitly not safe (common false positives)
| Path | Why keep |
|---|---|
frontend/server/_lib/wallet/commandIssuerContext.ts, profileIdForPrivyUser.ts | Still imported (thin re-exports + tests) |
| frontend/server/_lib/onchain/contracts.js | Active production import path |
| frontend/public/immersive/vault.js | Live ?hero=legacy fallback |
frontend/db/migrations-legacy/ | Intentional archive (your exclusion) |
amoeLedgerSnapshotStub.ts | Still imported by amoeSubmitZk.ts |
dgclaw-skill/references/legacy-setup.md | Linked from dgclaw-skill/SKILL.md |
Highest-impact next step: move the two archive-only relay/owner-install runbooks into docs/operations/, then the entire archives/ code tree becomes a strong bulk delete (~90 files).
[REDACTED]
Was this page helpful?