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.
- package/README.md +16 -9
- package/dist/browser/browser.d.ts +50 -36
- package/dist/browser/browser.js +162 -118
- package/dist/browser/browser.js.map +1 -1
- package/dist/browser/fleet.d.ts +59 -0
- package/dist/browser/fleet.js +148 -0
- package/dist/browser/fleet.js.map +1 -0
- package/dist/browser/recording.js +2 -2
- package/dist/browser/recording.js.map +1 -1
- package/dist/chats/conversation.d.ts +1 -1
- package/dist/chats/conversation.js +8 -6
- package/dist/chats/conversation.js.map +1 -1
- package/dist/chats/local.js +5 -5
- package/dist/chats/local.js.map +1 -1
- package/dist/cli/commands/add.js +1 -1
- package/dist/cli/commands/add.js.map +1 -1
- package/dist/cli/commands/boilerplates.js +1 -1
- package/dist/cli/commands/boilerplates.js.map +1 -1
- package/dist/cli/commands/find.js +1 -1
- package/dist/cli/commands/find.js.map +1 -1
- package/dist/cli/commands/fix.js +9 -4
- package/dist/cli/commands/fix.js.map +1 -1
- package/dist/cli/commands/init.d.ts +5 -0
- package/dist/cli/commands/init.js +279 -118
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/migrate.js +1 -1
- package/dist/cli/commands/migrate.js.map +1 -1
- package/dist/cli/commands/ping.js +20 -12
- package/dist/cli/commands/ping.js.map +1 -1
- package/dist/cli/commands/plan.js +20 -12
- package/dist/cli/commands/plan.js.map +1 -1
- package/dist/cli/commands/recover.js +1 -1
- package/dist/cli/commands/recover.js.map +1 -1
- package/dist/cli/commands/restart.js +6 -5
- package/dist/cli/commands/restart.js.map +1 -1
- package/dist/cli/commands/run.js +26 -15
- package/dist/cli/commands/run.js.map +1 -1
- package/dist/cli/commands/start.js +11 -7
- package/dist/cli/commands/start.js.map +1 -1
- package/dist/cli/commands/tool.d.ts +19 -0
- package/dist/cli/commands/tool.js +320 -0
- package/dist/cli/commands/tool.js.map +1 -0
- package/dist/cli/commands/verify.js +1 -1
- package/dist/cli/commands/verify.js.map +1 -1
- package/dist/cli/common.d.ts +7 -1
- package/dist/cli/common.js +37 -20
- package/dist/cli/common.js.map +1 -1
- package/dist/cli/compatibility.d.ts +8 -0
- package/dist/cli/compatibility.js +32 -0
- package/dist/cli/compatibility.js.map +1 -0
- package/dist/cli/parser.js +7 -3
- package/dist/cli/parser.js.map +1 -1
- package/dist/cli/registry.js +182 -7
- package/dist/cli/registry.js.map +1 -1
- package/dist/cli/service-view.js +1 -1
- package/dist/cli/service-view.js.map +1 -1
- package/dist/cli/sources.js +2 -0
- package/dist/cli/sources.js.map +1 -1
- package/dist/cli/spec.js +8 -6
- package/dist/cli/spec.js.map +1 -1
- package/dist/common/naming.d.ts +53 -0
- package/dist/common/naming.js +90 -0
- package/dist/common/naming.js.map +1 -0
- package/dist/engine/agenda.d.ts +70 -9
- package/dist/engine/agenda.js +294 -61
- package/dist/engine/agenda.js.map +1 -1
- package/dist/engine/executor.d.ts +5 -0
- package/dist/engine/executor.js +24 -11
- package/dist/engine/executor.js.map +1 -1
- package/dist/engine/harnesses.d.ts +82 -18
- package/dist/engine/harnesses.js +191 -39
- package/dist/engine/harnesses.js.map +1 -1
- package/dist/engine/preview.js +2 -2
- package/dist/engine/preview.js.map +1 -1
- package/dist/engine/routing.d.ts +10 -0
- package/dist/engine/routing.js +67 -28
- package/dist/engine/routing.js.map +1 -1
- package/dist/engine/snapshot.d.ts +107 -7
- package/dist/engine/state.d.ts +4 -2
- package/dist/engine/state.js.map +1 -1
- package/dist/engine/sync.d.ts +96 -0
- package/dist/engine/sync.js +199 -0
- package/dist/engine/sync.js.map +1 -0
- package/dist/engine/team.d.ts +1 -0
- package/dist/engine/team.js +12 -8
- package/dist/engine/team.js.map +1 -1
- package/dist/expert/_main.md +96 -67
- package/dist/expert/agents/_index.md +10 -7
- package/dist/expert/agents/core-agents.md +4 -2
- package/dist/expert/agents/fixer.md +15 -12
- package/dist/expert/cli/acceptance.md +96 -78
- package/dist/expert/cli/api.md +26 -14
- package/dist/expert/cli/autonomous-operation.md +17 -19
- package/dist/expert/cli/browser.md +24 -24
- package/dist/expert/cli/checks.md +18 -10
- package/dist/expert/cli/cli.md +48 -41
- package/dist/expert/cli/configuration-migrations.md +43 -0
- package/dist/expert/cli/configuration.md +24 -14
- package/dist/expert/cli/controls.md +23 -11
- package/dist/expert/cli/dashboard-details.md +28 -10
- package/dist/expert/cli/dashboard-layout.md +15 -15
- package/dist/expert/cli/dashboard.md +8 -10
- package/dist/expert/cli/environment.md +33 -0
- package/dist/expert/cli/execution.md +10 -8
- package/dist/expert/cli/git-persistence.md +27 -21
- package/dist/expert/cli/git-preflight.md +8 -4
- package/dist/expert/cli/git-synchronization.md +32 -6
- package/dist/expert/cli/harness-plugins.md +12 -12
- package/dist/expert/cli/harnesses.md +22 -16
- package/dist/expert/cli/initialization-ui.md +14 -14
- package/dist/expert/cli/initialization.md +31 -21
- package/dist/expert/cli/installation.md +6 -0
- package/dist/expert/cli/isolation.md +5 -3
- package/dist/expert/cli/releasing.md +17 -3
- package/dist/expert/cli/retries.md +10 -8
- package/dist/expert/cli/run.md +7 -5
- package/dist/expert/cli/start.md +21 -15
- package/dist/expert/cli/status-view.md +15 -17
- package/dist/expert/cli/synchronization-setup.md +24 -0
- package/dist/expert/cli/terminal.md +14 -16
- package/dist/expert/cli/tool-management.md +60 -0
- package/dist/expert/cli/tool-runtime.md +35 -0
- package/dist/expert/cli/tools-migration.md +50 -0
- package/dist/expert/cli/tools.md +73 -0
- package/dist/expert/cli/trace-configuration.md +9 -11
- package/dist/expert/cli/updates.md +7 -7
- package/dist/expert/cli/windows-installer.md +67 -0
- package/dist/expert/cli/workspace.md +2 -0
- package/dist/expert/coding-standards/_index.md +11 -0
- package/dist/expert/coding-standards/naming.md +30 -0
- package/dist/expert/coding-standards/shared-logic.md +27 -0
- package/dist/expert/concepts/automatic-repair.md +33 -0
- package/dist/expert/concepts/engine-and-project.md +7 -5
- package/dist/expert/dictionary.md +18 -18
- package/dist/harness/plugins/claude-code/index.js +4 -2
- package/dist/harness/plugins/claude-code/index.js.map +1 -1
- package/dist/harness/plugins/cline/index.js +1 -0
- package/dist/harness/plugins/cline/index.js.map +1 -1
- package/dist/harness/plugins/gemini/index.js +2 -0
- package/dist/harness/plugins/gemini/index.js.map +1 -1
- package/dist/harness/plugins/github-copilot/index.js +1 -0
- package/dist/harness/plugins/github-copilot/index.js.map +1 -1
- package/dist/harness/plugins/openai-codex/index.js +13 -9
- package/dist/harness/plugins/openai-codex/index.js.map +1 -1
- package/dist/harness/plugins/opencode/index.js +1 -0
- package/dist/harness/plugins/opencode/index.js.map +1 -1
- package/dist/harness/plugins/qwen-code/index.js +1 -0
- package/dist/harness/plugins/qwen-code/index.js.map +1 -1
- package/dist/harness/types.d.ts +16 -5
- package/dist/project/config.d.ts +135 -48
- package/dist/project/config.js +331 -119
- package/dist/project/config.js.map +1 -1
- package/dist/project/configuration.d.ts +43 -0
- package/dist/project/configuration.js +165 -0
- package/dist/project/configuration.js.map +1 -0
- package/dist/project/defaults.d.ts +4 -2
- package/dist/project/defaults.js +10 -5
- package/dist/project/defaults.js.map +1 -1
- package/dist/project/git.d.ts +28 -0
- package/dist/project/git.js +81 -0
- package/dist/project/git.js.map +1 -1
- package/dist/project/migrations.d.ts +96 -0
- package/dist/project/migrations.js +301 -0
- package/dist/project/migrations.js.map +1 -0
- package/dist/project/publication.d.ts +57 -0
- package/dist/project/publication.js +117 -0
- package/dist/project/publication.js.map +1 -0
- package/dist/project/readiness.d.ts +14 -5
- package/dist/project/readiness.js +23 -22
- package/dist/project/readiness.js.map +1 -1
- package/dist/project/setup.js +2 -0
- package/dist/project/setup.js.map +1 -1
- package/dist/service/actions.d.ts +12 -4
- package/dist/service/actions.js +32 -2
- package/dist/service/actions.js.map +1 -1
- package/dist/service/control.d.ts +1 -1
- package/dist/service/control.js +1 -1
- package/dist/service/host.d.ts +5 -2
- package/dist/service/host.js +26 -16
- package/dist/service/host.js.map +1 -1
- package/dist/service/http.js +7 -2
- package/dist/service/http.js.map +1 -1
- package/dist/service/launcher.d.ts +2 -1
- package/dist/service/launcher.js +1 -0
- package/dist/service/launcher.js.map +1 -1
- package/dist/service/records.d.ts +3 -0
- package/dist/service/records.js +1 -1
- package/dist/service/records.js.map +1 -1
- package/dist/service/spa/app.css +39 -0
- package/dist/service/spa/app.js +242 -39
- package/dist/service/worker.js +1 -0
- package/dist/service/worker.js.map +1 -1
- package/dist/tools/environment.d.ts +122 -0
- package/dist/tools/environment.js +199 -0
- package/dist/tools/environment.js.map +1 -0
- package/dist/tools/model.d.ts +180 -0
- package/dist/tools/model.js +111 -0
- package/dist/tools/model.js.map +1 -0
- package/dist/tools/normalize.d.ts +51 -0
- package/dist/tools/normalize.js +321 -0
- package/dist/tools/normalize.js.map +1 -0
- package/dist/tools/operations.d.ts +198 -0
- package/dist/tools/operations.js +378 -0
- package/dist/tools/operations.js.map +1 -0
- package/dist/tools/readiness.d.ts +72 -0
- package/dist/tools/readiness.js +160 -0
- package/dist/tools/readiness.js.map +1 -0
- package/dist/ui/dashboard.d.ts +3 -0
- package/dist/ui/dashboard.js +173 -2
- package/dist/ui/dashboard.js.map +1 -1
- package/dist/ui/details.d.ts +35 -1
- package/dist/ui/details.js +103 -2
- package/dist/ui/details.js.map +1 -1
- package/dist/ui/secret.d.ts +8 -0
- package/dist/ui/secret.js +41 -0
- package/dist/ui/secret.js.map +1 -0
- package/dist/ui/status-view.d.ts +1 -0
- package/dist/ui/status-view.js +33 -8
- package/dist/ui/status-view.js.map +1 -1
- package/dist/ui/tool-forms.d.ts +24 -0
- package/dist/ui/tool-forms.js +133 -0
- package/dist/ui/tool-forms.js.map +1 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[Main specification](../_main.md)
|
|
4
4
|
|
|
5
|
-
These are verifiable product outcomes, not an implementation plan or evidence of completed tests. Exercise common behavior with local fixture projects and deterministic substitutes; paid provider checks are separate and explicit. Topic
|
|
5
|
+
These are verifiable product outcomes, not an implementation plan or evidence of completed tests. Exercise common behavior with local fixture projects and deterministic substitutes; paid provider checks are separate and explicit. Topic specifications add focused acceptance outcomes. Unless explicitly testing an exception, use automatic commits; [uncommitted workflows](git-persistence.md#explicit-uncommitted-workflows) are tested separately. Configuration/tool identifiers follow their [naming contract](../coding-standards/naming.md), independently of free-form Book names.
|
|
6
6
|
|
|
7
7
|
## Installation and startup
|
|
8
8
|
|
|
@@ -11,109 +11,127 @@ These are verifiable product outcomes, not an implementation plan or evidence of
|
|
|
11
11
|
- **S03:** Plain start creates one daemon with persistence and a free loopback HTTP port, attempts the default protected remote tunnel, renders one status snapshot and exits without attaching a dashboard. With remote access ready, the primary URL/pairing QR works from another network; a failed tunnel is visibly degraded rather than a false localhost mobile-access claim. No-server/no-tunnel/no-QR and an explicit port behave as advertised; a port conflict is not reported as success. Bare `ptbk` shows help/version without starting or prompting.
|
|
12
12
|
- **S04:** Start/pause/resume/stop/restart/status/show target the correct project and report once, distinguishing an accepted pending request from completion. Repeated/concurrent starts do not duplicate it, attach a dashboard, cancel deliberate pause/stop intent or control an unrelated PID. Status/show never start work; an intentional completed stop remains stopped after reboot until an authorized start, including a subsequent explicit init's start operation.
|
|
13
13
|
- **S05:** Verify daemon reboot/crash recovery on Linux, macOS and Windows. No-persist disables automatic restart but retains state. `start --raw` remains a one-shot daemon launch; `start --foreground --raw` stays foreground with plain events. Explicit foreground execution never silently becomes a daemon; unsupported persistence prerequisites are reported.
|
|
14
|
-
- **S06:** Successful init begins
|
|
14
|
+
- **S06:** Successful init begins eligible work automatically without a separate start, setup prompt, manual assignment, open dashboard or Run action. A later plain start reuses that service. After intentional stop, explicit start resumes processing. Assigned work executes, unassigned work runs Manager then its target, and due discovery produces useful tasks when prerequisites exist. Later missing tools keep the engine running with a resource wait rather than requiring a restart or another setup wizard.
|
|
15
15
|
- **S07:** The official **Check ptbk** workflow passes on Node 22/24 across Linux, macOS and Windows for the accepted source. An authorized **Publish ptbk** release validates its exact tag through that matrix, publishes and verifies the package, and finishes successfully. Both workflows must pass for release acceptance; a failed required platform job or skipped publication is unsuccessful. Failed validation blocks publication and remains visible; code/test fixes use a new immutable release tag. See [GitHub Actions checks and publication](releasing.md).
|
|
16
16
|
|
|
17
17
|
## Initialization, configuration and maintenance
|
|
18
18
|
|
|
19
|
-
- **I01:** With dependencies available and no
|
|
20
|
-
- **I02:** Existing files, Git history/current branch, staging, customized agents/settings and a declared devDependency survive init. Reinitialization reuses recorded intent without reauthoring the project's purpose.
|
|
21
|
-
- **I03:** Start over
|
|
19
|
+
- **I01:** With dependencies available and no update selected, intent is the first input. Blank intent, an empty destination and usable selected browser/harness tools produce a useful skeleton, preserved blank `specs/_initial.md` and one ordinary Expert readiness task. No check-command question appears; absent real validation receives the explicitly labelled informational placeholder, which does not block start or claim tests passed. Setup installs the running version locally, saves its `promptbookVersion` and commits without model work; the daemon executes bootstrap normally. Repeating satisfied setup is a file no-op, including after task completion/archiving.
|
|
20
|
+
- **I02:** Existing files, Git history/current branch, staging, customized agents/settings and a declared devDependency survive init. Reinitialization reuses recorded intent without reauthoring the project's purpose. Partial setup/new required roles receive only missing support; required configuration evolution uses its separate migration pass. Unrelated changes never enter setup commits, and original specifications/assets and real checks are not overwritten. A newly created repository uses main; an existing branch is preserved.
|
|
21
|
+
- **I03:** Start over genuinely missing structural setup offers the same initializer for the selected folder and rechecks readiness. Initialized projects bypass it, including those waiting for deliberately disabled/missing tools. One handoff creates one service without recursive init/start. Raw/noninteractive use never launches hidden setup/login prompts and identifies genuinely missing decisions/prerequisites.
|
|
22
22
|
- **I04:** Creating a child inside Git offers back, an ignored independent repository or a real submodule. Back changes neither project; ignored-child and submodule metadata are correct and repeatable. Child commits and parent changes stay separate; no invented remote, accidental parent commit or unrelated index changes occur.
|
|
23
23
|
- **I05:** Both global invocations and parent-local invocations creating a child offer destination-local dependencies by default. They install the exact running version, not latest. Existing local dependencies/devDependencies are preserved; selecting global does not silently add a local copy or claim a parent-local executable is global.
|
|
24
|
-
- **I06:** An outdated invoked engine offers an early self-update after
|
|
25
|
-
- **I07:**
|
|
26
|
-
- **I08:** A catalog of hundreds initially shows only featured names and More, with all integrations reachable. Selecting one
|
|
27
|
-
- **I09:** One outdated selected harness offers yes/no; several offer keep, update all outdated selected, or choose individually. Current/unselected harnesses are untouched. Start automatically maintains enabled harnesses by default, honors disabling overrides and avoids updating an active shared invocation.
|
|
28
|
-
- **I10:** Select two
|
|
29
|
-
- **I11:** The first task is
|
|
30
|
-
- **I12:**
|
|
31
|
-
- **I13:** Launch a project with a healthy globally installed Codex on a custom/version-manager PATH and native login store. Resume its saved worker under an OS-manager environment lacking those locations: it still detects that same account without a login or model probe. Missing-harness and recovery blockers remain labeled
|
|
32
|
-
- **I14:** A genuine User clarification starts one named agent-authored chat linked to its waiting task, ends the provider turn promptly and checkpoints without retries or another model call. Restart preserves the exact chat/question and task context. Independent work
|
|
33
|
-
- **I15:** Compose arbitrary intent
|
|
34
|
-
- **I16:** The
|
|
35
|
-
- **I17:**
|
|
24
|
+
- **I06:** An outdated invoked engine offers an early optional self-update after intent, defaulting to yes. No keeps the current version only when compatible with the saved project version. Yes updates the correct installation and exits before setup with a rerun instruction and recoverable intent/assets. Offline lookup and failure are honest; unattended use never silently accepts an update. A known newer project configuration still requires the compatibility gate, and rerun does not require repasting the draft.
|
|
25
|
+
- **I07:** Defaults, legacy environment fallbacks, project settings and explicit overrides resolve in documented order, preserving false/empty values and path bases. Temporary flags/controls do not rewrite defaults; explicit saved tool management does commit its own changes. Secrets and runtime state never enter JSON. Trace and init-to-service settings use the same precedence, canonical naming and live-refresh rules.
|
|
26
|
+
- **I08:** A catalog of hundreds initially shows only featured names and More, with all integrations reachable. Selecting one configures only that integration; an authenticated global installation is reused. Supported/installed but unconfigured or disabled tools are not implicit routing/update candidates. Init, runtime, CLI and dashboard use the same typed tool/plugin contracts, not separate implementations.
|
|
27
|
+
- **I09:** One outdated selected harness offers yes/no; several offer keep, update all outdated selected, or choose individually. Current/unselected harnesses are untouched. Start automatically maintains enabled harnesses by default, honors disabling overrides and avoids updating an active shared invocation. Several account instances sharing an executable do not cause duplicate competing updates. Failure preserves a usable compatible version or visibly blocks only affected work.
|
|
28
|
+
- **I10:** Select two initial harness integrations, one healthy and one needing login/setup. Init verifies both selected integrations and the initial browser, unless the user explicitly removes a selection; an opened login window is not completion. The placeholder check is accepted without a check setup question or validation-deferral blocker. Cancelled essential login, unresolved dependencies or failed local setup commit is incomplete. Failed remote publication does not block otherwise ready local launch. Failed service launch preserves saved setup and queued work; resume reuses completed steps.
|
|
29
|
+
- **I11:** The first task is assigned to Expert and links to the original specification from its actual task-source location. It adapts project content, agents, checks and follow-ups without replacing original input. Ordinary execution/traces/completion/result commits apply. A placeholder is not real verification evidence; genuinely configured failing checks cannot be stamped passed or replaced with a fake success. Init does not run project checks or claim they passed; existing validation and tasks remain intact.
|
|
30
|
+
- **I12:** A native globally installed Codex reporting `Logged in using ChatGPT` is ready without another login, API key, `--allow-credits` or model probe, even without credit-control flags. Native execution/TEAM/planning retain that context and ambient keys do not override it. An explicitly configured API_KEY tool is a distinct authorized route/fallback with a symbolic key reference. Quota/credit failures remain real outcomes; no unconfigured paid fallback, fabricated provider control or shared-login overwrite is permitted.
|
|
31
|
+
- **I13:** Launch a project with a healthy globally installed Codex on a custom/version-manager PATH and native login store. Resume its saved worker under an OS-manager environment lacking those locations: it still detects that same account without a login or model probe. Missing-harness and recovery blockers remain labeled throughout recheck delays, even after their action request is answered. Actual cause, next action and recheck are visible in terminal/browser/API; Skip wait cannot bypass them. Older saved workers retain the pinned Node global bin fallback.
|
|
32
|
+
- **I14:** A genuine User clarification starts one named agent-authored chat linked to its waiting task, ends the provider turn promptly and checkpoints without retries or another model call. Restart preserves the exact chat/question and task context. Independent work runs only after safe ownership release and when lifecycle permits new claims. One real committed reply resumes without replaying effects; finite run reports incomplete while waiting.
|
|
33
|
+
- **I15:** Compose arbitrary intent with prose, long pasted blocks and several images/files. Compact tokens can be inspected/edited/removed without accidental submission; resize/back navigation preserves the draft. `specs/_initial.md` retains original text exactly and ordered relative attachment links, without summaries, placeholders or temporary-machine paths. Save it with the ordinary Expert task before dispatch, including customized source paths.
|
|
34
|
+
- **I16:** The Traces screen saves explicit `traces.isCommitted`, `traces.isVideoIgnored` and `traces.isVideoRecordingEnabled`. Defaults are local-only traces, ignored videos and enabled recording. Effective parent/video exclusion is visible; resume reuses answers. Noninteractive equivalents preserve false and never prompt invisibly for missing decisions.
|
|
35
|
+
- **I17:** Init creates a missing editable `agents/.core/chatter.book` with `AGENT Chatter` and TEAM access to all other initialized core/specialist roles, without self-consultation. Reinit preserves customized Chatter/team and older core Books. Upgrades add only missing required roles; invalid/colliding definitions use repair rather than replacement. See [Chatter acceptance](../agents/chatter.md#acceptance-outcomes).
|
|
36
36
|
|
|
37
37
|
## Agents, language and assignment
|
|
38
38
|
|
|
39
|
-
- **A01:** `@Adam` and `{{Adam}}` are identical; existing `{Adam}` is a readable compatibility alias. Case/diacritics/separators are normalized
|
|
39
|
+
- **A01:** `@Adam` and `{{Adam}}` are identical; existing `{Adam}` is a readable compatibility alias. Case/diacritics/separators are normalized for agents/tasks/chats. One shared resolver orders built-ins, nonignored common folders shallow-first (agents/tasks/chats root order), other nonignored Books and eligible ignored Books such as node_modules. First matching named Book wins; collisions are shadowed/diagnosed, not merged or intrinsically fatal. Typed references require the winning kind; hidden/dependency Books are referenceable without automatic discovery/edit authority. See [reference acceptance](../book-language/references.md#acceptance-outcomes).
|
|
40
40
|
- **A02:** Default inheritance reaches Adam; custom ancestors are allowed when the chain terminates. FROM cycles fail. Void/Null/0 ends inheritance and is a TEAM no-op; User fails in FROM and creates a request in TEAM; Expert works in both.
|
|
41
|
-
- **A03:** Reciprocal TEAM relationships are valid, consultations are bounded and
|
|
42
|
-
- **A04:**
|
|
41
|
+
- **A03:** Reciprocal TEAM relationships are valid, consultations are bounded and at most one project task executes. Advisors receive their own instructions and cannot exceed task/conversation authority. Conversation-only advice neither invents a task nor bypasses the queue for actual specialist execution.
|
|
42
|
+
- **A04:** Before every task and during waits, discover current enabled tools, global harness executables, authentication/models and browser readiness. Missing resources in an initialized project produce a running resource wait, not automatic reinitialization or service exit. Otherwise actionable unassigned work creates one checked Manager prerequisite with a direct authorized bootstrap and visible relation, without recursive assignment. Explicit requirements/paid restrictions and retry deduplication remain intact.
|
|
43
43
|
- **A05:** Implicit/explicit OPEN produces one Teacher follow-up; limited OPEN is respected. CLOSED prevents learning, including pending learning work. Teacher is customizable but must be CLOSED, and non-agents are not rewritten as local Books.
|
|
44
|
-
- **A06:** Canonical Books begin with AGENT, TASK or CHAT
|
|
45
|
-
- **A07:** Verify
|
|
44
|
+
- **A06:** Canonical Books begin with AGENT, TASK or CHAT and their name content, using one grammar/parser. Standalone Books need no folder hint and moving one does not change kind. Multiline content/fenced control-looking examples survive. Documented commitments/aliases retain meaning; malformed controls do not activate work. Task GOAL is bounded assignment, not an agent's ongoing discovery goal.
|
|
45
|
+
- **A07:** Verify full multiword uppercase keywords, numeric/reference content and the three-letter minimum: standalone A/I/AI in prose is not a commitment. Unknown full keywords are not shortened into known prefixes. TASK AGENT/CHAT MESSAGE are not roots; missing/empty/repeated/unsupported roots are diagnosed. Legacy plain-name/ENTITY sources are explicitly converted preserving identity, not silently rewritten during discovery. See [syntax acceptance](../book-language/syntax.md#acceptance-outcomes).
|
|
46
46
|
|
|
47
47
|
## Tasks and persistence
|
|
48
48
|
|
|
49
|
-
- **T01:** Agent
|
|
50
|
-
- **T02:** Each accepted task
|
|
51
|
-
- **T03:** Run is finite
|
|
52
|
-
- **T04:**
|
|
53
|
-
- **T05:** Earliest-start boundaries, explicit offsets and ambiguous local times are respected. Recurrence preserves anchors,
|
|
54
|
-
- **T06:** Interrupt during work, checks,
|
|
55
|
-
- **T07:** Commit/push failure
|
|
56
|
-
- **T08:** Legacy Markdown states
|
|
57
|
-
- **T09:**
|
|
58
|
-
- **T10:**
|
|
59
|
-
- **T11:**
|
|
60
|
-
- **T12:**
|
|
49
|
+
- **T01:** Agent/Task/Chat identity is normalized opening-name content, not generated ID or filename; kind does not create separate name namespaces. First-wins duplicate lookup selects one without merging; Fixer diagnoses shadowing. Moving preserves identity; declared rename requires link/history reconciliation. Routing/relationships use the selected name, while source-filename trace storage remains separate.
|
|
50
|
+
- **T02:** Each accepted task/occurrence has one result commit containing accepted/check-generated changes, TASK DONE, follow-ups, task-internal conversation and eligible traces/video. Subject is `PTBK: <task name>`, with assignment and `Task-Name`, not Task-ID. Creation, assignment, repair and later integration remain separately scoped operations with provenance.
|
|
51
|
+
- **T03:** Run is finite with selected execution constraints; start is indefinite. Neither freezes the live tool inventory for the entire task/session. At most one task executes across interfaces; future high-priority work does not block ready work or trigger premature goal enquiry.
|
|
52
|
+
- **T04:** With no unfinished present/future work and no active cooldown, a running engine with usable resources performs ordinary goal enquiry automatically. Useful tasks execute without another command; enquiry can create future work or no work. Cooldowns survive restart; unavailable goals/supporting agents/empty results do not busy-loop. Pausing/pause/stopping prohibit new discovery, assignment and follow-up claims as well as ordinary claims.
|
|
53
|
+
- **T05:** Earliest-start boundaries, explicit offsets and ambiguous local times are respected. Recurrence preserves anchors, identity/history, coalesces downtime, never overlaps and executes at most once per finite invocation.
|
|
54
|
+
- **T06:** Interrupt during work, checks, conversation, completion, commit or push. Resume the correct safe phase without duplicate execution/messages/commits, preserving revisions, names, traces, staging, hooks/signing and external effects.
|
|
55
|
+
- **T07:** Commit/push failure does not rerun successful model work. Reconcile reverts/changed dependencies with effect evidence. Worktree integration preserves the original result commit and intervening project commits using a visible non-fast-forward merge, or keeps unintegrated work recoverable. No rebase/amend/force reset replaces history to make integration succeed.
|
|
56
|
+
- **T08:** Legacy Markdown states/priorities/sections/selectors remain supported. Old ptbk-task-id comments are historical non-authoritative metadata and not generated. Conversion preserves named work, assets, meaning, timestamps and provenance without two runnable copies.
|
|
57
|
+
- **T09:** Add normally commits one unfinished typed/date-decorated task with bounded GOAL before dispatch, enabling Manager/start without manual Git. Other authorized versioned changes commit by operation. Human-facing messages commit separately, task-internal TEAM with the result. Read/no-op creates no commit; unrelated edits remain protected.
|
|
58
|
+
- **T10:** Ordinary `--no-commit` init/add/run/start visibly preserves uncommitted work without invented SHAs or rerunning accepted effects, and propagates through init's service only. It conflicts with isolation/autosync and cannot silently disable mandatory configuration-migration or explicit tool-management commits: incompatible requests fail before those writes. Owned writes do not require ignoring unrelated dirt. Reentering default mode reconciles safely rather than creating a surprise aggregate commit.
|
|
59
|
+
- **T11:** New task/chat generators include readable date/time before collision: add/chat/plans/bootstrap/assignment/discovery/learning/repair/follow-ups/consultations. Repeated text, fixed clocks, batches and concurrent writers still produce distinct normalized names and paths without shadowing another kind. Links use final names. See [generated-name acceptance](generated-names.md#acceptance-outcomes).
|
|
60
|
+
- **T12:** Undated/differently dated existing names remain ordinary valid text. Parser never requires/extracts a name timestamp. Conversion, pending-save retry, recovery and recurrence retain existing name/history. Filenames are separate date-leading storage; moves do not change logical identity/kind.
|
|
61
61
|
|
|
62
62
|
## Controls, access and evidence
|
|
63
63
|
|
|
64
|
-
- **U01:**
|
|
65
|
-
- **U02:** TEAM User
|
|
66
|
-
- **U03:** New projects
|
|
67
|
-
- **U04:**
|
|
68
|
-
- **U05:** Read-only
|
|
69
|
-
- **U06:** Logs
|
|
70
|
-
- **U07:** Init
|
|
71
|
-
- **U08:** Bare/help/about, wizard
|
|
72
|
-
- **U09:** Failures
|
|
73
|
-
- **U10:**
|
|
74
|
-
- **U11:**
|
|
75
|
-
- **U12:** Dashboard attaches
|
|
76
|
-
- **U13:**
|
|
77
|
-
- **U14:** Bare
|
|
78
|
-
- **U15:**
|
|
79
|
-
- **U16:** No-tunnel
|
|
80
|
-
- **U17:**
|
|
81
|
-
- **U18:**
|
|
64
|
+
- **U01:** Terminal, foreground, browser and direct API show/control one engine with actual version. Shared lifecycle, settings, tool management and replies propagate, while startup-only/deferred choices are labelled. Closing attached viewers does not stop the engine; explicit shared stop does.
|
|
65
|
+
- **U02:** Agent-issued TEAM User requests and human-action needs use ordinary attributed chats, not a new persistent Request entity or Fixer channel. A durable answer is accepted once through existing interfaces; `ptbk answer` remains a compatibility reply even without HTTP. Direct management confirmations use the shared operation's input policy, not hidden noninteractive prompts.
|
|
66
|
+
- **U03:** New projects create one named browser defaulting to the dedicated OS-user-global Promptbook profile, not personal Chrome. Project/personal/custom alternatives remain available and independent of headless mode. Additional named browsers can represent separate site/accounts, preserving sessions and safe shared-profile ownership. Reinit retains existing choices.
|
|
67
|
+
- **U04:** Browser website sessions and harness native/API authentication are independent. No password/key/session data enters Git, ordinary status or traces, including sensitive video frames. External content is not authority to change policy; localhost/opaque public hostname does not bypass authorization.
|
|
68
|
+
- **U05:** Read-only operations work offline without mutation, initialization, updates, normalization/migrations, tunnel startup or paid calls. Plan does not implement/delegate writes, fix does not consume backlog, and verify remains human review.
|
|
69
|
+
- **U06:** Logs/usage/status describe observed outcomes with unknown/truncation explicit. Teacher uses actual evidence. Low disk, unavailable login/quota and repeat failures retain work and a controllable daemon. Optional capture failure does not unnecessarily halt safe work.
|
|
70
|
+
- **U07:** Init is finite with Step X of Y, Expert guide and brief celebration after confirmed local setup/start, no dashboard opening or bootstrap wait. Remote failure is a separate honest pending outcome. Dashboard is indefinite; chat is persistent conversation and add finite model-free authoring. Rich input/navigation/resize preserve drafts.
|
|
71
|
+
- **U08:** Bare/help/about, wizard and dashboard show actual invoked/running versions, not installed latest or another client's version. Narrow/raw help remains scoped/readable without provider dumps or setup effects.
|
|
72
|
+
- **U09:** Failures explain actual phase/effect/next action, redacted evidence and versions. Trace-storage failure does not invent saved files. Commit/push failures never rerun already successful model work.
|
|
73
|
+
- **U10:** Predefined choices use keyboard selectors, including browser sources, harnesses, traces, sync opt-in/provider/visibility and applicable confirmations. Enter selects focused default and Esc cancels. New chat remains Chatter-first; alternatives include valid hidden/core/Expert, not User/Void/Null. Free-form chat uses the rich composer; secret entry remains concealed.
|
|
74
|
+
- **U11:** Cockpit panels distinguish attention, work, main lifecycle controls, tools, enabled sync, queue, activity/results and connection. Execution/tool/browser/sync details use discoverable collapsed navigation, not hidden lifecycle actions. Narrow/raw/reduced-motion modes retain truthful names/state/actions and priority. Raw output has no decorative QR or secret disclosure. See [layout](dashboard-layout.md) and [visual acceptance](../agents/visual-identity.md#acceptance-outcomes).
|
|
75
|
+
- **U12:** Dashboard attaches without a second worker. Q/Ctrl+C leave client only; C starts Chatter-first chat, A opens the highest-priority existing request, all-chats exposes others. Direct chat uses the same picker and Ctrl+C closes it only. Disconnect does not lose messages or release engine ownership.
|
|
76
|
+
- **U13:** Lightweight SPA consumes authenticated API for state, tool management, enabled synchronization and durable chats, without server-rendered runtime HTML. Revision/idempotency rules prevent duplicate actions/messages across clients. Refresh/tunnel failure never creates work or stops the daemon. No frontend duplicates domain logic.
|
|
77
|
+
- **U14:** Bare/help/--help show top-level scope; init/start/dashboard/add/tool and aliases/nested subcommands support equivalent scoped help. Pretty/raw keep relevant defaults/examples without unrelated dumps. Help is offline, requires no service or command inputs and never executes the operation. Errors identify the correct scope. Document pause/resume, separate stop --force/-F, tool --force and last-type confirmation, global dashboard and autosync in their proper scopes.
|
|
78
|
+
- **U15:** Scan default protected pairing QR outside the local network, authenticate and inspect/answer the same project. Bare public URL has no project authority. Pairing is short-lived/single-use, locally renewable and revocable. Read-only status does not mint/rotate credentials. Secrets stay out of ordinary API, logs, redirected output and Git; cross-origin/stale/reused requests fail safely.
|
|
79
|
+
- **U16:** No-tunnel contacts no provider while keeping local HTTP; no-server disables both and conflicts with explicit tunnel. No-QR/raw do not change exposure. Repeated start/clients create no extra worker/tunnel. Remote tunnel outage is degraded without unnecessary local blocking or unprotected fallback. Stop/restart/run completion manage owned tunnel; changed URLs invalidate stale ready claims. See [remote acceptance](remote-access.md#acceptance-outcomes).
|
|
80
|
+
- **U17:** Execution details show actual agent, named harness instance/variant, model and thinking level with overrides and separate attempt/consultation contexts. Unknown/default/unsupported data is distinguished, not guessed. Task changes clear stale activity; raw/browser/API agree. Opening/closing detail does not mutate state.
|
|
81
|
+
- **U18:** For each named browser/profile source, inspect effective path/mode/ownership/health. Inject failure and observe bounded automatic recovery without a viewer, then manual recheck/retry/restart via the same engine operations. Safe-boundary deferrals are visible. Preserve sessions, active evidence and unrelated browsers; do not restart the engine. Important blockers remain visible with details closed.
|
|
82
82
|
|
|
83
83
|
## Conversations, resolver and project maintenance
|
|
84
84
|
|
|
85
|
-
- **C01:**
|
|
86
|
-
- **C02:**
|
|
87
|
-
- **C03:** An agent-originated question
|
|
88
|
-
- **C04:**
|
|
89
|
-
- **C05:**
|
|
90
|
-
- **C06:** Fixer is an ordinary minimal OPEN core
|
|
91
|
-
- **C07:** Reopen
|
|
92
|
-
- **C08:**
|
|
85
|
+
- **C01:** Two independent User-to-agent threads with identical titles/clock ticks receive distinct date-decorated normalized names. Direct chat needs no task/dashboard. Chatter is Enter default; full valid alternative list includes hidden/core/Expert. Explicit target skips picker; noninteractive default is Chatter. Ctrl+C closes only the client.
|
|
86
|
+
- **C02:** A read-only status chat need not create a task; another chat can create several tasks. Directed M:N LINKs between chats/tasks preserve final names and navigate incoming/outgoing relations correctly.
|
|
87
|
+
- **C03:** An agent-originated question creates a named waiting-for-user chat and attributed notification, distinct from unread-only. A opens its full conversation; one committed reply resumes linked work once when permitted. Chatter never replaces existing author/participant and other chats remain browsable.
|
|
88
|
+
- **C04:** Each accepted human-facing User/agent message has a scoped PTBK chat commit with Chat-Name. Task-internal agent consultations are recorded in Chat Books and commit with the task result. Viewing alone does not commit.
|
|
89
|
+
- **C05:** One ordered Book resolver normalizes case/accents/separators; built-ins then nonignored common shallow-first, other nonignored and eligible ignored sources. Exact spelling has no priority. Duplicates shadow, not merge; Fixer may repair or consult under its normal policy. Tool-name collision rules do not change this existing Book lookup behavior.
|
|
90
|
+
- **C06:** Fixer is an ordinary required minimal OPEN core with initial TEAM User and Expert. Its general goal is problem-solving and offloading decisions; other agents can consult it and it can consult them. Automatic repair is separately specified and prominently linked. Learning uses normal Teacher evidence. Custom all/some/no-User consultation, including removing User, survives upgrades; Expert alone refreshes with engine version. No special Fixer channel/worker is introduced.
|
|
91
|
+
- **C07:** Reopen/append/reconnect/recover a chat without refreshing its name date, adding another CHAT root or damaging literal control-looking text. Existing undated names remain valid; message timestamps and name content are distinct.
|
|
92
|
+
- **C08:** Chatter specialist advice is bounded, attributed and linked to the original conversation without inventing a task or changing its participants. Conversation-only consultation uses scoped authoring, human-facing messages individual commits. Specialist execution becomes ordinary authorized tasks, never bypassing pause/checks/routing/ownership. Invalid/missing Chatter is diagnosed, not replaced from the picker.
|
|
93
93
|
|
|
94
94
|
## Service lifecycle and exclusive ownership
|
|
95
95
|
|
|
96
|
-
- **L01:**
|
|
97
|
-
- **L02:**
|
|
98
|
-
- **L03:**
|
|
99
|
-
- **L04:** From pause, resume
|
|
100
|
-
- **L05:** `ptbk stop --force
|
|
101
|
-
- **L06:** Restart drains
|
|
102
|
-
- **L07:**
|
|
96
|
+
- **L01:** CLI, terminals, browser and API observe exactly running, pausing, pause, stopping as live states. Running can wait for tools/tasks/sync; blockers/phases are separate. Exited is observed absence, not fifth live state. Force stop is immediate; no hard-pause operation exists.
|
|
97
|
+
- **L02:** Pause prevents next claim, lets current work settle once and remains alive. Graceful stop uses the same drain then cleanup/exit, covering checks, pending commit and safe human-wait checkpoints. No implicit force or routine human reply is required merely to checkpoint shutdown. Pause without current work is immediate.
|
|
98
|
+
- **L03:** Resume cancels pending pause/stop without replay. Changing pausing to stopping or stopping to pausing preserves current work; cancelling shutdown for pause is confirmed. Noninteractive choices are explicit, repeated requests idempotent, stale confirmations cannot overwrite newer intent, and cancellation after irreversible shutdown reports too late.
|
|
99
|
+
- **L04:** From pause, resume work, stop orderly or restart into one replacement. Force stop while idle still performs quick orderly cleanup. All clients invoke the same operations, including cancellation/intent changes, and immediately see the same state.
|
|
100
|
+
- **L05:** `ptbk stop --force`/`-F` terminates only selected owned execution without false task completion or deleting tools. Owner cleanup is bounded/best-effort; external uncatchable kill has no cleanup guarantee/new lock-removal requirement. Viewer signals close only viewer. Never kill unrelated processes or remove a replacement owner's lock.
|
|
101
|
+
- **L06:** Restart drains visibly, releases old owner and launches one replacement with the same project/effective installation and placement, without overlap. Cancelling pending restart cancels replacement start. Lost replies/start failure/unconfirmed stop are truthful; no blind replay targets a successor. Completed deliberate stop suppresses persistence, while cancelled stop does not leave permanent stop intent.
|
|
102
|
+
- **L07:** Concurrent starts across global/local versions and equivalent paths produce one project owner. Several dashboards share state, but none acquires/releases the lock; closing all leaves engine active. Pause still excludes another owner. Preserve recovery/session/evidence during controlled cleanup.
|
|
103
103
|
|
|
104
104
|
## Global dashboard
|
|
105
105
|
|
|
106
|
-
- **G01:**
|
|
107
|
-
- **G02:**
|
|
108
|
-
- **G03:** Select a
|
|
109
|
-
- **G04:** Verify
|
|
106
|
+
- **G01:** Global dashboard from outside Git with zero engines opens and keeps refreshing. A later start appears without reopening. Per-project no-service remains an actionable error, not implicit startup.
|
|
107
|
+
- **G02:** Global/local installations and versions all appear in accessible host discovery. Actual path/version/process/mode/lifecycle/work/freshness update across exits. No CWD-derived project or global worker is invented.
|
|
108
|
+
- **G03:** Select a row to attach without cd, worker creation or lock acquisition. Return/close without stopping. A vanished/replaced/unreachable/incompatible owner is diagnosed rather than accidentally controlling another process.
|
|
109
|
+
- **G04:** Verify empty versus failed/permission-limited discovery, stale records/reused PIDs, long paths, resizing/raw/foreground/no-HTTP/offline use. Do not bypass OS permissions/expose credentials/delete locks from stale registry entries. Stable selection never jumps to another live engine. See [global acceptance](global-dashboard.md#acceptance-outcomes).
|
|
110
110
|
|
|
111
111
|
## Unattended operation and audit trails
|
|
112
112
|
|
|
113
|
-
- **O01:** On an awake supported host with
|
|
114
|
-
- **O02:** Inject
|
|
115
|
-
- **E01:** Each canonical task has
|
|
116
|
-
- **E02:**
|
|
117
|
-
- **E03:** Exercise all
|
|
118
|
-
- **E04:** Interrupt capture
|
|
119
|
-
- **E05:** Rename
|
|
113
|
+
- **O01:** On an awake supported host with usable tools and an authorized recurring AI-news publishing agenda, simulate a month without dashboard/operator. Work and follow-ups continue without routine per-post approval; results and task-linked evidence remain inspectable. Respect pauses, schedules, target accounts and scope; do not invent activity during legitimate idle.
|
|
114
|
+
- **O02:** Inject network/provider failure, restart and hidden harness prompts. Recover/classify within bounded budgets without duplicate external effects or paid idle loops. Deterministic corrections precede ordinary Fixer judgment; genuine missing authority/login/unsafe ownership uses current agent consultation policy. Safe independent work continues when possible. An alive avoidably stalled service fails this scenario.
|
|
115
|
+
- **E01:** Each canonical task has `traces/<task-file-basename>/` copied literally from its source filename without final .book, not normalized TASK name or generated ID. Test different declaration/path, preserved date/case/characters and custom source locations. Available output/events retain attempts/occurrences/names/revisions/chats/Git without fabricated private reasoning.
|
|
116
|
+
- **E02:** Follow task/Git history to actual harness output and playable browser video in either display mode. Attribute each named tool/account/attempt and label gaps; exclude authentication data and unrelated desktop/project activity. Unsupported/failed capture is honest.
|
|
117
|
+
- **E03:** Exercise all trace-commit/video-ignore/recording combinations. Whole-tree exclusion wins, recording independent. Eligible finalized evidence shares the task result; excluded data remains local and is not force-added. `.ptbk/`, profiles and `.env` remain excluded. Preference changes preserve history/evidence and unrelated ignore rules.
|
|
118
|
+
- **E04:** Interrupt capture/result persistence and recover without mixed attempts, self-SHA commit loops or duplicated effects. Retention/truncation protects pending-work evidence; storage failure reports actual diagnostics, not fictional paths.
|
|
119
|
+
- **E05:** Rename declaration and filename independently: logical identity follows the former, new trace location the latter. Preserve verified old evidence without occupied-destination merging/re-execution. Legacy .md sections have distinct attributed records under the literal filename. Basename conflicts/ambiguous old traces are diagnosed, not resolved by opaque hashes or lost evidence. See [trace acceptance](traces.md#acceptance-outcomes).
|
|
120
|
+
|
|
121
|
+
## Configuration migration, tools and synchronization
|
|
122
|
+
|
|
123
|
+
- **M01:** Compare numeric major/minor/patch and prereleases, including 9 versus 10 and prerelease versus stable, without lexicographic mistakes. Equal versions create no version commit; an older engine offers update without project downgrade. Missing `promptbookVersion` always implies the fixed documented legacy baseline, with no age/shape analysis or immediate Fixer invocation merely for absence.
|
|
124
|
+
- **M02:** Apply exactly the ordered migration targets between saved/running versions, allowing gaps and zero steps. Coordinator alone stamps the final engine version. One isolated commit records the entire pass, even a version-only change, with no tasks/unrelated staged content. Repeated loading is a no-op. Failure/crash/signing rejection preserves original/prepared recoverable state without partial success, duplicate tools/commits or replayed work.
|
|
125
|
+
- **M03:** First conversion preserves all existing harness options/enabled states and browser profile/executable/sessions while producing canonical named tools and symbolic secret references. Preserve unrelated config and real checks. Migrate known boolean/enum spellings without losing false. Autosync defaults off even with an origin; migration itself does not install tools, log in, publish or run tasks. Existing conflicting new/legacy fields go to repair, not silent overwrite.
|
|
126
|
+
- **M04:** Canonical JSON keys/boolean prefixes, user kebab identifiers and uppercase fixed enums round-trip. Unambiguous mistakes correct once with a scoped commit and preserved references. Unknown variants or post-normalization collisions use ordinary Fixer and do not silently redirect accounts. Read-only inspection never saves corrections. Free-form Book names, provider IDs, environment names and paths are not renamed as configuration identifiers.
|
|
127
|
+
- **P01:** Configure multiple browser profiles for separate sites/accounts and dedicated plus explicitly allowed personal use. Appropriate authorized fallback works without pretending two records sharing one profile are different identities or publishing/paying from the wrong account.
|
|
128
|
+
- **P02:** Choose different harness variants for suitability while both are healthy. Within one variant, use the first eligible usable instance and fall back in list order only when needed. Exercise two isolated native contexts, subscription-to-explicit-API and ordered company/second-company/personal API accounts. No ambient key authorization, global-login overwrite, cross-instance leakage or replayed effects occurs; earlier recovered instances regain future priority.
|
|
129
|
+
- **P03:** Resolve only `${{ env.NAME }}` from declared process environment/.env precedence, without arbitrary expression execution. Missing keys make the instance unavailable. New/rotated/retired `.env` lines retain history and timestamp/reason comments; secret values never enter Git, diagnostics, shell arguments or API output. A shared, disabled-tool, script or uncertain consumer keeps the variable active. Disable never retires credentials.
|
|
130
|
+
- **P04:** Init, CLI and dashboard use the same management types/operations, with equivalent validation, canonicalization, environment edits and commits. Normal init stays simple; advanced accounts/browsers are managed later. Enable/disable are primary and delete secondary. Real add/modify/reorder/enable/disable/remove commits immediately; read/no-op/cancel does not. Failed persistence is not success.
|
|
131
|
+
- **P05:** In-use CLI modify/disable/remove refuses with no writes unless acknowledged by `--force`/`-F`. Print the repeated command and the distinct `ptbk stop --force` alternative. Force on the tool saves but preserves active acquired use; force on stop terminates the whole engine and removes no configuration. Then original modification can be retried. No `--force-stop` tool flag exists. Dashboard offers precisely equivalent choices.
|
|
132
|
+
- **P06:** Disabling/removing the last enabled browser or harness requires its specific warning/confirmation, independently of in-use acknowledgement. Noninteractive `--yes` does not imply force. Confirmed action leaves engine running/controllable but waiting for resources. Add/enable restores eligibility automatically; intentional pause and disable are not undone by Fixer.
|
|
133
|
+
- **P07:** Refresh config/.env and readiness before every task, during work and while idle. A second-terminal add/enable promptly becomes available even to the current task. Commit that tool operation while task edits remain uncommitted, then commit the task result later without absorbing/reverting/duplicating the tool change. Test same-file races, manual edits and secret rotation with truthful retained-current-use state and safe reconciliation.
|
|
134
|
+
- **Y01:** New init asks autosync, default off; no asks no provider questions. Yes supports real private-default GitHub publication with explicit public choice, or custom origin. New repo uses main; existing branch/remote remain unless explicitly changed. Git metadata, not duplicated JSON, holds destination. Failed publication/auth/network remains separate from successful local setup/start; retry does not create duplicate repositories or leak ignored data.
|
|
135
|
+
- **Y02:** Enabled sync attempts pull every 60 seconds and additionally before new logical mutating work/task and before its commit, then pushes committed work. Coalesce concurrent timer/boundary/manual requests without recursive merge-commit pulls. A remote task becomes eligible after integration. Failed remote attempts back off while safe local tasks/commits continue, with pending publication eventually retried even without new work.
|
|
136
|
+
- **Y03:** Preserve dirty/staged/active work during pull: fetch may succeed while integration is deferred, and status distinguishes them. Integrate with visible non-fast-forward merge commits even when fast-forward was possible, but none for already-up-to-date input. No rebase/amend/squash/reset/force-push rewrites history. Conflicts use ordinary Fixer and current consultation policy without leaving the sole tree unnecessarily half-merged; duplicate task results from two clones retain provenance without claiming distributed exactly-once effects.
|
|
137
|
+
- **Y04:** Sync panel exists only while enabled. Compact status drills into redacted destination, real phases/attempts/successes/pending/errors and next retry, using existing cockpit navigation. Synchronize now requests the shared safe coordinator and reports queued/deferred/failure truthfully. Disabled mode performs no automatic remote operations and has no dedicated panel; generic settings may still show false. Client refresh does not create a scheduler, commit or extra sync request.
|
package/dist/expert/cli/api.md
CHANGED
|
@@ -2,32 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
[Main specification](../_main.md) · [Shared controls](controls.md) · [Remote access](remote-access.md)
|
|
4
4
|
|
|
5
|
-
The active
|
|
5
|
+
The active engine exposes an independently usable authenticated HTTP API for project inspection/control. It requires neither browser app nor terminal dashboard. Zero, one or many clients use the same scheduling, lifecycle, management and recovery operations; neither clients nor page rendering create another worker.
|
|
6
6
|
|
|
7
|
-
Start enables
|
|
7
|
+
Start enables loopback HTTP in either process mode on a free or explicitly selected port and reports actual address/conflicts. Protected remote tunnelling follows its separate default policy. No-tunnel keeps local HTTP; no-server disables HTTP/SPA/tunnel but not local engine control/discovery. Finite run owns any enabled HTTP/tunnel only for its finite lifetime.
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Observed state and shared operations
|
|
10
10
|
|
|
11
|
-
Expose
|
|
11
|
+
Expose project identity, actual engine version, instance/freshness, four live [service states](service-lifecycle.md), pending intent, task/agent/phase, queue/details, results, waits/errors, links, configuration revision/effective sources and commit mode. Resource waits and failed synchronization are not new lifecycle states. An unreachable engine is not proof of a completed stop.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Execution data includes actual named tool, harness variant, model/thinking level and attempt/consultation attribution, with unknown/unsupported distinctions. Tool inventory includes canonical saved records, enabled/usability/in-use state and retained old uses distinct from new defaults. Authorized browser diagnostics identify each named instance's profile source/resolved path, mode, ownership/health and redacted recovery outcome. Ordinary state never exposes cookies, profile contents, resolved API keys or pairing/device credentials.
|
|
14
14
|
|
|
15
|
-
Expose
|
|
15
|
+
Expose lifecycle controls, real pacing wait skipping, per-browser diagnosis/recheck/retry/restart, chat operations and supported settings changes. Apply shared stale-request/confirmation rules, including replacing pending stop with pause. Distinguish accepted, pending safe boundary, applied, committed, failed, unconfirmed and restart-required outcomes. No save is complete before its required commit.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
## Shared saved tool management
|
|
18
|
+
|
|
19
|
+
Expose the same list/show/add/modify/reorder/enable/disable/remove operations as [tool CLI/dashboard management](tool-management.md), using the [single typed domain contract](../coding-standards/shared-logic.md), not API-specific validators or Git writes. Saved tool changes commit their authorized versioned configuration immediately and notify live consumers; a running task may use a newly added resource. Preserve other clients' edits, task ownership and operation isolation.
|
|
20
|
+
|
|
21
|
+
In-use and last-enabled-type protections return explicit decision requirements and revalidate them when applying an acknowledgement. An acknowledgement to retain active work is not a kill request. The emergency route invokes the existing whole-engine force-stop operation; removing a tool remains a separate operation after confirmed stop. Do not add a tool-specific force-stop mechanism.
|
|
22
|
+
|
|
23
|
+
Credential references are readable, actual credentials are not. Where adding a secret is authorized, use a protected write-only input that calls the shared [environment editor](environment.md), with timestamped non-destructive audit and no echoed value in response/error/logs. Do not treat general configuration field writes as permission to read arbitrary environment variables or edit files outside project authority.
|
|
24
|
+
|
|
25
|
+
## Synchronization
|
|
26
|
+
|
|
27
|
+
Expose effective autosync enablement and, when enabled, redacted origin/tracking destination, real attempt/integration/publication status, pending/deferred work, errors and next retry. Provide one-cycle manual synchronization through the shared [coordinator](git-synchronization.md). Coalesce overlapping requests, preserve active work and report actual outcomes rather than pretending an accepted request has completed. A disabled policy does not silently become enabled by a stale manual-cycle request. Clients omit the dedicated panel while off.
|
|
28
|
+
|
|
29
|
+
Network/rejected-push failures do not stop safe local execution or create duplicate result commits. The API observes this policy; it does not implement its own pull loop or merge strategy.
|
|
18
30
|
|
|
19
31
|
## Chat and creation
|
|
20
32
|
|
|
21
|
-
Chats expose
|
|
33
|
+
Chats expose full names, participants/authors, status/timestamps, history and task/conversation links. Authenticated list/new/open/append/answer use durable Books and normalized names, not new chat IDs. A new human-chat request with no target selects [Chatter](../agents/chatter.md); existing-thread participants and explicit targets remain unchanged. Missing/invalid Chatter is diagnosed, not silently replaced. Human answers are committed messages.
|
|
22
34
|
|
|
23
|
-
Use
|
|
35
|
+
Use revision/idempotency checks against stale/reconnecting duplicate writes. Expose canonical agent identity/observed activity for [visual presentation](../agents/visual-identity.md). Distinguish actionable human waits from ordinary internal specialist consultations; Fixer uses these normal agent mechanisms, not a special transport.
|
|
24
36
|
|
|
25
|
-
|
|
37
|
+
Task/chat creation follows [generated names](generated-names.md): opening kind/name, readable creation date/time and normalized collision prevention. Return the final name and actual reference/path rather than asking clients to append timestamps. Retry reconciles the prepared entity instead of creating another. Existing undated names remain unchanged by append/read/recovery. Task trace paths come from [source-filename mapping](traces.md), not client guesses from names.
|
|
26
38
|
|
|
27
|
-
##
|
|
39
|
+
## Independence and security
|
|
28
40
|
|
|
29
|
-
Clients
|
|
41
|
+
Clients observe fresh changes from every channel. Inspection is read-only, including normalization/migration previews. Writes obey authority, source revisions, configuration/ownership and recovery contracts. Serve SPA/assets and API at the same origin with compatible live updates; SSE alone is insufficient where a tunnel provider does not support it. Responses do not depend on server-rendered runtime HTML or form actions.
|
|
30
42
|
|
|
31
|
-
|
|
43
|
+
Authenticate inspection and mutation before tunnelling. Unauthenticated clients get only a minimal pairing/app shell. Use project-scoped session/direct-client authority, reject invalid/stale/cross-origin requests and access outside scope, and prevent public caching of private responses. Hostname opacity, forwarded headers and apparent localhost origin are not authorization. Never expose unredacted diagnostics, tokens or profile contents.
|
|
32
44
|
|
|
33
|
-
Client/tunnel
|
|
45
|
+
Client/tunnel failure cannot stop a daemon, reset state or duplicate tasks. The lightweight [SPA](dashboard.md) is a consumer at `/`; host-wide [global discovery](global-dashboard.md) is a separate local inventory, not silently extended project API authority.
|