所有命令 · 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.

用法

pm ops validate [options]

选项

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

示例

pm ops validate

相关命令