Do not restore removed exports to satisfy generated code.Prove that the generated consumer and current owner disagree, preserve source work, then let the repository cleaner replace its own outputs.

Three pieces of identity evidence.

HEAD

intended revision

Importer

lib/types/*.js

Owner

src/index.ts

First-symbol comparisonA cluster spanning owners is stronger than one missing name.
git status --short --branch
git rev-parse HEAD
rg -n "resolveSessionPreset" lib packages/preset/agent-presets/src

Use the repository-owned boundary.

The cleaner is intentionally narrower than a reinstall.

It derives build outputs from the project-reference graph, clears generated lib and incremental state, preserves live package dependencies, and refuses unsafe orphan directories.

Primary evidence.

Keep the complete recovery contract.

The canonical guide includes the importer/owner proof, result router, safety limits, eight verification gates, and upstream evidence template.

Read the full runbook