Skip to main content
This example records a storage choice and makes changes under internal/store/ require an acknowledgment in CI.

1. Initialize Charter

2. Draft a Decision

Use flags for a repeatable command, or run charter propose with no flags for a short interactive prompt.
Charter assigns the next numeric ID, writes a proposed Markdown file, and regenerates .charter/DECISIONS.md.

3. Review and accept it

Inspect the draft before accepting it:
The Decision is now accepted and takes effect for agent checks and CI scope matching.

4. Acknowledge a governed code change

When a commit changes internal/store/**, reference the Decision in the commit message:
Charter: 0001 is an equivalent trailer.

5. Run the gate

Before opening a pull request, inspect local changes:
This reports matching Decisions but does not enforce acknowledgments because uncommitted work has no commit messages. In CI, compare the branch with its base ref:
For a blocking match, an absent trailer exits with status 2; a matching trailer clears that violation.

Next steps