skip to content
The platform

Architecture that is executed, not filed.

CAS is a flow runner that lives next to your code. It reads the repository, builds an evidence-anchored model of the system, measures that model against your governance rules, and projects the result back into the files your team and your coding agents actually read.

The continuous architecture loop

Four phases, run on every meaningful change

The loop is not a methodology you adopt. It is a workflow that executes, produces artefacts, and fails a check when the repository and its architecture disagree.

01

Prevent

Stage architectural rules and approved patterns into AGENTS.md and .cas/rules before coding begins. AI agents and developers write code strictly bounded by verified repository constraints.

Produces
  • AGENTS.md steering guidance
  • Positive evidence boundaries
  • Pattern contracts
  • Fast-track pathway
02

Discover & Model

Parse manifests, workflows, configuration and AST symbols. Reconstruct container and component models where every element traces to verifiable positive evidence.

Produces
  • System context
  • Container model
  • Component model
  • Flow catalogue
03

Detect & Correct

Compare candidate pull requests against reference architecture in CI. Measure drift, validate governance controls, and raise candidate gaps or auto-approve compliant PRs.

Produces
  • Governance score
  • Drift delta scoring
  • Candidate gap register
  • Automated PR gates
04

Evolve

Extract recurring signals, evaluate candidate patterns for human architect promotion, and ratify authoritative ADRs that project back into all future agent prompts.

Produces
  • Pattern promotion workflow
  • Authoritative ADRs
  • Capability lineage
  • Updated steering profiles
Where it runs

No new platform to adopt

CAS executes on the infrastructure your repository already has. There is no agent to install on developer machines and no second source of truth to keep in sync.

Command line

A single runner binary executes any declared flow against a target workspace. The same entrypoint a developer uses locally is the one CI calls.

cas run <flow> --target <workspace>

CI workflows

Six principal GitHub Actions workflows cover validation, steering projection, the continuous architecture loop, managed synchronisation, governance validation and portal publishing.

.github/workflows/*.yml

Governance portal

The generated view pack is published as a static site, so every stakeholder reads the same architecture without opening an IDE.

GitHub Pages

Knowledge layer

A provider interface holds the reconciled model, patterns, decisions and evidence between runs, and serves them to every flow that needs prior context.

KnowledgeProvider

Reasoning layer

Language-model reasoning is reached through a provider abstraction with a structured-output contract — and a deterministic fallback when no provider is configured, so a run never silently invents architecture.

LiteLLM + structured output

Artefacts

Every run writes its outputs to disk: architecture views, catalogues, evaluation reports, gap registers and the evidence index behind them.

Run artefact directory
Against what you already have

Every team already owns part of this. Here is the part that is missing.

CAS does not replace diagrams, decision records, lint rules or your service catalogue. It closes the loop between them: one evidence-anchored model, scored on every run, and projected back into the files that steer the work.

You have today

Diagrams in a drawing tool

A shared picture of how the system was meant to look, useful in a workshop.

Where it stops

Nothing connects a box to a file. The picture is accurate on the day it is drawn and silently wrong from the next merge onwards.

What the run adds

Context, container and component views are regenerated from the evidence collected in the run, and every element carries the file path it was reconstructed from.

You have today

Architecture decision records

A durable record of what was decided and why, kept next to the code.

Where it stops

A decision record is never checked against the repository. Nothing tells you the month the code stopped honouring it.

What the run adds

Decisions are read as governance input and scored on every run. A rule declared but not enforced anywhere lands in the gap register as an unenforced convention.

You have today

Lint rules and dependency checks

Hard enforcement of local rules — import boundaries, layer direction, naming.

Where it stops

Someone has to write and maintain every rule by hand, and the checks know nothing about system-level intent or how far the whole estate has drifted.

What the run adds

Recurring structure is extracted as a candidate pattern, promoted once it clears the criteria, and generated into the rules and templates that the prevent and correct controls enforce in CI.

You have today

Asking a coding agent to explain the system

A fluent answer in seconds, and a decent starting point for a new joiner.

Where it stops

The answer is plausible whether or not the symbol exists. There is no manifest to audit, and two runs can disagree.

What the run adds

Extraction is positive-evidence-only and runs deterministically when no model provider is configured. Every claim resolves to an evidence id in the ledger you can open.

You have today

A service catalogue or developer portal

An inventory of services with owners, on-call and links, good for operations.

Where it stops

The catalogue describes what teams registered, not what the code contains, and it degrades as soon as registration slips.

What the run adds

The model is reconstructed from the repository on a schedule, so the inventory is a run output rather than a form somebody remembered to fill in.

See the evidence behind a claimOpens the console with a completed run, results unlocked.
Proof by self-application

The first repository CAS governs is its own

Everything in the live console for ideas-to-life/cas-system was produced by the platform reading itself: containers, components, flows, controls and the evidence behind each one. The candidate gaps it reports about itself are included too — a governance tool that hides its own findings is not a governance tool.

1 container and 20 components reconstructed from source with high confidence48 executable flows catalogued across GitHub Actions, CLI and the step registry6 controls enforced in CI across prevent, generate and correct; detect is advisory only120 evidence items anchor every claim; 50 candidate gaps stay visible instead of hidden
Open the self-hosted dataset

Latest self-discovery run

Forensic diagnostic against the CAS runner itself

48
Flows discovered
CI workflows, CLI entrypoints and code-declared flows
20
Components modelled
Across 1 container
120
Evidence items
Every element traced to a source artefact
50
Candidate gaps
Reported, not suppressed

The same run, on a repository you care about

Pick one repository, tell us what the first run should answer, and you get discovery output — architecture, evidence, gap register — before any call is booked.