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-tailRecover invalid tail; requires verified prefixoptional
--allScan every stream for drift and repair each drifted stream in one audited passoptional
--dry-runPreview the re-anchor impact without writing the history fileoptional
--normalize-provenanceRemove invalid provenance; return aggregate-only evidenceoptional
--author <value>Mutation authoroptional
--message <value>Audit history message for the repair marker entryoptional
--forceForce ownership/lock overrideoptional

Examples

pm history repair --help

Related commands