All commands · evidence
pm history repair
Re-anchor a drifted item history chain (recompute hashes, reconcile with the on-disk item) and record an audit marker. Use --all to repair every drifted stream.
Re-anchor a drifted item history chain (recompute hashes, reconcile with the on-disk item) and record an audit marker. Use --all to repair every drifted stream.
Usage
pm history repair [options] [id]Arguments
| <id> | Item id (omit with --all) | optional |
|---|
Options
| --salvage-tail | Recover invalid tail; requires verified prefix | optional |
|---|---|---|
| --all | Scan every stream for drift and repair each drifted stream in one audited pass | optional |
| --dry-run | Preview the re-anchor impact without writing the history file | optional |
| --normalize-provenance | Remove invalid provenance; return aggregate-only evidence | optional |
| --author <value> | Mutation author | optional |
| --message <value> | Audit history message for the repair marker entry | optional |
| --force | Force ownership/lock override | optional |
Examples
pm history repair --help