Anvil

Workflows
as data.

Anvil is the workflow engine at the center of everything Foundry builds. Any workflow as a state machine: roles, transitions, review gates, hooks, and artifacts — all declared in data, none hardcoded. One engine drives software development, measurement, and custom business operations.

Anvil is infrastructure, not a product you buy. You see the workflows it enforces — in Forge's cockpit, in Temper's measurement loop, in the custom tools Foundry builds for you. The engine itself stays out of sight.

State machines defined as data.

Anvil represents every workflow as an explicit directed graph: states, allowed transitions, role assignments per state, hooks that fire on entry and exit, and artifact requirements that must be satisfied before a transition completes. Nothing is implicit.

drafting
author
spec.md ↘ drafting-start
spec_review
reviewer
spec-review.md ↘ review-start
on: changes_requested
on: satisfied
spec_revision
author
spec.md
approved
terminal
✓ workflow complete
01 — GRAPH

States and transitions

Every workflow is a directed graph. States are named; transitions declare which states can follow which, and under what conditions. Anvil enforces these — an artifact cannot move to a state that has no declared incoming transition from its current one.

02 — ROLES

Roles per state

Each state belongs to a role: author, reviewer, orchestrator. The engine routes work to the right actor automatically. A reviewer cannot commit to a state that belongs to an author, and vice versa.

03 — CONTRACTS

Artifacts and hooks

Each state declares which artifacts it requires and which hooks fire on entry and exit. Hooks deliver structured context to the actor about to work. Artifact requirements are checked before a transition is allowed to complete.


One engine for every workflow Foundry runs.

The same state machine primitive that governs a software development track also governs an agent quality measurement campaign, a tax preparation review, and a custom healthcare operations process. Domain changes; the structural guarantees don't.

SDLC

Software development lifecycle

Propose → spec → plan → implement → review → reflect. Each phase is a state; each transition requires its artifact. Reviewers cannot be skipped.

How Anvil enforces this
Anvil enforces the SDLC for every track Foundry runs internally and for every engineering team Foundry deploys it for. An artifact cannot move to a state that has no declared incoming transition from its current one — this is enforced at the engine level, not by convention.
MEASUREMENT

Agent quality measurement

Discover → design quality criteria → measure → analyze → hypothesize → experiment → decide. The measurement loop Temper runs is an Anvil workflow.

What's declared vs hardcoded
Quality criteria, grading policies, and experiment approvals are all declared states with required artifacts and explicit transitions. Changing a quality policy is editing data, not writing code. The engine enforces the new policy without a deploy.
OPERATIONS

Customer business operations

When Foundry embeds with a customer, it encodes their specific workflows into Anvil definitions. The customer doesn't interact with Anvil directly; they see the tool Foundry built on top of it.

COMPOSITION

Cross-workflow composability

Workflows reference each other. A spec-review track can spawn a sub-track for scope negotiation. Anvil's graph model supports parent-child composition without coupling workflow definitions.


Customers see Forge.
Anvil is the engine underneath.

Anvil is not a dashboard. It doesn't have a UI of its own. The layer customers and teams interact with is Forge — the cockpit that renders workflow state visually, surfaces review gates as native UI elements, and lets a supervisor approve or intervene from any device.

Forge is the cockpit that sits on top of Anvil and makes its state machines visible and interactive. Read about Forge →

Temper uses Anvil to structure its measurement and experiment workflows. Forge uses Anvil to enforce spec-first development across every track. When Foundry builds a custom tool for a customer, that tool's review queues, approval chains, and exception-handling steps are Anvil definitions running underneath. Full picture: platform page.


See how Foundry deploys this for you.

When Foundry works with a business, Anvil is already running. Customers get the enforcement and auditability of a production-grade workflow engine without having to build or operate one themselves.

See how an engagement works →