ptbk 0.119.0-21 → 0.119.0-26

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 (223) hide show
  1. package/README.md +16 -9
  2. package/dist/browser/browser.d.ts +50 -36
  3. package/dist/browser/browser.js +162 -118
  4. package/dist/browser/browser.js.map +1 -1
  5. package/dist/browser/fleet.d.ts +59 -0
  6. package/dist/browser/fleet.js +148 -0
  7. package/dist/browser/fleet.js.map +1 -0
  8. package/dist/browser/recording.js +2 -2
  9. package/dist/browser/recording.js.map +1 -1
  10. package/dist/chats/conversation.d.ts +1 -1
  11. package/dist/chats/conversation.js +8 -6
  12. package/dist/chats/conversation.js.map +1 -1
  13. package/dist/chats/local.js +5 -5
  14. package/dist/chats/local.js.map +1 -1
  15. package/dist/cli/commands/add.js +1 -1
  16. package/dist/cli/commands/add.js.map +1 -1
  17. package/dist/cli/commands/boilerplates.js +1 -1
  18. package/dist/cli/commands/boilerplates.js.map +1 -1
  19. package/dist/cli/commands/find.js +1 -1
  20. package/dist/cli/commands/find.js.map +1 -1
  21. package/dist/cli/commands/fix.js +9 -4
  22. package/dist/cli/commands/fix.js.map +1 -1
  23. package/dist/cli/commands/init.d.ts +5 -0
  24. package/dist/cli/commands/init.js +279 -118
  25. package/dist/cli/commands/init.js.map +1 -1
  26. package/dist/cli/commands/migrate.js +1 -1
  27. package/dist/cli/commands/migrate.js.map +1 -1
  28. package/dist/cli/commands/ping.js +20 -12
  29. package/dist/cli/commands/ping.js.map +1 -1
  30. package/dist/cli/commands/plan.js +20 -12
  31. package/dist/cli/commands/plan.js.map +1 -1
  32. package/dist/cli/commands/recover.js +1 -1
  33. package/dist/cli/commands/recover.js.map +1 -1
  34. package/dist/cli/commands/restart.js +6 -5
  35. package/dist/cli/commands/restart.js.map +1 -1
  36. package/dist/cli/commands/run.js +26 -15
  37. package/dist/cli/commands/run.js.map +1 -1
  38. package/dist/cli/commands/start.js +11 -7
  39. package/dist/cli/commands/start.js.map +1 -1
  40. package/dist/cli/commands/tool.d.ts +19 -0
  41. package/dist/cli/commands/tool.js +320 -0
  42. package/dist/cli/commands/tool.js.map +1 -0
  43. package/dist/cli/commands/verify.js +1 -1
  44. package/dist/cli/commands/verify.js.map +1 -1
  45. package/dist/cli/common.d.ts +7 -1
  46. package/dist/cli/common.js +37 -20
  47. package/dist/cli/common.js.map +1 -1
  48. package/dist/cli/compatibility.d.ts +8 -0
  49. package/dist/cli/compatibility.js +32 -0
  50. package/dist/cli/compatibility.js.map +1 -0
  51. package/dist/cli/parser.js +7 -3
  52. package/dist/cli/parser.js.map +1 -1
  53. package/dist/cli/registry.js +182 -7
  54. package/dist/cli/registry.js.map +1 -1
  55. package/dist/cli/service-view.js +1 -1
  56. package/dist/cli/service-view.js.map +1 -1
  57. package/dist/cli/sources.js +2 -0
  58. package/dist/cli/sources.js.map +1 -1
  59. package/dist/cli/spec.js +8 -6
  60. package/dist/cli/spec.js.map +1 -1
  61. package/dist/common/naming.d.ts +53 -0
  62. package/dist/common/naming.js +90 -0
  63. package/dist/common/naming.js.map +1 -0
  64. package/dist/engine/agenda.d.ts +70 -9
  65. package/dist/engine/agenda.js +294 -61
  66. package/dist/engine/agenda.js.map +1 -1
  67. package/dist/engine/executor.d.ts +5 -0
  68. package/dist/engine/executor.js +24 -11
  69. package/dist/engine/executor.js.map +1 -1
  70. package/dist/engine/harnesses.d.ts +82 -18
  71. package/dist/engine/harnesses.js +191 -39
  72. package/dist/engine/harnesses.js.map +1 -1
  73. package/dist/engine/preview.js +2 -2
  74. package/dist/engine/preview.js.map +1 -1
  75. package/dist/engine/routing.d.ts +10 -0
  76. package/dist/engine/routing.js +67 -28
  77. package/dist/engine/routing.js.map +1 -1
  78. package/dist/engine/snapshot.d.ts +107 -7
  79. package/dist/engine/state.d.ts +4 -2
  80. package/dist/engine/state.js.map +1 -1
  81. package/dist/engine/sync.d.ts +96 -0
  82. package/dist/engine/sync.js +199 -0
  83. package/dist/engine/sync.js.map +1 -0
  84. package/dist/engine/team.d.ts +1 -0
  85. package/dist/engine/team.js +12 -8
  86. package/dist/engine/team.js.map +1 -1
  87. package/dist/expert/_main.md +96 -67
  88. package/dist/expert/agents/_index.md +10 -7
  89. package/dist/expert/agents/core-agents.md +4 -2
  90. package/dist/expert/agents/fixer.md +15 -12
  91. package/dist/expert/cli/acceptance.md +96 -78
  92. package/dist/expert/cli/api.md +26 -14
  93. package/dist/expert/cli/autonomous-operation.md +17 -19
  94. package/dist/expert/cli/browser.md +24 -24
  95. package/dist/expert/cli/checks.md +18 -10
  96. package/dist/expert/cli/cli.md +48 -41
  97. package/dist/expert/cli/configuration-migrations.md +43 -0
  98. package/dist/expert/cli/configuration.md +24 -14
  99. package/dist/expert/cli/controls.md +23 -11
  100. package/dist/expert/cli/dashboard-details.md +28 -10
  101. package/dist/expert/cli/dashboard-layout.md +15 -15
  102. package/dist/expert/cli/dashboard.md +8 -10
  103. package/dist/expert/cli/environment.md +33 -0
  104. package/dist/expert/cli/execution.md +10 -8
  105. package/dist/expert/cli/git-persistence.md +27 -21
  106. package/dist/expert/cli/git-preflight.md +8 -4
  107. package/dist/expert/cli/git-synchronization.md +32 -6
  108. package/dist/expert/cli/harness-plugins.md +12 -12
  109. package/dist/expert/cli/harnesses.md +22 -16
  110. package/dist/expert/cli/initialization-ui.md +14 -14
  111. package/dist/expert/cli/initialization.md +31 -21
  112. package/dist/expert/cli/installation.md +6 -0
  113. package/dist/expert/cli/isolation.md +5 -3
  114. package/dist/expert/cli/releasing.md +17 -3
  115. package/dist/expert/cli/retries.md +10 -8
  116. package/dist/expert/cli/run.md +7 -5
  117. package/dist/expert/cli/start.md +21 -15
  118. package/dist/expert/cli/status-view.md +15 -17
  119. package/dist/expert/cli/synchronization-setup.md +24 -0
  120. package/dist/expert/cli/terminal.md +14 -16
  121. package/dist/expert/cli/tool-management.md +60 -0
  122. package/dist/expert/cli/tool-runtime.md +35 -0
  123. package/dist/expert/cli/tools-migration.md +50 -0
  124. package/dist/expert/cli/tools.md +73 -0
  125. package/dist/expert/cli/trace-configuration.md +9 -11
  126. package/dist/expert/cli/updates.md +7 -7
  127. package/dist/expert/cli/windows-installer.md +67 -0
  128. package/dist/expert/cli/workspace.md +2 -0
  129. package/dist/expert/coding-standards/_index.md +11 -0
  130. package/dist/expert/coding-standards/naming.md +30 -0
  131. package/dist/expert/coding-standards/shared-logic.md +27 -0
  132. package/dist/expert/concepts/automatic-repair.md +33 -0
  133. package/dist/expert/concepts/engine-and-project.md +7 -5
  134. package/dist/expert/dictionary.md +18 -18
  135. package/dist/harness/plugins/claude-code/index.js +4 -2
  136. package/dist/harness/plugins/claude-code/index.js.map +1 -1
  137. package/dist/harness/plugins/cline/index.js +1 -0
  138. package/dist/harness/plugins/cline/index.js.map +1 -1
  139. package/dist/harness/plugins/gemini/index.js +2 -0
  140. package/dist/harness/plugins/gemini/index.js.map +1 -1
  141. package/dist/harness/plugins/github-copilot/index.js +1 -0
  142. package/dist/harness/plugins/github-copilot/index.js.map +1 -1
  143. package/dist/harness/plugins/openai-codex/index.js +13 -9
  144. package/dist/harness/plugins/openai-codex/index.js.map +1 -1
  145. package/dist/harness/plugins/opencode/index.js +1 -0
  146. package/dist/harness/plugins/opencode/index.js.map +1 -1
  147. package/dist/harness/plugins/qwen-code/index.js +1 -0
  148. package/dist/harness/plugins/qwen-code/index.js.map +1 -1
  149. package/dist/harness/types.d.ts +16 -5
  150. package/dist/project/config.d.ts +135 -48
  151. package/dist/project/config.js +331 -119
  152. package/dist/project/config.js.map +1 -1
  153. package/dist/project/configuration.d.ts +43 -0
  154. package/dist/project/configuration.js +165 -0
  155. package/dist/project/configuration.js.map +1 -0
  156. package/dist/project/defaults.d.ts +4 -2
  157. package/dist/project/defaults.js +10 -5
  158. package/dist/project/defaults.js.map +1 -1
  159. package/dist/project/git.d.ts +28 -0
  160. package/dist/project/git.js +81 -0
  161. package/dist/project/git.js.map +1 -1
  162. package/dist/project/migrations.d.ts +96 -0
  163. package/dist/project/migrations.js +301 -0
  164. package/dist/project/migrations.js.map +1 -0
  165. package/dist/project/publication.d.ts +57 -0
  166. package/dist/project/publication.js +117 -0
  167. package/dist/project/publication.js.map +1 -0
  168. package/dist/project/readiness.d.ts +14 -5
  169. package/dist/project/readiness.js +23 -22
  170. package/dist/project/readiness.js.map +1 -1
  171. package/dist/project/setup.js +2 -0
  172. package/dist/project/setup.js.map +1 -1
  173. package/dist/service/actions.d.ts +12 -4
  174. package/dist/service/actions.js +32 -2
  175. package/dist/service/actions.js.map +1 -1
  176. package/dist/service/control.d.ts +1 -1
  177. package/dist/service/control.js +1 -1
  178. package/dist/service/host.d.ts +5 -2
  179. package/dist/service/host.js +26 -16
  180. package/dist/service/host.js.map +1 -1
  181. package/dist/service/http.js +7 -2
  182. package/dist/service/http.js.map +1 -1
  183. package/dist/service/launcher.d.ts +2 -1
  184. package/dist/service/launcher.js +1 -0
  185. package/dist/service/launcher.js.map +1 -1
  186. package/dist/service/records.d.ts +3 -0
  187. package/dist/service/records.js +1 -1
  188. package/dist/service/records.js.map +1 -1
  189. package/dist/service/spa/app.css +39 -0
  190. package/dist/service/spa/app.js +242 -39
  191. package/dist/service/worker.js +1 -0
  192. package/dist/service/worker.js.map +1 -1
  193. package/dist/tools/environment.d.ts +122 -0
  194. package/dist/tools/environment.js +199 -0
  195. package/dist/tools/environment.js.map +1 -0
  196. package/dist/tools/model.d.ts +180 -0
  197. package/dist/tools/model.js +111 -0
  198. package/dist/tools/model.js.map +1 -0
  199. package/dist/tools/normalize.d.ts +51 -0
  200. package/dist/tools/normalize.js +321 -0
  201. package/dist/tools/normalize.js.map +1 -0
  202. package/dist/tools/operations.d.ts +198 -0
  203. package/dist/tools/operations.js +378 -0
  204. package/dist/tools/operations.js.map +1 -0
  205. package/dist/tools/readiness.d.ts +72 -0
  206. package/dist/tools/readiness.js +160 -0
  207. package/dist/tools/readiness.js.map +1 -0
  208. package/dist/ui/dashboard.d.ts +3 -0
  209. package/dist/ui/dashboard.js +173 -2
  210. package/dist/ui/dashboard.js.map +1 -1
  211. package/dist/ui/details.d.ts +35 -1
  212. package/dist/ui/details.js +103 -2
  213. package/dist/ui/details.js.map +1 -1
  214. package/dist/ui/secret.d.ts +8 -0
  215. package/dist/ui/secret.js +41 -0
  216. package/dist/ui/secret.js.map +1 -0
  217. package/dist/ui/status-view.d.ts +1 -0
  218. package/dist/ui/status-view.js +33 -8
  219. package/dist/ui/status-view.js.map +1 -1
  220. package/dist/ui/tool-forms.d.ts +24 -0
  221. package/dist/ui/tool-forms.js +133 -0
  222. package/dist/ui/tool-forms.js.map +1 -0
  223. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"team.js","sourceRoot":"","sources":["../../src/engine/team.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,OAAO,EAA0B,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAqB,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAoC,MAAM,aAAa,CAAC;AAE3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAgDxD;;GAEG;AACH,KAAK,UAAU,OAAO,CAAC,OAAoB,EAAE,QAAgB,EAAE,OAAgB,EAAE,MAAc,EAAE,SAAS,GAAG,EAAE;IAC3G,IA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I,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,6BAA6B,EAAE;oBACjG,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sDAAsD,EAAE;oBAC/F,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,6CAA6C,EAAE;iBAC5F;gBACD,QAAQ,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;aACnC;YACD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,MAAM,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;SAC3J,CAAC,CAAC;IACP,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC"}
@@ -1,106 +1,135 @@
1
1
  # Promptbook (`ptbk`)
2
2
 
3
- Promptbook is one npm package, `ptbk`, providing the `ptbk` command-line utility. It operates a Git-backed project of three Book entities: **agents**, **tasks** and **chats**. Every canonical Book starts with `AGENT <name>`, `TASK <name>` or `CHAT <name>`; all share commitment syntax. The normalized opening name content is logical identity, with no separate generated IDs or filename-based logical keys. New system-created task/chat names include readable creation date/time to prevent collisions, without mandatory timestamp grammar. `chats/` holds conversations, versioned `ptbk.json` holds defaults, ignored `.ptbk/` holds runtime state and `traces/<task-file-basename>/` holds evidence under the literal task filename without `.book` or legacy `.md`.
3
+ Promptbook is one npm package, `ptbk`, providing the `ptbk` command-line utility. It operates a Git-backed project of three Book entities: **agents**, **tasks** and **chats**. Canonical Books start with `AGENT <name>`, `TASK <name>` or `CHAT <name>` and share commitment syntax. Normalized opening-name content is logical identity, not a generated ID or filename key. System-created task/chat names include readable creation date/time without mandatory timestamp grammar. `chats/` holds conversations, Git-versioned `ptbk.json` holds configuration, ignored `.ptbk/` holds runtime state and `traces/<task-file-basename>/` holds evidence under the literal source filename without final `.book` or legacy `.md`.
4
4
 
5
- Initialization is finite attended technical setup. Its first new-project input is user intent, preserved verbatim with linked assets in `specs/_initial.md`. Init creates an ordinary Expert bootstrap referring to it, prepares selected harnesses/checks and missing core roles, commits setup by default and automatically starts the background agenda. Project content comes from that ordinary task, not an implementation phase inside init. The wizard returns without waiting for task completion or opening a dashboard; `ptbk dashboard` is its primary next-action hint.
5
+ ## Core operating principles
6
6
 
7
- Every engine owns one concrete project directory; exclusive locking prevents two owners even across different installations. It runs with zero or many observing clients. A dashboard is a lightweight view/controller, not an engine or independent scheduler: opening/closing it never starts/stops the service. Shared lifecycle states are **`running`, `pausing`, `pause`, `stopping`**. Pause/ordinary stop drain current work without starting another task; pending requests can be cancelled or changed. Force stop is immediate, with best-effort owner cleanup when handled internally; an external hard kill has no cleanup guarantee. CLI, terminal, browser and API use the same engine operations.
7
+ **Automatic repair and useful unattended operation are foundational.** A started project should progress authorized work and solve routine problems with as little unnecessary user involvement as possible. Deterministic corrections and bounded retries handle obvious cases; unresolved/judgment-dependent problems go to the ordinary editable OPEN **Fixer**. Its simple initial Book aims to solve general problems and offload decisions, with User and Expert in its team. Consultation and learning are normal agent mechanisms. Users may customize all/some/no-User consultation; no special Fixer channel, privileged worker or hardcoded escalation policy is introduced. See [automatic repair](concepts/automatic-repair.md), [Fixer](agents/fixer.md) and [unattended operation](cli/autonomous-operation.md).
8
8
 
9
- `ptbk dashboard --global` is a separate continuously refreshed host-wide table of running project engines, across installation/version boundaries and independent of current directory. It stays open with zero entries, notices later starts and attaches to a selected project dashboard without `cd` or starting a worker. There is no global engine. Ordinary project dashboard entry still reports a missing service actionably.
9
+ Every engine owns one concrete project directory; exclusive locking prevents two local owners across installations. It runs with zero or many observing clients. Shared lifecycle states remain **running, pausing, pause and stopping**. Pause/ordinary stop drain without new claims; pending intent can be cancelled/changed. Force stop is immediate with best-effort owner cleanup; external hard kill has no cleanup guarantee. A dashboard is a lightweight cockpit/view/controller, never an independent scheduler: opening/closing one does not start/stop the engine. A running engine can legitimately wait for tasks or tools without being technically paused or stopped.
10
10
 
11
- The agenda is intended to progress useful authorized work unattended for extended periods, not remain alive while silently waiting for routine approvals. It fills missing routing through Manager, executes one task at a time, processes follow-ups and discovers useful goal-driven work when no backlog remains, while respecting deliberate pause/stop intent. Recoverable problems are handled automatically within bounds; human involvement is exceptional. Versioned authoring/execution changes commit by default with `PTBK: ` subjects and applicable name correlation. Explicit `--no-commit` is the exception; `ptbk run` is a finite configured queue workflow.
11
+ **Configuration evolves explicitly.** `promptbookVersion` records the initializing/last-migrating engine version. Compare semantic versions, including numeric prereleases. An older engine offers its update without downgrading the project. A newer one applies applicable sparse steps in order, then sets its version and commits the entire migration pass once, even with no transformation steps. Missing version means one fixed pre-versioning baseline, without structural age analysis. The first migration converts separate browser/harness settings into named [tools](cli/tools.md). See [configuration migrations](cli/configuration-migrations.md) and [first conversion](cli/tools-migration.md).
12
12
 
13
- Functional contracts and UX are separate aspects. Init/add use finite wizards; init has visible progress, Expert as visual guide and a brief success celebration. The project dashboard has distinct panels and prominent lifecycle controls; detailed effective harness/model/thinking configuration and browser profile/diagnostics are initially collapsed, keyboard-accessible panels. Browser diagnosis/recovery is automatic by default, with safe manual recheck/retry/restart controls. Rich terminals default to pretty presentation with raw alternatives. Terminal, lightweight browser SPA and independently usable API control the same engine. HTTP includes protected remote access by default; `--no-tunnel` keeps it local.
13
+ **Tools are pluggable named project resources, not additional Book entities.** Ordered `tools` records have `type`, `variant`, required `name`, optional `description` and `isEnabled` (default true). Initial types are BROWSER and HARNESS, with variant-specific typed settings. Multiple browser profiles/accounts and harness instances are supported. Different harness variants can be chosen for suitability; same-variant instances form an ordered availability/quota fallback chain. API keys are symbolic `${{ env.NAME }}` references, never committed values. Shared safe `.env` editing preserves historical assignments and adds timestamp/reason comments.
14
14
 
15
- **Chatter** is an editable core agent and the default conversational entry for manually discussing/directing a project. New chat first offers Chatter (Enter) or another agent; only the latter expands all valid targets. Its initial TEAM includes the other initialized roles; it handles basic authorized actions and consults/delegates to specialists through ordinary mechanisms. Existing chats and waiting questions retain their real authors. Fixer remains an ordinary OPEN maintenance agent. Human-facing messages commit individually; internal task consultations join their task result, while conversation-scoped consultations use ordinary scoped authoring persistence.
15
+ Init, CLI and dashboard use **one shared implementation** of tool types, validation, management, secret editing and persistence. Saved tool changes commit immediately and independently from active task edits. Enable/disable is primary, permanent removal secondary. In-use changes require the shared acknowledgement: tool `--force` preserves already acquired work, while the separate `ptbk stop --force` terminates the whole engine without deleting a tool. Last-enabled-type removal/disable needs its own warning/confirmation. Configuration/env/readiness refresh before tasks and during work/waits; newly available tools may serve the current task, not only the next one. See [DRY](coding-standards/shared-logic.md), [management](cli/tool-management.md) and [live tool use](cli/tool-runtime.md).
16
16
 
17
- Task logical identity, source/Git provenance and evidence storage remain distinct. Trace directories exactly match source basenames, not normalized TASK names or opaque keys; evidence records declared names and source revisions to preserve history across renames. Traces retain actually available harness output, events and enabled browser recordings. Init saves separate trace-commit, video-ignore and video-recording choices; `.ptbk/` and browser sessions stay ignored independently.
17
+ **Git history is an audit trail.** Authorized versioned operations commit by default with `PTBK: ` and applicable name correlation. Tasks, human-facing messages, tool changes, normalization and whole migration passes have their proper separate boundaries. No blanket staging, history rewriting or accidental secret commits. Optional `isAutoSync` defaults false and uses the repository's configured origin and started branch without duplicated JSON destination settings. Enabled sync attempts pull every 60 seconds and before logical mutations/commits, then publishes completed local work. Failed remote operations do not stop safe local work; preserve dirty state and defer unsafe integration. Real integrations use visible non-fast-forward merges, with judgment-dependent conflicts routed through ordinary Fixer. See [persistence](cli/git-persistence.md) and [synchronization](cli/git-synchronization.md).
18
+
19
+ ## Initialization, work and cockpit
20
+
21
+ Initialization is finite attended technical setup. Its first new-project input is intent, preserved verbatim with linked assets in the initialized project's `specs/_initial.md`. It prepares missing core roles and simple selected tools, saves one ordinary Expert bootstrap, commits setup by default and starts the background agenda. It does not expose advanced account-pooling choices or execute the bootstrap inline. The check-command question is removed: preserve real checks or create an explicit nonblocking informational placeholder, never claim it is actual validation. Add optional autosync setup: no asks nothing further; yes offers private-by-default GitHub publication or another supplied origin. New repositories use main; existing branch/history are preserved. Remote failure is separate from ready local work.
22
+
23
+ Init shows progress, Expert as visual guide and a brief truthful celebration, then returns without waiting for task completion or opening a dashboard; `ptbk dashboard` is the main next-action hint. Ongoing work fills missing routing through Manager, executes one task at a time, handles follow-ups and discovers useful goal-driven work when no backlog remains. Ordinary `--no-commit` workflows remain explicit exceptions, not permission to silently bypass required committed configuration evolution or saved tool management. `ptbk run` is a finite configured queue workflow, not an indefinite agenda.
24
+
25
+ The project dashboard is a cockpit with compact attention, work, visible lifecycle controls, tools, queue/results and connection regions. Details use consistent keyboard-accessible drill-down for actual execution context, named-tool management and browser diagnosis. **A synchronization panel, its details and manual Synchronize now action exist only while autosync is enabled.** Browser repair and synchronization call shared engine operations; clients do not duplicate business logic. Technical detail is collapsed initially while significant blockers remain visible. Terminal, lightweight browser SPA and independently usable API control the same service. Protected remote dashboard access defaults on with HTTP; `--no-tunnel` keeps it local and is unrelated to Git autosync.
26
+
27
+ `ptbk dashboard --global` is a separate refreshed host-wide table of running engines, across installations/versions and independent of CWD. It stays open at zero entries and attaches to a selected project without cd or starting work. There is no global engine. Ordinary project dashboard entry still diagnoses a missing service actionably.
28
+
29
+ Chatter is the editable core default for human-led project conversation. New chat first offers Chatter (Enter) or another agent; only the latter expands all valid targets. Initial TEAM includes the other initialized roles; specialist advice and execution use normal consultation/tasks. Existing chats/questions retain their real authors. Human-facing messages commit individually, task-internal consultations with their result, and conversation-only consultations through scoped authoring persistence.
30
+
31
+ Logical task identity, Git/source provenance and evidence location remain distinct. Trace directories exactly match source basenames, not normalized TASK names or opaque IDs. Evidence preserves declared names, revisions, actual tool instances, available harness output/events and enabled attributable browser recording. Init saves independent trace-commit, video-ignore and recording choices; runtime, secret stores and browser sessions stay ignored regardless.
18
32
 
19
33
  ## Reading this specification
20
34
 
21
- The [whitepaper](whitepaper.md) explains APT principles and clearly identified long-term directions. The files below define concrete target behavior, not a claim of implementation. Future whitepaper capabilities do not implicitly become requirements.
35
+ These files define target behavior, **not a claim that implementation or tests already meet it**. The [whitepaper](whitepaper.md) explains APT principles and explicitly long-term directions; those do not implicitly become current requirements.
36
+
37
+ Keep specifications in English, concise and focused on observable behavior, important contracts and invariants. Internal representations/algorithms/module layout remain implementation choices unless explicitly necessary, such as the shared typed tool contract and prohibition of duplicated domain logic. Separate functional behavior from presentation and cross-link rather than copying full rules.
38
+
39
+ [Project model](concepts/project-model.md) · [Engine/project evolution](concepts/engine-and-project.md) · [Automatic repair](concepts/automatic-repair.md) · [Coding standards](coding-standards/_index.md) · [Naming](coding-standards/naming.md) · [Shared logic and DRY](coding-standards/shared-logic.md) · [Dictionary](dictionary.md)
40
+
41
+ [Agents](agents/_index.md) · [Book language](book-language/_index.md) · [References and lookup](book-language/references.md) · [Commitment index](book-language/commitments/_index.md)
22
42
 
23
- Keep specifications in English, concise and focused on observable behavior, important contracts and invariants. Leave internal representations, algorithms and module organization to implementation unless they are necessary product constraints. Preserve useful behavior, not incidental implementation detail. Separate functional contracts from visual presentation and cross-link instead of duplicating their full definitions.
43
+ ## Configuration and tools
24
44
 
25
- [Project model](concepts/project-model.md) · [Engine/project evolution](concepts/engine-and-project.md) · [Dictionary](dictionary.md) · [Agents](agents/_index.md) · [Book language](book-language/_index.md) · [References and lookup](book-language/references.md) · [Commitment index](book-language/commitments/_index.md)
45
+ - [Configuration](cli/configuration.md): Versioned defaults, explicit overrides, live refresh and persistence boundaries.
46
+ - [Configuration migrations](cli/configuration-migrations.md): Version comparison, fixed versionless baseline, sparse ordered steps and one committed pass.
47
+ - [First tools migration](cli/tools-migration.md): Preserve existing browser/harness choices, canonical spellings and autosync off.
48
+ - [Tools](cli/tools.md): Named typed resources, multiple accounts/profiles and ordered same-variant fallback.
49
+ - [Tool management](cli/tool-management.md): Shared CLI/init/dashboard operations, immediate commits and confirmations.
50
+ - [Live tool use](cli/tool-runtime.md): Continuous readiness, current-task additions and retained acquired uses.
51
+ - [Environment references and editing](cli/environment.md): Symbolic secrets, non-destructive changes and local audit history.
52
+ - [Browser](cli/browser.md): Per-instance profile sources, account-aware selection, ownership and recovery.
53
+ - [Harnesses](cli/harnesses.md): Global executables, named authentication contexts, capabilities and authorized fallback.
54
+ - [Harness adapters](cli/harness-plugins.md): Common typed setup/execution/evidence contracts and featured/More catalog.
55
+ - [Harness updates](cli/harness-updates.md): Selected shared installations and safe maintenance.
26
56
 
27
57
  ## Installation and operation
28
58
 
29
- - [Installation](cli/installation.md): Global/local package and destination-specific dependency setup.
30
- - [Checks and publication on GitHub Actions](cli/releasing.md): Required hosted validation and verified releases.
31
- - [Engine updates](cli/updates.md): Update the invoked installation, preserve setup input and rerun.
32
- - [Commands](cli/cli.md): Command surface and options, including pause/resume, force stop and global dashboard.
33
- - [Configuration](cli/configuration.md): `ptbk.json`, defaults and temporary overrides.
34
- - [Workspace](cli/workspace.md): Project/source paths, specifications, traces, runtime and external discovery metadata.
35
- - [Initialization](cli/initialization.md): Technical setup, original input preservation, core agents and automatic background start.
36
- - [First runnable task](cli/first-task.md): Ordinary Expert bootstrap without a duplicate starter.
37
- - [Nested projects](cli/nested-projects.md): Explicit Git boundaries for child projects.
38
- - [Finite run](cli/run.md): Existing work with one configuration.
39
- - [Start](cli/start.md): Automatic work progression, ongoing operation and startup output.
40
- - [Unattended operation](cli/autonomous-operation.md): Sustained authorized work, recovery and exceptional human involvement.
41
- - [Process modes](cli/process-modes.md): Engine placement and independent observing clients.
42
- - [Service lifecycle](cli/service-lifecycle.md): Four states, draining, cancellation, restart, force stop and signal semantics.
43
- - [Project locking](cli/locking.md): One engine per project and owner-only controlled cleanup.
59
+ The Windows installer is an additional release artifact, not a second engine or a replacement for npm. It prepares missing prerequisites, installs the corresponding `ptbk` version and hands an ordinary user-owned project to the existing interactive init.
60
+
61
+ - [Installation](cli/installation.md): Global/local package, Windows entry point and destination-specific dependency setup.
62
+ - [Windows installer](cli/windows-installer.md): Thin prerequisite bootstrap, home-based first project and automatic terminal/init handoff.
63
+ - [Checks and publication on GitHub Actions](cli/releasing.md): Required hosted validation, npm publication and matching Windows release artifact.
64
+ - [Engine updates](cli/updates.md): Invoked installation, compatibility gate, preserved setup input and rerun.
65
+ - [Commands](cli/cli.md): Command surface/options, named tools, lifecycle and global dashboard.
66
+ - [Workspace](cli/workspace.md): Source/specification/trace/runtime locations and external discovery metadata.
67
+ - [Initialization](cli/initialization.md): Intent preservation, simple tool setup, check placeholder and background start.
68
+ - [Initialization synchronization setup](cli/synchronization-setup.md): Opt-in GitHub/custom-origin publication, private default and local/remote outcome separation.
69
+ - [First runnable task](cli/first-task.md): Ordinary Expert bootstrap, without a duplicate starter or inline implementation phase.
70
+ - [Nested projects](cli/nested-projects.md): Explicit child Git boundaries.
71
+ - [Finite run](cli/run.md): Bounded queue workflow with selected execution constraints and live resources.
72
+ - [Start](cli/start.md): Automatic progression, running resource waits and one-shot launch output.
73
+ - [Unattended operation](cli/autonomous-operation.md): Sustained authorized work and ordinary automatic repair.
74
+ - [Process modes](cli/process-modes.md): Engine placement and independent clients.
75
+ - [Service lifecycle](cli/service-lifecycle.md): Four states, draining, cancellation, restart, force stop and signals.
76
+ - [Project locking](cli/locking.md): One local engine owner and controlled cleanup.
44
77
  - [Startup persistence](cli/persistence.md): Recovery across operating-system restarts.
45
78
 
46
79
  ## Controls and interaction
47
80
 
48
- - [CLI presentation and interaction](cli/interactive-ui.md): Pretty/raw output, finite wizards, live views and one-shot results.
49
- - [Initialization experience](cli/initialization-ui.md): Intent-first flow, step totals, Expert guide and finite celebration.
50
- - [Rich terminal composer](cli/rich-input.md): Multiline input, pasted blocks, images and preserved attachments.
51
- - [Help, about and version](cli/help.md): Scoped help and actual running version.
52
- - [Shared controls](cli/controls.md): One engine-owned control model across clients.
53
- - [Project status view](cli/status-view.md): Live/snapshot state, prominent requests and truthful connection data.
54
- - [Dashboard panel layout](cli/dashboard-layout.md): Attention, work, visible lifecycle controls and supporting panels.
55
- - [Dashboard details](cli/dashboard-details.md): Collapsible actual execution configuration and browser diagnostics/recovery UI.
56
- - [Terminal dashboard](cli/terminal.md): Independent project attachment and keyboard controls.
57
- - [Global dashboard](cli/global-dashboard.md): Host-wide registration/discovery, live table, zero-service state and project attachment.
58
- - [Service API](cli/api.md): Independently usable authenticated status/control operations.
59
- - [Browser dashboard](cli/dashboard.md): Lightweight JavaScript SPA consuming the same service API.
60
- - [Remote access](cli/remote-access.md): Protected tunnel, mobile pairing, opt-out and lifecycle.
81
+ - [CLI presentation](cli/interactive-ui.md): Pretty/raw, finite wizards, live views and one-shot results.
82
+ - [Initialization experience](cli/initialization-ui.md): Intent-first progress, simple choices, conditional sync and Expert guide.
83
+ - [Rich composer](cli/rich-input.md): Multiline input, pasted blocks, images and preserved attachments.
84
+ - [Help, about and version](cli/help.md): Scoped help and actual invoked/running version.
85
+ - [Shared controls](cli/controls.md): One engine/domain model for saved tools, runtime operations and sync.
86
+ - [Shared project status](cli/status-view.md): Live/snapshot cockpit, truthful waits and connection data.
87
+ - [Dashboard layout](cli/dashboard-layout.md): Main regions and consistent drill-down hierarchy.
88
+ - [Dashboard details](cli/dashboard-details.md): Execution, tool management, per-browser diagnostics and conditional synchronization.
89
+ - [Terminal dashboard](cli/terminal.md): Independent attachment and keyboard controls.
90
+ - [Global dashboard](cli/global-dashboard.md): Host-wide live discovery/table and project attachment.
91
+ - [Service API](cli/api.md): Independent authenticated state/control and shared management operations.
92
+ - [Browser dashboard](cli/dashboard.md): Lightweight JavaScript SPA using the same API.
93
+ - [Remote access](cli/remote-access.md): Protected tunnel, pairing, opt-out and lifetime.
61
94
  - [Tunnel provider decision](cli/tunnel-options.md): Alternatives and stable-hostname tradeoffs.
62
- - [Chats](cli/chats.md): Durable named conversations, author attribution and persistence boundaries.
63
- - [Chat UI](cli/chat-ui.md): Chatter-first entry, explicit alternatives, existing threads and unread/actionable states.
64
- - [Human interactions](cli/user-interactions.md): Attributed waiting chats and once-only replies.
95
+ - [Chats](cli/chats.md): Durable named conversations, attribution and commit boundaries.
96
+ - [Chat UI](cli/chat-ui.md): Chatter-first entry, existing threads and unread/actionable state.
97
+ - [Human interactions](cli/user-interactions.md): Ordinary attributed questions and once-only replies.
65
98
  - [Channels](cli/channels.md): Terminal, CLI, browser and API.
66
- - [Browser](cli/browser.md): Four profile sources, effective-profile inspection, safe ownership and automatic/manual recovery.
67
99
 
68
100
  ## Agents and work
69
101
 
70
102
  - [Agent context](cli/agent-context.md): Effective role, task and project instructions.
71
- - [Agent visual identity](agents/visual-identity.md): Mascot badges, name identity and truthful activity.
72
- - [Chatter](agents/chatter.md): Default core conversational entry, initialized TEAM and ordinary specialist delegation.
73
- - [Fixer](agents/fixer.md): OPEN core introspection, repair and human chats.
74
- - [Harnesses](cli/harnesses.md): Selected setup, global installations, authentication and execution.
75
- - [Harness plugins](cli/harness-plugins.md): Common setup/execution/evidence contract and featured/More presentation.
76
- - [Harness updates](cli/harness-updates.md): Selected setup updates and safe maintenance.
103
+ - [Agent visual identity](agents/visual-identity.md): Mascots, name identity and truthful activity.
104
+ - [Chatter](agents/chatter.md): Default conversation, initial TEAM and ordinary delegation.
105
+ - [Fixer](agents/fixer.md): Ordinary editable OPEN problem-solving core and customizable consultation policy.
77
106
  - [TEAM consultations](cli/team.md): Bounded task- or conversation-scoped specialist advice.
78
107
  - [Authoring and saving](cli/authoring.md): Commit authorized versioned changes before dispatch.
79
- - [Generated names](cli/generated-names.md): Creation date/time, normalized collisions and separate filenames.
80
- - [Task Books](cli/task-books.md): Readable bounded work and completion stamps.
81
- - [Markdown tasks](cli/task-markdown.md): Checkmark-based compatibility sources.
82
- - [Task identity](cli/task-identity.md): Opening TASK name, collisions and historical provenance, separate from trace filenames.
108
+ - [Generated names](cli/generated-names.md): Readable creation time, normalized collisions and separate filenames.
109
+ - [Task Books](cli/task-books.md): Bounded work and completion stamps.
110
+ - [Markdown tasks](cli/task-markdown.md): Checkmark compatibility sources.
111
+ - [Task identity](cli/task-identity.md): Opening name, collisions and provenance separate from trace filenames.
83
112
  - [Task origins](cli/task-origins.md): Explicit, derived and goal-driven work.
84
113
  - [Task relationships](cli/task-relationships.md): References, subtasks and prerequisites.
85
114
  - [Eligibility](cli/eligibility.md): Ready work, assignment candidates and constraints.
86
- - [Goal discovery](cli/goal-discovery.md): Due enquiries when no backlog remains.
115
+ - [Goal discovery](cli/goal-discovery.md): Due enquiries without an existing backlog.
87
116
  - [Earliest start](cli/not-before.md): Time boundaries and timezone.
88
117
  - [Recurrence](cli/recurrence.md): Repeated occurrences and downtime.
89
118
 
90
119
  ## Results, safety and service workflows
91
120
 
92
- - [Execution](cli/execution.md): Task lifecycle and no new claims during pause/stop draining.
93
- - [Checks](cli/checks.md): Real initialized validation and repair.
121
+ - [Execution](cli/execution.md): Shared task lifecycle, live tools, scoped result and no new claims while draining.
122
+ - [Checks](cli/checks.md): Honest placeholder versus real validation and ordinary repairs.
94
123
  - [Errors](cli/errors.md): Understandable failures, evidence and next actions.
95
- - [Retries](cli/retries.md): Bounded automatic repair and provider/authentication waits.
96
- - [Git preflight](cli/git-preflight.md): Workspace readiness and safe initialization.
97
- - [Git persistence](cli/git-persistence.md): Operation commits, name correlation, trace inclusion and ownership.
98
- - [Git synchronization](cli/git-synchronization.md): Optional pull/push and pending synchronization.
124
+ - [Retries](cli/retries.md): Bounded recovery, authorized account fallback and waits.
125
+ - [Git preflight](cli/git-preflight.md): Safe setup, existing history and main for a new repository.
126
+ - [Git persistence](cli/git-persistence.md): Scoped/interleaved operations, immutable history and evidence inclusion.
127
+ - [Git synchronization](cli/git-synchronization.md): Opt-in 60-second/boundary attempts, visible merges and independent local progress.
99
128
  - [Recovery](cli/recovery.md): Interrupted work without duplicate effects or data loss.
100
- - [Isolation](cli/isolation.md): Optional worktrees and integration.
101
- - [Task traces](cli/traces.md): Literal task-file basenames, source/name provenance, harness evidence, video and redaction.
102
- - [Trace configuration](cli/trace-configuration.md): Independent recording and Git/video-inclusion choices.
103
- - [Planning](cli/planning.md): Read-only discussion and approved task saving.
104
- - [Migration](cli/migration.md): Lossless Markdown-to-Book and legacy-header conversion.
105
- - [Operational quality](cli/operations.md): Cross-platform, bounded and observable operation.
106
- - [Acceptance scenarios](cli/acceptance.md): Verifiable outcomes, supplemented by focused topic acceptance.
129
+ - [Isolation](cli/isolation.md): Optional task worktrees with preserved result commits and visible integration.
130
+ - [Task traces](cli/traces.md): Literal source basenames, provenance, available output, video and redaction.
131
+ - [Trace configuration](cli/trace-configuration.md): Independent recording and Git/video choices.
132
+ - [Planning](cli/planning.md): Read-only discussion and approved task saves.
133
+ - [Book migration](cli/migration.md): Lossless Markdown/legacy-header conversion, distinct from configuration evolution.
134
+ - [Operational quality](cli/operations.md): Cross-platform, bounded, observable operation.
135
+ - [Acceptance scenarios](cli/acceptance.md): Existing and new verifiable outcomes, supplemented by topic-specific acceptance.
@@ -1,16 +1,19 @@
1
1
  # Agents
2
2
 
3
- [Main specification](../_main.md) · [Project model](../concepts/project-model.md)
3
+ [Main specification](../_main.md) · [Project model](../concepts/project-model.md) · [Automatic repair](../concepts/automatic-repair.md)
4
4
 
5
- An agent is a persistent role, goal, instructions and learned project knowledge, not a permanently running model call. Its Book starts with [AGENT](../book-language/commitments/agent.md), for example `AGENT Developer`; `Developer` supplies the name, while later commitments develop the role. Agents, tasks and chats are distinct Book entities sharing syntax and [normalized name references](../book-language/references.md). Only one project task executes at a time; ordinary chats and read-only consultations do not by themselves execute queued work.
5
+ An agent is a persistent role, goal, instructions and learned project knowledge, not a permanently running model call. Its Book starts with [AGENT](../book-language/commitments/agent.md), for example `AGENT Developer`; Developer supplies the name and later commitments develop the role. Agents, tasks and chats are distinct Book entities sharing syntax and [normalized name references](../book-language/references.md). Only one project task executes at a time; ordinary chats/read-only consultations do not by themselves execute queued work.
6
6
 
7
7
  - [Core agents](core-agents.md): Minimal editable required roles Adam, Manager, Teacher, Fixer and Chatter.
8
- - [Chatter](chatter.md): Default human-facing project entry, with specialist TEAM consultation and ordinary task creation.
9
- - [Non-agents](non-agents.md) and [Expert](expert.md): Engine-defined references/behavior, not project-owned Books.
10
- - [Fixer](fixer.md): Ongoing introspection/repair through ordinary tasks, chats and learning.
8
+ - [Chatter](chatter.md): Default human conversation, with specialist TEAM consultation and ordinary tasks.
9
+ - [Non-agents](non-agents.md) and [Expert](expert.md): Engine-defined references/behavior, not project Books.
10
+ - [Fixer](fixer.md): Ordinary OPEN general problem solver, expected for system-routed problems and customizable like other agents.
11
+ - [Automatic repair principle](../concepts/automatic-repair.md): First-class cross-system recovery and minimal unnecessary user decisions, not a special Fixer implementation/channel.
11
12
  - [Manager](manager.md): Automatic task assignment.
12
- - [Teacher](teacher.md) and [learning](learning.md): Ordinary open/closed learning.
13
+ - [Teacher](teacher.md) and [learning](learning.md): Ordinary OPEN/CLOSED learning.
13
14
  - [References](../book-language/references.md): One ordered resolver across all entity kinds.
14
15
  - [Visual identity](visual-identity.md) and [consistency](consistency.md): Stable presentation and guarded execution.
15
16
 
16
- Project agents normally live under `agents/`; required core Books are initialized under `agents/.core/`. Location never replaces AGENT. A core is technically an ordinary project agent required by the engine, not a privilege or special learning mechanism. Non-agents Void/Null, User and Expert come from the running engine. Chatter's promoted default [chat picker](../cli/chat-ui.md) is a UI entry policy, not a new agent category or automatic scheduler. See [engine/project evolution](../concepts/engine-and-project.md).
17
+ Project agents normally live under agents/ and required core Books under agents/.core/. Location never substitutes for AGENT. Required presence does not grant privilege or different learning/communication. Fixer's initial simple Book includes User and Expert in TEAM, but users can customize consultation policy or remove User; reinit preserves such changes. Tool/account configuration and available capabilities constrain every agent, including Fixer, rather than giving cores a hidden execution route.
18
+
19
+ Void/Null, User and Expert come from the running engine. Chatter's promoted default [chat picker](../cli/chat-ui.md) is an entry policy, not another agent kind or automatic scheduler. See [engine/project evolution](../concepts/engine-and-project.md).
@@ -4,9 +4,11 @@
4
4
 
5
5
  The engine expects five editable project roles: **Adam, Manager, Teacher, Fixer and Chatter**, materialized only if missing under `agents/.core/` as `adam.book`, `manager.book`, `teacher.book`, `fixer.book` and `chatter.book`. Their opening commitments are `AGENT <role name>`; core names do not acquire task/chat date-time decoration. A core has ordinary Book, routing, TEAM, learning, Git and runtime behavior. Being required does not grant a special inference mechanism or extra authority.
6
6
 
7
- Initialize each missing role individually with a small comprehensible boilerplate, not an embedded encyclopedia. Existing Books belong to the project: never reset, replace or bulk-regenerate them during reinit/upgrade, including learned/customized versions. Adding a required Chatter preserves all previously present roles. Invalid/colliding sources are diagnosed through the normal resolver and repaired only by authorized work, not silently overwritten.
7
+ Initialize each missing role individually with a small comprehensible boilerplate, not an embedded encyclopedia. Existing Books belong to the project: never reset, replace or bulk-regenerate them during reinit/upgrade, including learned/customized versions. Adding a required Chatter preserves all previously present roles. Invalid/colliding sources use the normal resolver and [automatic repair](../concepts/automatic-repair.md), not silent overwriting.
8
8
 
9
- Initial policies: Adam is the common inheritance foundation (`FROM @Void`, initially CLOSED); Manager inherits Adam; Teacher inherits Expert and must remain CLOSED against recursive teaching; Fixer may consult Expert through TEAM and is OPEN. Chatter uses ordinary Adam inheritance/default OPEN learning and focuses on user conversation. These are individual Book policies, not restrictions imposed on every core agent.
9
+ Initial policies: Adam is the common inheritance foundation (`FROM @Void`, initially CLOSED); Manager inherits Adam; Teacher inherits Expert and must remain CLOSED against recursive teaching. Fixer is OPEN, has User and Expert in its initial TEAM, and has a simple general problem-solving goal. Chatter uses ordinary Adam inheritance/default OPEN learning and focuses on user conversation. These are individual Book policies, not restrictions imposed on every core agent.
10
+
11
+ Fixer is expected because system problems are routed to it, not because it has a special escalation channel. Its ordinary TEAM and learning support increasingly project-specific decisions. Users may change consultation policy or remove User from its team; reinit does not undo that customization. See [Fixer](fixer.md) and the separate first-class [automatic repair contract](../concepts/automatic-repair.md).
10
12
 
11
13
  At Chatter creation, its readable TEAM relationships include all other initialized/selected agents, both core and specialist, and access to Expert for engine questions. Do not include itself. Users can customize or extend that team later; initializing a missing role does not rewrite existing teams. See [Chatter](chatter.md).
12
14
 
@@ -1,24 +1,27 @@
1
- # Fixer: project self-maintenance
1
+ # Fixer: ordinary core problem-solving agent
2
2
 
3
- [Agents](_index.md) · [Core agents](core-agents.md) · [Learning](learning.md)
3
+ [Agents](_index.md) · [Core agents](core-agents.md) · [Automatic repair principle](../concepts/automatic-repair.md) · [Learning](learning.md)
4
4
 
5
- **Fixer is an ordinary editable, default-OPEN core agent**, initialized as a small `agents/.core/fixer.book`. Its job is to **introspect the particular running project** and improve its health over time: detect malformed Book syntax, normalized-name collisions and shadowing, unresolved references, problematic configuration, recurring failures, broken workflows or maintenance opportunities. It can inspect available logs, traces, actual diagnostics and project context, without inventing evidence or exposing secrets.
5
+ **Fixer is an ordinary editable, default-OPEN core agent**, initialized as a small `agents/.core/fixer.book`. Its general purpose is to solve problems and offload decisions from the user. It is not restricted to Promptbook internals: project health, broken workflows, configuration, recurring failures and other authorized project problems are all within that general role.
6
6
 
7
- A deliberately minimal initial example (not a special runtime implementation):
7
+ The engine expects Fixer in every project because it automatically routes certain problems, such as merge conflicts and crash/recovery failures, to this role. That required presence is why it is a core agent; it does not confer special inference, privileged execution or a separate communication mechanism. Other agents can consult Fixer, and Fixer can consult other agents through ordinary TEAM relationships.
8
+
9
+ A deliberately minimal initial example:
8
10
 
9
11
  ```book
10
- Fixer
11
- ENTITY AGENT
12
+ AGENT Fixer
12
13
  FROM @Adam
13
- GOAL Keep this Promptbook project healthy by finding and safely fixing real problems.
14
+ GOAL Solve problems and reduce the decisions the user needs to make.
15
+ RULE Resolve routine authorized problems yourself; consult the team when you genuinely need help.
16
+ TEAM @User
14
17
  TEAM Consult @Expert for current Promptbook syntax and capabilities.
15
- OPEN Learn verified project-specific repair practices and preferences.
18
+ OPEN Learn verified project-specific problem-solving practices and user preferences.
16
19
  ```
17
20
 
18
- Fixer has `TEAM` access to the built-in **Expert** for current Promptbook syntax, runtime capabilities and version-specific knowledge. Expert is general and engine-owned; Fixer applies that knowledge to the project's own state and retains learned project-specific practices. An engine upgrade refreshes Expert but does not reset Fixer's accumulated local Book.
21
+ User is in the initial team, not hardwired into every future escalation. The Book and its TEAM are customizable: a user can require consultation on everything, define detailed thresholds, or remove User and request autonomous resolution. These are ordinary agent instructions subject to the project's authority and safety rules. Preserve existing and learned Books during reinit/upgrade; do not reinsert a deliberately removed team member. Expert remains general and engine-owned, while Fixer applies current engine knowledge to local context.
19
22
 
20
- Run Fixer's checks opportunistically and at a bounded, persisted cadence, including after relevant diagnostic changes; do not invent a continuous busy polling loop, new permanent privileged service or thousands of repetitive notifications. The work is ordinary scheduled/derived tasks in the project's **single-task** agenda. Diagnose issues with their source, impact and confidence; ordinary low-risk repairs within existing authority can be done and checked automatically. A risky, ambiguous or human-dependent correction is handled through a **chat initiated by Fixer to @User** with a specific explanation, options when useful and links to affected entities/tasks. Do not silently rewrite ambiguous definitions or unrelated project files.
23
+ Fixer can inspect available logs, task traces, actual diagnostics and project sources without inventing evidence or disclosing secrets. Examples include malformed Books, normalized-name collisions, unresolved references, failed migrations, unavailable tools and difficult Git conflicts. Safe deterministic corrections/retries are part of the shared [automatic repair path](../concepts/automatic-repair.md); not every fault needs a model call or user question.
21
24
 
22
- Fixer is not an exceptional learning architecture: it uses precisely the same OPEN/CLOSED and Teacher mechanism as other agents. Corrections and user replies can become teaching evidence in an ordinary task, and authorized useful learning is committed to Fixer's own project Book. This can prevent recurrence of previously explained problems without promising perfect automatic deduplication. Suppress redundant still-unanswered conversations about the *same* condition; an already pending answer is not a reason to send it again.
25
+ Run justified health enquiries at a bounded persisted cadence and after relevant diagnostic changes. They are ordinary scheduled/derived work in the project's single-task agenda, not an additional permanent privileged service. Diagnose source, impact and confidence; repair/check authorized work and ask the team only as needed under the current Book policy. The mechanism does not prescribe a special prompt, dashboard category or transport for those questions.
23
26
 
24
- No extra dashboard category is needed for Fixer. Its tasks, ordinary results, diagnostics and chats use the existing agenda and conversation presentation. If no work is justified, it may record or report a bounded no-op; it must not manufacture changes merely to justify its existence.
27
+ Fixer uses precisely the same OPEN/CLOSED and Teacher mechanisms as other agents. Verified outcomes and user replies can teach useful repair preferences through ordinary work committed to its own Book. Suppress repeated unresolved requests for the same condition and avoid repair loops. If no work is justified, no model call or manufactured modification is needed. If execution resources are unavailable, retain the issue visibly until normal work can proceed; being core does not make Fixer runnable without a harness.