Website · Releases · Docs · Contribute · Security
Warning
Integration candidate — acceptance blocked; not production-certified. This checkout's package.json declares 1.0.9-rc.72, while its configured runtime entry point remains the separately pinned RC.71 file. Local metadata does not prove publication, independent rebuild, installation, or release approval. On 2026-11-07, npm test failed in two V2 AGG regression checks; full Rust workspace tests and all-target Clippy failed at the artifact read-port integration-test import, although Rust workspace check and formatting passed. See the current repository status, known issues, and release policy. The formal Phase 2 production/frozen-release gate remains BLOCKED_NOT_READY (execution_permitted=false). RC.11 and RC.72 dated acceptance packets remain candidate-specific historical evidence; do not treat them as current validation.
Runalith turns multi-step agent work into an explicit, inspectable workflow: approved immutable plans, dependency-aware tasks, typed evidence, durable SQLite state, bounded local execution, and recovery records.
Runalith is a runtime, not a hosted model or remote execution service. Reasoning is supplied by the MCP client/assistant; supported deterministic commands run locally under a plan-bound contract. The installable .mcpb is a standard bundle container for compatible clients, not a proprietary Runalith-only format.
- Why Runalith
- Capabilities
- Adaptive Goal Graph (AGG)
- Workflow lifecycle
- Quick start
- Connect an MCP client
- How a workflow runs
- Documentation
- Development commands
- Security and project status
Agent reasoning can be flexible; execution should still be reviewable. Runalith separates the assistant's reasoning from the runtime's persisted plans, approvals, task execution, and evidence checks.
| Principle | Runtime behavior |
|---|---|
| Approval before execution | A proposal is not authorization. Dispatch requires an explicitly approved, immutable plan. |
| Durability by default | Workflow state, task transitions, artifacts, and audit events are persisted in SQLite for inspection and recovery. |
| Evidence over assertion | Completion gates examine supported success predicates, artifact schemas, hashes, and producer lineage—not narrative claims alone. |
| Local-first boundaries | The stdio MCP server does not open an HTTP listener; deterministic local commands run under plan-bound contracts. |
- Dependency-aware orchestration: tasks become eligible only when planned dependencies and required evidence are satisfied.
- Reusable workflow policy: versioned policy packs can pin supported constraints and success predicates before approval.
- Adaptive Goal Graph (AGG): bounded graph search, append-only Goal/Idea knowledge, source/artifact evidence resolution, review-only Plan/Execution Graph proposals, and separate trust/approval gates. AGG does not bypass the standard workflow runtime.
- Local observability: an optional loopback-only dashboard provides read-only inspection of workflow state.
- MCP-native integration: connect compatible clients over stdio or install the
.mcpbbundle in a client that supports it.
AGG is Runalith's graph-based planning and evidence subsystem. It is not a general-purpose autonomous agent, a hosted model, or an independent execution engine. It proposes and validates pathways, then hands any approved work to Runalith's existing workflow templates, immutable plans, task contracts, and lifecycle.
flowchart TD
In[Caller graph or persisted Goal/Idea knowledge] --> Search[Validate graph and run bounded search]
Search --> Candidate[Unverified candidate and Plan Graph draft]
Candidate --> Compat[Template compatibility and explicit step/task mapping]
Compat --> Readiness[Execution readiness: roles, DAG, typed evidence, lineage]
Readiness --> Proposal[Review-only Execution Graph proposal]
Proposal --> Intent[Typed action intent and input bindings]
Intent --> Reviewer[Independent reviewer identity attestation]
Reviewer --> Plan[Normal preflight and immutable workflow plan]
Plan --> Approval[Explicit workflow approval]
Approval --> Dispatch[Normal dispatch and task lifecycle]
Every stage can stop with an explicit blocker. A graph hash establishes content identity, not that a claim is true. A signed Goal/Idea snapshot verifies only the exact snapshot and the external verifier's adjudication; it does not by itself verify a proposed plan, authorize actions, approve a workflow, or permit dispatch. Plan Graph and Execution Graph records are review artifacts until the distinct downstream checks pass. The detailed AGG system guide documents the contracts and MCP Reference lists the exact tool schemas.
| Subsystem | Purpose and current boundary |
|---|---|
| Deterministic graph search (Phase 1) | Validates a caller-supplied schema-v1 graph, applies bounded beam search over nominal transitions, keeps an audit trace, and projects complete candidates into review-only Plan Graph drafts. Search is bounded/heuristic, not an optimality proof. |
| Persistent Goal/Idea knowledge | Stores stable cross-goal nodes, immutable revisions, memberships, typed edges and provenance in SQLite. Save/capture operations do not mark claims verified or make them executable. |
| Source/evidence verification | Resolves source-byte identity and durable artifact/result/attempt/completion lineage. Hashes and lineage do not alone establish claim truth or evidence independence. |
| External trust | A verifier signs the exact snapshot/evidence-manifest decision; a separate reviewer identity provider attests an exact action candidate/plan binding. The two trust domains require different provider identities and disjoint Ed25519 roots. Human approval remains a separate step. |
| Plan/Execution Graph integration | Checks mapping against existing workflow templates, typed role/artifact contracts, DAG ancestry and current evidence; may persist review-only proposals and candidates before the normal workflow compiler/preflight/approval path. Those records are not executable or authorized. It is not a standalone arbitrary-command executor. |
| Shadow learning/reuse (Phases 2–4) | Learned-discriminator search, MCTS search and workflow-outcome capture are opt-in/experimental paths. The shadow searches do not authorize or execute; capture records bounded, unverified lessons/metadata. These are not production acceptance evidence. |
| Observability | Planner invocation telemetry is recorded separately from graph/trust/acceptance semantics; the optional Dashboard reads telemetry/workflow state and does not make approval or execution decisions. |
Current source/release boundary (2026-11-01): this worktree's package version is 1.0.9-rc.72; its runtimeEntryPoint is pinned separately to server/index-v1.0.9-rc.71-versioned-approval-subsystem-20261030.js. Do not infer the runtime filename from the package version. The RC.72 source-inventory addendum records local engineering validation, not an independently rebuilt, published, installed, or approved release. Production/frozen-release gates remain open, including host-owned trust configuration, independent external checkpoint authority, and owner/provider reconciliation. RC.11 acceptance and host observations apply only to their recorded candidate and observation date; they are not current host-state evidence. See the RC.72 source-inventory successor, release policy, and trust provisioning.
flowchart TD
A[Propose workflow] --> B{Explicitly approved?}
B -- No --> C[Remain proposed or blocked]
B -- Yes --> D[Compile immutable plan]
D --> E[Dispatch dependency-ready tasks]
E --> F[Validate artifacts and provenance]
F --> G{Success contract satisfied?}
G -- No --> H[Persist failure and recovery state]
G -- Yes --> I[Complete with evidence]
The workflow_coordinator_step API can drive much of this lifecycle one high-level step at a time, but it does not bypass approval or replace the client assistant's reasoning. See the workflow lifecycle and recovery guide.
- Node.js 22.13 or newer and npm.
tmuxonly when exercising deterministic local execution tasks.- An MCP-compatible client for stdio integration. Clients that support MCPB can install the
.mcpbbundle using their own installation flow.
git clone https://github.com/nplongx/runalith.git
cd runalith
npm ci
npm testnpm run pack:runalith-mcpbThe packer creates a uniquely named candidate under dist/, validates the archive, smoke-tests the extracted MCP runtime, checks tool schemas, and runs the local acceptance suite. Use the exact path and SHA-256 printed by the command. A candidate is not automatically a release or production approval.
A client that supports stdio MCP can launch the versioned entrypoint selected by runtimeEntryPoint in package.json. In this checkout, that field selects server/index-v1.0.9-rc.71-versioned-approval-subsystem-20261030.js; do not infer the filename from the package version. server/index.js is a historical compatibility input, not the selected entrypoint. Configure the selected path as an absolute path, for example:
{
"mcpServers": {
"runalith": {
"command": "node",
"args": ["/absolute/path/to/runalith/server/index-v1.0.9-rc.71-versioned-approval-subsystem-20261030.js"],
"env": {
"RUNALITH_DATA_DIR": "/absolute/path/to/private/runalith-data",
"RUNALITH_WORKSPACE": "/absolute/path/to/workspace"
}
}
}
}The exact configuration syntax varies by client. Keep the data directory private and choose a dedicated workspace. The MCP entrypoint uses newline-delimited JSON-RPC on stdin/stdout and does not open an HTTP listener.
- Propose:
workflow_createrecords a proposal without authorizing execution. - Review and approve: inspect the proposal, then call
workflow_approveto authorize and compile its immutable plan. - Dispatch and execute:
workflow_dispatchstarts the approved workflow. Tasks are released in dependency order; deterministic commands must come from plan-bound execution contracts. - Inspect and recover: use workflow, event, artifact and diagnosis tools to inspect durable state. Failed or incomplete work remains failed or blocked until it is actually resolved.
- Synthesize:
workflow_complete_synthesisapplies reviewer, artifact, provenance and success-contract gates before terminalizing the workflow.
See the documentation index for architecture, tool schemas, policies, and operational guides.
| I want to… | Read |
|---|---|
| Build, connect and verify the MCP runtime | Quickstart |
| Understand AGG from graph search through evidence and execution gates | Adaptive Goal Graph system guide |
| Review the latest Goal/Idea → Plan → Execution integration checks and release blockers | Integration follow-up dossier |
| Provision verifier/reviewer trust and understand blockers | AGG trust provisioning runbook and RC.11 acceptance |
| Understand AGG benchmark methodology and what has/has not been demonstrated | AGG empirical evaluation and Phase 1 benchmark methodology |
| Understand approval, execution, recovery and synthesis | Workflow lifecycle and recovery |
| Understand runtime and trust boundaries | Architecture |
| Understand subsystem boundaries, public API rules and repository extraction sequence | Subsystem architecture |
| Understand deterministic batch execution | Durable batch execution |
| Look up MCP tool inputs and schemas | MCP tool reference |
| Understand names and compatibility identifiers | Terminology guide |
| Use custom roles and Agent Skills | Agent Skills |
| Combine specialist reasoning with deterministic execution | Hybrid engineering workflow |
| Define and attach reusable workflow policies | Workflow policies |
| Run the read-only local dashboard | Dashboard guide |
| Contribute code or documentation | Contributing and documentation workflow |
| Understand known issues and release limits | Known issues |
| Read the testing-vs-production release standard | Release policy |
| Command | Purpose |
|---|---|
npm start |
Start the MCP stdio server for local development. |
npm test |
Run the local acceptance and regression suite. |
npm run test:protocol |
Test the structured execution protocol. |
npm run test:workflow-m4 |
Test workflow-plan, role-input, artifact and orchestrator contracts. |
npm run test:workflow-state-port |
Test workflow-state/control ports, persistence participants, and subsystem boundary contracts. |
npm run test:public-subsystem-alignment |
Verify host source mirrors against the pinned public subsystem repositories. |
npm run dashboard |
Start the optional read-only dashboard, normally at http://127.0.0.1:8318. |
npm run test:dashboard |
Run dashboard integration and security regression tests. |
npm run pack:runalith-mcpb |
Build and verify a local MCPB candidate. |
npm run docs:check |
Check local Markdown links and documentation constraints. |
npm run test:package-reproducibility |
Verify deterministic local package construction and extracted package checks. |
node scripts/build-static-site.mjs |
Render site/index.html from the versioned template, package entry point, current MCP tool inventory, and matching acceptance document. |
npm run site:check |
Verify generated-site parity, navigation/local anchors, link schemes, version/tool-count alignment and required security/rollout warnings. |
node scripts/check-static-site.mjs --check-external-links |
Additionally perform read-only HTTP checks of distinct external URLs; network rate limits and remote policy can make this gate inconclusive. |
The current read-only Goal/Idea and active-workflow reconciliation overlay is documented in the reconciliation companion. The historical AGG architecture document remains byte-identical because the offline benchmark pins its exact bytes.
Runalith is designed for controlled local development and testing; it is not certified for production use. Structured execution and filesystem checks are defense-in-depth, not an operating-system sandbox. The dashboard is a loopback-only read-only view, not an authenticated remote admin service, and output redaction cannot guarantee that every secret is detected.
Published packages are experimental testing candidates, not production certifications. Use the Releases page for available packages, verify the checksum, and read the corresponding notes before installation. Formal production/frozen-release gates remain separate from the minimum standard for a testing pre-release; see release policy and known issues.
Runalith is distributed under the MIT license. Security issues should follow SECURITY.md.