All commands · quality

pm ops validate

Validate metadata, lifecycle policies, files, command references, and history.

Runs standalone metadata, resolution, lifecycle (including dependency-cycle diagnostics), linked-file, linked-command reference, and history drift checks with default remediation hints for resolution gaps.

Usage

pm ops validate [options]

Options

--check-metadataRun metadata completeness checksoptional
--metadata-profile <value>Metadata profile (core|strict|custom)optional
--check-resolutionRun closed-item resolution metadata checksoptional
--check-completenessCheck declarative lifecycle field requirementsoptional
--check-lifecycleRun active-item lifecycle governance drift checksoptional
--check-stale-blockersInclude stale blocker-pattern diagnostics in lifecycle checksoptional
--dependency-cycle-severity <value>Set dependency-cycle warning policy for lifecycle checks (off|warn|error)optional
--parent-cycle-severity <value>Set parent-hierarchy cycle warning policy for lifecycle checks (off|warn|error)optional
--check-filesRun linked-file and orphaned-file checksoptional
--check-command-referencesRun linked-command PM-ID reference checksoptional
--scan-mode <value>Select file candidate scan mode for --check-files (default|tracked-all|tracked-all-strict)optional
--include-pm-internalsInclude PM storage internals in tracked-all candidate scansoptional
--verbose-file-listsInclude full file-path lists for validate --check-files detailsoptional
--verbose-diagnosticsInclude full diagnostic ID listsoptional
--all-affected-idsEmit complete missing_* affected-ID lists with no truncation (implied by --json)optional
--strict-exitReturn non-zero exit when validation warnings are presentoptional
--fix-hintsAdd a machine-executable fix_hints[] of pm commands to each failing check's detailsoptional
--auto-fixApply safe, deterministic field backfillsoptional
--dry-runPreview planned --auto-fix/--prune-missing fixes without applying themoptional
--fix-scope <scope>Grant --auto-fix scopes (metadata, resolution, estimates, timestamps, lifecycle; comma-separated or repeatable). Default: metadata, resolution; other scopes require explicit opt-inoptional
--prune-missingRemove deleted-path file/doc links; preserves real filesoptional
--check-history-driftRun item/history hash drift checksoptional
--check-storage-integrityRun the post-merge storage-integrity check (unreadable items, history conflict markers, resurrected deletes, unparseable config/schema)optional
--countsKeep validation counts and totals while omitting per-item diagnostic arraysoptional
--fullReturn the complete validation diagnostic projectionoptional

Examples

pm ops validate

Related commands