propose_adr
Propose an ADR · write tool
Writes a Proposed ADR to <project>/adr/NNNN-slug.md, taking the next free number in the Project, with status: proposed and today’s date. With no body, fills the Project’s adr/template.md, else the Workspace’s adr-template.md, else MADR minimal ({{title}}, {{date}}, {{elements}}, {{views}}). With body, writes it under a # title. elements (Elements and Deployment Targets), views (Saved Views) and supersedes (ADRs, NNNN or project:NNNN) are checked against the Workspace. Accepting it is a status and date edit in the pull request.
| Field | Type | Required | Notes |
|---|---|---|---|
project |
string | yes | The Project that owns the decision, by id. |
title |
string | yes | The decision, as the ADR’s # title. |
elements |
list of string | Elements and Deployment Targets the decision affects. | |
views |
list of string | Saved Views the decision affects. | |
supersedes |
list of string | ADRs this one replaces once accepted: NNNN in this Project, or project:NNNN. | |
body |
string | The markdown body; the template is filled when left out. | |
dry_run |
boolean | Check the write and return its diff without changing any file. Default: false. |
Output
Section titled “Output”| Field | Type | Required | Notes |
|---|---|---|---|
action |
"created" or "updated" or "removed" or "unchanged" |
yes | |
id |
string or null | yes | The qualified id written (bare for a Team, Environment or Project); null for a Deployment, or a Relationship without one. |
from |
string | ||
to |
string | ||
service |
string | ||
environment |
string | ||
target |
string | ||
files |
list of string | yes | |
diff |
string | yes | |
dryRun |
boolean | yes |
Example
Section titled “Example”Called over the Kitchen sink example Workspace.
Arguments:
{ "project": "sink", "title": "Index products in Search", "elements": [ "search" ], "dry_run": true}Result:
{ "action": "created", "id": "sink:0002", "files": [ "examples/kitchen-sink/archidocs/sink/adr/0002-index-products-in-search.md" ], "dryRun": true, "diff": "(the patch below)"}The diff, as a patch:
--- /dev/null+++ b/examples/kitchen-sink/archidocs/sink/adr/0002-index-products-in-search.md@@ -0,0 +1,25 @@+---+status: proposed+date: 2026-11-27+elements: [search]+---++# Index products in Search++## Context and Problem Statement++{Describe the context and problem statement in two or three sentences.}++## Considered Options++* {title of option 1}+* {title of option 2}++## Decision Outcome++Chosen option: "{title of option 1}", because {justification}.++### Consequences++* Good, because {positive consequence}+* Bad, because {negative consequence}Errors
Section titled “Errors”A call that fails returns isError: true, with {code, message, suggestions?} as structuredContent. This tool returns:
invalid_inputwhen the arguments don’t fit the input above.not_foundwhen the Project, or an id it names, matches nothing.validation_failedwhen the write would add a check error. Nothing is written.read_onlywhen the server reads a published Workspace Bundle, or serves HTTP without--allow-writes.source_unavailablewhen the server can’t read the Workspace.
Error codes says what to do about each.
See also
Section titled “See also”Documents Archidocs v1.4.0, the latest release.