> ## Documentation Index
> Fetch the complete documentation index at: https://shunya.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Decision file format

> The Markdown and YAML format stored under .charter/decisions.

Decision files are the authoritative project record. The generated index and SQLite audit database are derived from or alongside these files; review Decision-file changes in pull requests like code.

## Example

```md theme={null}
---
id: "0007"
title: Use PostgreSQL for persistent storage
status: accepted
proposed_by: Jane Doe
approved_by: Alex Smith
created: "2026-07-16"
decided: "2026-07-16"
review_after: "2027-07-16"
stale_after: 12mo
scope:
  paths:
    - internal/store/**
  tags:
    - storage
enforcement: blocking
---

## Context

Why this choice matters.

## Decision

The chosen approach.

## Consequences

Operational, technical, and product tradeoffs.

## Alternatives considered

Alternatives and why they were not selected.
```

## Frontmatter fields

| Field | Description |
| - | - |
| `id` | Decision identifier. Charter uses zero-padded numeric IDs by default. |
| `title` | Short, imperative or descriptive title. |
| `status` | `proposed`, `accepted`, `rejected`, or `superseded`. |
| `proposed_by` | Proposer identity. |
| `approved_by` | Human who accepted/rejected it, when applicable. |
| `created`, `decided` | ISO date strings (`YYYY-MM-DD`). |
| `supersedes`, `superseded_by` | IDs that link replacement Decisions. |
| `review_after` | Date after which a matching Decision is stale/advisory. |
| `stale_after` | Optional recurring duration: `90d`, `18mo`, or `2y`. |
| `scope.paths` | File path globs evaluated with doublestar matching. |
| `scope.tags` | Case-insensitive whole-word terms searched in a unified diff. |
| `enforcement` | `blocking`, `advisory`, or `off`. |

## Body sections

Charter writes four known sections: Context, Decision, Consequences, and Alternatives considered. Keep the decision rationale in these sections so `show`, search, agent checks, and generated output remain useful.

You can add your own sections (for example `## Evidence` or `## Rollout notes`) and prose before the first heading: Charter preserves them verbatim, in their original position, across every lifecycle rewrite (`accept`, `reject`, `affirm`, `supersede`).

## File naming and index

Charter names a new file `<id>-<slugified-title>.md`, for example `0007-use-postgresql-for-persistent-storage.md`. `charter sync` recreates `.charter/DECISIONS.md` from the parsed Decision files. Do not hand-edit the index; edit/review a Decision file and run sync instead.

## Enforcement semantics

`blocking` affects only accepted Decisions and only when `check` receives `--diff`. `advisory` is visible but non-blocking. `off` never creates a blocking violation. Scopes are an explicit part of the contract: make them precise enough that a developer can tell why a Decision matched.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.