How PDD works
A new contributor can reconstruct the current judgment without a context handoff.
PDD puts the rule and its active dependencies in the repository. Developers and agents use that evidence to make decisions.
The method gives contributors the same basis for judgment. It can support several valid implementations.
The decision system
- A principle file states the judgment. Its Rule gives the required choice and binding exceptions.
- The agent index routes each contributor. Each entry in
AGENTS.mdlinks a current token to the full rule. - Comments cite local dependencies. A versioned token connects the code to the meaning that its author used.
- Reviews cite current rules. A “working as designed” decision names the rule that justifies the behavior.
- The CLI checks the connections. It reports missing entries, invalid citations, and old versions.
The complete example follows one permission rule through all five parts.
Write a principle
A principle prevents a recurring bad choice. A repeated correction supplies evidence, but it does not automatically earn a new token.
The starter format keeps the agent file short. The website supplies the teaching examples outside that file.
| Part | What it answers |
|---|---|
| Rule, first | The required choice, including binding conditions and exceptions. |
| Rationale | The repeated bad behavior that earned the Rule. |
| Implications, optional | Sparse examples that add no obligations. |
| History | Adoption and changes to meaning or authority. |
A useful rule changes an actual decision. For example, use-time validation stops an agent from adding coordination code for every timing gap.
Task plans and implementation logs describe individual changes. Keep them outside the principle registry.
Adopt a principle
- Identify a recurring choice with repository evidence.
- Read every current principle.
- If a current rule already states the judgment, use that rule.
- If the proposal changes an existing rule’s judgment, advance that rule.
- If the judgment governs an independent decision, propose a new token.
- Under the starter protocol, obtain the repository owner's approval before adopting that token.
Catalog entries are candidates. Downloading an entry does not make it a governing rule in your repository.
These steps concern adopted repository principles. If your repository has another authority or change protocol, follow that protocol.
The PDD principle skill applies this procedure in supported coding harnesses.
Keep the registry small.Remove a principle that no longer affects a decision. Version control preserves its history.
Change a principle
- Change the principle before dependent content or code.
- If its meaning or authority changes, increment the version.
- Run
pdd checkto find old citations. - Review each dependent site against the new rule.
- Update each citation after its review.
- Include the principle and dependent changes in the same pull request.
A spelling correction keeps the version. A new requirement, exception, or transfer of authority requires a new version.
Under the starter protocol, a wording edit to the Rule needs evidence that its required and rejected choices stay unchanged.
Supporting examples cannot introduce obligations.
How PDD fits
PDD uses existing repository tools. It adds conventions that connect current judgment to its dependencies.
| Repository tool | Role |
|---|---|
AGENTS.md | Routes contributors to applicable instructions and rules. |
| Skills | Supply repeatable procedures for a task. |
| Task plans | State the work for one change. |
| Tests | Check the expected behavior. |
| Architecture records | Explain the history of an architectural decision. |
| PDD principles | State current judgment and identify code that depends on it. |
The CLI checks definitions and citations. It cannot determine whether a principle is useful or whether an implementation obeys it.