Evidence from the codebase supports it. Personal taste does not.
Do not transfer context.
Rebuild the decision.
PDD removes memory from engineering correctness. Each contributor rebuilds the same judgment from current repository evidence.
“No agent must remember what the repository can prove.”
Memory is private and incomplete. It changes during every summary and handoff.
PDD stores current rules and their active dependencies. A new agent can rebuild the decision without earlier context.
The rule works through four repository links.
Routes each decision to the full rule.
Mark code and reviews that depend on it.
Requires the rule to change before the code.
Finds every dependency after a version change.
Not documentation. Not another memory.
Rules evolve without quiet drift.
- 01
Find the judgment
A repeated problem or costly trade can reveal durable judgment. Gather evidence before you write a principle.
- 02
Adopt deliberately
Compare the proposal with every current principle. If one states the judgment, use it. If its meaning changes, advance it. If the decision is independent, add a token.
- 03
Rely explicitly
Pin code comments and review decisions to the current version. Do not copy the full rule.
- 04
Amend at the source
Change the principle before dependent code. If its meaning changes, increment the version.
- 05
Re-prove every site
Let the CLI expose old pins. Review each dependency before its citation receives the new version.
A good principle has consequences.
It rules out at least one plausible implementation.
It applies across features and survives one task.
Its implications and exceptions make its limits clear.
A visible process can amend or retire it.
Ready to remove the handoff?