Files
bible/rules/patterns/go-project-bible/decisions/contract.md
T

38 lines
1.2 KiB
Markdown

# Contract: Project Decisions
Part of [Project Bible](../contract.md).
## Architectural Decision Log (ADL)
Write a decision entry when:
- You choose between two non-obvious approaches
- You intentionally reject a feature or pattern
- A bug caused a rule change (e.g. cursor safety)
- You freeze or deprecate something
**Format:**
```markdown
# Decision: <short title>
**Date:** YYYY-MM-DD
**Status:** active | superseded by YYYY-MM-DD-topic.md
## Context
What situation made this decision necessary.
## Decision
What was decided, stated clearly.
## Consequences
What this means going forward. What is now forbidden or required.
```
- One decision per file, named `YYYY-MM-DD-short-topic.md`.
- When a project-specific decision is superseded, add `superseded by` to its status; retain
its unique rationale. Shared knowledge promoted to `bible` is not a second local decision:
after the updated submodule is available, remove the local shared rules and replace their
index entries with links to the owning contracts. Preserve only project-specific bindings
and consequences locally; delete a file if no unique local knowledge remains.
- Record the decision **in the same commit** as the code that implements it.