@turri-dev/cli 0.2.4-next.8422d0f → 0.2.4-next.efe96fe

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/README.md +5 -6
  2. package/dist/bedrock-region.js +3 -3
  3. package/dist/chat-idle.d.ts +2 -2
  4. package/dist/chat-idle.js +2 -2
  5. package/dist/chat-models.d.ts +1 -1
  6. package/dist/chat-models.js +1 -1
  7. package/dist/chat-scope.d.ts +1 -3
  8. package/dist/chats.d.ts +2 -12
  9. package/dist/chats.js +3 -26
  10. package/dist/cli.js +11 -30
  11. package/dist/config-edit.d.ts +20 -8
  12. package/dist/config-edit.js +29 -23
  13. package/dist/config.d.ts +62 -71
  14. package/dist/config.js +170 -125
  15. package/dist/conform-cli.js +14 -3
  16. package/dist/conformance-switch.d.ts +13 -22
  17. package/dist/conformance-switch.js +37 -59
  18. package/dist/drift-cli.js +1 -1
  19. package/dist/extension.d.ts +8 -10
  20. package/dist/extension.js +257 -429
  21. package/dist/genome.js +9 -48
  22. package/dist/graph.js +3 -5
  23. package/dist/host-session.d.ts +5 -16
  24. package/dist/host-session.js +4 -6
  25. package/dist/host.d.ts +2 -4
  26. package/dist/host.js +4 -7
  27. package/dist/identity.js +0 -1
  28. package/dist/init-config.d.ts +0 -1
  29. package/dist/init-config.js +3 -10
  30. package/dist/installed-providers.d.ts +1 -1
  31. package/dist/installed-providers.js +1 -1
  32. package/dist/loop-cli.d.ts +4 -3
  33. package/dist/loop-cli.js +13 -11
  34. package/dist/loop-tools.d.ts +37 -18
  35. package/dist/loop-tools.js +118 -58
  36. package/dist/new-project.js +2 -2
  37. package/dist/parse-cli.js +2 -2
  38. package/dist/pi-launch.js +4 -1
  39. package/dist/pi-settings.d.ts +4 -0
  40. package/dist/pi-settings.js +39 -0
  41. package/dist/pi.js +12 -9
  42. package/dist/plain/check.d.ts +2 -9
  43. package/dist/plain/check.js +6 -39
  44. package/dist/plain-files.js +4 -4
  45. package/dist/regenerate/activity.d.ts +0 -7
  46. package/dist/regenerate/activity.js +2 -20
  47. package/dist/regenerate/agent-env.d.ts +1 -1
  48. package/dist/regenerate/agent-env.js +3 -3
  49. package/dist/regenerate/agent-shell.js +5 -3
  50. package/dist/regenerate/audit.js +9 -0
  51. package/dist/regenerate/base-folder.d.ts +2 -2
  52. package/dist/regenerate/base-folder.js +1 -1
  53. package/dist/regenerate/cases.js +7 -0
  54. package/dist/regenerate/chunk-plan.d.ts +5 -0
  55. package/dist/regenerate/chunk-plan.js +16 -1
  56. package/dist/regenerate/drift.d.ts +4 -0
  57. package/dist/regenerate/drift.js +26 -6
  58. package/dist/regenerate/failure-reports.d.ts +28 -0
  59. package/dist/regenerate/failure-reports.js +79 -0
  60. package/dist/regenerate/job-panel.js +3 -1
  61. package/dist/regenerate/jobs-tree.js +1 -1
  62. package/dist/regenerate/jobs.d.ts +4 -2
  63. package/dist/regenerate/jobs.js +14 -10
  64. package/dist/regenerate/ledger-view.d.ts +11 -24
  65. package/dist/regenerate/ledger-view.js +14 -60
  66. package/dist/regenerate/ledger.d.ts +2 -15
  67. package/dist/regenerate/ledger.js +1 -1
  68. package/dist/regenerate/loop.d.ts +48 -62
  69. package/dist/regenerate/loop.js +296 -131
  70. package/dist/regenerate/model-names.d.ts +33 -0
  71. package/dist/regenerate/{engine.js → model-names.js} +2 -28
  72. package/dist/regenerate/paths.d.ts +1 -1
  73. package/dist/regenerate/paths.js +2 -2
  74. package/dist/regenerate/records.d.ts +11 -0
  75. package/dist/regenerate/records.js +15 -0
  76. package/dist/regenerate/regenerate.d.ts +0 -2
  77. package/dist/regenerate/regenerate.js +4 -15
  78. package/dist/regenerate/renames.js +4 -4
  79. package/dist/regenerate/requires.d.ts +7 -0
  80. package/dist/regenerate/requires.js +24 -18
  81. package/dist/regenerate/scripts-being-written.d.ts +4 -4
  82. package/dist/regenerate/scripts-being-written.js +3 -3
  83. package/dist/regenerate/spec-map.js +3 -3
  84. package/dist/regenerate/standing.js +1 -1
  85. package/dist/regenerate/submit-work.d.ts +2 -0
  86. package/dist/regenerate/submit-work.js +8 -3
  87. package/dist/regenerate/test-scripts.d.ts +2 -1
  88. package/dist/regenerate/test-scripts.js +33 -23
  89. package/dist/regenerate/testing-steps.d.ts +16 -5
  90. package/dist/regenerate/testing-steps.js +28 -9
  91. package/dist/regenerate-cli.js +18 -9
  92. package/dist/self-invocation.d.ts +11 -0
  93. package/dist/self-invocation.js +33 -7
  94. package/dist/sentinel.js +8 -5
  95. package/dist/{config-command.d.ts → settings.d.ts} +13 -8
  96. package/dist/{config-command.js → settings.js} +155 -24
  97. package/dist/setup.d.ts +2 -2
  98. package/dist/setup.js +7 -7
  99. package/dist/skill.d.ts +0 -11
  100. package/dist/skill.js +0 -9
  101. package/dist/tools.js +2 -3
  102. package/dist/turri-versions.js +2 -1
  103. package/docs/README.md +2 -4
  104. package/docs/authoring-plain.md +3 -3
  105. package/docs/chats.md +4 -7
  106. package/docs/claude-subscription.md +2 -2
  107. package/docs/config.md +55 -45
  108. package/docs/deploy.md +1 -1
  109. package/docs/development.md +3 -4
  110. package/docs/headless.md +6 -5
  111. package/docs/hosting.md +11 -11
  112. package/docs/parser.md +3 -3
  113. package/docs/regenerating.md +27 -19
  114. package/docs/sentinel.md +6 -6
  115. package/docs/skills-and-gates.md +4 -9
  116. package/docs/using.md +20 -37
  117. package/genome/rules/project-model.md +2 -1
  118. package/genome/rules/test-plain-files.md +15 -7
  119. package/genome/rules/turri-regeneration.md +6 -9
  120. package/genome/skills/convert-old-syntax/SKILL.md +5 -5
  121. package/genome/skills/implement-conformance-testing-script/SKILL.md +2 -2
  122. package/genome/skills/implement-unit-testing-script/SKILL.md +3 -3
  123. package/package.json +1 -1
  124. package/dist/advisor-chat.d.ts +0 -63
  125. package/dist/advisor-chat.js +0 -290
  126. package/dist/change-plain-cli.d.ts +0 -1
  127. package/dist/change-plain-cli.js +0 -55
  128. package/dist/ledger-cli.d.ts +0 -1
  129. package/dist/ledger-cli.js +0 -50
  130. package/dist/ledger-tools.d.ts +0 -10
  131. package/dist/ledger-tools.js +0 -64
  132. package/dist/regenerate/advisor-records.d.ts +0 -93
  133. package/dist/regenerate/advisor-records.js +0 -110
  134. package/dist/regenerate/advisor-runs.d.ts +0 -87
  135. package/dist/regenerate/advisor-runs.js +0 -327
  136. package/dist/regenerate/engine.d.ts +0 -52
  137. package/dist/regenerate/test-advisor.d.ts +0 -101
  138. package/dist/regenerate/test-advisor.js +0 -379
  139. package/dist/spec-tools.d.ts +0 -36
  140. package/dist/spec-tools.js +0 -128
  141. package/dist/stacks.d.ts +0 -13
  142. package/dist/stacks.js +0 -96
  143. package/docs/test-advisor.md +0 -110
package/dist/setup.js CHANGED
@@ -10,7 +10,7 @@ import { fetchLatest, newerThan, turrisOnPath, versionFindings } from "./turri-v
10
10
  import { sandboxAvailable, sandboxWithAsync } from "./regenerate/os-sandbox.js";
11
11
  import { findTestScripts, onThisMachine } from "./regenerate/test-scripts.js";
12
12
  import { configKeyOptions, parseArgs } from "./cli-options.js";
13
- import { CONFIG_FILE, hasProjectConfig, readProjectConfig, stackConfigFile, stackOf, stacksOf } from "./config.js";
13
+ import { CONFIG_FILE, hasProjectConfig, readProjectConfig, moduleConfigFile, configModuleOf, moduleConfigsOf } from "./config.js";
14
14
  import { checkModels, modelsInUse, piModelAccess } from "./model-check.js";
15
15
  import { bedrockRegionFor, describeBedrockRegion, regionInGeography } from "./bedrock-region.js";
16
16
  import { baseFilesAsync } from "./regenerate/base-folder.js";
@@ -181,11 +181,11 @@ function checkGlobal() {
181
181
  ];
182
182
  }
183
183
  /**
184
- * In a project: each model its config names - with the stack chosen, that stack's over it - tried with one short
184
+ * In a project: each model its config.turri.yaml names - or the module config pinned, its file's over it - tried with one short
185
185
  * request. A model that answers is ready; one that does not says what the provider said, and what to do about it.
186
186
  */
187
187
  export async function checkProjectModels(project, access) {
188
- const used = modelsInUse(readProjectConfig(project, stackOf(project)));
188
+ const used = modelsInUse(readProjectConfig(project, configModuleOf(project)));
189
189
  if (used.length === 0) {
190
190
  return [{ level: "missing", name: "Models", detail: "config.turri.yaml names none", fix: "turri init-config writes the two models - or name them here: --harness-model, --coding-model" }];
191
191
  }
@@ -262,7 +262,7 @@ const claudeCodeProbe = (project) => ({
262
262
  * Max subscription, and nothing in the environment it refuses. Nothing when no model is a claude-code one.
263
263
  */
264
264
  export async function checkClaudeSubscription(project, env = process.env, probe = claudeCodeProbe(project)) {
265
- const configs = [readProjectConfig(project), ...stacksOf(project).map((stack) => readProjectConfig(project, stack))];
265
+ const configs = [readProjectConfig(project), ...moduleConfigsOf(project).map((module) => readProjectConfig(project, module))];
266
266
  const named = [...new Set(configs.flatMap((config) => modelsInUse(config)).filter((used) => used.spec.startsWith("claude-code/")).map((used) => used.spec))];
267
267
  if (named.length === 0)
268
268
  return [];
@@ -290,15 +290,15 @@ export async function checkClaudeSubscription(project, env = process.env, probe
290
290
  return [{ level: "ok", name, detail: `pi-claude-code installed, Claude Code signed in to ${status.subscriptionType} - for ${named.join(", ")}` }];
291
291
  }
292
292
  /**
293
- * The base folders the project's config names - its own, and each stack's - each there with its files, or not: a codebase
293
+ * The base folders the project's config names - its own, and each module's own file's - each there with its files, or not: a codebase
294
294
  * that requires nothing starts from one, and its first pulse stops when it is not there. Nothing when none is named.
295
295
  */
296
296
  export async function checkBaseFolders(project) {
297
297
  const named = new Map();
298
- for (const [stack, config] of [[undefined, readProjectConfig(project)], ...stacksOf(project).map((stack) => [stack, readProjectConfig(project, stack)])]) {
298
+ for (const [module, config] of [[undefined, readProjectConfig(project)], ...moduleConfigsOf(project).map((module) => [module, readProjectConfig(project, module)])]) {
299
299
  if (config.baseFolder === undefined)
300
300
  continue;
301
- named.set(config.baseFolder, [...(named.get(config.baseFolder) ?? []), stack === undefined ? CONFIG_FILE : stackConfigFile(stack)]);
301
+ named.set(config.baseFolder, [...(named.get(config.baseFolder) ?? []), module === undefined ? CONFIG_FILE : moduleConfigFile(module)]);
302
302
  }
303
303
  return Promise.all([...named].map(async ([folder, files]) => {
304
304
  const path = resolve(project, folder);
package/dist/skill.d.ts CHANGED
@@ -69,22 +69,11 @@ export interface Skill {
69
69
  dir: string;
70
70
  allowedTools: string[];
71
71
  steps: StepSpec[];
72
- /**
73
- * Whether `change_plain` needs an answer from the user between two new changes - one answer,
74
- * one change, as an interview writes them. `metadata.paced: false` turns it off, for a skill that
75
- * writes the specs on its own.
76
- */
77
- paced: boolean;
78
72
  /**
79
73
  * The phases the questioning level caps (`metadata.questioning`, questioning.ts): when there are any, the harness asks
80
74
  * the level first, and each of them asks at most as many questions as it allows. Empty: no level is asked.
81
75
  */
82
76
  questioning: string[];
83
- /**
84
- * The steps where each answer is a spec change (`metadata.change-plain-per-answer`): the next question waits until the
85
- * last answer is written with `change_plain`, and changes the agent decides itself need no answer before them.
86
- */
87
- diffPerAnswer: string[];
88
77
  /**
89
78
  * Started only by the person, with its slash command - `/release-notes` - never by the model on its own
90
79
  * (`metadata.command-only: true`): cultivate runs it only when the person has just typed its command.
package/dist/skill.js CHANGED
@@ -109,13 +109,6 @@ export function loadSkill(skillDir) {
109
109
  throw new Error(`${name}: 'metadata.questioning' names unknown step '${stepName}'`);
110
110
  }
111
111
  }
112
- const perAnswer = data.metadata?.["change-plain-per-answer"];
113
- const diffPerAnswer = Array.isArray(perAnswer) ? perAnswer.map(String) : [];
114
- for (const stepName of diffPerAnswer) {
115
- if (!steps.some((s) => s.name === stepName)) {
116
- throw new Error(`${name}: 'metadata.change-plain-per-answer' names unknown step '${stepName}'`);
117
- }
118
- }
119
112
  for (const stepName of gatesByStep.keys()) {
120
113
  if (!steps.some((s) => s.name === stepName)) {
121
114
  throw new Error(`${name}: gate references unknown step '${stepName}'`);
@@ -132,9 +125,7 @@ export function loadSkill(skillDir) {
132
125
  // What a skill may use is what its frontmatter names, and nothing else: no list, no tools.
133
126
  allowedTools: Array.isArray(data["allowed-tools"]) ? data["allowed-tools"] : [],
134
127
  steps,
135
- paced: data.metadata?.paced !== false,
136
128
  questioning: capped,
137
- diffPerAnswer,
138
129
  commandOnly: data.metadata?.["command-only"] === true,
139
130
  background: data.metadata?.background === true,
140
131
  ...(model !== undefined ? { model } : {}),
package/dist/tools.js CHANGED
@@ -155,7 +155,7 @@ function talkBack(talks) {
155
155
  "with ask_user only once it is settled - changed, if what they said calls for it. It was not counted as answered."
156
156
  : "Answer what they said, then ask the question again with ask_user - changed, if what they said calls for it. Put " +
157
157
  "your answer to them in the question's `context`: nothing else you write reaches them. It was not counted as a " +
158
- "question, and nothing is owed for it.";
158
+ "question.";
159
159
  }
160
160
  /** Ends the questions of a phase the questioning level caps: what is left, the agent decides itself. */
161
161
  export function createEndQuestionsTool(questioning) {
@@ -163,8 +163,7 @@ export function createEndQuestionsTool(questioning) {
163
163
  name: "end_questions",
164
164
  label: "End questions",
165
165
  description: "End this phase's questions: you have asked what the person must decide, and you decide what is left " +
166
- "yourself, saying what you chose. Afterwards ask_user asks only the phase's closing confirmation, and " +
167
- "change_plain needs no answer between changes.",
166
+ "yourself, saying what you chose. Afterwards ask_user asks only the phase's closing confirmation.",
168
167
  promptSnippet: "end this phase's questions and decide what is left yourself",
169
168
  parameters: Type.Object({}),
170
169
  async execute() {
@@ -180,7 +180,8 @@ export function removalOf(turri, platform = process.platform) {
180
180
  export function versionFindings(options = {}) {
181
181
  const identity = options.self ?? (() => {
182
182
  const own = turriIdentity();
183
- return { ...(own.version !== null ? { version: own.version } : {}), clone: own.git_commit !== null, root: PACKAGE_ROOT };
183
+ // An image built from a clone (docker/Dockerfile) has no .git, and is updated by building it again from a newer clone.
184
+ return { ...(own.version !== null ? { version: own.version } : {}), clone: own.git_commit !== null || process.env.TURRI_FROM_CLONE === "1", root: PACKAGE_ROOT };
184
185
  })();
185
186
  const onPath = options.onPath ?? turrisOnPath();
186
187
  const findings = [];
package/docs/README.md CHANGED
@@ -18,11 +18,10 @@ turri is the first coding agent with the power of regenerative software: [\*\*\*
18
18
  | how to start a project, or add a feature, in a conversation | [using](using.md#in-a-conversation) |
19
19
  | how to have several chats open at once, and reopen them | [chats](chats.md) |
20
20
  | what checks each pulse as it finishes, and tells me what needs me | [the sentinel](sentinel.md) |
21
- | why the chat wrote scenarios I did not ask for, and how to turn that off | [the test advisor](test-advisor.md) |
22
21
  | which model codes, and how to change it | [using](using.md#choosing-a-model), [the project config](config.md#models) |
23
22
  | how to run turri on my Claude Pro, Max or Team subscription instead of an API key | [a Claude subscription](claude-subscription.md) |
24
23
  | what `config.turri.yaml` can set, and what happens without it | [the project config](config.md) |
25
- | how a backend and a frontend on different stacks share one project | [the project config](config.md#stacks) |
24
+ | how a backend and a frontend on different stacks share one project | [a module's own config](config.md#a-modules-own-config) |
26
25
  | which ready-made stacks \*\*\*plain can import - a FastAPI backend, a React frontend | [the standard library](authoring-plain.md#the-standard-library) |
27
26
  | everything an agent was sent and did, to debug it | [using](using.md#agent-logs) |
28
27
  | how to regenerate \*\*\*plain overnight, and resume it | [running unattended](headless.md) |
@@ -46,9 +45,8 @@ turri is the first coding agent with the power of regenerative software: [\*\*\*
46
45
  | [Using turri](using.md) | the conversation, the tools, background jobs, choosing a model, module history, the command line |
47
46
  | [Chats](chats.md) | several chats in one session: what each keeps and what they share, `/chat` and its keys, `turri --continue` and `.turri/chats.json` |
48
47
  | [The sentinel](sentinel.md) | the chat every finished pulse goes to: what it checks and tests, its notices and how to answer them, what it may do, closing it, its model, in a host |
49
- | [The test advisor](test-advisor.md) | turri's background check of new and changed functional specs: when it runs, how it decides, what you see, its records, model and setting |
50
48
  | [A Claude subscription](claude-subscription.md) | running every agent on a Claude Pro, Max or Team subscription through Claude Code: setting it up, its models, checking it yourself, in turri-desktop, its limits, when it does not work |
51
- | [The project config](config.md) | `config.turri.yaml` and each stack's `config.turri.<stack>.yaml`: where they are read from, every key, models and their inheritance, conformance, the testing scripts, stacks and choosing one, the old `config.yaml` |
49
+ | [The project config](config.md) | `config.turri.yaml` and a module's own `config.turri.<module>.yaml`: where they are read from, every key, models and their inheritance, conformance, the testing scripts, which file builds a module, the old `config.yaml` |
52
50
  | [Deploy](deploy.md) | trying what is built: dist/<module>, the last commit, starting it on your machine, `turri release` |
53
51
  | [Running unattended](headless.md) | regenerating overnight or in CI: before you leave it, the command, the results, resuming, rebuilding one functionality |
54
52
  | [Authoring \*\*\*plain](authoring-plain.md) | a \*\*\*plain project, what \*\*\*plain is made of, the rules, writing \*\*\*plain with the agent, the skills, checking \*\*\*plain |
@@ -65,11 +65,11 @@ Adding a :Task: named "Buy milk" to an empty :TaskList: shows one :Task: named "
65
65
  Adding a :Task: named "Go" is rejected with the error "Name must be at least 3 characters".
66
66
  ```
67
67
 
68
- Nothing about testing is written until the person asks for it, or the [test advisor](test-advisor.md) finds a functional spec that needs it: a module imports its stack alone, and a new functional spec gets no test plain file. The first time tests are written in a module, turri does three things, in this order, each a change the person sees:
68
+ Nothing about testing is written until the person asks for it, or - conformance tests on - the chat judges a functional spec needs it (when an incorrect implementation could give output that looks right but is wrong, when two reasonable readings of its text answer some input differently, or when a bug would be costly - money, security, data, users' trust): a module imports its stack alone, and a new functional spec gets no test plain file. The first time tests are written in a module, turri does three things, in this order, each a change the person sees:
69
69
 
70
70
  1. **The test reqs** - the stack's conformance template, `stdlib/<kind>/conformance/<stack>`, or the module's own `***test reqs***` when it has no stack from the standard library.
71
71
  2. **The conformance testing script** - with `implement-conformance-testing-script`, when the project has none for the module's stack. It runs in the background on the module's coding model; the conformance tests wait for it.
72
- 3. **The scenarios** - for the functional specs the person named, conformance scenarios and, only when asked for, acceptance scenarios, written with `change_plain` with no further confirmation. Scenarios in one functional spec say nothing about another: the rest stay untested until they are asked for too.
72
+ 3. **The scenarios** - for the functional specs the person named, conformance scenarios and, only when asked for, acceptance scenarios, written with the file tools and regenerated with `regenerate`, with no further confirmation. Scenarios in one functional spec say nothing about another: the rest stay untested until they are asked for too.
73
73
 
74
74
  Scenarios that exist are kept in step with their functional specs: a functional spec changed has its scenarios reviewed in the same \*\*\*plain diff, and one split, moved, renamed or taken out takes its test plain file with it. The rules are in `test-plain-files.md`.
75
75
 
@@ -178,6 +178,6 @@ Every skill in `genome/skills/` can be run from a conversation; most are also us
178
178
  turri parse app.plain # or parse in a conversation
179
179
  ```
180
180
 
181
- It parses \*\*\*plain with this repo's own parser - each module with its test plain files - resolves its imports and required modules, and reports every syntax, concept and structure error with its line, and every test plain file outside its module's folder; it lists each functional spec with its scenarios - `no scenarios - not tested` for one without, which is no problem - and warns of a step of adding tests that was skipped. No model, no API key. The interview skills run it before a phase ends, and `change_plain` refuses a change that leaves a file that does not pass. Pass the project directory to check every module at once.
181
+ It parses \*\*\*plain with this repo's own parser - each module with its test plain files - resolves its imports and required modules, and reports every syntax, concept and structure error with its line, and every test plain file outside its module's folder; it lists each functional spec with its scenarios - `no scenarios - not tested` for one without, which is no problem - and warns of a step of adding tests that was skipped. No model, no API key. The interview skills run it before a phase ends, and `regenerate` refuses a module that does not pass. Pass the project directory to check every module at once.
182
182
 
183
183
  What `check` cannot see - a fact in the wrong section, a functional spec that is too big, two that conflict, wording no test can check - is what the rules, the skills and the reviewers are for.
package/docs/chats.md CHANGED
@@ -8,14 +8,13 @@ Each chat has its own:
8
8
 
9
9
  - **history** - what was said in it, and nothing said in another; a chat asked about another's says so and asks;
10
10
  - **turns** - a hidden chat keeps working, and starts a turn of its own when a pulse it asked for ends;
11
- - **model and thinking level** - [pi](https://pi.dev)'s `/model`, and `/turri-config harness-model` in that chat;
12
- - **stack** - `/stack` and the chat's `stack` tool choose it for that chat alone; a new chat starts with `--stack`'s, or none (see [stacks](config.md#stacks));
11
+ - **model and thinking level** - [pi](https://pi.dev)'s `/model`, and `/settings harness-model` in that chat;
13
12
  - **questions** - what it asks waits in it until you look at it.
14
13
 
15
14
  The session's, shared by every chat:
16
15
 
17
16
  - **the pulses and their plan** - one job registry and one work loop on the project: a pulse any chat starts is in every chat's side panel and `pulses`, and two chats asking for the same module get one plan, not two;
18
- - **the coding model** chosen with `engine` or `--coding-model`, and `parallel-jobs`;
17
+ - **the coding model** given with `--coding-model`, and `parallel-jobs`;
19
18
  - **steering** - what `steer` was told, every plan follows;
20
19
  - **conformance** chosen with `conform`, module by module;
21
20
  - **what `activate` started** - it runs until turri ends or `/halt activated <name>`, whatever chats are opened or closed;
@@ -23,8 +22,6 @@ The session's, shared by every chat:
23
22
 
24
23
  A pulse's end goes to the [sentinel](sentinel.md) - a chat of turri's own, opened in the background with the first pulse that finishes, once you said to start it under `sentinel: ask` - which checks it, tests what was released, and puts what needs you as a notice in the chat you are in. That chat shows the pulse's end; its agent is told of a pulse that landed, to tell you so and what the sentinel is doing with it - and when the sentinel is done with any pulse, what it found - and nothing more - and not of one that went wrong: the sentinel's notice is what it hears of that. With `sentinel: false`, a pulse's end is told to the chat that asked for it instead, shown or not - its agent reacts to it there; the chat's mark in the strip says it has something new. When that chat has been closed, the chat shown is told. Closing a chat stops its turn, never its pulses.
25
24
 
26
- The session has one [test advisor](test-advisor.md), which checks new and changed functional specs in the background for whether they need testing scenarios. Its verdict goes to the chat you are looking at, once that chat is idle: on a yes, the chat tells you and writes the scenarios; a no is a line. Any chat can also ask it itself, with `evaluate_tests`.
27
-
28
25
  ## In the terminal
29
26
 
30
27
  | | |
@@ -63,11 +60,11 @@ turri records which chats are open in `.turri/chats.json` - a run a session, eac
63
60
  - **a session's chats** are kept until five newer sessions have recorded theirs, then deleted with their record;
64
61
  - a session still running is never reopened by another turri.
65
62
 
66
- In [debug mode](config.md#debug-mode) nothing is deleted. The `engine`'s choices come back too: the coding model a reopened chat chose, when it is newer than the session's.
63
+ In [debug mode](config.md#debug-mode) nothing is deleted.
67
64
 
68
65
  ## Where there is one chat
69
66
 
70
- [pi](https://pi.dev)'s print, json and rpc modes - `turri -p "…"`, `--mode json`, `--mode rpc` - and a `turri` given its input on stdin have one chat and record none, and no [test advisor](test-advisor.md). So does `npm run chat`, pi with turri's extension loaded from its file. The command line's `turri regenerate`, `conform` and the rest have no chat, and no test advisor either.
67
+ [pi](https://pi.dev)'s print, json and rpc modes - `turri -p "…"`, `--mode json`, `--mode rpc` - and a `turri` given its input on stdin have one chat and record none. So does `npm run chat`, pi with turri's extension loaded from its file. The command line's `turri regenerate`, `conform` and the rest have no chat.
71
68
 
72
69
  ## In a host
73
70
 
@@ -44,7 +44,7 @@ turri does not depend on the extension: it finds it as pi does, once you have in
44
44
  coding-model: claude-code/claude-sonnet-5:low # it writes the code
45
45
  ```
46
46
 
47
- For a project that has a `config.turri.yaml` already, it sets those two and leaves everything else as it was; or change them yourself, or with `/turri-config harness-model claude-code/claude-opus-5-5:medium` in the chat.
47
+ For a project that has a `config.turri.yaml` already, it sets those two and leaves everything else as it was; or change them yourself, or with `/settings harness-model claude-code/claude-opus-5-5:medium` in the chat.
48
48
 
49
49
  Two settings of the extension's own, read from the environment: `PI_CLAUDE_CODE_COMMAND`, the Claude Code to run when it is not `claude` on the PATH, and `PI_CLAUDE_CODE_CONFIG_DIR`, a Claude Code configuration folder of its own - another account's sign-in, say.
50
50
 
@@ -103,7 +103,7 @@ Each step says what you should see; the first one that does not is where it stop
103
103
  turri regenerate app.plain
104
104
  ```
105
105
 
106
- The pulse's coding agent runs on `claude-code/claude-sonnet-5`, and the pulse lands as on any model. To watch it work, run it in [debug mode](config.md#debug-mode) (`--debug`): the pulse's log in `.turri/jobs/` names each agent's model and shows the tools it called. In the chat, `/engine` says which model each kind of work runs on.
106
+ The pulse's coding agent runs on `claude-code/claude-sonnet-5`, and the pulse lands as on any model. To watch it work, run it in [debug mode](config.md#debug-mode) (`--debug`): the pulse's log in `.turri/jobs/` names each agent's model and shows the tools it called. In the chat, ask which model the code is regenerated on: the `settings` tool says, and where it is set.
107
107
 
108
108
  ## In turri-desktop
109
109
 
package/docs/config.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # The project config
2
2
 
3
- A project says how its \*\*\*plain is built in `config.turri.yaml`, at the project root. Everything in it is optional: with no file at all, turri finds the testing scripts on its own, turns conformance tests on wherever a module has test reqs, and runs on [pi](https://pi.dev)'s configured model. A project whose parts are on different stacks - a backend and a frontend - adds a file per stack, `config.turri.<stack>.yaml`, beside it, and chooses the stack to build with (see [stacks](#stacks)). turri never writes a `config.yaml`: it may be another tool's, and is read only by a project that has no file of turri's yet (see [the old config.yaml](#the-old-configyaml)).
3
+ A project says how its \*\*\*plain is built in `config.turri.yaml`, at the project root. Everything in it is optional: with no file at all, turri finds the testing scripts on its own, turns conformance tests on wherever a module has test reqs, and runs on [pi](https://pi.dev)'s configured model. A project whose parts are on different stacks - a backend and a frontend - gives a module a file of its own, `config.turri.<module>.yaml`, beside it, which builds that module and those built on it (see [a module's own config](#a-modules-own-config)). turri never writes a `config.yaml`: it may be another tool's, and is read only by a project that has no file of turri's yet (see [the old config.yaml](#the-old-configyaml)). A key in `config.turri.yaml` or a module's file that turri reads nothing of - a setting it no longer has, like `test-advisor`, or one misspelt - is named in a warning under the banner as turri starts, rather than ignored without a word.
4
4
 
5
5
  `turri init-config` starts one: the two models, a strong one to talk to and a smaller one to write the code. It asks which vendor's models you use - `--vendor` says it without asking, and with neither, as from a script, it is `other`:
6
6
 
@@ -32,7 +32,7 @@ Beside a `config.yaml` - another tool's, say - the new file takes from it the ke
32
32
 
33
33
  ## Where it is read from
34
34
 
35
- \*\*\*plain belongs to its **project**: the nearest folder, from its own folder up, that holds a `config.turri.yaml`, a stack's `config.turri.<stack>.yaml`, the old `config.yaml` or a `plain_modules/`. Without any of them, the \*\*\*plain description's own folder is the project. That folder's config is the one read, and its `plain_modules/` is where the code is built, wherever turri was started. So a project that keeps its \*\*\*plain in `plain/`, with `plain/config.turri.yaml`, builds `plain/app.plain` by `plain/config.turri.yaml` even when `turri` runs in the folder above.
35
+ \*\*\*plain belongs to its **project**: the nearest folder, from its own folder up, that holds a `config.turri.yaml`, a module's `config.turri.<module>.yaml`, the old `config.yaml` or a `plain_modules/`. Without any of them, the \*\*\*plain description's own folder is the project. That folder's config is the one read, and its `plain_modules/` is where the code is built, wherever turri was started. So a project that keeps its \*\*\*plain in `plain/`, with `plain/config.turri.yaml`, builds `plain/app.plain` by `plain/config.turri.yaml` even when `turri` runs in the folder above.
36
36
 
37
37
  When it is read:
38
38
 
@@ -41,7 +41,19 @@ When it is read:
41
41
 
42
42
  ## Changing it from the chat
43
43
 
44
- `/turri-config` changes any key in the chat, and writes it into the `config.turri.yaml` of the folder turri was started in - its comments, and the commented-out examples, kept. Alone, it lists every key with what it is now, and asks for the value of the one you pick the way the key takes it: `true` or `false`, one of its words, a number from a few offered or typed, a model from those this machine can reach and then how hard it thinks, a script or a `.plain` file the project has, rules ticked on and off. `/turri-config review` asks for review's value; `/turri-config review false` sets it, and `/turri-config review unset` takes it out, back to its default. Completion offers the keys, then each one's values. Each role's model and turn limit is `models.<role>` and `models.<role>.turn-limit` - `models.coding`, `models.planner.turn-limit`.
44
+ `/settings` changes any key in the chat, and writes it into the `config.turri.yaml` of the folder turri was started in - its comments, and the commented-out examples, kept. Alone, it lists every key with what it is now, and asks for the value of the one you pick the way the key takes it: `true` or `false`, one of its words, a number from a few offered or typed, a model from those this machine can reach and then how hard it thinks, a script or a `.plain` file the project has, rules ticked on and off. `/settings review` asks for review's value; `/settings review false` sets it, and `/settings review unset` takes it out, back to its default. Completion offers the keys, then each one's values. Each role's model and turn limit is `models.<role>` and `models.<role>.turn-limit` - `models.coding`, `models.planner.turn-limit`. It takes [pi](https://pi.dev)'s own `/settings` over: pi's menu - the theme, the editor, how the chat is shown - is the last entry of its list.
45
+
46
+ You can ask the chat too - "regenerate with gpt 5.5 from now on" - and its `settings` tool writes `coding-model` for you, the model checked as it is written, by the name you said: one that fits several models, or none signed in, comes back to you as a question instead. It writes into `config.turri.yaml`, or a module's own file (see [a module's own config](#a-modules-own-config)), and says what it set and when it takes effect. It changes a setting only when you ask, and some it never changes, whatever you ask - they are yours, with `/settings`:
47
+
48
+ | yours alone | why |
49
+ | --- | --- |
50
+ | `conformance-tests` | it doubles the time each change takes - see [conformance tests](#conformance-tests) |
51
+ | `agent-env`, `toolchains` | they hand the agents credentials, and folders of this machine past the [sandbox](sandbox.md) |
52
+ | `sentinel` | it checks the chat's own work |
53
+ | `rules-off` | it takes \*\*\*plain rules out of the chat's own prompt |
54
+ | `ledger-keep` | the ledger is the record of what the agents did |
55
+
56
+ A path it writes stays inside the project. For one pulse on another model, the chat passes `model` to `regenerate` or `conform` instead, and the config stays as it is.
45
57
 
46
58
  Each change says when it takes effect. None needs turri started again - what turri fixes as it starts is changed as it runs:
47
59
 
@@ -56,13 +68,13 @@ Each change says when it takes effect. None needs turri started again - what tur
56
68
  | the next regeneration that names no `.plain` file | `module` |
57
69
  | the next time turri starts here | `ledger-keep`, `cache-keep` |
58
70
 
59
- A coding model chosen this session - `--coding-model`, or `engine` - gives way to one set here: the last word wins. It says, too, what wins over the change: `models.chat` over `harness-model` (and so on), and a stack's `config.turri.<stack>.yaml`, which is not changed here, while that stack is chosen. In a project still read from `config.yaml`, the first change copies it to `config.turri.yaml` first - see [the old config.yaml](#the-old-configyaml).
71
+ A coding model given for this session with `--coding-model` gives way to one set here: the last word wins. It says, too, what wins over the change: `models.chat` over `harness-model` (and so on), and a module's own `config.turri.<module>.yaml`, which `/settings` does not change, for that module and those built on it. In a project still read from `config.yaml`, the first change copies it to `config.turri.yaml` first - see [the old config.yaml](#the-old-configyaml).
60
72
 
61
73
  ## The keys
62
74
 
63
75
  ```yaml
64
76
  module: app.plain # what to build when no .plain file is named
65
- conformance-tests: false # whether functional specs are conformance tested - false: none, the test advisor off (default: false)
77
+ conformance-tests: false # whether functional specs are conformance tested - false: none (default: false)
66
78
  test-dir: tests # the test plain files, a folder per module (default: tests)
67
79
  base-folder: existing-app # what a codebase that requires no module starts from (default: nothing)
68
80
  harness-model: # the model you chat with
@@ -96,10 +108,9 @@ models: # each agent role's model, thinking and tur
96
108
  | `allow-to-stop-jobs` | `true` or `false`: whether turri stops a running job \*\*\*plain has moved on from - a functional spec it regenerates changed, or a file one links was edited - rolls it back and regenerates \*\*\*plain as it now is. `false`: the job runs to its end and lands, and what changed since is regenerated on top of it by the next job - see [regenerating the code](regenerating.md). Your own `halt` stops a job either way | `true` |
97
109
  | `release-after-pulse` | `true` or `false`: whether every pulse that lands code releases it, in the chat, as its last stage - before the module's next pulse starts, whatever the chat is doing: an agent on the coding model releases it, following the project's release guidance as the chat finds it (what was passed to `release` this conversation, AGENTS.md, the project's skills) for how, or to `dist/<module>` without any - see [deploy](deploy.md#after-every-pulse). One release a pulse that lands; a release that fails is said in the pulse's report, and what it landed stays. `turri init-config` writes `true` | `false` |
98
110
  | `sentinel` | `ask`, `true` or `false`: whether a chat of turri's own, the sentinel, gets every pulse that finishes - checks it, tests what was released under `release-after-pulse`, and puts what needs you as a notice in the chat you are in - instead of the chat that asked for it. `ask`: you are asked, with what it does, before it first opens in a session - see [starting it](sentinel.md#starting-it); `true`: it opens without asking. `/sentinel` sets it from the chat. `turri init-config` writes `ask` | `ask` |
99
- | `test-advisor` | `true` or `false`: whether the [test advisor](test-advisor.md) starts by itself - in the chat and a host, never headless - checking each new or changed functional spec with no scenarios in the background for whether it needs testing - on a yes, the chat writes its \*\*\*test reqs\*\*\*, conformance testing script and scenarios. `false` turns off only that: the chat's `evaluate_tests` still works, and scenarios you ask the chat for are written as before. `turri init-config` writes `true` | `true` |
100
- | `conformance-tests` | whether functional specs are conformance tested - black-box tests of the built software against the scenarios of their test plain files, run with the whole suite as more lands. `false`: none - no scenarios written or tested, no conformance testing script, the test advisor and the chat's `conform` and `evaluate_tests` off. The person asking for them in the chat, or agreeing when the chat offers them, turns them on - see [conformance tests](#conformance-tests). A stack's `config.turri.<stack>.yaml` can set its own | `false` |
101
- | `test-dir` | the folder of the test plain files, by path from the project root: a module's are every `.plain` file in `<test-dir>/<module>/`, each a functional spec's conformance and acceptance scenarios - see [test plain files](parser.md#test-plain-files). A stack's `config.turri.<stack>.yaml` can set its own | `tests` |
102
- | `base-folder` | a folder, by path from the project root, that a codebase requiring no other module starts from instead of nothing - an existing codebase to build on, files to use (images, animations, fonts), or both. It is copied in once, before the codebase's first pulse, and never written to: from a git repo what git sees, else every file but `.git` and installed dependencies. The \*\*\*plain may refer to it, and link into it; a codebase built on another starts from that one's code, base folder and all. A stack's `config.turri.<stack>.yaml` can name its own - see [the base folder](regenerating.md#the-base-folder) | none: the codebase starts empty |
111
+ | `conformance-tests` | whether functional specs are conformance tested - black-box tests of the built software against the scenarios of their test plain files, run with the whole suite as more lands. `false`: none - no scenarios written or tested, no conformance testing script, and the chat's `conform` refused. Off by default for fast iteration - they make each change take about twice as long - and turned on by the person, with `/conform` - see [conformance tests](#conformance-tests). A module's `config.turri.<module>.yaml` can set its own | `false` |
112
+ | `test-dir` | the folder of the test plain files, by path from the project root: a module's are every `.plain` file in `<test-dir>/<module>/`, each a functional spec's conformance and acceptance scenarios - see [test plain files](parser.md#test-plain-files). A module's `config.turri.<module>.yaml` can set its own | `tests` |
113
+ | `base-folder` | a folder, by path from the project root, that a codebase requiring no other module starts from instead of nothing - an existing codebase to build on, files to use (images, animations, fonts), or both. It is copied in once, before the codebase's first pulse, and never written to: from a git repo what git sees, else every file but `.git` and installed dependencies. The \*\*\*plain may refer to it, and link into it; a codebase built on another starts from that one's code, base folder and all. A module's `config.turri.<module>.yaml` can name its own - see [the base folder](regenerating.md#the-base-folder) | none: the codebase starts empty |
103
114
  | `unittests-script` | the unit testing script, by path from the project root - it runs the code's static checks too, exiting 80 when only they fail (see [the static checks](regenerating.md#the-static-checks)) | looked for - see below |
104
115
  | `conformance-tests-script` | the conformance testing script, by path from the project root | looked for - see below |
105
116
  | `prepare-environment-script` | optional: run as `<script> <build>` before every run of the conformance testing script, which runs only once it passes - see [the testing scripts](regenerating.md#the-testing-scripts). turri never writes one | the one `prepare_environment*.sh` at the root or in `test_scripts/`, else none |
@@ -107,11 +118,11 @@ models: # each agent role's model, thinking and tur
107
118
  | `ledger-keep` | how many megabytes of the ledger - what turri did, as facts, in `.turri/ledger` - the project keeps: past it, the oldest runs' are pruned when a run first writes; `0` keeps none, and writes none; the project's alone. See [the ledger](using.md#the-ledger) | 100 |
108
119
  | `debug` | `true` or `false`: whether turri keeps what it writes only for a person debugging it - every agent's whole log and saved session, each pulse's log, the whole outputs of its test runs and services, its agents' temporary files, and the dependencies installed in the modules a chain has left behind. `false`: only what turri reads to work is kept. `TURRI_DEBUG=1` - or `turri --debug` - turns it on for one run, and `TURRI_DEBUG=0` off; the project's alone. See [debug mode](#debug-mode) | `false` |
109
120
  | `cache-keep` | how many megabytes of package caches the project keeps - `plain_modules/.turri/cache`, and the caches in the agents' home folders: past it, the least recently written - by the newest file in each - are removed when a run starts its first agent command, each downloaded again when it is wanted; `0` keeps none; the project's alone | 4096 |
110
- | `max-specs-per-pulse` | the most functional specs the planner groups into one pulse - what builds one feature goes together, up to this many; a stack's file wins | 3 |
111
- | `max-lines-per-pulse` | the most lines of \*\*\*plain in one pulse - its functional specs with the definitions they bring; a group past it is split again, a functional spec a pulse; a stack's file wins | 120 |
121
+ | `max-specs-per-pulse` | the most functional specs the planner groups into one pulse - what builds one feature goes together, up to this many; a module's file wins | 3 |
122
+ | `max-lines-per-pulse` | the most lines of \*\*\*plain in one pulse - its functional specs with the definitions they bring; a group past it is split again, a functional spec a pulse; a module's file wins | 120 |
112
123
  | `parallel-jobs` | how many jobs the chat runs at once - modules that share nothing build side by side up to it; read when the chat starts, from the folder it starts in | half this machine's cores, between one and four - see [how many jobs at once](#how-many-jobs-at-once) |
113
- | `agent-env` | credentials the agents' commands need while they work - a live API probed, tests run against a real service: `files: [...]`, dotenv files by path from the project root, every variable in them; `vars: [...]`, variables by name from the environment turri was started in. A stack's `config.turri.<stack>.yaml` adds its own to the project's. See [credentials for the agents](#credentials-for-the-agents) | none: an agent's commands get no credential |
114
- | `toolchains` | folders of this machine an agent's commands may read beside the system's, the `PATH`'s and those the toolchain variables point at - a toolchain installed somewhere unusual (`[/srv/zig]`). A stack's add to the project's. See [the OS sandbox](sandbox.md#the-os-sandbox) | none |
124
+ | `agent-env` | credentials the agents' commands need while they work - a live API probed, tests run against a real service: `files: [...]`, dotenv files by path from the project root, every variable in them; `vars: [...]`, variables by name from the environment turri was started in. A module's `config.turri.<module>.yaml` adds its own to the project's. See [credentials for the agents](#credentials-for-the-agents) | none: an agent's commands get no credential |
125
+ | `toolchains` | folders of this machine an agent's commands may read beside the system's, the `PATH`'s and those the toolchain variables point at - a toolchain installed somewhere unusual (`[/srv/zig]`). A module's add to the project's. See [the OS sandbox](sandbox.md#the-os-sandbox) | none |
115
126
  | `turn-limit` | seconds each turn of an agent a job starts has, for every role without its own (`models:`); `0` for none. The config is the only place it is set. A turn past it ends at its next request to the model - see [regenerating the code](regenerating.md) | 120 |
116
127
  | `models` | each agent role's own model, thinking and turn limit - see [models per role](#models-per-role) | every role on `coding-model`, the conversation's side on `harness-model` |
117
128
  | `testing-scripts-run-on` | what the testing scripts run on - always on this machine, in your environment. `in-place`: the real build and tests folders, the script at its own path, from the project - so a script that finds a host codebase from its own path finds it. `copy`: a fresh copy of the code, staged in `plain_modules/.turri/scripts/`, with the script copied beside it. `can_it_fail` works on either: on a copy it changes the copy, in place the code itself for the one run, put back after it (see [the testing scripts](regenerating.md#the-testing-scripts)) | `in-place` |
@@ -130,7 +141,7 @@ Keys are written with dashes; underscores are read the same (`mutation_testing`)
130
141
  | `planner` | the conversation's side: the planner's agents. Unnamed, the chat's model |
131
142
  | `diagnosis` | the diagnosis of a job that failed for good: why it did not land, and what to do. Unnamed, the coding model the job ran on, thinking medium |
132
143
  | `release` | `turri release`'s agent and release-after-pulse's: it follows steps - a script, a start command - so it runs on the coding model, thinking low |
133
- | `coding` | the coding agent, the code fixer of a conformance run and the repair agent - the same as `coding-model`, which it wins over. `--model` on the command line, or a model chosen in the conversation (`engine`), wins over both |
144
+ | `coding` | the coding agent, the code fixer of a conformance run and the repair agent - the same as `coding-model`, which it wins over. `--model` on the command line, or a model a call to `regenerate` or `conform` names, wins over both |
134
145
  | `conformance` | the conformance agent |
135
146
  | `explorer` | the explorers of a conformance run |
136
147
  | `reviewer` | the review of the code and its unit tests |
@@ -138,17 +149,16 @@ Keys are written with dashes; underscores are read the same (`mutation_testing`)
138
149
  | `judge` | the judge of a failing conformance run - the same as `judge-model`, which it wins over |
139
150
  | `arbiter` | the arbiters that weigh a second review |
140
151
  | `debugger` | the fresh look at unit tests that keep failing the same way, or a coding agent going round in circles. Unnamed, `judge-model` when it is set, else the harness model - not `default` |
141
- | `advisor` | the [test advisor](test-advisor.md): classifying a new or changed functional spec, its probes, readers and verifier |
142
152
 
143
- What an entry leaves out it takes from `default`: `reviewer: { thinking: low }` runs the default model, thinking little. A turn limit is the role's own, else `default`'s, else `turn-limit:`, else two minutes. A stack's `config.turri.<stack>.yaml` lays its own `models:` over the project's, role by role - all but `chat`, the project's alone.
153
+ What an entry leaves out it takes from `default`: `reviewer: { thinking: low }` runs the default model, thinking little. A turn limit is the role's own, else `default`'s, else `turn-limit:`, else two minutes. A module's `config.turri.<module>.yaml` lays its own `models:` over the project's, role by role - all but `chat`, the project's alone.
144
154
 
145
- A role whose thinking nothing names - neither its entry, `default`'s, nor a `:level` on the model it runs on - thinks as its kind of work needs: **low** for the agents that do the work (`coding`, `conformance`, `explorer`, `release`, `advisor`), which work from \*\*\*plain that leaves little to guess and take many turns, and **medium** for the ones that judge (`reviewer`, `test-reviewer`, `judge`, `arbiter`, `debugger`, `planner`, `diagnosis`), where a wrong call costs pulses. A judging role that falls back on the coding model takes its model alone, not its thinking. The conversation keeps its own level, as [pi](https://pi.dev) sets it.
155
+ A role whose thinking nothing names - neither its entry, `default`'s, nor a `:level` on the model it runs on - thinks as its kind of work needs: **low** for the agents that do the work (`coding`, `conformance`, `explorer`, `release`), which work from \*\*\*plain that leaves little to guess and take many turns, and **medium** for the ones that judge (`reviewer`, `test-reviewer`, `judge`, `arbiter`, `debugger`, `planner`, `diagnosis`), where a wrong call costs pulses. A judging role that falls back on the coding model takes its model alone, not its thinking. The conversation keeps its own level, as [pi](https://pi.dev) sets it.
146
156
 
147
157
  The thinking level reaches the model as each provider takes it. OpenAI's models on Bedrock are sent it as their reasoning effort (`none`, `low`, `medium`, `high`, `xhigh`) by turri itself, as [pi](https://pi.dev) sends them none.
148
158
 
149
159
  ## How many jobs at once
150
160
 
151
- Jobs on the same module, or on modules of one `requires` chain, always run one after another. Modules that share nothing - a backend, a frontend, a worker, ten of them - build side by side, each pulse's builds and tests running on this machine beside your own work. So the chat runs at most `parallel-jobs` jobs at once; a job whose turn has come waits for a free slot past that, and its line says so. Unset, it is half this machine's cores, at least one and at most four. The config is the only place it is set. It is the project's alone, never read from a stack's file.
161
+ Jobs on the same module, or on modules of one `requires` chain, always run one after another. Modules that share nothing - a backend, a frontend, a worker, ten of them - build side by side, each pulse's builds and tests running on this machine beside your own work. So the chat runs at most `parallel-jobs` jobs at once; a job whose turn has come waits for a free slot past that, and its line says so. Unset, it is half this machine's cores, at least one and at most four. The config is the only place it is set. It is the project's alone, never read from a module's file.
152
162
 
153
163
  The testing scripts all run on this machine, each on a copy of its module's code, so they never share files - but they do share its network: two modules whose conformance scripts start a server on the same port collide when they run at once. Give each its own.
154
164
 
@@ -171,24 +181,24 @@ They are defaults. What is asked for wins over them:
171
181
  | model | wins over the config |
172
182
  | --- | --- |
173
183
  | harness | `turri --harness-model <m>` (or [pi](https://pi.dev)'s own `--model`), and [pi](https://pi.dev)'s `/model` in the conversation |
174
- | coding | `turri --coding-model <m>`, `engine` in the conversation |
184
+ | coding | `turri --coding-model <m>` |
175
185
  | judge | - |
176
186
 
177
- `turri regenerate`, `conform` and `change-plain` read `--harness-model`, `--coding-model` (or `--model`), `--judge-model` and `--review` differently: as the keys themselves, as if the file had them. Each takes its key's value and its place in the order above - a `models:` entry still wins over it - so a headless run is the same as a chat with those keys in the file.
187
+ `turri regenerate` and `conform` read `--harness-model`, `--coding-model` (or `--model`), `--judge-model` and `--review` differently: as the keys themselves, as if the file had them. Each takes its key's value and its place in the order above - a `models:` entry still wins over it - so a headless run is the same as a chat with those keys in the file.
178
188
 
179
189
  A job keeps the model it was queued with: choosing another holds for what is queued after.
180
190
 
181
191
  ## Conformance tests
182
192
 
183
- `conformance-tests: true` turns them on, a stack's `config.turri.<stack>.yaml` able to say its own. Unset, they are off, and `turri init-config` writes `conformance-tests: false`: no scenarios are written or tested, no conformance testing script is written, no conformance pulse runs - in the work loop, from `conform` or `turri conform` - the test advisor is off, and the chat has neither `conform` nor `evaluate_tests`. Test plain files already there are kept and parsed, and not tested: `parse` and `drift` say so. The chat always knows what they are, that they are off, and how they are turned on, and may offer them - once, never turning them on unasked. You asking it for conformance tests or testing scenarios, or agreeing when it offers them, turns them on: it writes `conformance-tests: true` - into the stack's file when that names the key, else `config.turri.yaml` - in effect at once, and kept for the sessions after. So does `/turri-config conformance-tests true`, and so does `/conform`, which then tests what has scenarios and code at once.
193
+ `conformance-tests: true` turns them on, a module's `config.turri.<module>.yaml` able to say its own. Unset, they are off, and `turri init-config` writes `conformance-tests: false`: no scenarios are written or tested, no conformance testing script is written, no conformance pulse runs - in the work loop, from `conform` or `turri conform` - and the chat's `conform` is refused. Test plain files already there are kept and parsed, and not tested: `parse` and `drift` say so. Turning them on is yours to decide, as they make each change take about twice as long: the chat always knows what they are, that they are off, and how they are turned on, and when it thinks a module needs them - or you ask it for them - it tells you why, and leaves it to you. `/conform` turns them on: it writes `conformance-tests: true` - into the module's config file when that names the key, else `config.turri.yaml` - in effect at once, and kept for the sessions after, then tests what has scenarios and code at once. So does `/settings conformance-tests true`, without testing anything.
184
194
 
185
- On, what is tested is the functional specs with scenarios - the conformance and acceptance scenarios of each one's test plain file, `<test-dir>/<module>/<func-id>.plain` - in every module with `***test reqs***`. A functional spec with no test plain file is not tested, and a module with no functional spec with scenarios gets no conformance pulse at all - but keeps the codebase's existing tests passing. `test-dir` says where the test plain files are. To have a functional spec tested, write its scenarios: the chat writes them with `change_plain` when you ask for conformance tests (see [conformance tests](regenerating.md#conformance-tests)).
195
+ On, what is tested is the functional specs with scenarios - the conformance and acceptance scenarios of each one's test plain file, `<test-dir>/<module>/<func-id>.plain` - in every module with `***test reqs***`. A functional spec with no test plain file is not tested, and a module with no functional spec with scenarios gets no conformance pulse at all - but keeps the codebase's existing tests passing. `test-dir` says where the test plain files are. To have a functional spec tested, write its scenarios: the chat writes them with its file tools, then calls `regenerate`, when you ask for conformance tests (see [conformance tests](regenerating.md#conformance-tests)).
186
196
 
187
197
  ## The testing scripts
188
198
 
189
199
  A build needs a unit testing script - and, with conformance on, a conformance testing script - to decide when it is done. They are looked for at the project root, in this order:
190
200
 
191
- 1. named in the config - the chosen stack's file first, then `config.turri.yaml` - by path from the root;
201
+ 1. named in the config - the module's own file first (or the one of a module it requires), then `config.turri.yaml` - by path from the root;
192
202
  2. the one `run_unittests*.sh` / `run_conformance_tests*.sh` in the project root;
193
203
  3. the one of each in `test_scripts/`.
194
204
 
@@ -209,9 +219,9 @@ turri writes much more than it needs to work, for a person working out why it di
209
219
  | a module's `TMPDIR` (`plain_modules/.turri/tmp/<module>`) | emptied as each of its pulses ends | kept |
210
220
  | dependencies installed in the modules below a pulse's own in its chain (`node_modules`, `.venv`) | removed as the pulse ends: the chain is built in its tip, and a module built on again installs them again, from the cache | kept |
211
221
 
212
- Kept either way: the ledger - what each pulse did, how it ended, what it cost (see [the ledger](using.md#the-ledger)) - the code, its tests and their history, a gated skill's run, what a conformance explorer found, what `deploy` started, and the package caches, held to `cache-keep:`. The testing scripts install what they run with themselves, so nothing removed is ever missed by a test run.
222
+ Kept either way: the ledger - what each pulse did, how it ended, what it cost (see [the ledger](using.md#the-ledger)) - and, for each pulse that failed or finished without landing, why: its report in `.turri/pulses/<id>.md` - its diagnosis, the stages that went wrong, the last failing test run's output, the last review that sent the work back, the tool calls that failed - which `pulses` tells with it in a later session, the newest 200 kept and none where `ledger-keep: 0`; the code, its tests and their history, a gated skill's run, what a conformance explorer found, what `deploy` started, and the package caches, held to `cache-keep:`. The testing scripts install what they run with themselves, so nothing removed is ever missed by a test run.
213
223
 
214
- Turn it on in `config.turri.yaml` (`debug: true`, or `/turri-config debug true`), or for one run with `TURRI_DEBUG=1` or `turri --debug`.
224
+ Turn it on in `config.turri.yaml` (`debug: true`, or `/settings debug true`), or for one run with `TURRI_DEBUG=1` or `turri --debug`.
215
225
 
216
226
  ## Credentials for the agents
217
227
 
@@ -225,22 +235,23 @@ agent-env:
225
235
  vars: [D365_TENANT_ID] # these variables, from the environment turri was started in
226
236
  ```
227
237
 
228
- What it names reaches every agent with a shell, as environment variables of its commands only - the file stays where it is, outside every agent's reach - and never replaces turri's own home, `TMPDIR` or caches. A stack's file adds to the project's. A file that is not there, or a variable unset or empty, is reported as missing. The testing scripts are not affected: they run in your own environment.
238
+ What it names reaches every agent with a shell, as environment variables of its commands only - the file stays where it is, outside every agent's reach - and never replaces turri's own home, `TMPDIR` or caches. A module's file adds to the project's. A file that is not there, or a variable unset or empty, is reported as missing. The testing scripts are not affected: they run in your own environment.
229
239
 
230
240
  Their values never appear in what an agent is shown or what turri writes: each is replaced by its name - `[D365_CLIENT_SECRET]` - whole, URL-encoded, or split over a command's output as it streams: in every tool result and refusal an agent is given (and so in the session transcripts, which hold only those), in the whole outputs kept for `read_output`, and in the job and debug logs. A value shorter than four characters is not masked - `1` or `eu` is everywhere in ordinary output.
231
241
 
232
- ## Stacks
242
+ ## A module's own config
233
243
 
234
- One project can hold parts that share nothing but a common module - a Python backend and a React frontend side by side, each importing `base` from `template/`, neither requiring the other - each needing its own testing scripts. Each stack gets a file of its own beside `config.turri.yaml`, `config.turri.<stack>.yaml`, holding what differs for it - typically its testing scripts, its `toolchains:`, its models:
244
+ One project can hold parts that share nothing but a common module - a Python backend and a React frontend side by side, each importing `base` from `template/`, neither requiring the other - each needing its own testing scripts. A module can have a file of its own beside `config.turri.yaml`, `config.turri.<module>.yaml`, holding what differs for it - typically its testing scripts, its `toolchains:`, its models:
235
245
 
236
246
  ```
237
247
  config.turri.yaml # the project's: harness-model, coding-model, review
238
- config.turri.backend.yaml # the stack backend: its testing scripts
239
- config.turri.frontend.yaml # the stack frontend: its testing scripts, and a coding model of its own
248
+ config.turri.backend.yaml # backend.plain's: its testing scripts
249
+ config.turri.frontend.yaml # frontend.plain's: its testing scripts, and a coding model of its own
240
250
  backend.plain # import: [base, python_fastapi_template]
251
+ backend_auth.plain # requires: [backend] - built with config.turri.backend.yaml too
241
252
  frontend.plain # import: [base, react_vite_template]
242
253
  template/ # base.plain, python_fastapi_template.plain, react_vite_template.plain
243
- test_scripts/ # both stacks' scripts
254
+ test_scripts/ # both modules' scripts
244
255
  ```
245
256
 
246
257
  ```yaml
@@ -251,27 +262,26 @@ coding-model:
251
262
  thinking: high
252
263
  ```
253
264
 
254
- Which stack builds a module, first match wins:
255
-
256
- - **The one a call names.** `regenerate`, `conform`, `glimpse` and `change_plain` take a `stack`; the chat's model passes it for a module whose stack has a name of its own, leaving the chat's choice as it is.
257
- - **The stack named after the module** - `config.turri.backend.yaml` builds `backend.plain` - with nothing to choose or pass. Name each stack after the module it builds, and a backend and a frontend are each built with their own, side by side - in the chat, as each change is written, and on the command line.
258
- - **The one chosen in the chat** - each [chat](chats.md) its own - with `/stack` - a list of the project's stacks and none - or `/stack backend`, `/stack none`. The chat's model has a `stack` tool too, and switches the stack when you ask it to. `/stack` alone says which is chosen now. On the command line, with `--stack <name>` on any command - `turri regenerate`, `conform`, `change-plain`, `glimpse`, `release`, `cultivate` - and on `turri --stack backend` for the chat; or with `TURRI_STACK` in the environment.
265
+ Nobody chooses which file builds a module: turri works it out from the module, the same in the chat and on the command line.
259
266
 
260
- A chat's choice is its own, and lasts while it is open: a new chat starts with `--stack`'s, or none, and nothing remembers it - turri started again has none chosen. A stack the project has no file for is refused, with the stacks it has. With none chosen, `config.turri.yaml` alone is used.
267
+ 1. **`config.turri.yaml`**, by default.
268
+ 2. **The module's own file**, `config.turri.<module>.yaml`, laid over it.
269
+ 3. **The file of a module it requires**, when it has none of its own - all the way down its `requires` chain. A module is built on the code of those it requires, in one codebase, with their testing scripts: `backend_auth.plain` is built with `config.turri.backend.yaml`, and so is every module built on it that has no file of its own. Only `requires` counts, not `import`.
270
+ 4. **An error**, when two modules it requires have a file of their own and it has none: which one builds it cannot be told. `turri parse` says so, and `regenerate` and `conform` refuse it - give the module its own file, or keep one of theirs.
261
271
 
262
- How a stack's config is made:
272
+ How a module's config is made:
263
273
 
264
- - **Laid over `config.turri.yaml`, key by key.** What the stack's file gives wins; what it leaves out is the project's. A model it names takes what it leaves out from the project's same model - above, with the stack frontend chosen, everything regenerates on the project's coding model, thinking `high`.
265
- - **Pinned to a module when it is asked for.** A module is built with the stack it was asked for with, from its first pulse to its last: the pulses planned after it, its test runs, the scripts found, its plans and its conformance tests, whatever stack is chosen meanwhile. A pulse waiting for a free slot keeps the stack it was queued with. A change to its \*\*\*plain keeps its stack - unless it was built with none and has a stack of its own now; asked for again, its stack is worked out again. What `regenerate` says back names each module's stack, and so does a pulse's report.
266
- - **Refused with none, when that cannot build.** In a project of stacks, a module asked for with no stack - none named, none named after it, none chosen - is refused before anything is planned when `config.turri.yaml` alone names no unit testing script: every pulse would stop for want of one. The refusal names the stacks and the script each names. A \*\*\*plain change `change_plain` writes is never refused: it is written, and said not to be built yet - passed the stack, everything written is built. `stack: none` builds with `config.turri.yaml` alone all the same.
267
- - **The project's alone.** `module:`, `harness-model:`, `parallel-jobs:`, `rules-off:`, `compact-at:`, `ledger-keep:`, `debug:` and `cache-keep:` are read only from `config.turri.yaml` - there is one conversation, one module built when none is named, one machine. `agent-env:` and `toolchains:` in a stack's file add to the project's.
274
+ - **Laid over `config.turri.yaml`, key by key.** What the module's file gives wins; what it leaves out is the project's. A model it names takes what it leaves out from the project's same model - above, `frontend.plain` regenerates on the project's coding model, thinking `high`.
275
+ - **Pinned to each pulse.** A pulse runs with the config it was planned with - its test runs, the scripts found, its agents - and a pulse waiting for a free slot keeps the one it was queued with. A module is looked at again each time it is asked for or its \*\*\*plain changes: a file added since is used from its next pulse. What `regenerate` says back names the file each module is built with, and so does a pulse's report.
276
+ - **Refused when that cannot build.** In a project where modules have files of their own, a module with none - and none among the modules it requires - is refused before anything is planned when `config.turri.yaml` alone names no unit testing script: every pulse would stop for want of one. The refusal names the modules' files and the script each names. Give the module a file of its own - the chat's `settings` tool writes one, with `module` - or name the script in `config.turri.yaml`.
277
+ - **The project's alone.** `module:`, `harness-model:`, `parallel-jobs:`, `rules-off:`, `compact-at:`, `ledger-keep:`, `debug:` and `cache-keep:` are read only from `config.turri.yaml` - there is one conversation, one module built when none is named, one machine. `agent-env:` and `toolchains:` in a module's file add to the project's.
268
278
 
269
- The chat is told each stack's config and the one chosen. The skills that write testing scripts put each stack's in its own file once a project has two stacks, each stack named after the module it builds.
279
+ The chat is told each module's file and the modules it builds. The skills that write testing scripts put each module's scripts in its own file once a project has two, named after the module at the bottom of its chain.
270
280
 
271
281
  ## The old config.yaml
272
282
 
273
- turri's settings were once in `config.yaml`, and a stack's in `config.<stack>.yaml`. A `config.yaml` may be another tool's, so turri never writes one. While a project folder has no `config.turri*.yaml` at all, turri still reads its `config.yaml`, and each `config.<name>.yaml` as the stack `<name>`.
283
+ turri's settings were once in `config.yaml`, and a module's own in `config.<module>.yaml`. A `config.yaml` may be another tool's, so turri never writes one. While a project folder has no `config.turri*.yaml` at all, turri still reads its `config.yaml`, and each `config.<name>.yaml` as the module `<name>`'s own.
274
284
 
275
- The first time turri itself writes a setting there with `/turri-config`, it copies `config.yaml` to `config.turri.yaml` and each `config.<name>.yaml` to `config.turri.<name>.yaml` first, leaves the old files as they are, and from then on reads only the new ones. `turri init-config` copies the stacks' files the same way, but writes `config.turri.yaml` as its quick start, taking from `config.yaml` only the keys turri reads too - `unittests-script`, `conformance-tests-script` and `prepare-environment-script`, say - each in its place in the file, and saying which keys it left: `template_dir`, `verbose`, `api`, the other tool's alone. The two models are the vendor's, never taken. To change a setting by hand in such a project, do the same: copy the files to their new names, and edit the copies - never `config.yaml`. Writing a `config.turri.yaml` of your own beside it is the same move: from then on `config.yaml` is not read, its testing scripts with it. For a headless run that only needs conformance tests or another judge, or review, those options leave the files alone: `--conformance-tests`, `--judge-model`, `--review true|false`, and the models' too.
285
+ The first time turri itself writes a setting there with `/settings`, it copies `config.yaml` to `config.turri.yaml` and each `config.<name>.yaml` to `config.turri.<name>.yaml` first, leaves the old files as they are, and from then on reads only the new ones. `turri init-config` copies the modules' files the same way, but writes `config.turri.yaml` as its quick start, taking from `config.yaml` only the keys turri reads too - `unittests-script`, `conformance-tests-script` and `prepare-environment-script`, say - each in its place in the file, and saying which keys it left: `template_dir`, `verbose`, `api`, the other tool's alone. The two models are the vendor's, never taken. To change a setting by hand in such a project, do the same: copy the files to their new names, and edit the copies - never `config.yaml`. Writing a `config.turri.yaml` of your own beside it is the same move: from then on `config.yaml` is not read, its testing scripts with it. For a headless run that only needs conformance tests or another judge, or review, those options leave the files alone: `--conformance-tests`, `--judge-model`, `--review true|false`, and the models' too.
276
286
 
277
287
  Keys turri does not read - another tool's `verbose`, `api-key`, `build-folder`, ... - are ignored without a word, and so is a value of the wrong type. A file that does not parse as YAML is read as empty, so its testing scripts are then looked for by name.
package/docs/deploy.md CHANGED
@@ -45,4 +45,4 @@ turri release [file.plain] [--in-module <module>] [--guidance <text>] [--model <
45
45
 
46
46
  The same, without the chat: a one-off agent on `coding-model`, thinking low (or `--model`; without either, [pi](https://pi.dev)'s default) is given the project's AGENTS.md and what `--guidance <text>` says, looks for guidance in them, and releases as above - as the guidance says, or to `dist/<module>` - then works out how to start it and starts it here, installing what it needs without asking. It stays in the foreground with the servers' output; `Ctrl-C` stops them. If it does not get there, deploy from the chat instead.
47
47
 
48
- `turri regenerate`, `change-plain` and `conform` end a build that landed with `To try it: turri release <spec>`.
48
+ `turri regenerate` and `conform` end a build that landed with `To try it: turri release <spec>`.
@@ -38,7 +38,6 @@ The workflow signs in to npm with npm's trusted publishing (OIDC), not a token:
38
38
  | `src/extension.ts` | the [pi](https://pi.dev) extension: every tool and command the conversation has - and `createTurriCore`, the session it is built into |
39
39
  | `src/chats.ts`, `src/chat-scope.ts`, `src/chat-records.ts` | the session's [chats](chats.md): which chat a pulse is told to, each chat's scope - its id and stack - and `.turri/chats.json` |
40
40
  | `src/sentinel.ts`, `src/sentinel-chat.ts` | [the sentinel](sentinel.md): its prompt, what it is told of a pulse, its fenced tools, its guidance; notices - their cards, the terminal's dialog, their answers |
41
- | `src/regenerate/advisor-runs.ts`, `src/regenerate/test-advisor.ts`, `src/regenerate/advisor-records.ts`, `src/advisor-chat.ts` | [the test advisor](test-advisor.md): which functional specs it takes and when, its model calls, its file in `.turri/advisor/`, and how its verdicts reach the chat |
42
41
  | `src/chat-terminal.ts`, `src/chat-ui.ts`, `src/chat-commands.ts` | the terminal's chats: [pi](https://pi.dev)'s screen switched between live sessions, a hidden chat's stand-in for it, `/chat` and its keys |
43
42
  | `src/host-session.ts` | `createTurri`, the session for a host |
44
43
  | `src/skill.ts` | parses `SKILL.md` into steps and gates |
@@ -46,7 +45,6 @@ The workflow signs in to npm with npm's trusted publishing (OIDC), not a token:
46
45
  | `src/judge.ts` | runs independent judges, applies the quorum, builds the critique |
47
46
  | `src/genome.ts` | `runSkill()` - the one entry point the CLI and the extension share |
48
47
  | `src/pi.ts` | [pi](https://pi.dev) session factories for executors, sub-agents and judges |
49
- | `src/spec-tools.ts` | `change_plain` |
50
48
  | `src/loop-tools.ts` | `regenerate`, `drift` and `halt` - one definition each, for the conversation and the skills alike |
51
49
  | `src/plain/` | the [\*\*\*plain](https://plainlang.org/docs/) parser - see [parser](parser.md) - and `highlight.ts`, which highlights \*\*\*plain with turri's own grammar, `plain.tmLanguage.json` - started from [plyn](https://github.com/plainlang/plyn)'s at `f9c02b8`, and changed here since: test plain files' sections and keys, the `# <id>` heading |
52
50
  | `src/regenerate/conformance.ts` | conformance tests: writing them, and fixing the test or the code until they pass |
@@ -57,14 +55,15 @@ The workflow signs in to npm with npm's trusted publishing (OIDC), not a token:
57
55
  | `src/regenerate/lineage.ts` | module history in `.plaingit` |
58
56
  | `src/regenerate/release.ts`, `src/release-tools.ts`, `src/release-cli.ts` | deploy: the last commit to `dist/<module>`, what installs software, what it starts on the host - see [deploy](deploy.md) |
59
57
  | `src/regenerate/confine.ts`, `src/regenerate/agent-shell.ts`, `src/regenerate/command-check.ts`, `src/regenerate/os-sandbox.ts`, `src/regenerate/audit.ts`, `src/regenerate/agent-env.ts`, `src/regenerate/shell.ts` | the file-tool fence and the walls around every agent command: the check, the OS sandbox, the audit, the module's environment, the host runner - see [sandbox](sandbox.md) |
60
- | `src/regenerate/engine.ts` | choosing and resolving the models that regenerate |
58
+ | `src/regenerate/model-names.ts` | resolving a model named as the person said it - for a call's `model` and the `settings` tool |
61
59
  | `src/regenerate/job-panel.ts`, `src/regenerate/transcript-view.ts`, `src/regenerate/diff-view.ts` | the job panel, the side panel's colours, and a \*\*\*plain diff as they show it - highlighted and banded |
62
60
  | `src/regenerate/side-panel.ts`, `src/regenerate/panel-dock.ts` | the side panel, and the chat narrowed beside it when it is docked |
63
61
  | `src/screen-padding.ts` | the blank row above and below the whole screen and the two columns either side, in both of [pi](https://pi.dev)'s ways of drawing it |
64
62
  | `src/regenerate/spec-map.ts`, `src/regenerate/spec-map-view.ts` | regen: each item's mark, from the records, the `.plain` files and the work loop's plan (`mapPlan`), and the map drawn |
65
63
  | `src/regenerate/debug-log.ts` | each regenerating agent's whole conversation, streamed to `.turri/debug/` - while its pulse runs, and kept in debug mode |
66
64
  | `src/regenerate/pulse-files.ts` | what a pulse writes only for a person - its logs, outputs, temporary files, its chain's installed dependencies - removed as it ends outside debug mode |
67
- | `src/regenerate/ledger.ts`, `src/regenerate/ledger-view.ts`, `src/ledger-tools.ts`, `src/ledger-cli.ts` | the ledger: what turri did, as typed facts, in `.turri/ledger/` - `record()`, read back for the `ledger` tool, `pulses`, `diagnose` and `turri ledger` - see [the ledger](using.md#the-ledger) |
65
+ | `src/regenerate/failure-reports.ts` | why a pulse that failed or finished without landing did - what `pulses` says of it - kept in `.turri/pulses/<id>.md` whatever the debug setting, for a later session |
66
+ | `src/regenerate/ledger.ts`, `src/regenerate/ledger-view.ts` | the ledger: what turri did, as typed facts, in `.turri/ledger/` - `record()`, read back for `pulses` - see [the ledger](using.md#the-ledger) |
68
67
  | `genome/` | what turri knows and can do: `genome/skills/`, the skill library, and `genome/rules/`, the \*\*\*plain authoring rules |
69
68
 
70
69
  ## Known edges