From a first discovery run to a repository that steers itself
CAS is not a portal you upload a codebase to. It is a runner that executes inside your pipeline, reads the repository it is pointed at, and writes back only what a reviewer approves. Adoption is four steps, and the first one changes nothing.
Four steps, each one reversible
Every step is a flow the runner already ships. You can stop after any of them and keep the value of the ones before it.
Run discovery on a checkout
Nothing is installed and nothing is written. The runner parses manifests, workflows and the syntax tree, then writes an architecture model where every element points at the file that proves it. Read the gap register before you decide anything.
Put the loop in CI
The same runner executes on pull requests. Discovery becomes continuous: the model is reconciled with the previously ratified one on every change, so drift is measured the day it appears rather than the quarter it is noticed.
Declare the rules you actually enforce
Governance rules live in the repository next to the code they govern. Each one is scored against evidence, so a rule either has coverage or it is visibly advisory — there is no third state where everyone assumes it is enforced.
Turn on steering projection
The ratified architecture is written back into managed sections of AGENTS.md, the steering documents and the reference architecture — as a pull request a person approves. Hand edits inside a managed block are rejected before merge.
Workflows, not agents sitting in your account
These are the controls CAS runs on its own repository — the same ones it installs on yours. Each carries a role, an enforcement point in the pipeline and a coverage score measured from evidence.
Control workflows
- Managed Steering SyncCorrectEnforced
Only CAS may write managed steering sections; drift outside the managed block is rejected before merge.
.github/workflows/cas-managed-steering-sync.yml - Governance Portal PublishGenerateEnforced
Portal content is regenerated from the knowledge layer; hand-edited portal pages cannot reach Pages.
.github/workflows/cas-portal-publish.yml - Continuous Architecture LoopPreventEnforced
Every pull request re-runs evaluation and reconciliation; unreconciled architecture work blocks the merge.
.github/workflows/cas-continuous-architecture.yml - Build & Contract ValidationPreventEnforced
Runs the governance validator alongside build and contract validation as a required status check.
.github/workflows/cas-build-validation.yml - Governance ValidationPreventEnforced
Validates the governance substrate itself and publishes a governance health report per event.
.github/workflows/governance-validation.yml - Build Steering ProjectionPreventEnforced
Steering projections must be built deterministically and uploaded with a captured projection ID.
.github/workflows/cas-build-steering-projection.yml - Expert Semantic ReviewDetectGap
Reasoning-layer review of recommendations. Currently degraded: the mock client is active, so recommendations ship without semantic review.
src/cas_runner/llm/litellm_client.py - Flow Step ResolutionDetectAdvisory
Detects declared flow values that cannot be resolved into an executable step list and raises them as candidate gaps.
src/cas_runner/steps/forensic/flow_extractor.py
A month to a steered repository
This is the sequence CAS was built around. Teams move faster on smaller repositories, but the order matters: measure before you enforce, enforce before you steer.
- Week 1
Baseline
Discovery runs locally against a checkout. You get the container, component and flow model plus the first gap register. Nothing in the repository changes.
- Week 2
Rules
The governance rules your team already argues about in review are written down and scored. Coverage and drift get their first real numbers.
- Week 3
Gates
Validation runs on pull requests. Prevent-role controls start blocking; detect-role controls report. The portal publishes the current model for everyone else.
- Week 4
Steering
Managed sections are projected back into the steering documents through a reviewed pull request, and the loop runs on its own cadence from there.
The ones asked in the first meeting
Answered from how the runner actually works, not from how it could be configured to work in theory.
Does our source code leave our infrastructure?
No. The runner is a Python package that executes on a developer checkout or inside your own CI. It reads manifests, workflow files and the abstract syntax tree locally, and writes its findings into a knowledge workspace attached to the repository. The only outbound call is to the model provider you configure for the reasoning steps, and the discovery path does not use one.
Do we have to connect a model provider at all?
Not to get the architecture. Forensic discovery and reconciliation are deterministic: they extract evidence and reconcile it against the last ratified model. The reasoning layer sits behind a provider-agnostic client with a mock implementation, so evaluation steps can run against your own endpoint, a hosted provider, or nothing at all while you evaluate the tool.
Will it rewrite our documentation?
Only inside sections it owns, and only through a pull request a person approves. The steering projection writes managed blocks into AGENTS.md, the steering documents and the reference architecture. Hand edits inside a managed block are rejected by the sync workflow before merge, so the two never drift apart silently.
What stops it inventing components that do not exist?
The positive-evidence rule. An element enters the model only when a manifest entry, a workflow file, a configuration key or a syntax-tree symbol proves it. Anything the repository implies but the evidence does not support becomes a candidate gap instead — its own run raised fifty of them.
Who decides that a pattern becomes a standard?
A person. Recurring structures are observed, classified and scored automatically, but promotion is a recorded human decision written to the decision records. Only after that does the prevent layer start enforcing the pattern on pull requests.
Is this tied to GitHub?
The reference installation ships as GitHub Actions workflows with the portal published to Pages. The runner itself is a command-line tool with filesystem and CI entrypoints, so any pipeline that can run Python can run it — the workflow files are the part you would port.
What exactly is the console on this site running?
A recorded discovery run of the CAS repository against itself: twenty components, forty-eight declared flows and one hundred and twenty evidence items, with the ledger showing a representative slice. The two other repositories in the switcher are illustrative, so you can see how the same views read for a codebase you do not already know.
What is the smallest first step?
Step one on this page. A discovery run against a checkout installs nothing, writes nothing into your repository and produces the model plus its gap register. If the gaps are not interesting, you stop there and have lost an afternoon.
Bring your own repository
The console on this site runs a recorded discovery. The interesting version is the one that runs against your code, with your rules, and tells you something you did not already know about your own system.
- Discovery run on one repository, results reviewed together
- One steering pull request, opened against a branch you choose
- The loop left running in CI if — and only if — it earned its place
runs in your pipeline · no code leaves your infrastructure