Skip to content
whiteredhousePublic

About

Keep a product model true to what ships, across the software development lifecycle: a spec for authored intent and evidence-backed state, plus tools to validate, refresh, plan and apply it.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Exacly

Keep a product model true to what ships, across the software development lifecycle.

flowchart LR
    state["State<br/>what is observed"]
    config["Config<br/>what you intend"]
    config --> plan(("plan"))
    state --> plan
    plan -- "work plan" --> apply(("apply"))
    apply -- "people, agents<br/>and workflows" --> product["Product<br/>code, tests, deployments"]
    product --> refresh(("refresh"))
    refresh -- "evidence" --> state
Loading

Exacly describes a product from business purpose down to the systems that run it: outcomes, capabilities, processes, requirements, information, applications and infrastructure, and how they relate. Teams and agents author that description as config. Tooling observes the real system (builds, tests, deployments, metrics) and records what it finds as state, with the evidence behind it. Comparing the two shows what is planned, what has shipped, and where the model and the product have drifted apart.

The project has two parts:

  • The Exacly Specification, which defines the model, its traceability rules and its validation rules, with JSON Schemas for config and state.
  • Tools that follow the specification through the lifecycle, so the model is checked and kept current as part of everyday development rather than written once and left to go stale.

In one example

A team wants freelancers to get paid sooner, so the model says the reminder service must remind customers three days before an invoice is due. Here is that requirement and its links, cut down from the invoice reminders example:

records:
  - id: REQ-001
    type: Requirement
    name: Remind before due date
    statement: >-
      Send one reminder three days before the due date if the invoice remains
      unpaid and the customer can receive email.
    observe:
      tests: { workflow: .github/workflows/ci.yml, cases: ["tests/reminders/*"] }
  # ... OUT-001, CAP-001, PROC-001, APP-001 and the rest

relationships:
  - { source: REQ-001, type: supports, target: PROC-001 }
  - { source: APP-001, type: implements, target: REQ-001 }

Anyone, or any agent, can now ask why the requirement exists:

$ exacly trace REQ-001 -m spec/examples/0.2/invoice-reminders
Why
REQ-001 Requirement: Remind before due date (proposed)
  supports -> PROC-001 Process: Collect an invoice payment (proposed)
    uses_capability -> CAP-001 Capability: Collect payments (proposed)
      contributes_to -> OUT-001 Outcome: Faster invoice payment (proposed)

and what is still missing:

$ exacly gaps -m spec/examples/0.2/invoice-reminders
Requirements not verified in any context (1)
  REQ-001 Requirement: Remind before due date (proposed)

Nothing has run yet, so nothing is proven. Once the test cases under tests/reminders/ pass in that workflow, exacly refresh reads their results and records the run as evidence in state, and the gap closes without anyone editing the model. If the tests later fail, the next refresh records that, and the requirement is back on the list.

How it fits the lifecycle

Exacly borrows the plan and apply loop from infrastructure as code, and the spec/status split from Kubernetes.

Step What it does Status
Describe Author config in YAML: records, relationships, exceptions and how each record can be observed. Start from a description (greenfield) or from an existing repo and documents (brownfield). Spec 0.2
Validate Check config against the schema, the relationship rules and the traceability rules. exacly validate, 0.1 and 0.2
Refresh Observe the real system and write state: assessments per environment and the evidence behind them. exacly refresh, from test results; exacly observe manual-qa, from manual checks people commit
Ask Show a record, trace why it exists and what realizes it, list what a change affects and what the model is missing. exacly show, trace, impact and gaps; views as a pull request plan and a site; an MCP server and skill for agents
Plan Propose the next observation or investigation for each verification prerequisite in a policy, against an explicit implementation target. exacly plan, read-only verification proposals; delivery planning remains planned
Register work Bind an existing pending task to a reviewed verification plan and output target in an operator-controlled ledger. exacly executions register, with explicit ledger diagnosis, backup and recovery; durable dispatch has separate authorization
Apply Dispatch an authorized plan action as traceable work for a person, agent or workflow. Proposed automation
Reconcile Check whether a selected plan action's verification goal is satisfied by fresh admitted evidence, optionally checking its registered pending-task binding. exacly reconcile github-actions --dry-run, read-only preview
Compose evidence Freshly admit and gate every required member under its own approved producer and model contract, preserving individual evidence and an aggregate decision. exacly composition validate and compose github-actions
Complete Complete one registered local verification task from fresh admitted evidence and merged current state, retaining a recoverable intent and completion receipt. exacly complete github-actions, with explicit local authorization; new ledgers are completion-ready, and existing version-1 ledgers need a copy-only upgrade

See Exacly's model for record lifecycles, traceability and observed verification and delivery.

Where it comes from

Exacly started from a gap in AI-assisted development. Agents now write code faster than anyone can keep a description of the product true to it. Spec-driven tools treat the spec as a prompt that goes stale once the code is written, and architecture tools draw what exists without saying what was intended or proven. Our research found tools for each step of the loop from model to code and back, but none that checks code against the intended model, so that return path is where Exacly starts.

Its ideas come from established practice:

  • ArchiMate informs the record types and relationships, from outcomes and capabilities down to infrastructure. Exacly keeps its own vocabulary and does not claim ArchiMate conformance.
  • UML fits the detailed views of structure and behaviour, such as interactions, workflows and state transitions.
  • Terraform gives the loop: authored config, recorded state, and plan and apply to bring them together.
  • Kubernetes gives the split between what was asked for and what was observed, as spec and status do, with status written only by tooling.
  • Supply chain attestations such as in-toto and OpenVEX shape evidence: state cites a test run or deployment record rather than copying it, and a negative assessment must give its reason.
  • OpenAPI gives the versioning: semantic spec versions with dated schema iterations.

Repository layout

Path Contents
spec/ Specification versions, JSON Schemas, worked examples and data-driven test cases
python/ exacly, the command and Python package: validate, refresh, questions, verification plans, views and the MCP server
skills/ The skill that tells coding agents how to work with a model
docs/ Research and pilot notes
docs/site/ Static landing-page mockup, worked model example, and GitHub Pages instructions

Quick start

Validate the invoice reminders example, a small slice of a product written as 0.2 config:

uv tool install exacly
exacly validate spec/examples/0.2/invoice-reminders

Version 0.6.0 adds verification planning, installed evidence packaging and producer-policy drafting, live evidence admission and recoverable local completion. New ledgers are completion-ready, and admission files are private. Select the version explicitly for a one-off run:

uvx --from 'exacly==0.6.0' exacly validate spec/examples/0.2/invoice-reminders

An unpinned install selects the latest stable release. See the release notes and upgrade paths before using existing ledger files or consuming JSON reports with this version.

The 0.7.0rc1 release candidate adds separately authorized GitHub task dispatch, isolated bounded local execution, reviewed artifact-to-Git handoff, evidence composition and JUnit readiness reports. Opt into the consumer trial with an exact prerelease pin:

uvx --from 'exacly==0.7.0rc1' exacly validate spec/examples/0.2/invoice-reminders

The candidate's local runtime and storage requirements are in the package reference. Remote source publication and unattended end-to-end automation remain future work.

In your own project, keep config in spec/exacly/ and pass the commit it was validated at with --revision "$(git rev-parse HEAD)".

With coding agents

exacly mcp runs an MCP server on stdio, so a coding agent can look up records, trace why they exist, and check what a change affects while it works. To add it in Claude Code, from the repository that holds the model:

claude mcp add exacly -- uvx exacly mcp

Copy the exacly skill to .claude/skills/exacly/ too: it tells the agent when to ask the model and how to keep config true to a change. The MCP server lists its tools.

In CI

Other repositories run Exacly with the Exacly action: check validates the model and fails the job when it doesn't conform, and plan comments the change plan on each pull request.

- uses: whiteredhouse/exacly-action@v0
  with:
    model: spec/exacly

Its README has the full workflow and inputs.

Development

The repository uses mise for Python, uv and tasks. Run what CI runs (tests, Ruff, mypy and every example) with:

mise run check

For core development without the supported Linux isolation runtime, run mise run check-core. It runs a development subset plus lint, type checks and examples, writing reports/core-junit.xml without refreshing state or evaluating readiness. It omits selected local runtime, ownership and handoff test modules and does not establish their complete contracts. Full Linux CI still runs mise run check with the real boundary tests. See the development tasks.

The check also evaluates ci/verification.yaml against a target for the checked commit. It requires verification of every active Requirement, independently of delivery. The model binds stable test-case IDs rather than a workflow name, so both the Spec and Release workflows can supply those results. Results and the selected target are written under reports/. See release notes for package changes.

Status

Browse Exacly's own model and recorded state. CI updates this view after successful checks on main. The raw state retains each observation’s revision and time.

Exacly is at 0.x and unstable: anything may change until 1.0, which comes with the first outside adopter. See Versioning.

Each part of Exacly has its own version, tagged as <part>-vX.Y.Z, as release-please and Changesets tag the parts of one repository:

  • The specification, spec-vX.Y.Z: the file in spec/versions/ and the exacly: line of every model document.
  • The Python package, python-vX.Y.Z: the exacly package and command, with validation, refresh, questions, views and the MCP server. Up to 0.1.0 it was exacly-validate, tagged validator-vX.Y.Z. Pushing a python-v tag publishes that version to PyPI, once the tag matches the version in pyproject.toml.
  • The GitHub Action lives in whiteredhouse/exacly-action, tagged vX.Y.Z with a moving v0, as workflows expect. Each action release runs one package release.
Package Spec versions it reads
0.1.0 (exacly-validate) 0.1, 0.2
0.2.0 0.1, 0.2
0.2.1, the first on PyPI 0.1, 0.2
0.3.0: assessment sources, combined results, lists of bindings, the manual-qa extension 0.1, 0.2
0.4.0: independent verification, explicit assessment targets and readiness policies 0.1, 0.2
0.5.0: incomplete execution of case-bound tests gives inconclusive verification 0.1, 0.2
0.6.0: operator-controlled verification work, installed producer tools and recoverable local completion 0.1, 0.2

About

Keep a product model true to what ships, across the software development lifecycle: a spec for authored intent and evidence-backed state, plus tools to validate, refresh, plan and apply it.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages