Docs
The Learning loop
On this page
With the Learning loop on, BuildKeel looks for what recurs in the spec tree’s own records, such as a kind of review finding that keeps coming back, or a file that keeps getting defects. It shows each pattern with the records behind it, and Claude proposes what to do about it: a practice, or a note.
1. See what it proposes
Section titled “1. See what it proposes”The Learning loop speaks at finish and in the status overview, and only when it has a pattern to show.
- Run
/bk:status, and read its Learning loop section: the patterns in the records now. - Or finish a unit: finishing shows the patterns that unit is part of, through its records or the files it changed. See Finish.
- Read each pattern: what recurs, the records behind it, and what Claude proposes for it.
Ask Claude for the patterns in the records at any time, too. It looks with query and view: "patterns".
2. Accept or decline a proposal
Section titled “2. Accept or decline a proposal”Nothing is saved without your agreement.
- Read what Claude proposes for the pattern: a practice, a note on missing tests, or a note on the code.
- To accept, say so. Claude shows the practice or the note as it would be saved.
- Agree, and Claude saves it, as any practice or note on the code is saved. See Add or change a practice and Leave a note on the code.
- To decline, say so. Claude records that you declined it, committed in the spec repo.
A pattern you decline is not proposed again until a new record is added to it.
3. Turn it on or off
Section titled “3. Turn it on or off”The Learning loop is a switch, continuity.learning-loop. It is on by default.
-
Open the spec tree’s
buildkeel.yaml. -
Set
learning-loopundercontinuity, in theprocesssection, toofforon.process:continuity:learning-loop: off -
Commit it, so the whole team works with the same setting.
-
Run
/bk:settingsto see the setting as it now applies.
The patterns it looks for
Section titled “The patterns it looks for”It looks only in the spec tree’s own records.
| Pattern | What counts | Proposed as |
|---|---|---|
| Repeated review findings | a kind of review finding in three units or more | a practice |
| A file with repeated defects | a file changed by three defects or more | a note on the code, for that file |
| Weakened tests | tests that passed without their code, or were weakened, in three units or more | a note on missing tests |
| A reversed decision | a decision replaced by a later one: one is enough | a note on the code |
| Failed Principal handoffs | three or more in all, with the findings they were about | a practice |
Each pattern is shown with the records behind it: the units, the defects, the findings or the notes. See Reviews and the fix loop for findings and Principal handoffs, and TDD evidence for tests that passed without their code.
Where it speaks
Section titled “Where it speaks”- At finish: the patterns the unit is part of, through its records or the files it changed, with what Claude proposes.
- In the status overview: every pattern to propose now, in its own section, shown only when there is one. See Status and usage.
Each pattern shown is one never declined, or one with a new record added since it was.