type: rule
status: active
timestamp: 2026-06-25
tags: [knowledge, okf, supersession, deletion, agent-rule]

Knowledge — hard-delete superseded files

Superseded decision: git rm old file same commit as new. Audit trail in git history

Knowledge — hard-delete superseded files

When a knowledge decision is superseded:

  1. git rm the old file
  2. Create the new decision file in the same commit
  3. List the deleted path(s) in the new file’s supersedes: frontmatter array
  4. Cross-link to the new file from any other knowledge that referenced the old one

The git history is the audit trail. git log --follow --diff-filter=D -- <path> recovers any deleted file. git log --all -- <path> shows the full lifecycle including renames.

Why not keep superseded files on disk?

Reversal note

Reverses the earlier (2026-06-25 morning) rule knowledge-supersession-not-deletion. Same day, opposite direction. Both decisions captured in memory + git history.


Edit on GitHub · Back to index