pdd checkCheck the system
Find invalid definitions, missing index entries, and citation problems.
The pdd CLI reads current repository evidence. It checks each rule, index entry, citation, comment, and accepted-risk marker.
The CLI turns every old pin into a review item. Update the token only after the code is valid under the new rule.
$ pdd check
src/jobs/reconcile.ts:48 [PDD106]
PDD-02@v1 is stale; review this site against PDD-02@v2
src/models/restore.ts:91 [PDD202]
ACCEPTED-RISK marker needs PDD-06@v1 within four lines
pdd check: FAILED (2 problems)npm install --save-dev @principle-driven/cli
npx pdd checkInstall the package in a repository so its lock file pins the CLI version.
npx --yes @principle-driven/cli checkpdd checkFind invalid definitions, missing index entries, and citation problems.
pdd listShow each current token, title, and authority file.
pdd refs PDD-02List every repository site that relies on one principle.
Filenames, headings, tokens, versions, and history entries agree.
Each configured AGENTS.md contains every current principle.
Bare, unknown, malformed, lowercase, and old tokens fail.
A principle title in prose needs its pinned token nearby.
Each marker cites the current rule within four lines.
A meaning change reports every code site that needs review.
Place pdd.config.json at the repository root. The defaults use PDD, one root agent index, and docs/principles.
{
"prefix": "PDD",
"principlesDir": "docs/principles",
"agentFiles": ["AGENTS.md"],
"acceptedRiskPrinciple": "PDD-06",
"ignore": []
}- name: Check decision system
run: npx pdd checkDo not add a path filter. A principle-only change must still run the version sweep.