Driver
PR #33 implemented the web↔api communication decision (REST + OpenAPI + generated types/Zod) but never recorded it in the canonical docs/agdr/ location. A retro code review of #33 flagged the gap — the decision lives only in the PR body and a docs/superpowers/specs/ design doc, so /agdr search can't surface it and the REST-vs-tRPC/GraphQL reasoning risks being silently re-litigated.
Scope
- Add
docs/agdr/AgDR-0001-web-api-communication.md (first AgDR for marsa)
- Condense the existing design spec (
docs/superpowers/specs/2026-05-26-web-api-communication-design.md) into the standard AgDR template: Context, Options Considered (tRPC / GraphQL / types-only / full SDK), Decision, Consequences, Artifacts
- Docs-only — no code or behaviour change
Acceptance Criteria
Risks / Dependencies
Links back to closed #11 ("Decide on a communication method between WEB/API") and #33. No code risk — documentation only.
Glossary
| Term |
Definition |
| AgDR |
Agent Decision Record — lightweight ADR capturing context, options, decision, consequences. Stored per-project under docs/agdr/. |
| OpenAPI |
Language-agnostic REST API contract spec, generated from NestJS decorators and committed as source of truth. |
Driver
PR #33 implemented the web↔api communication decision (REST + OpenAPI + generated types/Zod) but never recorded it in the canonical
docs/agdr/location. A retro code review of #33 flagged the gap — the decision lives only in the PR body and adocs/superpowers/specs/design doc, so/agdr searchcan't surface it and the REST-vs-tRPC/GraphQL reasoning risks being silently re-litigated.Scope
docs/agdr/AgDR-0001-web-api-communication.md(first AgDR for marsa)docs/superpowers/specs/2026-05-26-web-api-communication-design.md) into the standard AgDR template: Context, Options Considered (tRPC / GraphQL / types-only / full SDK), Decision, Consequences, ArtifactsAcceptance Criteria
docs/agdr/AgDR-0001-web-api-communication.mdexists and renders on GitHub/agdr searchRisks / Dependencies
Links back to closed #11 ("Decide on a communication method between WEB/API") and #33. No code risk — documentation only.
Glossary
docs/agdr/.