My open-source toolkit for spec-driven development with AI agents: agents draft, build and verify, and a named person approves at every gate. This page follows the one real change it has been used on, the audit-identity change to my HealthQCopilot project, from the constitution to the point where it stopped. Watch it run on its own, pause it, or click any node or gate. Switch the profile, and read what the kit does not do before you trust any of it.
Pre-alpha, used once. No gate of this change has a recorded decision, and the kit has never been run against live GitHub reviews, a live tracker or a chat service. The kit and the change were written by an AI coding agent working under my direction. Nothing here is production use, client work or a compliance claim.
The diagram plays through the same nine stops as the record below and keeps them in step: pausing it, or choosing a gate, opens that gate’s full account. Click any node for who acts, what appears, which checks run and what happened on the real change.
Lite. A change passes G1, G3 and G5, and each gate needs any one of its listed roles. The installer puts in two of the six extensions. Nobody has timed how long Lite takes to adopt.
Standard. A change passes G1 to G7, and each gate needs every role listed for it. The kit adds the owners of whatever the change touches. All six extensions are installed.
Regulated. The same seven gates and the same rule as Standard, with the data, contract and security agents always on the team and a routing policy required. The real change ran under this profile: 39 files of record, about 2,500 lines, for 14 files of code and tests, about 1,250 lines.
Under each gate is where it stands for the real change. “In chat” means I approved in conversation, which the kit does not count as a decision. No gate has a record. In each stop, “Who acts” is the kit’s rule and “On the real change” is what happened.
No recorded decision Approved by me in conversation.
The constitution is decided once for a project, and again when it is amended. The profiles differ in the gates of a change, G1 to G7.
The constitution, and a map from every principle to the check that enforces it or the gate where a person judges it.
CK-CONSTITUTION: every principle is machine-checked or marked human-judged.
The agent drafted a constitution for HealthQCopilot that maps every principle and answers every finding. I approved it as drafted on 22 November 2026, with a reply in chat. It is now at version 2.
The kit’s own rule is that a reply in chat never counts as a decision. So G0 has no record.
No recorded decision Approved by me in conversation.
Lite requires this gate. Any one of its listed roles can approve.Standard requires this gate.Regulated requires this gate.
spec.md, with its risk tier and what it touches on the system map: data stores, shared components, contracts and other applications.
Wording an agent could misread, two obligations in one sentence and an oversized spec fail before this gate. A likely duplicate of existing work blocks it until a Product Owner decides. The tier rises to the highest tier the spec touches.
Spec 004, audit identity, answers finding C4: in the audit record of requests for patient data, the user field held the same word for everyone. It is one of 25 specs written for 27 findings in the project. Neither repository holds real patient data.
I approved the eight Critical specs, this one among them, at G1 and G2 on 22 November 2026 in conversation. There was no pull-request review, so there is no decision record.
No recorded decision Approved by me in conversation, with G1.
Lite does not require this gate.Standard requires this gate.Regulated requires this gate.
The changed spec and the log of clarifications.
The wording checks run on what changed; approved wording is left alone until it changes. An amendment after approval re-opens only the gates it affects.
Later, the two reviewing agents found seven things in this approved spec that needed to change. One example: a requirement says more than the nine services can do, because the gateway refuses a caller with no token first and audits nothing.
The seven are proposed to me as amendments. They are not applied.
No recorded decision A draft, corrected after the reviews. It waits for me.
Lite requires this gate. Any one of its listed roles can approve.Standard requires this gate, and adds the owners of what the change touches.Regulated requires this gate, and adds the owners of what the change touches.
plan.md, impact.md, a threat model, a privacy impact and a rollout plan.
Impact analysis walks the system map from what the spec touches. CK-THREAT-MODEL: each threat names the criterion that tests it. A Critical change plans its rollback rehearsal here. CK-GATE-RECORD: once a plan exists, the records for G1 and G2 must exist.
The reviewers found four statements in these documents that were wrong, all written by the authoring agent. The privacy impact was wrong about how a request arrives, where the identifier goes and who can read it. The threat model called its second threat mitigated where it is not. The rollout’s signals would have missed the likely failures. The plan claimed a join to user accounts that does not hold. All four were corrected.
The gate check fails here, as it should: there is no record for G1, G2 or G3.
No recorded decision A draft. It waits for me.
Lite does not require this gate.Standard requires this gate.Regulated requires this gate.
tasks.md, a test strategy, and the trace manifest that links each criterion to a task and a test.
CK-TRACE fails on a missing or orphaned link in either direction. Once a task list exists, the gate check asks for the G3 record as well. Once work on the tasks shows in the tree, it asks for the G4 record too; that rule was added after this change was merged.
Six tasks: the middleware (T001), the nine Program.cs files (T002), the middleware and pipeline tests (T003), the order tests (T004), a run of the solution’s own tests (T005), and the verification repeated on those results (T006).
No recorded decision Evidence prepared. The gate could not pass, and it still waits.
Lite requires this gate. Any one of its listed roles can approve.Standard requires this gate, and adds the owner of each touched component.Regulated requires this gate, and adds the owner of each touched component.
14 code files: PhiAuditMiddleware.cs, nine Program.cs files and four test files with 80 tests. Beside them, the record: evidence for each task, the security review in two rounds, a trace from one line of each changed file, and a one-page brief for the reviewer.
On the branch, 80 checks pass, 23 fail and 1 was not run. Six of the failures belong to this change:
CK-TOUCH: the middleware belongs to the audit event stream, which the spec does not declare.CK-THREAT-MODEL: two criteria test threats and are not written as abuse cases.CK-GATE-RECORD: no decision record for G1, G2 or G3.CK-CHARACTERIZATION: the tests that pin the old behaviour had not been run. It passes now that the real run is recorded.CK-RUN-RECORD: no step records what it cost.CK-SBOM: a release folder with no bill of materials.15 findings in its first round. It accepted the nine registrations and returned the middleware and the spec’s documents. In the code:
Both were fixed in one rework round. In its second round it accepted.
An orchestrator made six work items. A backend implementer wrote the middleware and the nine registrations, a test agent wrote the tests, and a security reviewer, started in a new session with a fixed list of what it could read, reviewed for this gate.
The package registry could not be reached from where the change was written, so the test results in the record came from a stand-in project: 80 passed once the rework was done. Every evidence file says it is not the solution’s own test run.
The record says two more things about itself. The change was written before the run was opened and then recorded task by task. And one session played both the implementer and the test agent, so the rule that tests are written first was not kept.
No recorded decision Verified by an agent in three rounds, the third on the real test results. No person has reviewed it.
Lite does not require this gate. The independent verifier is still one of the four agents Lite installs.Standard requires this gate.Regulated requires this gate.
The verification report in three rounds, the third on the real test results, the list of what the verifier was given, and a one-page brief for the reviewer.
CK-AUTHOR-NEQ-VERIFIER: the author is never the verifier, on recorded agent ids. It now also fails on a record whose reviewer is not named. CK-VERIFY-INPUTS: the verifier’s input list is checked. The kit cannot see what a model was actually shown; that isolation is procedural.
14 findings in its first round, using its own seeded defects and a real host. It returned both test tasks.
Five of the defects it planted passed every test until the rework. After the rework there were 80 tests. In its second round it planted more, accepted the work, and left a list in the plan of what still slips through.
The verifier was given the spec, the plan documents, the constitution, the map and the change, and no work record, hand-off note or conversation. It listed every file it opened. Its first verification was by reading and by a stand-in run.
After the merge the real tests ran: 520 of 520 passed, the 80 tests of the change among them.
An independent verifier agent then reviewed the record of that run. It sent the record back once, because two sentences claimed more than the results files showed. It accepted the corrected record and repeated its verification on the real results.
That third round closes six of its fourteen earlier findings, leaves five open and three open in part, and adds six. The first of the six says what the kit had not said: the change is on main and no gate of the spec has a decision. To see what had been compiled, the verifier also read nine project and build-setting files and listed them; the check on its inputs fails on that list, and whether a verifier may read build settings is not decided.
No recorded decision Evidence prepared. Nothing was released or deployed.
Lite does not require this gate.Standard requires this gate.Regulated requires this gate.
Release notes, an operational-readiness page, a rollout file and a one-page brief for the reviewer.
CK-SBOM fails: a release folder exists with no bill of materials. A Critical change shows its rollback rehearsal here.
The gate needs a bill of materials, which needs a build. It needs a rollback rehearsal and staging checks, which need an environment. None of those has happened.
No gate passed I merged the change myself. A merge is not a gate decision.
This stop is not part of the kit’s workflow. It is what happened.
It did not notice. On main its checks reported the same three missing gate records as before the merge: 79 pass, 24 fail, 1 not run. It had no rule for a change that reaches the default branch without G5 and G6.
The rule came afterwards. The gate check now asks for G4 once work on a spec’s tasks shows in the tree, and on the default branch also for G5 and G6. On the merged main it reports G4, G5 and G6 for this spec. It reports after the merge and does not hold a merge back: on a pull request it asks for G4 and what precedes it, so even a required check would not stop a merge for want of G5 and G6.
The tests pass and the agent reviews are on record. The gates still have no decision.
From the kit’s role guide and release notes. The profile switch above marks the same thing on the gates.
| Gate | Lite (chosen) | Standard (chosen) | Regulated (chosen) |
|---|---|---|---|
| G1 Spec | Required | Required | Required |
| G2 Clarified spec | Not required | Required | Required |
| G3 Plan | Required | Required | Required |
| G4 Tasks | Not required | Required | Required |
| G5 Implementation | Required | Required | Required |
| G6 Verification | Not required | Required | Required |
| G7 Release | Not required | Required | Required |
| Approval at a gate | Any one listed role | Every listed role | Every listed role |
| Extensions installed | 2 of 6 | 6 of 6 | 6 of 6 |