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,23 +1,23 @@
1
- # Harness plugins and presentation
1
+ # Harness adapters and tool presentation
2
2
 
3
- [Main specification](../_main.md)
3
+ [Main specification](../_main.md) · [Tools](tools.md) · [Shared domain logic](../coding-standards/shared-logic.md)
4
4
 
5
- Harness integrations form an extensible internal plugin system. Each harness lives in its own folder and supplies the same contract to Promptbook. The wizard, runtime and update workflow use that contract rather than separate hard-coded flows for each provider. Adding a harness must not require redesigning those common experiences. The project browser is an internal shared capability, not a harness plugin.
5
+ Harness integrations form an extensible internal plugin system. Each integration supplies the same harness contract to Promptbook, used by wizard, runtime and update workflows rather than provider-specific copies of business logic. Browsers are a different tool type, not pretend LLM harnesses; both categories participate in the same external named-tool configuration and management model. Adding an adapter must not require redesigning those common experiences.
6
6
 
7
- ## Common contract
7
+ ## Common adapter contract
8
8
 
9
- Each integration exposes its stable identifier, display name and featured status; installation/authentication/configuration readiness; supported models and execution capabilities; and the operations needed to install globally, guide native setup/login, check its version and update that global installation. Unsupported environments or update mechanisms must return an explicit actionable result, not pretend success.
9
+ Expose a stable canonical variant, display name and featured status; installation/authentication/configuration readiness; supported models/execution capabilities; and operations for global installation, guided native setup/login, version checks and updates. Distinguish shared executable state from the authentication/configuration of a particular named instance. Declare support or limitations for separate native account contexts rather than pretending two records isolate one shared login.
10
10
 
11
- The execution contract accepts the selected project directory and effective instructions, plus supported model/effort options, and runs the harness in noninteractive exec/autonomous (YOLO-style) mode. Promptbook does not need to reproduce every feature of the harness's own UI. Return actual activity, result, cancellation, failures and exposed diagnostics/usage. Tool-specific execution and setup details stay with the integration.
11
+ Execution accepts the project directory, selected named tool and its scoped authentication context, effective instructions and supported model/effort options, and runs in supported noninteractive/autonomous mode. Never leak an API key or native account selection between simultaneous clients or retained uses. Promptbook need not reproduce every feature of a harness's own UI. Return actual activity, result, cancellation, failures and exposed diagnostics/usage; setup/execution details stay with the adapter.
12
12
 
13
- Expose the available full output/diagnostic stream for the owning task's consolidated [harness trace](traces.md), with attempt boundaries and actual harness identity. Include exposed reasoning where available; never promise hidden reasoning or replace the stream with only a final summary. Apply secret redaction before persistence. Missing capture capabilities and interrupted streams must be distinguishable from empty successful output.
13
+ Expose available full output/diagnostics to the owning task's consolidated [harness trace](traces.md), with attempt boundaries, actual variant and instance attribution. Include reasoning only where actually exposed, never promise hidden reasoning or replace the available stream with only a final summary. Redact secrets before persistence and distinguish interrupted/missing capture from empty successful output.
14
14
 
15
- Follow [unattended operation](autonomous-operation.md): known execution permissions are resolved during attended setup, not by hidden per-tool prompts in a detached worker. Unexpected input waits must be detectable and recoverable or actionable. Autonomous execution does not bypass project boundaries, task constraints, paid-use authorization or genuine human-action requirements. Unsupported required capabilities block the affected work rather than being silently ignored.
15
+ Follow [unattended operation](autonomous-operation.md): resolve known execution permissions during attended setup rather than hidden prompts in a daemon. Detect unexpected input waits and recover or explain them. Autonomous operation does not bypass task constraints, project authority, paid-use limits or genuine human actions. Unsupported capabilities are explicit, not silently ignored.
16
16
 
17
- ## A catalog that can grow
17
+ Readiness and variant-specific parsing feed the shared tool domain layer. Init, commands and dashboard use those same types, validators and management operations; they must not independently implement provider branches or environment editing. See [DRY](../coding-standards/shared-logic.md).
18
18
 
19
- Distinguish featured and ordinary integrations. Default catalog views and pickers show only a small curated set of two or three featured names, initially OpenAI Codex and Claude Code, plus **More** for other supported integrations. A catalog of hundreds must remain usable through searchable or bounded navigation.
19
+ ## A catalog that can grow
20
20
 
21
- Default entries show names, not configuration or model dumps; details are revealed only on request. Selection markers are fine. Preserve access to every supported integration and existing selections. Featured status is presentation, not authorization, automatic selection or permission to install. Runtime views must still identify the active/selected harness even when it is not featured.
21
+ Default integration catalogs show a small curated featured set, initially OpenAI Codex and Claude Code, plus **More**. All other supported variants remain reachable through bounded/searchable navigation even with hundreds of adapters. Default entries show names, not model/configuration dumps; reveal details on request and preserve selections.
22
22
 
23
- See [harnesses](harnesses.md), [updates](harness-updates.md) and [help](help.md).
23
+ Featured status is presentation, not installation, enablement or paid-use authorization. The configured-tool inventory is different from the adapter catalog: it must distinguish several named instances of the same variant, their order, enabled state, availability and current uses. An active nonfeatured variant remains visible. See [harnesses](harnesses.md), [updates](harness-updates.md), [tool management](tool-management.md) and [help](help.md).
@@ -1,33 +1,39 @@
1
- # Harness selection, setup and execution
1
+ # Harness tools: setup, accounts and execution
2
2
 
3
- [Main specification](../_main.md)
3
+ [Main specification](../_main.md) · [Unified tools](tools.md) · [Live tool use](tool-runtime.md)
4
4
 
5
- A harness provides model/tool execution, not agent identity or the project's browser session. Support integrations for `openai-codex`, `claude-code`, `github-copilot`, `cline`, `opencode`, `gemini` and `qwen-code` through the common [plugin contract](harness-plugins.md).
5
+ A harness provides model/tool execution, not agent identity or browser website sessions. Supported canonical variants are `OPENAI_CODEX`, `CLAUDE_CODE`, `GITHUB_COPILOT`, `CLINE`, `OPENCODE`, `GEMINI` and `QWEN_CODE`, behind the common [plugin contract](harness-plugins.md). `tools` may contain several named instances of any variant, not just one configuration per provider.
6
6
 
7
- ## Project choices, global installations
7
+ ## Global executables, per-instance authentication
8
8
 
9
- The project's `ptbk.json` selects enabled harnesses and their non-secret configuration, including native global setup or references to API-key/model settings. CLI overrides follow [configuration precedence](configuration.md). Supported, installed, selected and usable are different states: installation alone does not enable a harness for a project.
9
+ The project's ordered tool records select enabled instances and non-secret setup. Supported, installed, configured, enabled and usable are different states. An installed unselected integration is not an implicit fallback. CLI overrides follow [configuration precedence](configuration.md) and cannot authorize an otherwise forbidden route.
10
10
 
11
- Harness CLIs are installed globally in the user's system environment, never as project-local copies under `.ptbk/` or project dependencies. Discover the selected installations, authentication, versions, models and effective capabilities. Reuse existing native configuration and active login; do not rerun setup when already ready. Installed but signed-out is not usable.
11
+ Install harness CLIs globally in the user's environment, not as per-project copies under `.ptbk/` or project dependencies. Discover the actual executable, version, models, capabilities and the selected instance's authentication context. Reuse healthy existing setup. A native account or credential context may be instance-specific even though the executable is shared. Coordinate updates of that shared executable rather than updating it separately for every configured account.
12
12
 
13
- The background service must use the same non-secret executable/native-store discovery paths that passed startup, including version-manager global bins. A shell login succeeding while a daemon cannot find its executable is an environment/discovery problem, not evidence of a signed-out account. Report that distinction and the path-refresh restart action; preserve discovery across [persistent startup](persistence.md).
13
+ For `authentication: NATIVE`, reuse the selected native account/subscription context; `accountProfile` identifies a distinct supported context when needed. For `authentication: API_KEY`, resolve only that instance's symbolic `apiKey` reference and explicitly select API authentication. Never let an unrelated active global account override an explicitly selected API tool or let an ambient API key turn a native tool into paid API execution. Do not overwrite a shared global login to simulate multiple independent subscriptions. Unsupported account isolation is a capability error, not successful pooling.
14
14
 
15
- Whenever setup is needed, offer the [featured/More selector](harness-plugins.md). The user may choose just one or several harnesses and leave others unselected. Install, configure or guide login only for chosen integrations and only for missing prerequisites. During init, finish and verify every selected integration: its executable and required configuration are available, authentication has actually completed and authorized autonomous execution is usable. Opening a login page or starting installation is not readiness. Do not leave a selected harness pending merely because another one works.
15
+ The service uses the same non-secret executable/native-store discovery paths that passed setup, including version-manager bins. A shell login working while the daemon cannot find its executable is discovery failure, not signed-out status. Preserve discovery through [persistent startup](persistence.md) and expose the real repair action.
16
16
 
17
- A failed, cancelled or deferred selected integration keeps init incomplete unless the user explicitly removes it from the selection; do not silently deselect it. At least one selected usable harness is necessary for ready-to-run completion, including a usable bootstrap choice for Manager. Recheck readiness after setup/update without an implicit paid test call. Start reuses that setup without asking again while it remains valid. Later missing prerequisites invoke setup when interactive or produce an actionable unattended requirement. Read-only commands never perform setup or updates.
17
+ ## Simple setup and continuous readiness
18
18
 
19
- Native harness authentication remains separate from [browser profile selection](browser.md), even if the harness opens its own login page. Never transfer project browser cookies to a harness or store its account secrets in versioned configuration.
19
+ Use the existing featured/More picker. Users may select one or several integrations; initialize/configure only their choices and only missing prerequisites. Normal init does not ask them to build advanced fallback chains or multiple account profiles. Every selected initial tool must actually complete installation, login and authorized noninteractive readiness; opening a login page is not completion. A cancelled/deferred initial integration remains incomplete unless the user explicitly removes it from the selection.
20
20
 
21
- ## Execution and permissions
21
+ Once the project is initialized, later resource loss does not mean the service has failed to start or exited. Check before every task, on inventory changes and during waits; display missing executables, credentials, quotas or capabilities and use configured alternatives. No usable harness means running/controllable but waiting for tools. Fixer can help when execution resources exist; no imaginary agent runs without them. Readiness inspection is not an implicit paid model call. Read-only commands do not install, update or authenticate.
22
22
 
23
- Run the selected global harness over the project with effective instructions in autonomous exec mode. Respect explicit task restrictions, supported models/thinking settings and consultation capabilities; do not silently substitute unsupported requirements. Recheck readiness when conditions change and use [harness updates](harness-updates.md).
23
+ Browser website sessions and native harness authentication remain independent even when a harness opens its own login page. Never transfer project-browser cookies into a harness or put account secrets in versioned configuration.
24
24
 
25
- Record actual success, failure, missing login, quota, cancellation and effective model/effort. Completion-looking text cannot override a failed process/turn. Unknown provider information remains unknown; model catalogs come from integrations, not fixed examples in this specification.
25
+ ## Selection and fallback
26
+
27
+ Different variants may be chosen for their strengths even while the first listed variant is healthy. Within the same variant, use the first eligible usable enabled tool in array order; later instances are fallback for unavailable earlier ones, not arbitrary load-balancing. Supported chains include multiple subscriptions, subscription then API, and multiple authorized billing accounts. A recovered earlier instance regains priority on a future selection without terminating work already using a fallback.
28
+
29
+ Preserve explicit task/model/account requirements. Respect configured paid-use limits; newly discovered keys do not authorize spending. After a known quota failure, use a configured authorized fallback promptly rather than waiting unnecessarily or retrying the exhausted account forever. If no candidate is usable, retain the actual wait and recheck opportunity. Never replay completed external effects when changing harness/account.
30
+
31
+ Run the selected global integration over the project with effective [agent context](agent-context.md) in its supported autonomous exec mode. Return actual success, failure, missing login, quota, cancellation and effective model/effort plus the named tool instance. Completion-looking text cannot override a failed turn/process. Unknown provider metadata remains unknown; model catalogs come from integrations, not fixed examples.
26
32
 
27
33
  ## Codex account login and billing
28
34
 
29
- For Codex, prefer and reuse an active native ChatGPT account login. A successful `codex login status` reporting `Logged in using ChatGPT` is authentication evidence. With the executable and required execution capabilities available, init must accept this account as usable without another login, an API key or `--allow-credits`. Ordinary account/subscription execution, including TEAM and planning, must not require a credit-control flag absent from the installed Codex CLI. Readiness inspection uses login status, help and metadata, never an implicit model call.
35
+ For a native Codex tool, prefer/reuse its active native ChatGPT login. With executable and required capabilities present, `Logged in using ChatGPT` is readiness evidence without another login, API key, `--allow-credits` or model probe. Ordinary subscription execution, TEAM and planning must not depend on a missing credit-control flag. Authentication, subscription quota, account credits and API billing remain distinct.
30
36
 
31
- Authentication, subscription availability, account credits and API billing are separate concerns. Account execution follows the user's existing native Codex/account billing controls. `--allow-credits` authorizes supported explicit paid-credit fallback; it is not required to reuse subscription access and never authorizes API billing. Apply native credit restrictions when the invoked command actually supports them. If no such control exists, do not invent flags/configuration or claim that ptbk guarantees credit-free execution. Users requiring a hard account-credit limit must configure it through the provider's supported account/workspace controls. See the official [authentication](https://learn.chatgpt.com/docs/auth), [CLI reference](https://learn.chatgpt.com/docs/cli/reference) and [pricing](https://learn.chatgpt.com/docs/pricing).
37
+ `--allow-credits` authorizes supported explicit account-credit fallback, not API billing and not a requirement to reuse a subscription. Apply provider controls only when actually supported; do not invent flags or promise credit-free execution that the provider cannot guarantee. Hard account-credit limits remain subject to provider-supported controls.
32
38
 
33
- API-key execution requires `PTBK_OPENAI_CODEX_USE_API_KEY=1` and an available key when no active account session is used. An active account session wins even when keys are present; remove API-key environment overrides from its execution and force ChatGPT authentication. Quota or credit-limit failures remain quota outcomes, not signed-out/setup errors. Automatic routing never changes to an unapproved paid account or API fallback. See [Manager](../agents/manager.md), [TEAM](team.md), [retries](retries.md) and [planning](planning.md).
39
+ The unified API tool's explicit `authentication: API_KEY` and configured reference replace reliance on the legacy `PTBK_OPENAI_CODEX_USE_API_KEY` opt-in for that instance. A native tool remains native even when environment keys exist. An explicitly configured/enabled API fallback may be used after earlier same-variant instances become unavailable, within project/task spending authority. Quota failures are quota outcomes, not a reason to log out or request another native login. See [environment safety](environment.md), [Manager](../agents/manager.md), [TEAM](team.md), [retries](retries.md) and [planning](planning.md).
@@ -2,32 +2,32 @@
2
2
 
3
3
  [Main specification](../_main.md) · [Initialization behavior](initialization.md) · [Shared CLI interaction](interactive-ui.md)
4
4
 
5
- Init is a short, attended journey with a beginning, visible progress and an end. Its functional choices and saved artifacts are defined separately in [initialization](initialization.md). The dashboard is an optional, indefinitely available operating view, not the final wizard page or a prerequisite for unattended work.
5
+ Init is a short attended journey with a beginning, visible progress and an end. The dashboard is the optional ongoing cockpit, not the final wizard page or a prerequisite for unattended work. Functional saved choices are defined in [initialization](initialization.md).
6
6
 
7
- ## Intent first
7
+ ## Intent first, simple tool choices
8
8
 
9
- Open a new initialization with one generous, focused field asking what the user is working on. Accept a short phrase, a full brief, long pasted text and images or other attachments together. Do not ask the user to separately author a first task. Use the shared [rich composer](rich-input.md), with compact paste/attachment tokens instead of dumping long payloads into the terminal.
9
+ Open new initialization with one generous field asking what the user is working on. Accept prose, long pasted material and images/files through the shared [rich composer](rich-input.md), with inspectable compact tokens instead of terminal payload dumps. Retain supplied input and resumed drafts. Existing-project maintenance reuses recorded purpose and does not request a replacement brief. Do not ask for a separate first task.
10
10
 
11
- Previously supplied input and resumed drafts are retained. Technical questions follow the intent field. Existing-project maintenance reuses its purpose rather than presenting a blank-project creation form.
11
+ Keep the familiar selected-harness featured/More flow and one **Browser profile** picker: dedicated global Promptbook profile (default), isolated project profile, user's existing Chrome profile, or custom path. Explain the difference between dedicated and personal identities and safe sharing; preserve previous choices. Headless is independent. Unified tools are an internal/configuration improvement, not a requirement to ask about advanced instance naming, account pools, multiple browsers or fallback chains in the normal wizard. Those are managed later.
12
12
 
13
- ## Guided, bounded progress
13
+ There is **no check-command question**, script picker or validation-deferral screen. Missing validation receives the explicit informational placeholder described in [checks](checks.md); the wizard does not claim real tests passed. Existing real validation is preserved.
14
14
 
15
- Keep the current step name and a meaningful `Step X of Y` visible throughout the wizard. Count user-facing steps, including grouped steps, rather than internal operations. Account for skipped prerequisites and conditional branches; when choices change the remaining path, update its total honestly. Reused setup steps must not appear as unfinished work. Installing or authenticating may have an indeterminate duration, but the user can still see its place in the overall journey; do not fabricate a completion percentage or time estimate.
15
+ ## Bounded progress and conditional synchronization
16
16
 
17
- Present the **Browser profile** picker with four clearly named choices: dedicated global Promptbook profile **(default)**, isolated per-project profile, user's existing Chrome profile, or a manually supplied custom profile path. Distinguish a Promptbook-created global identity from the user's personal Chrome identity; explain reuse between projects and concurrent-profile ownership. Previously saved choices must not be silently replaced. The headless/headful choice remains independent; see [browser behavior](browser.md).
17
+ Show a meaningful `Step X of Y` and current step throughout. Count actual user-facing/grouped steps, including conditional branches and skipped/reused prerequisites. Update totals honestly when choices change. Installation/authentication duration may be indeterminate, not a fabricated completion estimate.
18
18
 
19
- Group trace choices in a dedicated **Traces** screen with three labeled controls: commit traces to Git, ignore trace videos in Git, and record browser videos. Briefly explain storage/privacy implications and show effective behavior when one choice overrides another. Link their semantics to [trace configuration](trace-configuration.md); noninteractive use has the same decisions without a screen.
19
+ Add **Automatic synchronization**, default off, reusing an existing decision. No ends this branch immediately. Yes offers GitHub publication or another supplied Git origin; GitHub visibility defaults private and public is an explicit choice. Show the intended repository/destination clearly and report local setup separately from remote publication. Follow [synchronization setup](synchronization-setup.md), without exposing unsupported dedicated GitLab onboarding. Do not add an interval-configuration question.
20
20
 
21
- Use the same automatically generated [agent visual identity](../agents/visual-identity.md) as the dashboard. The engine-supplied Expert accompanies the wizard as its recognizable guide, with its name visible. This is a local procedural visualization, not a model call or evidence that Expert is already executing the first task. Restrained reactions can reflect input, real setup progress and successful completion. Preserve focus and input; keep errors and required decisions more prominent than decoration.
21
+ Keep a dedicated **Traces** screen with three controls: commit traces, ignore videos in Git, and record browser videos. Explain privacy/storage and effective parent/video exclusions using [trace configuration](trace-configuration.md). Noninteractive mode supplies the same decisions without screens.
22
22
 
23
- ## Finish, celebrate and leave
23
+ Expert is the recognizable procedural visual guide, using the same [agent identity](../agents/visual-identity.md) as the dashboard. This is not a model call or evidence that bootstrap work is already executing. Restrained reactions can reflect actual progress, with decisions/errors above decoration. Preserve focus and drafts through resize and backward navigation.
24
24
 
25
- After confirmed successful setup and service launch, show a brief, tasteful celebratory terminal effect involving Expert, such as a small confetti-like flourish or happy pose. It should feel polished and rewarding, not noisy, childish or lengthy. It must not require dismissal, delay work, flood scrollback or loop indefinitely. Never celebrate cancelled, incomplete or failed setup as success.
25
+ ## Finish, celebrate and return
26
26
 
27
- Leave a concise final summary identifying the project, actual engine version, setup result and confirmed service state. Make `ptbk dashboard` the primary next action: the service already runs; viewing it is optional. Offer `ptbk stop` as the way to stop it. Do not hint that a successful default init still needs `ptbk start`, automatically attach the terminal dashboard, or open its browser page. Do not wait for the first task to finish.
27
+ After successful local setup and confirmed service launch, show a brief tasteful Expert celebration without a dismissal, long delay, looping animation or scrollback flood. Never celebrate failed/cancelled local setup as success. Remote publication may still be pending; make that qualification explicit rather than claiming full synchronization success.
28
28
 
29
- Raw/noninteractive output remains finite plain text, with the same truthful outcome and next actions but no animation or input prompts. Respect reduced motion and limited terminals with a static success treatment. The dashboard keeps its distinct live layout, shows the actual agents working in the project and has no step total or overall completion state.
29
+ Leave a concise summary of project, actual engine version, local setup, confirmed service state and relevant pending synchronization. Make `ptbk dashboard` the primary next action and `ptbk stop` the stop action. Do not require another start, open/attach a dashboard or wait for the first task's result. Raw/noninteractive and reduced-motion modes remain finite and truthful, without hidden prompts or animation.
30
30
 
31
31
  ## Acceptance outcomes
32
32
 
33
- Paste a long multiline brief with several images, navigate backward and resize: the input survives and is saved in full, with working project-local asset links. Move through conditional setup: the current step and total remain truthful. Complete setup: Expert celebrates briefly, the service processes its ordinary first task, the terminal returns, and neither dashboard opens. Cancellation, launch failure, raw output and reduced motion never produce a misleading or obstructive celebration.
33
+ Preserve a long brief and ordered attachments through navigation/resize and save them verbatim. Verify the old simple tool selectors, no check-command prompt, correct placeholder labeling and conditional sync step totals. No skips all remote questions; GitHub defaults private; custom origin remains available. Complete local setup and start without waiting for bootstrap or requiring an open view. Cancellation/launch failure never produces false celebration, and remote failure is shown independently while safe local work continues.
@@ -2,48 +2,58 @@
2
2
 
3
3
  [Main specification](../_main.md) · [Initialization experience](initialization-ui.md)
4
4
 
5
- `ptbk init` (`ptbk initialize`) is a finite technical setup workflow for an empty folder or an existing project. It prepares project support, saves the initial specification and an ordinary bootstrap task, and starts the agenda in the background. Project-specific content is created by that task, not by a second execution mechanism inside the initializer. Presentation, progress, input controls and celebration belong to [initialization UX](initialization-ui.md), not this functional contract.
5
+ `ptbk init` (`ptbk initialize`) is a finite technical setup workflow for an empty or existing folder. It prepares support, preserves original intent, saves one ordinary Expert bootstrap and starts the agenda in the background. Project-specific content is created by that task, not a second execution mechanism inside init. Presentation/progress/celebration belong to [initialization UX](initialization-ui.md).
6
6
 
7
- Initialization is reusable: start invokes the same readiness checks and missing setup steps. Reusing it from start must result in one start operation, not recursive init/start calls or duplicate workers. Equivalent setup decisions can be supplied in advance for noninteractive use.
7
+ Reuse the same readiness/setup operations from start for genuinely missing initialization, with one handoff and no recursive init/start or duplicate workers. Equivalent decisions can be supplied noninteractively. Later missing/disabled tools in an initialized project are a live resource wait, not permission to rerun the wizard or repopulate deliberately removed resources.
8
8
 
9
9
  ## Initial input and destination
10
10
 
11
- For a new initialization, the first question is what the user is working on, before destination, installation or other technical choices. Accept arbitrary project intent, not only software projects: free text, long pasted material, images and other attached files. A previously supplied input or an existing initialization's recorded intent is reused rather than asked for again. Reinitialization and upgrades preserve the existing project's purpose.
11
+ For new initialization, first ask what the user is working on, before destination/installation questions. Accept arbitrary intent, not just software: free text, long pasted material, images and files. Reuse supplied input, resumed drafts or an existing initialization's recorded intent. Reinit/upgrades preserve purpose rather than requesting a new brief.
12
12
 
13
- Then resolve the destination: current directory by default or a new subfolder, reusing an explicit destination. Confirm the resolved location before project writes. A nonempty destination is an existing project, not permission to regenerate it. A child inside Git follows [nested-project initialization](nested-projects.md). The optional [engine-update gate](updates.md) must not displace the initial intent question or lose its draft.
13
+ Then resolve current directory or a new subfolder, reusing an explicit destination, and confirm location before writes. Nonempty content is an existing project, not permission to regenerate it. Children inside Git follow [nested-project initialization](nested-projects.md). The optional [engine-update gate](updates.md) must not displace or lose the original intent/draft; an existing newer-version configuration also follows the [compatibility gate](configuration-migrations.md).
14
14
 
15
- Save the accepted input in the initialized project's `specs/_initial.md`. Preserve the user's text verbatim, including its language, wording, whitespace, line breaks and long pasted blocks. Do not summarize, translate, improve or replace it with an AI-generated specification. Save attachments as project-local assets and reference them with working relative links at their corresponding positions; preserve their order and original contents. Composer placeholders are presentation only: saved text contains the full pasted material, not `[Pasted text ...]` labels. Do not leave references to clipboard state, temporary files or absolute paths on the originating machine.
15
+ The [Windows installer](windows-installer.md) may launch this same interactive workflow in a newly created empty directory, explicitly selected with `--path`. Reuse that destination rather than offer another root/subfolder decision; after the normal intent input, show it for confirmation. Installer folder naming is not the project's intent. Do not add an installer-specific initialization path: dependency choice, Git setup, tools/authentication, version checks, setup commit and automatic start retain their ordinary semantics.
16
16
 
17
- These are the initialized project's specifications, not the engine's own specification directory. Prepare the input and assets as setup artifacts with the [first task](first-task.md). Never overwrite an existing initial specification or duplicate its attachments during resume/reinit. Blank input is allowed: preserve it as blank rather than invent a purpose; the first task then performs a bounded readiness review while preserving existing content.
17
+ Save accepted input in the initialized project's `specs/_initial.md`, preserving text verbatim: language, wording, whitespace, line breaks and long pasted blocks. Do not summarize, translate or improve it. Save original attachments as project-local assets with ordered working relative links at their corresponding positions. Composer tokens are presentation, not saved replacements for full content. Never retain clipboard/temp-file/absolute-machine references.
18
+
19
+ These are the initialized project's specifications, not changes to the engine's own specification folder. Prepare them with the [first task](first-task.md). Resume/reinit never overwrites original intent or duplicates attachments. Blank input remains blank; its ordinary Expert task performs a bounded readiness review without inventing purpose.
18
20
 
19
21
  ## Incremental technical setup
20
22
 
21
- Check Git, `ptbk.json`, agent/task/chat locations, project instructions, core agents, templates and ignore rules individually. Reuse a valid enclosing repository and its current branch, including one without a first commit; otherwise initialize Git. Resume only missing setup, preserving existing files and customization.
23
+ Check Git, configuration, source locations, instructions, core agents, templates and ignore rules individually; resume only missing setup. Reuse a valid existing repository/current branch, including an unborn one. When creating a new repository, explicitly initialize **main**. Preserve files, staging, history and customization.
22
24
 
23
- Prepare `agents/`, the configured task source (normally `tasks/`), `chats/`, `specs/`, root-level `traces/`, readable project instructions, required [core agents](../agents/core-agents.md), useful role/task templates and [configuration](configuration.md). Create only missing core agents. Default ordinary roles include Developer, Planner, Lawyer and Copywriter, with useful TEAM relationships. Keep `.ptbk/` ignored; trace ignore behavior instead follows the saved [trace settings](trace-configuration.md).
25
+ Prepare `agents/`, the configured task source (normally `tasks/`), `chats/`, `specs/`, root-level `traces/`, readable instructions, required [core agents](../agents/core-agents.md) and useful role/task templates. Ordinary defaults include Developer, Planner, Lawyer and Copywriter with useful TEAM relationships. Create only missing cores. Initialize Fixer with the simple general problem-solving Book and User/Expert TEAM under [automatic repair](../concepts/automatic-repair.md), never reset its customized/learned policy.
24
26
 
25
- The required core roles include [Chatter](../agents/chatter.md), the default human-chat entry. Initialize a missing `agents/.core/chatter.book` with a small editable `AGENT Chatter` definition and TEAM access to all other roles initialized/selected for this setup, including core agents and specialists, without a self-reference. It may consult Expert for engine-specific questions. Build that initial team from the completed role set, not only the roles created before Chatter's file. Reinit/upgrade preserves an existing Chatter and its customized team; add missing definitions individually without resetting any other Book. Creating Chatter is technical setup, not an extra chat, model call or bootstrap execution.
27
+ Create a missing `agents/.core/chatter.book` with `AGENT Chatter` and TEAM access to all other initialized/selected core/specialist roles plus Expert, excluding itself. Build its initial team from the completed role set, not just earlier-created files. Reinit preserves an existing Chatter/team and all other Books. This is technical setup, not an extra chat, model call or bootstrap execution.
26
28
 
27
- Apply the destination-specific [local installation choice](installation.md). Configure only the selected harnesses, completing [setup](harnesses.md) and the separate [update choices](harness-updates.md) for each. Reuse healthy global installations and native authentication. Browser/profile selection is independent and presents **four explicit sources**; the **Promptbook-managed dedicated global profile** is the new default, reused across projects on the same machine without using the user's personal Chrome profile. See [browser](browser.md). Choosing no usable harness leaves setup incomplete, not ready to run. Resolve known access and execution-permission requirements during attended setup rather than defer routine approval prompts to the daemon; see [unattended operation](autonomous-operation.md).
29
+ Apply destination-specific [local installation choice](installation.md), preserving existing dependencies. Configure selected harness variants through the existing featured/More flow, with global installations, native login and [update choices](harness-updates.md). Complete and verify all initially selected integrations without paid readiness probes; cancellation/deferred selection remains incomplete unless explicitly removed. Reuse valid Codex ChatGPT authentication without requiring an API key or absent credit-control flag; see [harness account rules](harnesses.md).
28
30
 
29
- Collect three trace settings and save them in `ptbk.json`: whether to commit traces, whether to Git-ignore trace videos, and whether to record browser video at all. Their dependencies and effective ignore behavior are defined in [trace configuration](trace-configuration.md). Reuse previously saved answers. Task evidence uses the literal source-filename directory convention in [traces](traces.md), independently of the task's declared logical name.
31
+ Configure one browser through the existing four-source picker, defaulting to the dedicated reusable global Promptbook profile, not personal Chrome. Save typed named records in `tools` by calling the **same domain operations** as later CLI/dashboard management. Generate simple names and defaults. Do not ask users to build multiple-account pools, several browser instances or fallback chains during normal init. These remain available afterwards. Resolve known execution permissions during attended setup rather than leave invisible prompts in the daemon.
30
32
 
31
- Resolve missing or unconfigured validation during init. Offer valid existing scripts, a custom command or explicit deferral; confirm the exact command saved in `ptbk.json.execution.check` or repair of its effective setting. Verify references and dependencies without running project checks or calling a model. A fresh skeleton includes meaningful working validation, not a generated failing placeholder or unconditional pass. Expert may later adapt validation to the project's content through ordinary checked work. `init --check COMMAND` supplies a missing check decision; valid saved defaults remain intact and an override follows [configuration precedence](configuration.md).
33
+ Write the actual running engine version into a new `promptbookVersion`. Existing older configurations use the ordinary migration pass, with its separate committed provenance, not an ad hoc initializer conversion. Preserve `.ptbk/`, browser/session stores and `.env` as ignored; [environment edits](environment.md) are non-destructive and timestamped.
32
34
 
33
- Save the [first runnable task](first-task.md), explicitly assigned to the engine-supplied Expert and referencing `specs/_initial.md`. Do not ask the user to compose a separate first task. By default commit authorized setup artifacts before dispatch, using an initial or scoped setup commit with a `PTBK: ` subject and applicable task names under [Git persistence](git-persistence.md). Preserve unrelated staging, edits, hooks and signing. A failed commit is incomplete setup, not success.
35
+ Collect/reuse the three Traces choices: `traces.isCommitted`, `traces.isVideoIgnored` and `traces.isVideoRecordingEnabled`. Their defaults, dependencies and effective ignore rules live in [trace configuration](trace-configuration.md). Trace directories use literal task source basenames, independently of logical names.
34
36
 
35
- ## Completion and automatic start
37
+ ## No check-command question
38
+
39
+ Remove the check-command question completely from the wizard, including script selection, custom-command prompts and a mandatory validation-deferral decision. Preserve an existing real `execution.check`. When no check is configured, create a successful informational placeholder such as `echo "Configure project checks in ptbk.json execution.check"` without asking the user. It explicitly means real automated validation is not configured, not that project tests passed, and does not block init/start or the first task.
40
+
41
+ An explicitly supplied `init --check COMMAND` can fill the missing setting without a question; preserve existing valid defaults and the usual temporary-override rules. Never replace a failing real validator with the placeholder to claim success. Expert may establish appropriate validation through ordinary work; see [checks](checks.md). Init itself does not run project checks or call a model.
36
42
 
37
- Successful default initialization leaves all selected harnesses usable, real saved validation and prerequisites available, required agents present, the initial specification, bootstrap task and chat storage saved, and authorized setup committed. Check readiness using settings the service will actually use, not wizard-only state. Created files or a launched login window alone are not completion. Do not claim project checks passed when init did not run them.
43
+ ## Optional synchronization and persistence
38
44
 
39
- After technical setup succeeds, automatically perform the ordinary [background start](start.md) with the selected project and applicable explicit workflow overrides. There is no extra Start confirmation or manual Run action. A new project begins its Expert task through normal queue processing; the task can create follow-ups that continue through that same queue. Init does not execute the task inline or wait for it, its checks, or its follow-ups to finish.
45
+ Add the **Automatic synchronization** step under [synchronization setup](synchronization-setup.md). Default/reused false asks nothing further. A new yes offers GitHub publication, private by default with explicit public choice, or a user-supplied other origin. Dedicated GitLab setup is future scope. Keep actual origin/upstream in Git, not duplicated JSON fields. Existing repositories/branches/remotes are not silently replaced.
46
+
47
+ Save the ordinary first task assigned to Expert and referring to `specs/_initial.md`; do not ask for a separate starter assignment. By default commit only authorized local setup before dispatch/publication, using an initial or scoped `PTBK: ` commit and applicable names. Preserve unrelated edits, hooks and signing. Failed local persistence is incomplete setup. Initial remote creation/push has an honest separate outcome: its failure leaves synchronization pending but does not prevent otherwise ready local work.
48
+
49
+ ## Completion and automatic start
40
50
 
41
- Confirm the bounded service-start outcome and return the terminal. Do not attach a terminal dashboard or open a browser dashboard. The primary next-action hint is `ptbk dashboard`; `ptbk stop` remains available. Distinguish technical setup complete, service running, and task progress. If service launch fails, preserve completed setup and the queued task, report the failed launch and its repair action, and do not claim the agenda is running. A task failing after a confirmed launch is a runtime outcome, not a reason to rerun initialization.
51
+ Successful local technical setup leaves selected initial tools usable, required roles/storage present, original intent/assets and the ordinary bootstrap saved, and either preserved real validation or the explicitly labelled placeholder. Default setup is committed. Check the settings the service will actually use, not wizard-only state. Do not claim checks or publication succeeded merely because files or login windows were created.
42
52
 
43
- Explicit `init --no-commit` preserves that policy through the automatic start. Label the uncommitted workflow and retain ownership, checks and recovery; do not claim the default committed guarantee or silently switch to committing. Returning to a later default invocation requires reconciliation under [Git persistence](git-persistence.md).
53
+ Automatically perform the ordinary [background start](start.md) with the selected project and applicable explicit overrides. No extra Start confirmation, manual Run action or dashboard is required. The daemon executes Expert and follow-ups through the normal queue; init does not execute them inline or wait for their checks/results.
44
54
 
45
- Cancellation, deferral or an unresolved prerequisite preserves completed progress but does not start work or report full success. Noninteractive init fails actionably for missing required decisions; it never waits on invisible prompts. Later credential expiry, outages or genuinely task-specific decisions remain possible; known setup problems are not deferred to runtime.
55
+ Confirm the bounded service-start outcome and return the terminal. Do not attach/open a dashboard. The primary next hint is `ptbk dashboard`; `ptbk stop` remains available. Distinguish local setup, service launch, task progress and pending synchronization. Launch failure preserves setup/queued work and gives the repair action; a later task failure is runtime work, not a reason to rerun init.
46
56
 
47
- Reuse working native Codex ChatGPT authentication under the [account and billing rules](harnesses.md#codex-account-login-and-billing). Missing optional credit-control flags alone do not require another login, API key or `--allow-credits`; actual execution capabilities and provider quota remain distinct.
57
+ Explicit `init --no-commit` remains a labelled uncommitted setup/task workflow when no required migration or autosync conflicts with it; propagate that policy through the automatic start. Never claim a committed guarantee or silently switch policy. Later committed use follows [Git reconciliation](git-persistence.md).
48
58
 
49
- Repeating init with unchanged choices does not rewrite files, duplicate or reopen the first task, reset configuration, repeat login or create empty commits. Reuse an already running service without resetting its configuration or pause/draining intent; a successful explicit init on a stopped project includes the same start operation. Newer engines may add missing required artifacts without overwriting customization. Engine ownership and host discovery are handled by that ordinary start, not by attaching a dashboard. See [process modes](process-modes.md), [Git preflight](git-preflight.md) and [execution](execution.md).
59
+ Cancellation or unresolved essential local setup preserves progress without false success or hidden noninteractive prompts. A placeholder check is not unresolved essential setup, and a remote synchronization outage is not a local-launch prerequisite. Repeating unchanged init creates no empty commits, duplicate/reopened starter, repeated login or reset settings. Reuse a running service without overriding deliberate pause/draining intent; an explicit successful init on a stopped project includes the ordinary start. See [process modes](process-modes.md), [Git preflight](git-preflight.md) and [execution](execution.md).
@@ -6,6 +6,12 @@ The repository publishes one npm package, `ptbk`, providing the `ptbk` command.
6
6
 
7
7
  Install globally with `npm install -g ptbk`, then invoke `ptbk`. Alternatively, install locally in dependencies or devDependencies and use `npx ptbk` or an npm script; a local installation does not add the executable to the system PATH. Global and local Promptbook installations are independent of the always-global [harness installations](harnesses.md).
8
8
 
9
+ ## Windows installer entry point
10
+
11
+ Each version also ships a thin [Windows installer](windows-installer.md) on its GitHub Release. It prepares missing Node.js/npm/Git prerequisites, installs the corresponding ordinary global `ptbk` package, proposes a home-based projects root and offers an empty first-project directory. The normal handoff opens a terminal in that project and automatically runs the existing interactive `ptbk init` with its destination selected.
12
+
13
+ This is an additional distribution/onboarding path, not a replacement for npm or a separate engine/graphical initializer. Reuse compatible existing prerequisites, preserve unrelated installations and follow the installer's exact-version, permission, retry and safe-directory rules. Project-local installation remains a later ordinary init decision. Automatic artifact creation and publication are part of [releasing](releasing.md).
14
+
9
15
  ## Installation during init
10
16
 
11
17
  Inspect the selected destination, not merely the folder from which init was launched. If it already declares and has a usable local `ptbk` in dependencies or devDependencies, preserve it without asking to add a second copy or moving it between sections. Repair a declared but missing installation without silently replacing its version choice.
@@ -2,10 +2,12 @@
2
2
 
3
3
  [Main specification](../_main.md)
4
4
 
5
- `--isolate` executes one task in a separate Git worktree while preserving the same project identity and sequential task policy. It requires a named branch and enabled commits. Map the selected project, task source, agent definitions, context and necessary dependencies consistently.
5
+ `--isolate` executes one task in a separate Git worktree while preserving project identity and sequential task policy. It requires a named branch and enabled commits. Map project, sources, agents, context and necessary dependencies consistently. A worktree is not another engine, browser-session identity or security sandbox.
6
6
 
7
- The original branch receives result and completion only after verified integration. Preserve the task's single result commit and require fast-forward integration; a changed source branch or conflict preserves both versions and a recoverable result rather than destructive cleanup.
7
+ The source project's live tool registry remains authoritative: tool additions/changes from other clients are not lost merely because task files live in a worktree. Preserve current-use rules and keep tool-management commits separate from the task result. Do not copy stale configuration back over intervening project changes at integration.
8
8
 
9
- Keep isolation artifacts under ignored `.ptbk/` storage or another explicitly authorized ignored location. Preserve diagnostics and needed state before cleanup; never delete unintegrated work automatically. Copy only authorized local configuration, and do not present a Git worktree as a security sandbox or a separate browser/session identity.
9
+ Create one verified task result commit in the task context, then integrate into the project branch with a visible **non-fast-forward merge**, preserving the original result and all intervening commits. The integration commit is not a second task result or execution. A changed source branch is reconciled, not rewritten by rebase, amend or force reset. Conflicts preserve both versions and use the ordinary [Fixer path](../concepts/automatic-repair.md); never delete unintegrated work automatically.
10
+
11
+ The project branch receives accepted result/completion only through successful verified integration. Publish that integrated branch under [synchronization](git-synchronization.md), not the temporary branch. Keep isolation artifacts in ignored `.ptbk/` or another explicitly authorized ignored location, preserving diagnostics and recovery state before cleanup. Copy/access only authorized local configuration and never commit secrets while preparing the worktree.
10
12
 
11
13
  See [workspace](workspace.md), [Git persistence](git-persistence.md) and [recovery](recovery.md).
@@ -1,6 +1,6 @@
1
1
  # GitHub Actions checks and publication
2
2
 
3
- [Main specification](../_main.md) · [Operational quality](operations.md) · [Installation](installation.md)
3
+ [Main specification](../_main.md) · [Operational quality](operations.md) · [Installation](installation.md) · [Windows installer](windows-installer.md)
4
4
 
5
5
  The official repository's **Check ptbk** and **Publish ptbk** GitHub Actions workflows are expected to pass for their applicable commits and releases. Passing both workflows is a required release acceptance outcome. Passing local checks is useful evidence; completion also requires successful hosted checks for the exact source being accepted or released. A required job that fails, is cancelled or is skipped does not satisfy this requirement.
6
6
 
@@ -16,8 +16,22 @@ Reviewed planning saves produce their scoped `PTBK: ` commit on every supported
16
16
 
17
17
  For an authorized release tag or manual dispatch in the official repository, validate the exact immutable tag across the complete check matrix before uploading the single `ptbk` package. The publication job remains blocked when validation fails. A skipped publication following failed validation is an unsuccessful release outcome.
18
18
 
19
- Successful publication means the tagged version, matching manifest/lockfile and distributable are validated, npm accepts the package with provenance, and bounded public-registry verification confirms the expected version, tarball integrity and default installation channel. Disposable unversioned local/global installations must report that released engine version. Required check and publication jobs finish successfully; logs retain actionable evidence for failures.
19
+ Successful publication means the tagged version, matching manifest/lockfile and distributable are validated, npm accepts the package with provenance, and bounded public-registry verification confirms the expected version, tarball integrity and default installation channel. Disposable unversioned local/global installations must report that released engine version. The same version's Windows installer must also be built, verified and downloadable from its GitHub Release under the requirements below. Required check and publication jobs finish successfully; logs retain actionable evidence for failures.
20
20
 
21
- Retry a temporary infrastructure failure against the same tag only when its source is still valid. A code or test fix follows the ordinary commit process and requires a new version/tag; preserve existing release tags and published versions. Recheck that new tag before publishing it.
21
+ ### Additional Windows release artifact
22
+
23
+ Automatically produce the [Windows installer](windows-installer.md) as an additional output of the ordinary versioned release build, alongside the existing package publication. Every newly published version receives it, including published prereleases with their corresponding release/channel labelling. Preserve existing npm distribution, provenance, validation and channel behavior; the installer neither replaces those outputs nor promotes a prerelease to stable. No separate manual packaging/upload step or second version source is allowed.
24
+
25
+ Build from the same immutable tag and derive the installer's advertised/target package version from the validated release version. Before publication, build and test against that exact package candidate rather than an unrelated registry latest. Keep public-registry-dependent verification after the corresponding package becomes available.
26
+
27
+ The matching GitHub Release contains a usable `.exe` or `.msi` asset with version/platform-identifying metadata or filename and a published integrity checksum. Verify the actual downloadable asset and its integrity, not just a temporary CI artifact or successful upload response. Its normal installation must obtain and report the exact published `ptbk` version. Release descriptions distinguish installation of the bootstrap prerequisites from subsequent CLI project initialization.
28
+
29
+ Required Windows installer checks cover a disposable clean supported environment without Node.js/npm/Git, compatible preinstalled prerequisites, a partial installation, repeated setup, safe paths/collisions and the real interactive-terminal handoff boundary. A hosted runner with all tools preinstalled does not by itself prove the clean-machine path. Isolate these checks instead of removing the shared runner's tools. Use controlled project/provider substitutes so validating handoff does not require real user credentials or paid agent work. Retain useful diagnostics and run the installer-specific acceptance outcomes without weakening the existing cross-platform package matrix.
30
+
31
+ ### Partial publication and retries
32
+
33
+ A missing, corrupt, mismatched or unverified installer means the combined release is incomplete even when npm publication succeeded. Report each output separately; do not mark the release successful or silently skip the installer job. Likewise, an uploaded installer does not compensate for a failed/unavailable npm publication.
34
+
35
+ Retry a temporary infrastructure failure against the same tag only when its source is still valid. Reuse and verify already-published matching package/assets rather than republish the same npm version or overwrite a different existing artifact. Retry the missing/failed stage and its verification without moving the tag. A code or test fix follows the ordinary commit process and requires a new version/tag; preserve existing release tags and published versions. Recheck that new tag before publishing it.
22
36
 
23
37
  When reporting a GitHub Actions fix, identify the failing jobs and cause, verify the corrected behavior locally, and distinguish that evidence from hosted results. Until the corrected source has passed the required hosted jobs, report hosted verification as pending; an older successful run or a local pass cannot stand in for it.
@@ -1,15 +1,17 @@
1
- # Repair budgets and provider waiting
1
+ # Repair budgets, fallback and provider waiting
2
2
 
3
- [Main specification](../_main.md) · [Unattended operation](autonomous-operation.md)
3
+ [Main specification](../_main.md) · [Unattended operation](autonomous-operation.md) · [Automatic repair](../concepts/automatic-repair.md)
4
4
 
5
- Distinguish check-feedback repairs from technical retries. Defaults allow three implementation/repair attempts for one task, and an initial technical attempt plus at most three technical retries. Show why each extra call occurs and account for the combined budget; nesting mechanisms must not silently multiply paid calls.
5
+ Distinguish check-feedback repairs, deterministic technical recovery and selection of an already authorized fallback tool. Defaults allow three implementation/repair attempts for a task and an initial technical attempt plus at most three technical retries. Explain extra calls and account for the combined budget; nested mechanisms must not multiply paid attempts invisibly.
6
6
 
7
- Reuse valid authentication and safe native refresh capabilities. Genuinely missing login or required human authentication needs setup, not repeated model attempts. Quota waiting uses reported availability/reset information where available, otherwise bounded backoff. Recheck automatically before resuming; provider availability returning must not require another Run action. Unknown quota is neither zero nor unlimited. Waiting respects pause, cancellation and user controls without paid idle polling.
7
+ On a named harness failure/quota limit, use the eligible [same-variant fallback chain](tools.md) in array order, respecting task/account/model constraints and paid authority. Do not wait through an exhausted first account's reset while an authorized appropriate fallback is available. Different variants can be selected for suitability under routing constraints. Ambient credentials or installed integrations never create an unapproved fallback.
8
8
 
9
- An unanswered durable User request is a human wait, not failed acceptance requiring another implementation attempt. Do not rerun that task's agent or consume its repair/technical retry budgets while unresolved. This does not forbid safe independent work. Unexpected hidden harness prompts and stalled subprocesses are detected and classified, not left indefinitely waiting on unattended stdin.
9
+ Reuse valid authentication and supported safe refresh. Genuinely missing login/2FA needs the ordinary human/authentication path, not repeated model calls. If no candidate is usable, wait using reported reset/availability where known or bounded backoff; recheck without paid idle polling. Unknown quota is neither zero nor unlimited. A recovered earlier instance regains priority at later selection without interrupting already acquired work. New tools can resolve a wait without restart.
10
10
 
11
- Provider process/turn failures are evaluated at their terminal boundary: failed individual tool observations and echoed instructions cannot turn a valid completed turn into a process failure. Actual terminal errors, nonzero exits, signals and unmet requested-outcome evidence remain distinct and must not be stamped complete.
11
+ An unanswered durable User request is a human wait, not failed acceptance requiring another model attempt. Do not consume that task's budgets while unresolved; safe independent work may continue. Detect unexpected hidden prompts and real stalled subprocesses rather than hang on unattended stdin. Lack of output during legitimate activity alone is not proof of stall.
12
12
 
13
- Commit, signing, disk and push failures are not reasons to repeat successful model work. Resume the failed phase automatically when safe, preserving task identity, effect evidence and distinct attempt records. Escalate only the specific condition that remains genuinely unresolved; do not make manual recovery the normal response to transient failure. The daemon stays available, continuing independent work where safe; finite commands return a clear incomplete or unsuccessful outcome.
13
+ Evaluate provider process/turn failure at its terminal boundary. Individual failed tool observations or echoed instructions do not automatically turn a completed turn into process failure. Actual terminal errors, nonzero exits, signals and unmet task outcomes remain distinct and cannot be stamped complete.
14
14
 
15
- See [checks](checks.md), [harnesses](harnesses.md), [recovery](recovery.md) and [traces](traces.md).
15
+ Commit/signing/disk/push failures do not rerun successful model work or effects. Resume the failed phase with ownership and evidence preserved. Remote synchronization retries have their own bounded coordinator/backoff and do not block otherwise safe local tasks/commits. Preserve normal pause/stop intent throughout.
16
+
17
+ Apply deterministic corrections first and hand unresolved/judgment-dependent problems to ordinary Fixer under the core automatic-repair principle. Its Book/TEAM governs consultation, not a new channel or unconditional user prompt. With no execution resources, retain the visible pending repair rather than claiming Fixer ran. The daemon stays controllable; finite commands can return an honest incomplete outcome. See [checks](checks.md), [harnesses](harnesses.md), [recovery](recovery.md) and [traces](traces.md).
@@ -2,12 +2,14 @@
2
2
 
3
3
  [Main specification](../_main.md)
4
4
 
5
- `ptbk run` executes the existing eligible queue for this invocation and then exits. It uses one selected agent, harness, model and thinking level, with project/additional context and the documented run options. Explicit task requirements must be compatible with that selection; they are not silently overridden.
5
+ `ptbk run` executes the existing eligible queue for this invocation and then exits. It uses one selected agent, harness variant, model and thinking configuration with project/additional context and documented options. Explicit task requirements remain constraints, not silently overridden defaults. A fixed invocation choice does not freeze the tool inventory or credentials at startup: revalidate them before every task and refresh during work under [live tool rules](tool-runtime.md). Eligible same-variant account fallbacks may serve that selected configuration.
6
6
 
7
- Run does not become an indefinite agenda, invent goal-discovery work or invoke Manager to choose its configuration. Newly recorded follow-up work does not extend the invocation into an unbounded queue. Future tasks remain pending; report the next relevant time instead of waiting indefinitely. A recurring definition runs at most one occurrence per invocation.
7
+ Run does not become an indefinite agenda, invent goal-discovery work or invoke Manager to choose its configuration. Follow-ups do not extend it into an unbounded queue. Future tasks remain pending with the next relevant time reported. A recurring definition runs at most once per invocation. Missing tools produce an honest resource wait/incomplete outcome, not false task success; a finite invocation may end with pending work rather than wait forever. This does not redefine a running background service as stopped when tools are missing.
8
8
 
9
- Interactive run uses the same [runtime dashboard](terminal.md) as `ptbk dashboard` and explicit foreground start: running engine version, current agent/task/harness, queue, results, waits and actionable errors. It is an execution view, not init's onboarding wizard. Unlike an attached dashboard client, run owns its finite execution lifetime. On completion, leave a concise final summary and exit. Raw/noninteractive run uses plain output and choices supplied in advance. If HTTP is enabled, its API and browser SPA expose the same process state and end with the finite invocation, not an unintended persistent server.
9
+ Interactive run uses the shared [runtime dashboard](terminal.md): actual engine version, task/agent/tool, queue, outcomes, waits and errors, not onboarding. It owns finite execution lifetime unlike an attached viewer. Finish with a concise summary and exit. Raw/noninteractive run uses plain output and supplied choices. If HTTP runs, API/browser views expose the same process and end with the finite invocation rather than leaving an unintended persistent service.
10
10
 
11
- Tasks remain sequential and use the common checks, ownership, completion, learning-follow-up and recovery contracts. Unsafe state or a failed operation produces the shared [error/trace experience](errors.md) and an accurate unsuccessful outcome when execution cannot continue. Manual controls, dry-run, filters, limits, isolation and explicitly uncommitted workflows remain useful service features.
11
+ Tasks remain sequential with common checks, ownership, completion, learning follow-ups and recovery. A newly added usable tool can serve current work at its next selection. Apply opt-in synchronization attempts before work/commits and publication after commits; remote failure does not rerun or prevent safe local work. Required configuration migrations happen under their separate [commit contract](configuration-migrations.md).
12
12
 
13
- Use [start](start.md) for automatic selection across project agents and enabled harnesses and continuous operation. See [CLI options](cli.md) and [execution](execution.md).
13
+ Unsafe state or failed work uses the shared [errors/traces](errors.md) and an accurate unsuccessful/incomplete result. Manual controls, dry-run, filters, limits, isolation and ordinary uncommitted workflows remain supported within their documented compatibility rules.
14
+
15
+ Use [start](start.md) for continuous operation and automatic selection across project agents and tools. See [CLI](cli.md) and [execution](execution.md).