Decisions with a history.
Record the alternatives and the reason you chose one. Accept it when the team agrees. If the decision changes, keep the trail.
Attach the files it governs so an agent sees the decision when working on them.
How decisions workStore money as integer cents
- Context
- Fractional values can drift during repeated calculations.
- Decision
- Use integer cents for amounts. Format decimals for display.
- Governs
src/billing/**
persist adr create "Store money as integer cents"
Store money as integer cents
- Review
- The team has accepted the proposal and its consequences.
- Agent context
- Changes to billing bring this decision into the review.
- Governs
src/billing/**
persist adr accept store-money-as-integer-cents
Store amounts in currency minor units
- What changed
- Billing now supports currencies with different decimal scales.
- History
- The old decision links to its accepted replacement.
- Follow-up
- Fill in the new reason and alternatives. Doctor flags references to the old ADR.
persist adr supersede store-money-as-integer-cents "Store amounts in currency minor
units"
Interactive illustration of the decision lifecycle.