Skip to content

Architecture Decision Index ​

Status: Approved foundation; domain and package reviews are ongoing
Date: 2026-07-28
Beads issue: archie-core-5d7

Purpose ​

This file is the navigation point for Archie's target architecture. It is deliberately short. Architectural decisions are separated by domain or requirement so an implementation task can load only the rules governing its scope.

Implementers MUST read the decision document for the domain or requirement they are changing. They MUST NOT infer permission to change neighbouring domains from a broader restructuring objective.

Global invariants ​

  • Organise code around cohesive application responsibilities, not generic technical mechanisms.
  • Domains own their behaviour, vocabulary, state, commands, events, policy implementations, runtime settings, and required service contracts.
  • Domains do not depend on infrastructure or manipulate another domain.
  • internal/app owns composition; cmd/* remains thin.
  • Cross-domain work uses an explicitly owned command, event, or approved shared contract.
  • Process boundaries are deployment choices and do not determine source-code ownership.
  • Existing package names and boundaries have no presumption of survival.

The words MUST, MUST NOT, SHOULD, and MAY are normative.

Decision documents ​

ScopeAuthoritative document
Repository layout, domains, composition, deployments, and optional materialarchitecture/organisation.md
Dependency direction, domain contracts, infrastructure, commands, events, and wire contractsarchitecture/dependencies-and-contracts.md
External configuration, runtime settings, and dissolution of internal/configarchitecture/configuration.md
Persistent actor identity, ownership, lifecycle, and attributionarchitecture/identity.md
Agent definitions, workflows, workflow executions, tools, and worker boundariesarchitecture/agent-system.md
Personal-assistant interactions, messaging channels, and optional promotion into durable workarchitecture/messaging-and-work-intake.md
Shared policy evaluation and domain-owned policy semanticsarchitecture/policy.md
Safe source/configuration changes, health supervision, and recoveryarchitecture/safe-change-and-recovery.md
Plugin framework, plugin implementations, and extension isolationarchitecture/plugins-and-extensions.md
Generated references, deprecations, and changelog generationarchitecture/generated-documentation.md
Remaining package destinations, data migrations, runtime cutover, and completion criteriaarchitecture/migration-decisions.md
Domain/feature research, design interview, and required handoffarchitecture/package-review.md

Deferred decisions ​

The remaining package-placement, data-migration, shared-mechanics, process- boundary, and cutover decisions are maintained in architecture/migration-decisions.md.

Each decision is made in its focused document after code-grounded review.

Last updated:

Built with VitePress.