Todos los comandos · 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.

Uso

pm ops validate [options]

Opciones

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

Ejemplos

pm ops validate

Comandos relacionados