Getting Started
Prerequisites
Section titled “Prerequisites”- Node.js 22 LTS
- pnpm 9+ (
corepack enable)
Install
Section titled “Install”Clone the repository and install dependencies.
git clone https://github.com/JGalego/ACT-protocol.gitcd act-protocolpnpm installThe artifact-type schemas and their TypeScript types are already generated and committed. You only need this if you change a schema and want to regenerate them yourself.
pnpm run generate:artifact-typespnpm run generate:typesThen run every offline quality gate at once: formatting, linting, strict type checking, schema fixture validation, and the full test suite.
make verifyWorking on a single package instead? Every package under packages/, services/, and apps/ builds and tests independently, so pnpm --filter @act/ledger run test finishes in a fraction of the time make verify takes.
Run the animated protocol demonstration
Section titled “Run the animated protocol demonstration”pnpm run dev:explorer# -> ACT Explorer at http://localhost:4173The seeded walkthrough animates a complete accountable chain: human intent, an AI proposal, a requirements transformation, a scoped approval, implementation, tests, a semantic drift finding, a human challenge, a revision, and a runtime observation. Use play/pause, step controls, arrow keys, or the timeline scrubber. Select any record to inspect its rationale, assumptions, uncertainty, evidence, lineage, confidence, and envelope content. The Data source control can also load ordered signed envelopes from a running ACT /v1/events endpoint. Seeded identities and digests are visibly marked as non-production demonstration data.
Start the reference API service
Section titled “Start the reference API service”SQLite-backed, local development mode:
ACT_DEV_MODE=true pnpm --filter @act/api run dev# -> Fastify listening on :4000; see services/api/openapi/act-v1.yamlUse the act CLI
Section titled “Use the act CLI”Against a local embedded workspace:
cd /somewhere/elsenode <path-to-repo>/apps/cli/dist/bin/act.js init --jsonnode <path-to-repo>/apps/cli/dist/bin/act.js intent create "Ship the thing" --jsonnode <path-to-repo>/apps/cli/dist/bin/act.js verify --jsonOnce published, this will just be npm install -g @act/cli && act init.
Building against ACT from your own code
Section titled “Building against ACT from your own code”Reach for @act/sdk in TypeScript or act-sdk in Python rather than hand-building signed envelopes yourself. Both handle canonicalization, digesting, and Ed25519 signing, and both are checked against the same conformance vectors, so an event built with one is indistinguishable from an event built with the other by the time it reaches the API.
Next steps
Section titled “Next steps”- Architecture walks through how a transformation actually flows through the protocol.
- Specification covers the normative node classes, semantic-change taxonomy, and intent authority model.
- API Reference lists every
/v1operation the reference service implements. - Examples has six more seeded end-to-end scenarios. Deployment runs the full stack via Docker Compose or Helm.
- Design Decisions covers the history behind ACT’s less obvious implementation choices.