Spanda

ADR 0001: Permanent Architecture Governance


Problem

Spanda has grown from a language and compiler into a full autonomous systems platform — entity model, recovery, distributed decisions, Control Center, SDKs, packages, providers, and solution blueprints. Automated CI enforces layer rules and dependency direction (validate_architecture.py), but there was no permanent human review gate for:

Without a formal process, the platform risked uncontrolled growth, parallel object models, and duplicate operational engines — undermining coherence and maintainability.


Decision

Establish permanent Architecture Governance as a required engineering process:

  1. Documentationarchitecture-governance.md, twelve-gate checklist, non-duplication policy, design review process, and ADR template under docs/adr/.
  2. Contributor workflowCONTRIBUTING.md requires Architecture Review for new platform services, crates, APIs, SDKs, Control Center features, and roadmap items with platform scope.
  3. GitHub templates — architecture proposal issue template and PR template with quality gate checkboxes.
  4. Roadmap rule — new roadmap items must include Problem, Architecture Fit, Entity Integration, Duplication Analysis, Security Review, Test Plan, Demo Plan, and Release Impact.
  5. Scorecard — proposals receive structured review outcomes: Strongly Recommend through Reject.

Automated CI validation remains unchanged; this ADR adds process and culture on top of mechanical enforcement.


Alternatives

Alternative A — CI-only enforcement

Alternative B — Informal code review only

Alternative C — RFC-only process (no PR gate)


Tradeoffs

Gain Cost
Coherent platform growth; extend-before-create culture Extra issue/PR steps for architectural work
Duplication caught at proposal stage Reviewer time for scorecard
ADR trail for major decisions Contributors must learn twelve-gate checklist
Roadmap items become actionable Existing roadmap rows may lack new sections until backfilled

Consequences

Positive:

Negative:

Neutral:


Compatibility

Surface Breaking? Mitigation
REST / gRPC No
SDKs No
CLI No
Entity Model No
Contributor workflow Additive CONTRIBUTING.md documents new requirements

Migration

  1. Immediate: All new platform proposals use the architecture proposal template.
  2. PRs in flight: Add architecture section from PR template when touching platform scope.
  3. Roadmap: New items use required sections; existing items backfilled opportunistically when edited — not a blocking bulk rewrite.
  4. ADRs: Significant past decisions may be recorded retroactively when touched; ADR 0001 records this governance decision itself.

Rejected Alternatives


Architecture Review


References