Skip to main content

Remove stale indexed records

Status: Ready

Article ID: 075

Truth label: Current

Audience: Knowledge operator

Reader outcome: Understand incremental indexing and deleted-source cleanup.

Related articles: 071, 074, 079

Target week: 30

Last verified: 2026-09-13

Technical reviewer: Codex source audit

Editorial reviewer: Codex editorial audit

Recognize the stale-record risk​

A renamed decision, deleted task, or rewritten instruction can remain harmful if an old indexed record continues to rank. Stale evidence can contradict the working tree while still looking specific and confident.

Use incremental indexing​

CPMI compares current memory sources with stored record identity and content. Changed material is refreshed, unchanged material can be retained, and records for deleted sources are removed from the canonical index and projection.

Check the result​

After a deletion or rename, refresh the project and search for a distinctive phrase from the old file. It should not appear as a current record. Then search for the replacement and inspect its provenance.

Correct rather than overwrite​

For a record that is wrong rather than stale, use the exact-record correction in Memory collections. It keeps the before and requested-after text in a history, refuses to overwrite a record that changed since you loaded it, retries a failed index write, and can restore a removed record with its metadata. That history is separate from active memory, so an unapplied proposal never ranks as evidence.

Maintain intentionally​

Refresh after decision changes, task-ledger cleanup, and large documentation moves. Treat a surprising stale result as an indexing defect, not permission to follow obsolete guidance.

Current limits​

Cleanup depends on the indexer seeing the registered project and completing a refresh. External knowledge collections have different lifecycle rules. A successful cleanup does not resolve the known client-scope bypasses.

Next lesson​

Continue with Search when embeddings are offline.

Derivative map​

  • Weekly package: WEEK-30
  • Long video: VIDEO-W30-LONG
  • Shorts: SHORT-W30-PROBLEM, SHORT-W30-MECHANISM, SHORT-W30-WARNING
  • Email: EMAIL-W30
  • LinkedIn: LI-W30-A, LI-W30-B
  • X: X-W30-A, X-W30-B
  • Visual: VISUAL-W30

Review record​

  • Change, deletion, and semantic-projection cleanup behavior reviewed.
  • A negative search check is included after removal.
  • Refresh and scope limits remain explicit.
  • No stale search result is treated as current authority.

Review completed: 2026-08-27

Re-audited against the running product: 2026-09-13