Skip to content

docs: Add ADR/AID templates and ADR-0001: agent planning rules#730

Open
adamreynolds-io wants to merge 3 commits intomainfrom
docs/adr-aid-templates
Open

docs: Add ADR/AID templates and ADR-0001: agent planning rules#730
adamreynolds-io wants to merge 3 commits intomainfrom
docs/adr-aid-templates

Conversation

@adamreynolds-io
Copy link
Copy Markdown
Contributor

Summary

  • Adds MADR-compatible ADR template at docs/adr/TEMPLATE.md
  • Adds AID (Agent Implementation Directive) template at docs/aid/TEMPLATE.md
  • Adds ADR-0001 establishing rules for how AI agents plan and execute work

What are AIDs?

AIDs are derived from accepted ADRs. They translate a human decision into scoped, executable guidance for agents — with planning rules, affected components, validation criteria, and anti-patterns.

ADR/AID lifecycle

Engineer + AI ──▶ ADR (draft)
            Engineer reviews
                ADR (accepted) ◄── gate 1
              AI generates AID
            Engineer audits AID
                AID (approved) ◄── gate 2
            Agent executes work
          Engineer reviews output ◄── gate 3
                  Merged

Test plan

  • Review ADR template for MADR compatibility
  • Review AID template for completeness
  • Review ADR-0001 rules — are the six rules sufficient? Too strict?
  • Consider: do we need a lightweight path for small changes?

🤖 Generated with Claude Code

Introduce MADR-compatible ADR template and AID template for
agent-assisted planning. ADR-0001 establishes rules for how
agents plan and execute work.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@adamreynolds-io adamreynolds-io requested a review from a team as a code owner March 26, 2026 10:08
Engineers can skip the ADR/AID cycle at their judgement,
with a one-line justification in the PR description.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@timjroberts timjroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sensible. Only thoughts in my mind:

  • Indicate that the ADR may be assisted by AI? Right now in the proposed lifecycle it shows Engineer + AI which implies that this is always the case. At least it did to me on first glance.
  • Is the ADR and AID produced in separate PRs, or through a draft PR? Or is this process local to the Engineer's machine?
    There may be use for wider team review at each gate before the AI agent executes the AID?

@sp-io sp-io changed the title Add ADR/AID templates and ADR-0001: agent planning rules docs: Add ADR/AID templates and ADR-0001: agent planning rules Mar 26, 2026
@sp-io
Copy link
Copy Markdown
Contributor

sp-io commented Mar 26, 2026

Is the Gitnexus a mandatory tool right now ? I think we should be tool agnostic in such a document. Gitnexus should be specified in CLAUDE.md / AGENTS.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants