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.
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.
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.
- AGENTS.md steering guidance
- Positive evidence boundaries
- Pattern contracts
- Fast-track pathway
Discover & Model
Parse manifests, workflows, configuration and AST symbols. Reconstruct container and component models where every element traces to verifiable positive evidence.
- System context
- Container model
- Component model
- Flow catalogue
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.
- Governance score
- Drift delta scoring
- Candidate gap register
- Automated PR gates
Evolve
Extract recurring signals, evaluate candidate patterns for human architect promotion, and ratify authoritative ADRs that project back into all future agent prompts.
- Pattern promotion workflow
- Authoritative ADRs
- Capability lineage
- Updated steering profiles
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.
CI workflows
Six principal GitHub Actions workflows cover validation, steering projection, the continuous architecture loop, managed synchronisation, governance validation and portal publishing.
Governance portal
The generated view pack is published as a static site, so every stakeholder reads the same architecture without opening an IDE.
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.
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.
Artefacts
Every run writes its outputs to disk: architecture views, catalogues, evaluation reports, gap registers and the evidence index behind them.
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.
Diagrams in a drawing tool
A shared picture of how the system was meant to look, useful in a workshop.
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.
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.
Architecture decision records
A durable record of what was decided and why, kept next to the code.
A decision record is never checked against the repository. Nothing tells you the month the code stopped honouring it.
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.
Lint rules and dependency checks
Hard enforcement of local rules — import boundaries, layer direction, naming.
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.
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.
Asking a coding agent to explain the system
A fluent answer in seconds, and a decent starting point for a new joiner.
The answer is plausible whether or not the symbol exists. There is no manifest to audit, and two runs can disagree.
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.
A service catalogue or developer portal
An inventory of services with owners, on-call and links, good for operations.
The catalogue describes what teams registered, not what the code contains, and it degrades as soon as registration slips.
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.
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.
Latest self-discovery run
Forensic diagnostic against the CAS runner itself
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.