Skip to content

feat(docs): add ADR template, index and CI validation (Closes #2283) - #2307

Closed
IVANLI2412 wants to merge 1 commit into
Smartdevs17:mainfrom
IVANLI2412:fix/issue-2283-adr
Closed

IVANLI2412 wants to merge 1 commit into
Smartdevs17:mainfrom
IVANLI2412:fix/issue-2283-adr

Conversation

@IVANLI2412

Copy link
Copy Markdown
Contributor

Summary

Closes #2283.

Adds Architecture Decision Record (ADR) infrastructure to the repo so architectural decisions are documented, discoverable, and validated in CI.

What changed

  • docs/adr/template.md — MADR-compliant template with all required sections:

    • Context and Problem Statement, Decision Drivers, Considered Options (with pros/cons table), Decision Outcome, Consequences (positive/negative/risks), Implementation Notes, Validation checklist, References, Changelog
    • Front-matter fields: status, date, deciders, technical-story
    • Status lifecycle: Proposed → Accepted | Rejected → Superseded | Deprecated
  • docs/adr/README.md — Index with:

    • Markdown table for ADR listing (ID, Title, Status, Date, Authors)
    • Status lifecycle diagram (Mermaid)
    • Validation rules reference
    • Local validation instructions (@adr/madr-cli)
    • Troubleshooting table
  • .github/workflows/adr-validate.yml — CI validation workflow:

    • validate-adrs job: validates front-matter (required fields, status values, ISO date format), sequential numbering (no gaps), index sync (every ADR listed in README), template structure
    • validate-template job: ensures template has all required sections and documents all front-matter fields
    • Runs on PR/push to docs/adr/**, weekly schedule (Monday 00:00 UTC)
    • Uses bash for portable validation (no external deps beyond @adr/madr-cli)

Verification

  • Template structure validated: all 9 required sections present
  • Front-matter fields documented: status, date, deciders, technical-story
  • Workflow syntax valid (YAML)
  • No external runtime dependencies beyond @adr/madr-cli (installed in CI)

Payout details

  • Base Mainnet USDC: 0xC5dD2Ea54FF138bb3f71D3466092eA31eF115868
  • Solana: DN3pfYEvdkoTBP4oaEVvemsr98fZPhDSAbfVfmewRGQ5
  • PayPal: ivanzenteno3@gmail.com

…vs17#2283)

Adds docs/adr/template.md (MADR-format template), docs/adr/README.md (index with status lifecycle diagram and validation rules), and .github/workflows/adr-validate.yml (CI workflow validating front-matter, index sync, status values, dates, numbering, and template structure). Closes Smartdevs17#2283
@IVANLI2412

Copy link
Copy Markdown
Contributor Author

Consolidating duplicate submissions for #2283 into #2293, which carries the complete change (template, index, first ADR, validator and its tests). Closing this one to keep a single reviewable PR.

@IVANLI2412 IVANLI2412 closed this Nov 24, 2026
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.

Publish ADR template and index under docs/adr with CI validation

1 participant