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.
intended revision
lib/types/*.js
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/srcUse the repository-owned boundary.
- 01Preserve intentional source and manifest edits.
- 02Run
pnpm clean; stop if it refuses unknown orphan files. - 03Run
pnpm install --frozen-lockfile. - 04Run
pnpm run build. - 05Confirm both library and Web stages complete.
- 06Start DSH and verify the expected identity.
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