George Véras Valentim

Acta MCP Server: Build Specification

Status: build specification, December 2026. Companion to PROPOSAL.md, which carries the design and its reasons. This document carries the construction: what the server is, piece by piece, and the order it is built in.

Purpose

Acta's installable form is an MCP server. Any agent that speaks MCP (Claude Code, Claude, other vendors' agents) connects to it and coordinates with the rest of its team through one store, changed only by named transitions, with effects subscribed to slices of state. The server enforces the discipline, so the discipline no longer depends on the virtue of the operators.

Thesis, unchanged: coordination is a function of the state, when the components interpret.

Architecture

One server process owns the store. State is divided into named slices. Every write is a transition: a named, validated operation applied through a single commit queue, appended to an append-only log, and assigned the next state version. After each commit, the effects subscribed to the changed slices run, once per version. There is no other write path.

The store

Transitions

Reads

Effects

Deadlines

Seats

The log and replay

Configuration shape (code-first, TypeScript)


import { defineActa } from "@acta/server";

export default defineActa({
  slices: {
    queue: { schema: QueueState, initial: { fronts: [] } },
    pulse: { schema: PulseState, initial: {} },
  },
  transitions: {
    deposit: { slice: "queue", seats: ["builder"], input: DepositInput },
    land:    { slice: "queue", seats: ["coordinator"], input: LandInput },
    stop:    { slice: "pulse", seats: ["watcher", "coordinator"], input: StopInput },
  },
  effects: [
    { reads: "queue", after: ["deposit"], run: verifyDeposit },
  ],
  seats: {
    builder:     { token: env("ACTA_SEAT_BUILDER") },
    coordinator: { token: env("ACTA_SEAT_COORDINATOR") },
    watcher:     { token: env("ACTA_SEAT_WATCHER") },
  },
});

The names in this sketch are the reference operation's own vocabulary, as an example. A team's domain names its own transitions; Acta supplies the mechanics.

Transports

Build order

Non-goals for v0

Carried open questions

From PROPOSAL.md, unchanged: effect ordering when several effects read the same slice; slice granularity guidance; exactly-once across mid-effect crashes; how a human seat's silence deadline is set without becoming a nagging machine. The build answers them in the order real use raises them, and each answer lands here as an amendment with its case.

Construction notes (amendments from the build)

The canonical text of this specification lives in the repository at github.com/george-veras/acta/SPEC.md, where the build amends it. This page is a reading copy.