@xingular/harness 1.1.1 → 1.3.1-unstable.0
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/CHANGELOG.md +48 -0
- package/README.md +36 -28
- package/dist/cli.js +10837 -6159
- package/dist/sdk/accounts/accounts.d.ts +27 -3
- package/dist/sdk/accounts/accounts.js +78 -24
- package/dist/sdk/accounts/secrets.d.ts +12 -0
- package/dist/sdk/accounts/secrets.js +114 -7
- package/dist/sdk/accounts/store.d.ts +26 -1
- package/dist/sdk/accounts/store.js +1 -1
- package/dist/sdk/agents/builtin.js +18 -4
- package/dist/sdk/agents/planResearch.d.ts +27 -0
- package/dist/sdk/agents/planResearch.js +82 -0
- package/dist/sdk/agents/profiles.d.ts +5 -1
- package/dist/sdk/agents/profiles.js +21 -5
- package/dist/sdk/annotations/pageScript.js +349 -48
- package/dist/sdk/annotations/part.js +34 -23
- package/dist/sdk/annotations/store.d.ts +7 -0
- package/dist/sdk/annotations/store.js +13 -5
- package/dist/sdk/browser/backend.d.ts +16 -0
- package/dist/sdk/browser/backend.js +17 -0
- package/dist/sdk/browser/contracts.d.ts +19 -0
- package/dist/sdk/browser/contracts.js +116 -0
- package/dist/sdk/browser/tools.d.ts +1 -4
- package/dist/sdk/browser/tools.js +14 -91
- package/dist/sdk/capabilities/runSnapshot.js +10 -4
- package/dist/sdk/cli.js +5 -4
- package/dist/sdk/commands/list.d.ts +3 -0
- package/dist/sdk/commands/list.js +75 -0
- package/dist/sdk/commands/registry.d.ts +258 -0
- package/dist/sdk/commands/registry.js +48 -0
- package/dist/sdk/commands/routes.d.ts +16 -0
- package/dist/sdk/commands/routes.js +33 -0
- package/dist/sdk/core/commandBudget.d.ts +23 -0
- package/dist/sdk/core/commandBudget.js +57 -0
- package/dist/sdk/core/index.js +17 -1
- package/dist/sdk/core/interactiveProfile.d.ts +46 -0
- package/dist/sdk/core/interactiveProfile.js +143 -0
- package/dist/sdk/core/shell.d.ts +20 -0
- package/dist/sdk/core/shell.js +73 -0
- package/dist/sdk/core/workspace.d.ts +13 -0
- package/dist/sdk/core/workspace.js +88 -0
- package/dist/sdk/core/workspaceBashTool.d.ts +20 -0
- package/dist/sdk/core/workspaceBashTool.js +50 -0
- package/dist/sdk/core/workspaceSandbox.d.ts +41 -0
- package/dist/sdk/core/workspaceSandbox.js +360 -0
- package/dist/sdk/core/workspaceWriteOperations.d.ts +33 -0
- package/dist/sdk/core/workspaceWriteOperations.js +224 -0
- package/dist/sdk/doctor/checks.js +71 -12
- package/dist/sdk/doctor/types.d.ts +2 -2
- package/dist/sdk/harness.d.ts +7 -0
- package/dist/sdk/harness.js +42 -2
- package/dist/sdk/hub/hub.js +5 -3
- package/dist/sdk/index.d.ts +8 -3
- package/dist/sdk/index.js +4 -1
- package/dist/sdk/pi/runtime.d.ts +2 -1
- package/dist/sdk/pi/runtime.js +2 -2
- package/dist/sdk/plugins/builtin.js +32 -15
- package/dist/sdk/plugins/builtinRegistry.d.ts +10 -3
- package/dist/sdk/plugins/builtinRegistry.js +30 -8
- package/dist/sdk/plugins/catalogue.js +2 -1
- package/dist/sdk/plugins/commandPrefix.d.ts +8 -0
- package/dist/sdk/plugins/commandPrefix.js +21 -0
- package/dist/sdk/plugins/firstParty.d.ts +1 -1
- package/dist/sdk/plugins/firstParty.js +8 -2
- package/dist/sdk/plugins/install.d.ts +6 -2
- package/dist/sdk/plugins/install.js +29 -5
- package/dist/sdk/plugins/inventory.js +6 -5
- package/dist/sdk/plugins/manifest.d.ts +2 -0
- package/dist/sdk/plugins/manifest.js +2 -1
- package/dist/sdk/plugins/surfaces.d.ts +5 -0
- package/dist/sdk/plugins/surfaces.js +11 -0
- package/dist/sdk/plugins/types.d.ts +15 -0
- package/dist/sdk/prompt/compile.d.ts +14 -0
- package/dist/sdk/prompt/compile.js +65 -31
- package/dist/sdk/prompt/standard.d.ts +17 -0
- package/dist/sdk/prompt/standard.js +21 -0
- package/dist/sdk/server/methods.js +22 -2
- package/dist/sdk/server/remote.js +36 -11
- package/dist/sdk/sessions/compactionCheckpoint.d.ts +11 -0
- package/dist/sdk/sessions/compactionCheckpoint.js +79 -0
- package/dist/sdk/sessions/continuation.d.ts +7 -2
- package/dist/sdk/sessions/continuation.js +11 -6
- package/dist/sdk/sessions/contracts.d.ts +190 -4
- package/dist/sdk/sessions/contracts.js +71 -8
- package/dist/sdk/sessions/control.d.ts +72 -0
- package/dist/sdk/sessions/control.js +158 -0
- package/dist/sdk/sessions/initialBash.d.ts +7 -0
- package/dist/sdk/sessions/initialBash.js +7 -0
- package/dist/sdk/sessions/planMode.d.ts +14 -3
- package/dist/sdk/sessions/planMode.js +74 -17
- package/dist/sdk/sessions/registry.d.ts +1 -1
- package/dist/sdk/sessions/registry.js +2 -2
- package/dist/sdk/sessions/runStore.d.ts +14 -0
- package/dist/sdk/sessions/runStore.js +38 -1
- package/dist/sdk/sessions/runner.d.ts +40 -2
- package/dist/sdk/sessions/runner.js +161 -13
- package/dist/sdk/sessions/sessions.d.ts +23 -3
- package/dist/sdk/sessions/sessions.js +225 -22
- package/dist/sdk/sessions/subagentService.d.ts +24 -0
- package/dist/sdk/sessions/subagentService.js +225 -26
- package/dist/sdk/sessions/subagents.d.ts +10 -1
- package/dist/sdk/sessions/subagents.js +4 -0
- package/dist/sdk/sessions/workSlice.d.ts +106 -0
- package/dist/sdk/sessions/workSlice.js +329 -0
- package/dist/sdk/sessions/workspaceBoundary.d.ts +15 -0
- package/dist/sdk/sessions/workspaceBoundary.js +46 -0
- package/dist/sdk/terminal/browserControl.js +2 -1
- package/dist/sdk/terminal/controller.d.ts +31 -3
- package/dist/sdk/terminal/controller.js +81 -29
- package/dist/sdk/terminal/opentui/ansi.d.ts +25 -0
- package/dist/sdk/terminal/opentui/ansi.js +192 -0
- package/dist/sdk/terminal/opentui/model.d.ts +163 -0
- package/dist/sdk/terminal/opentui/model.js +482 -0
- package/dist/sdk/terminal/opentui/subagentsWidget.d.ts +3 -3
- package/dist/sdk/terminal/opentui/subagentsWidget.js +7 -5
- package/dist/sdk/terminal/opentui/theme.d.ts +43 -0
- package/dist/sdk/terminal/opentui/theme.js +88 -0
- package/dist/sdk/terminal/piExtension.d.ts +6 -1
- package/dist/sdk/terminal/piExtension.js +177 -63
- package/dist/sdk/terminal/standalone.d.ts +7 -0
- package/dist/sdk/terminal/standalone.js +72 -13
- package/dist/sdk/terminal/subagentMonitor.d.ts +28 -6
- package/dist/sdk/terminal/subagentMonitor.js +61 -9
- package/dist/sdk/terminal/terminals.d.ts +26 -2
- package/dist/sdk/terminal/terminals.js +325 -43
- package/dist/sdk/terminal/trajectory.d.ts +6 -1
- package/dist/sdk/terminal/trajectory.js +8 -0
- package/dist/sdk/terminal/tui/annotateCommand.d.ts +1 -1
- package/dist/sdk/terminal/tui/annotateCommand.js +3 -3
- package/dist/sdk/terminal/tui/chrome.d.ts +4 -0
- package/dist/sdk/terminal/tui/chrome.js +13 -0
- package/dist/sdk/terminal/tui/commandPages.d.ts +3 -1
- package/dist/sdk/terminal/tui/commandPages.js +17 -4
- package/dist/sdk/terminal/tui/commands.d.ts +6 -0
- package/dist/sdk/terminal/tui/commands.js +213 -124
- package/dist/sdk/terminal/tui/list.d.ts +14 -1
- package/dist/sdk/terminal/tui/list.js +96 -14
- package/dist/sdk/terminal/tui/pageOverlay.js +21 -5
- package/dist/sdk/terminal/tui/pages/annotatePage.d.ts +1 -1
- package/dist/sdk/terminal/tui/pages/browserPage.js +5 -4
- package/dist/sdk/terminal/tui/pages/hubPage.d.ts +14 -1
- package/dist/sdk/terminal/tui/pages/hubPage.js +192 -28
- package/dist/sdk/terminal/tui/pages/notesPage.d.ts +5 -5
- package/dist/sdk/terminal/tui/pages/notesPage.js +18 -18
- package/dist/sdk/terminal/tui/pages/pluginsPage.d.ts +8 -6
- package/dist/sdk/terminal/tui/pages/pluginsPage.js +206 -28
- package/dist/sdk/terminal/tui/pages/subagentsPage.d.ts +1 -0
- package/dist/sdk/terminal/tui/pages/subagentsPage.js +104 -19
- package/dist/sdk/terminal/tui/pages/usagePage.d.ts +43 -0
- package/dist/sdk/terminal/tui/pages/usagePage.js +370 -0
- package/dist/sdk/terminal/tui/piAdapter.d.ts +1 -2
- package/dist/sdk/terminal/tui/piAdapter.js +3 -5
- package/dist/sdk/terminal/tui/pluginCommands.d.ts +2 -0
- package/dist/sdk/terminal/tui/pluginCommands.js +13 -9
- package/dist/sdk/terminal/tui/runtime.js +23 -3
- package/dist/sdk/terminal/tui/sessionPicker.d.ts +40 -0
- package/dist/sdk/terminal/tui/sessionPicker.js +141 -0
- package/dist/sdk/tools/checkpoint.d.ts +27 -0
- package/dist/sdk/tools/checkpoint.js +154 -0
- package/dist/sdk/tools/getCapabilities.d.ts +31 -0
- package/dist/sdk/tools/getCapabilities.js +34 -0
- package/dist/sdk/tools/sessionName.d.ts +2 -0
- package/dist/sdk/tools/sessionName.js +5 -3
- package/dist/sdk/tools/spawnSubagent.js +11 -8
- package/dist/sdk/tools/todo.d.ts +15 -0
- package/dist/sdk/tools/todo.js +64 -0
- package/dist/sdk/usage/analytics.d.ts +20 -0
- package/dist/sdk/usage/analytics.js +151 -0
- package/dist/sdk/usage/ledger.d.ts +38 -0
- package/dist/sdk/usage/ledger.js +142 -0
- package/dist/sdk/usage/limits/adapters.d.ts +11 -0
- package/dist/sdk/usage/limits/adapters.js +349 -0
- package/dist/sdk/usage/limits/capture.d.ts +8 -0
- package/dist/sdk/usage/limits/capture.js +47 -0
- package/dist/sdk/usage/limits/http.d.ts +12 -0
- package/dist/sdk/usage/limits/http.js +51 -0
- package/dist/sdk/usage/limits/normalize.d.ts +15 -0
- package/dist/sdk/usage/limits/normalize.js +211 -0
- package/dist/sdk/usage/limits/service.d.ts +30 -0
- package/dist/sdk/usage/limits/service.js +176 -0
- package/dist/sdk/usage/limits/types.d.ts +65 -0
- package/dist/sdk/usage/limits/types.js +1 -0
- package/dist/sdk/usage/serverMethods.d.ts +3 -0
- package/dist/sdk/usage/serverMethods.js +22 -0
- package/dist/sdk/usage/service.d.ts +32 -0
- package/dist/sdk/usage/service.js +66 -0
- package/dist/sdk/usage/settings.d.ts +7 -0
- package/dist/sdk/usage/settings.js +28 -0
- package/dist/sdk/usage/types.d.ts +60 -0
- package/dist/sdk/usage/types.js +4 -0
- package/dist/terminal-opentui.js +9204 -4812
- package/dist/terminal-pi.js +1848 -272
- package/docs/architecture/00-overview.md +1 -1
- package/docs/architecture/01-extension-points.md +1 -1
- package/docs/architecture/02-sessions-and-runs.md +169 -36
- package/docs/architecture/04-prompt.md +55 -15
- package/docs/architecture/06-plugins-and-capabilities.md +36 -15
- package/docs/architecture/07-tools-and-gate.md +131 -25
- package/docs/architecture/08-memory-and-history.md +4 -2
- package/docs/architecture/09-accounts-and-connectors.md +39 -3
- package/docs/architecture/10-server-protocol.md +71 -9
- package/docs/architecture/11-terminal.md +148 -60
- package/docs/architecture/12-storage.md +30 -2
- package/docs/architecture/13-world-tools.md +22 -1
- package/docs/architecture/14-surfaces-and-parity.md +58 -8
- package/docs/architecture/README.md +20 -17
- package/docs/architecture/proposals/PROP-0006-run-checklist.md +2 -0
- package/docs/architecture/proposals/PROP-0017-page-annotations.md +6 -2
- package/docs/architecture/proposals/PROP-0018-annotation-queue-and-app-targets.md +1 -1
- package/docs/architecture/proposals/PROP-0031-plugin-command-owner-namespaces.md +54 -0
- package/docs/architecture/proposals/PROP-0032-planning-quality.md +196 -0
- package/docs/architecture/proposals/PROP-0033-compaction-plan-checkpoints.md +75 -0
- package/docs/architecture/proposals/PROP-0034-conversation-fast-mode.md +120 -0
- package/docs/architecture/proposals/PROP-0035-retain-subagent-status.md +47 -0
- package/docs/architecture/proposals/PROP-0036-first-class-harness-commands.md +59 -0
- package/docs/architecture/proposals/PROP-0037-workspace-write-boundary.md +63 -0
- package/docs/architecture/proposals/PROP-0038-annotate-open-shadow-roots.md +73 -0
- package/docs/architecture/proposals/PROP-0039-workspace-boundary-hardening.md +139 -0
- package/docs/architecture/proposals/PROP-0040-one-launch-path.md +87 -0
- package/docs/architecture/proposals/PROP-0041-bounded-work-slices.md +258 -0
- package/docs/architecture/proposals/PROP-0042-usage-and-provider-limits.md +127 -0
- package/docs/architecture/proposals/PROP-0043-read-only-plan-bash.md +74 -0
- package/docs/architecture/proposals/PROP-0044-work-slice-defaults.md +93 -0
- package/docs/architecture/proposals/PROP-0045-rename-checklist-to-todo.md +132 -0
- package/docs/architecture/proposals/PROP-0046-progress-aware-stall-guards.md +82 -0
- package/docs/architecture/proposals/PROP-0047-plugins-hub-separation.md +122 -0
- package/docs/architecture/proposals/README.md +24 -6
- package/docs/decisions/ADR-0001-owned-terminal.md +1 -1
- package/docs/decisions/ADR-0021-required-command-namespaces.md +1 -1
- package/docs/decisions/ADR-0031-plugin-command-owner-namespaces.md +37 -0
- package/docs/decisions/ADR-0032-compaction-run-checkpoints.md +33 -0
- package/docs/decisions/ADR-0033-plan-mode-research-delegation.md +47 -0
- package/docs/decisions/ADR-0034-first-class-harness-terminal-commands.md +25 -0
- package/docs/decisions/ADR-0035-one-launch-path.md +40 -0
- package/docs/decisions/ADR-0036-workspace-write-operation-boundary.md +54 -0
- package/docs/decisions/ADR-0037-usage-ledger-and-provider-limits.md +44 -0
- package/docs/decisions/ADR-0038-plan-bash-os-read-only.md +29 -0
- package/docs/decisions/ADR-0039-progress-aware-stall-guards.md +39 -0
- package/docs/decisions/ADR-0040-architecture-change-workflow.md +31 -0
- package/docs/decisions/ADR-0041-plugins-hub-separation.md +41 -0
- package/docs/decisions/ADR-0042-windows-shell-without-sandbox.md +40 -0
- package/docs/decisions/ADR-0043-parents-continue-stopped-subagents.md +49 -0
- package/docs/doctor.md +14 -1
- package/docs/experiments/EXP-0003-performance-audit/data/session-runtime-replication.json +420 -0
- package/docs/experiments/EXP-0003-performance-audit/data/session-runtime.json +420 -0
- package/docs/experiments/EXP-0003-performance-audit/data/terminal-compact.json +376 -0
- package/docs/experiments/EXP-0003-performance-audit/data/terminal-history.json +422 -0
- package/docs/experiments/EXP-0003-performance-audit/data/terminal-question.json +95 -0
- package/docs/experiments/EXP-0003-performance-audit/data/terminal-wide.json +1036 -0
- package/docs/experiments/EXP-0003-performance-audit/plan.md +109 -0
- package/docs/experiments/EXP-0003-performance-audit/results.md +151 -0
- package/docs/handoff-2026-10-25-app-parity-and-solo-tabs.md +202 -0
- package/docs/parity.md +83 -27
- package/docs/releases/1.1.1.md +28 -0
- package/docs/releases/1.2.0.md +49 -0
- package/docs/releases/1.3.0.md +21 -0
- package/docs/releases/4.0.0.md +10 -9
- package/docs/releases/README.md +35 -30
- package/docs/study/00-index.md +3 -0
- package/docs/study/STUDY-0003-long-horizon-runs.md +210 -0
- package/docs/terminal-tui.md +162 -82
- package/package.json +4 -3
- package/dist/sdk/tools/checklist.d.ts +0 -9
- package/dist/sdk/tools/checklist.js +0 -54
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# Architecture proposals
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
Proposals are optional design records for changes to contracts, invariants, layer boundaries,
|
|
4
|
+
extension points, or storage layout in [the specification](../README.md). They may be written before
|
|
5
|
+
or alongside implementation, but do not gate code or spec changes. When a proposal is created, add
|
|
6
|
+
it to the index and update its status as the work progresses.
|
|
7
7
|
|
|
8
8
|
## Status
|
|
9
9
|
|
|
10
10
|
| Status | Meaning |
|
|
11
11
|
|---|---|
|
|
12
|
-
| `Proposed` |
|
|
13
|
-
| `Accepted` | The user approved
|
|
12
|
+
| `Proposed` | A draft design record; implementation status is tracked separately. |
|
|
13
|
+
| `Accepted` | The user approved the design. Approval is not a prerequisite to implementation. |
|
|
14
14
|
| `Implemented` | Code and spec pages match the proposal. Link the commit or ADR. |
|
|
15
15
|
| `Rejected` | The user declined it. The file stays as a record. |
|
|
16
16
|
| `Withdrawn` | The author dropped it before review. |
|
|
@@ -59,6 +59,24 @@ proposal is `Accepted`.
|
|
|
59
59
|
| [PROP-0028](PROP-0028-normalize-question-wireframes.md) | Normalize high-confidence question wireframe borders in the terminal preview | Implemented; production PTY verification passed | INV-PAR-1/2, 11-terminal.md, 14-surfaces-and-parity.md, terminal-tui.md, parity, ADR-0029 | 2026-10-24 |
|
|
60
60
|
| [PROP-0029](PROP-0029-agent-profiles.md) | Agent profiles that subagents start from | Accepted; implemented | INV-RUN-2, INV-VAR-4, INV-STO-3, INV-SRV-1, 02, 03, 04, 06, 10, 11, 12, 14, parity, ADR-0030 | 2026-10-24 |
|
|
61
61
|
| [PROP-0030](PROP-0030-subagent-title.md) | A parent-set title for each subagent, shown in the roster | Accepted; implemented | 02, 07, 10, 11, terminal-tui.md, 14, parity | 2026-10-24 |
|
|
62
|
+
| [PROP-0031](PROP-0031-plugin-command-owner-namespaces.md) | Namespace plugin commands by owner | Implemented; Harness and App checks passed | INV-TUI-7, 06, 11, 14, terminal-tui.md, README.md, ADR-0021, ADR-0031 | 2026-10-25 |
|
|
63
|
+
| [PROP-0032](PROP-0032-planning-quality.md) | Evidence-grounded planning with read-only research delegation | Implemented; live model pilot pending authorization | INV-RUN-8, INV-GATE-3, INV-CAP-1, 02, 06, 07, 14, parity, ADR-0033 | 2026-10-25 |
|
|
64
|
+
| [PROP-0033](PROP-0033-compaction-plan-checkpoints.md) | Rehydrate bounded run checkpoints after compaction | Accepted; implemented | INV-PRM-1/4/10, INV-RUN-8/12, 02, 04, 11, 14, ADR-0032 | 2026-10-25 |
|
|
65
|
+
| [PROP-0034](PROP-0034-conversation-fast-mode.md) | Conversation-scoped provider fast mode | Proposed | INV-RUN-1/3, INV-PAR-1/2, 02, 09, 10, 11, 12, 14, parity, App thread runtime settings | 2026-10-25 |
|
|
66
|
+
| [PROP-0035](PROP-0035-retain-subagent-status.md) | Retain terminal subagent status until the next run | Implemented; initial PTY failure resolved; full verifier passed at three sizes (2026-11-19) | 11-terminal.md, terminal-tui.md | 2026-10-25 |
|
|
67
|
+
| [PROP-0036](PROP-0036-first-class-harness-commands.md) | First-class Harness terminal commands | Implemented | INV-PLG-10, INV-TUI-7, 06, 11, 14, terminal-tui.md, parity, ADR-0034 | 2026-10-25 |
|
|
68
|
+
| [PROP-0037](PROP-0037-workspace-write-boundary.md) | Default filesystem writes to the active project workspace | Implemented | INV-GATE-1/3/8, INV-RUN-1, INV-TUI-8, 02, 04, 07, 10, 11, 12, 14, parity | 2026-11-19 |
|
|
69
|
+
| [PROP-0038](PROP-0038-annotate-open-shadow-roots.md) | Annotate inside open shadow roots | Implemented | 13-world-tools.md, note target, PROP-0017, PROP-0018, parity | 2026-10-25 |
|
|
70
|
+
| [PROP-0039](PROP-0039-workspace-boundary-hardening.md) | Harden workspace writes against inode escapes and unverified retries | Accepted; implementation validated on macOS, Linux validation pending | INV-GATE-3/8, INV-TUI-8, 02, 07, 11, 14, parity | 2026-10-26 |
|
|
71
|
+
|
|
72
|
+
| [PROP-0040](PROP-0040-one-launch-path.md) | One launch path and command contract across front ends | Accepted; implementation in progress | 01–04, 06–07, 10–14, parity | 2026-11-19 |
|
|
73
|
+
| [PROP-0041](PROP-0041-bounded-work-slices.md) | Bounded work slices, a durable checkpoint, and a stall guard for long replies | Implemented; terminal card, App presentation and /slices open (PAR-004) | INV-RUN-2/3/4/12, INV-PRM-1/2/4/5/10, INV-GATE-2, INV-STO-3, INV-PAR-1/2, 02, 04, 07, 10–12, 14, parity | 2026-10-26 |
|
|
74
|
+
| [PROP-0042](PROP-0042-usage-and-provider-limits.md) | Usage analytics and provider limits as a built-in capability | Accepted; implemented | INV-MEM-5/6, INV-STO-2, INV-SRV-1, INV-PLG-10, INV-ACC-3, 02, 06, 08–12, 14, parity, ADR-0037 | 2026-10-26 |
|
|
75
|
+
| [PROP-0043](PROP-0043-read-only-plan-bash.md) | Read-only Bash in plan mode, enforced by the OS sandbox | Accepted; implemented | INV-RUN-8, INV-GATE-3/8, 02, 07, 11, terminal-tui, parity, ADR-0038 | 2026-10-26 |
|
|
76
|
+
| [PROP-0044](PROP-0044-work-slice-defaults.md) | Raise the work-slice defaults to 320 tool calls and 60 minutes, with no token cap | Accepted; implemented | INV-RUN-13, 02, 10, 11, PROP-0041 | 2026-10-26 |
|
|
77
|
+
| [PROP-0045](PROP-0045-rename-checklist-to-todo.md) | Rename the run checklist to todo and add the /todo command | Accepted; implemented | 02, 04, 06, 07, 10, 11, 14, parity, terminal-tui, README, PROP-0006 | 2026-10-26 |
|
|
78
|
+
| [PROP-0046](PROP-0046-progress-aware-stall-guards.md) | Progress-aware stall guards and bounded plan research children | Implemented; ADR-0039 | INV-RUN-13, 02-sessions-and-runs.md, PROP-0041, terminal-tui.md, ADR-0039 | 2026-10-27 |
|
|
79
|
+
| [PROP-0047](PROP-0047-plugins-hub-separation.md) | Separate local plugin management from Community Hub discovery | Implemented; ADR-0041 | INV-MCP-4, INV-TUI-2/4, INV-PAR-1/2, 06, 09, 10, 11, 14, terminal-tui.md, parity.md | 2026-10-27 |
|
|
62
80
|
|
|
63
81
|
Numbers are four digits, start at `0001`, and are never reused.
|
|
64
82
|
|
|
@@ -34,7 +34,7 @@ Keep `TerminalAssets` and `Terminals.prepare/send/state/input/dispose` compatibl
|
|
|
34
34
|
socket/controller bridge and its final gate. Keep the private control claim in process memory
|
|
35
35
|
across native session replacement, revalidate prepared resource trust before every load, and
|
|
36
36
|
scope native resume/import to the terminal's original working folder. Put unavoidable Pi
|
|
37
|
-
implementation imports in one adapter checked against the pinned
|
|
37
|
+
implementation imports in one adapter checked against the pinned Pi version.
|
|
38
38
|
|
|
39
39
|
Use the shipped OMP 18.11.3 artifacts as the visual reference, with Harness identity and existing
|
|
40
40
|
commands. [The living reference](../terminal-tui.md) records artifact digests, evidence and
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ADR-0021 — Required built-in commands use the bare namespace
|
|
2
2
|
|
|
3
|
-
Status:
|
|
3
|
+
Status: Superseded by [ADR-0031](ADR-0031-plugin-command-owner-namespaces.md).
|
|
4
4
|
Supersedes: The command-namespace portion of [ADR-0018](ADR-0018-builtin-feature-plugins.md).
|
|
5
5
|
Related: [PROP-0021](../architecture/proposals/PROP-0021-command-namespaces-and-duplicates.md),
|
|
6
6
|
[11 Terminal](../architecture/11-terminal.md),
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# ADR-0031 — Plugin commands use owner-qualified namespaces
|
|
2
|
+
|
|
3
|
+
Status: Accepted (PROP-0031, 2026-10-25).
|
|
4
|
+
Supersedes: The command-namespace decision in [ADR-0021](ADR-0021-required-command-namespaces.md).
|
|
5
|
+
Related: [PROP-0031](../architecture/proposals/PROP-0031-plugin-command-owner-namespaces.md),
|
|
6
|
+
[11 Terminal](../architecture/11-terminal.md),
|
|
7
|
+
[14 Surfaces and parity](../architecture/14-surfaces-and-parity.md),
|
|
8
|
+
[06 Plugins and capabilities](../architecture/06-plugins-and-capabilities.md).
|
|
9
|
+
|
|
10
|
+
## Context
|
|
11
|
+
|
|
12
|
+
The generic `/plugin:<command>` form hid command ownership for optional built-ins and Pi extensions,
|
|
13
|
+
while required built-ins used a separate bare-command rule. Both forms left a global collision surface
|
|
14
|
+
and made help, completion and invocation inconsistent across owners. Annotation routes also used the
|
|
15
|
+
generic plugin prefix despite the plugin's annotation-focused purpose.
|
|
16
|
+
|
|
17
|
+
## Decision
|
|
18
|
+
|
|
19
|
+
Every plugin-owned terminal command is invoked as `/<owner-prefix>:<command>`, regardless of whether
|
|
20
|
+
the owner is a required built-in, optional built-in or Pi extension. Core terminal commands remain
|
|
21
|
+
unprefixed, and `/skill:<name>` remains reserved for skill invocation. Built-in plugins use stable
|
|
22
|
+
prefixes; Pi packages may set `harness.commandPrefix` and otherwise derive the prefix from normalized
|
|
23
|
+
package identity, while loose extensions use normalized extension names. Prefixes identify owners and
|
|
24
|
+
must be unique; duplicate commands within an owner and owner-prefix collisions are rejected with
|
|
25
|
+
source diagnostics.
|
|
26
|
+
|
|
27
|
+
A built-in plugin module may choose a default command for its namespace root. Web annotations uses `/annotate:` for
|
|
28
|
+
capture, `/annotate:annotate` as an equivalent alias, and `/annotate:notes` for saved annotations.
|
|
29
|
+
For one release, the previous `/plugin:<command>` and bare required-plugin forms remain hidden
|
|
30
|
+
compatibility aliases when unambiguous. They are omitted from help and completion.
|
|
31
|
+
|
|
32
|
+
## Consequences
|
|
33
|
+
|
|
34
|
+
The namespace rule applies uniformly to completion, help, highlighting and dispatch. Plugin packages
|
|
35
|
+
may opt into a stable custom prefix with `harness.commandPrefix`. The compatibility aliases expire
|
|
36
|
+
after one release and should not be used for new scripts or keybindings. This changes no server method,
|
|
37
|
+
capability identifier, account data or annotation storage format.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# ADR-0032 — Rehydrate bounded run checkpoints after compaction
|
|
2
|
+
|
|
3
|
+
Status: Accepted (PROP-0033, 2026-10-25).
|
|
4
|
+
Related: [PROP-0033](../architecture/proposals/PROP-0033-compaction-plan-checkpoints.md),
|
|
5
|
+
[02 Sessions and runs](../architecture/02-sessions-and-runs.md),
|
|
6
|
+
[04 Prompt](../architecture/04-prompt.md),
|
|
7
|
+
[11 Terminal](../architecture/11-terminal.md),
|
|
8
|
+
[14 Surfaces and parity](../architecture/14-surfaces-and-parity.md).
|
|
9
|
+
|
|
10
|
+
## Context
|
|
11
|
+
|
|
12
|
+
Pi preserves the native conversation transcript when compacting, but subsequent model requests use a
|
|
13
|
+
summary and recent messages. The Harness already records the latest checklist as a run event and
|
|
14
|
+
restores it when a stopped run is continued; an active run lacked equivalent rehydration after
|
|
15
|
+
compaction. SDK plan instructions are dynamic context and may also be included in the summarized
|
|
16
|
+
span.
|
|
17
|
+
|
|
18
|
+
## Decision
|
|
19
|
+
|
|
20
|
+
After compaction, each model request in the still-active run receives one bounded, ephemeral context
|
|
21
|
+
message when a checklist or applicable plan instructions exist to restore. It contains the current
|
|
22
|
+
request and available state. The prompt compiler assembles this content, and one Harness-owned
|
|
23
|
+
extension provides the same behavior to embedded sessions and the terminal. The extension state is run-scoped and clears on
|
|
24
|
+
settlement or branch navigation. The context message is not persisted to the native transcript or
|
|
25
|
+
run-event stream; existing session history, checklist events and continuation records remain the
|
|
26
|
+
sources of durable state. Hidden reasoning is never captured.
|
|
27
|
+
|
|
28
|
+
## Consequences
|
|
29
|
+
|
|
30
|
+
Post-compaction requests carry a small additional context block until the active run settles. The
|
|
31
|
+
feature adds no storage, event, server method, tool, permission or stable-system-prompt change. Plan
|
|
32
|
+
mode's existing gate remains authoritative. Runs without an explicit checklist or active plan state
|
|
33
|
+
receive no checkpoint.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ADR-0033
|
|
3
|
+
title: Keep delegation selective and research-only in plan mode
|
|
4
|
+
status: accepted
|
|
5
|
+
created: 2026-10-25
|
|
6
|
+
updated: 2026-10-25
|
|
7
|
+
related: [PROP-0032, INV-RUN-8, INV-GATE-3, INV-CAP-1]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# ADR-0033 — Keep delegation selective and research-only in plan mode
|
|
11
|
+
|
|
12
|
+
## Context
|
|
13
|
+
|
|
14
|
+
Subagents can reduce the cost of substantial independent work, but a child starts without the
|
|
15
|
+
parent's conversation and parallel edits create integration risk. Plan mode must remain read-only;
|
|
16
|
+
allowing every profile would let profile overrides expand its effective tools or plugins. Ordinary
|
|
17
|
+
subagent guidance also belongs in request context, not the stable system prompt.
|
|
18
|
+
|
|
19
|
+
## Decision
|
|
20
|
+
|
|
21
|
+
- In normal mode, recommend delegation only for substantial, bounded, independent work. Prefer a
|
|
22
|
+
fitting specialist, give each child a self-contained brief, parallelize only independent tasks,
|
|
23
|
+
and keep integration and verification with the parent. Simple lookups, tiny edits and tightly
|
|
24
|
+
coupled work stay with the parent.
|
|
25
|
+
- In plan mode, allow only a named profile whose resolved tool and plugin allowlists are explicit
|
|
26
|
+
and confined to read-only research. The tool gate checks each spawn's arguments before approvals;
|
|
27
|
+
the subagent service checks again before launch.
|
|
28
|
+
- A research child inherits plan mode and can use only the intersection of its profile, the parent's
|
|
29
|
+
frozen capabilities and the plan research set. It has no connectors, user questions, writes,
|
|
30
|
+
commands or nested subagents. Its evidence returns to the parent, which verifies and synthesizes it.
|
|
31
|
+
- Put normal delegation guidance in the generated Subagents prompt section and the spawn tool's
|
|
32
|
+
description. Keep plan instructions request-scoped. Do not expand the stable system prompt or add
|
|
33
|
+
a second capability, approval, storage or plan-file mechanism.
|
|
34
|
+
|
|
35
|
+
## Consequences
|
|
36
|
+
|
|
37
|
+
Normal runs receive concise advice at the point where profile choices are listed. Plan runs expose
|
|
38
|
+
only eligible profiles and enforce the same restriction at both the gate and launch service. The
|
|
39
|
+
terminal and hosts share the Harness behavior. Plan outcomes remain in the existing run history and
|
|
40
|
+
PlanCard handoff; no protocol or stored-data migration is introduced.
|
|
41
|
+
|
|
42
|
+
## Verification
|
|
43
|
+
|
|
44
|
+
Harness tests cover normal prompt guidance, plan-mode profile eligibility and overrides, pre-approval
|
|
45
|
+
refusals, child tool/plugin narrowing, plan inheritance and non-nesting. The versioned Evaluation
|
|
46
|
+
suite adds one case where research delegation helps and one small case where it should be skipped.
|
|
47
|
+
Live model comparisons require explicit authorization and credentials.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# ADR-0034 — First-class Harness terminal commands
|
|
2
|
+
|
|
3
|
+
Status: Accepted (PROP-0036, 2026-10-25).
|
|
4
|
+
Supersedes: The plugin-command ownership rule of ADR-0031 only for the Harness terminal commands listed below.
|
|
5
|
+
Related: [PROP-0036](../architecture/proposals/PROP-0036-first-class-harness-commands.md),
|
|
6
|
+
[06 Plugins and capabilities](../architecture/06-plugins-and-capabilities.md),
|
|
7
|
+
[11 Terminal](../architecture/11-terminal.md),
|
|
8
|
+
[14 Surfaces and parity](../architecture/14-surfaces-and-parity.md),
|
|
9
|
+
[ADR-0031](ADR-0031-plugin-command-owner-namespaces.md).
|
|
10
|
+
|
|
11
|
+
## Context
|
|
12
|
+
|
|
13
|
+
The required `subagents`, `history`, `doctor` and `worktrees` feature modules currently contribute terminal commands through `BuiltinPluginRegistry`. These features are not optional plugin toggles, and their terminal pages are first-class Harness surfaces. `/history` already means session-branch navigation, while `/mcp` already opens the Connections browser as a core command.
|
|
14
|
+
|
|
15
|
+
## Decision
|
|
16
|
+
|
|
17
|
+
The terminal's core command registry owns these canonical routes: `/doctor`, `/worktree`, `/trajectory [run-id]`, `/subagents` and `/agents`. `/history` and `/tree` continue to navigate session branches. `/mcp` and `/connections` continue to open Connections.
|
|
18
|
+
|
|
19
|
+
The underlying required feature descriptors, tools, server methods and services remain registered by `BuiltinPluginRegistry`; they no longer own the terminal command metadata for these routes. Other plugin-owned built-in and Pi extension commands remain `/<owner-prefix>:<command>`, including the annotations namespace.
|
|
20
|
+
|
|
21
|
+
For one release, the prior owner-qualified and `/plugin:<command>` routes for the promoted commands remain accepted as hidden compatibility aliases. They are omitted from help and completion. Core command names remain reserved under the normal collision policy.
|
|
22
|
+
|
|
23
|
+
## Consequences
|
|
24
|
+
|
|
25
|
+
The core terminal command table owns help, completion, highlighting and dispatch for the promoted routes. Plugin namespace collision checks and extension command ownership are unchanged. No server method, capability contract or stored data changes.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ADR-0035
|
|
3
|
+
title: One launch and command contract for every front end
|
|
4
|
+
status: Accepted
|
|
5
|
+
created: 2026-11-19
|
|
6
|
+
proposal: PROP-0040
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# ADR-0035: One launch and command contract for every front end
|
|
10
|
+
|
|
11
|
+
## Decision
|
|
12
|
+
|
|
13
|
+
The owner approved Complete App parity and Solo tabs; accepted
|
|
14
|
+
[PROP-0040](../architecture/proposals/PROP-0040-one-launch-path.md) records the Harness contract.
|
|
15
|
+
The foundation owns one interactive launch policy, not a policy per renderer:
|
|
16
|
+
|
|
17
|
+
- `Launch.standard` supplies shared role, working-folder and connection guidance. Hosts add only
|
|
18
|
+
attributed context, policy and declared add-ons through existing extension points.
|
|
19
|
+
- `commands/registry.ts` defines core commands; `commands.list` adds effective plugin commands,
|
|
20
|
+
prompts and skills. Session history controls use `sessions.*`; live-session operations use
|
|
21
|
+
`SessionRunInput.command` and the normal run lifecycle.
|
|
22
|
+
- Both surfaces load Harness-selected trusted resources and first-party hooks. Pi CLI built-ins
|
|
23
|
+
and the terminal-only question alias are excluded; attended planning uses `ask_user`.
|
|
24
|
+
- Interactive defaults (roots, neutral variant scope and credential backend), shared session
|
|
25
|
+
references, browser schemas and frozen capability discovery belong to Harness. Explicit choices
|
|
26
|
+
and historical pins win. Existing profiles are never silently merged or credentials copied.
|
|
27
|
+
- Optional `surfaces` metadata describes a host preference and a terminal fallback or unavailability;
|
|
28
|
+
it neither creates a plugin category nor grants permission.
|
|
29
|
+
|
|
30
|
+
## Consequences and alternatives
|
|
31
|
+
|
|
32
|
+
Separate front-end defaults and command implementations make identical labels promise different
|
|
33
|
+
behavior. A shared contract permits richer presentation without a second loader, gate or state owner.
|
|
34
|
+
Host-backed tools must refuse unsupported semantics honestly. Matching roots alone does not share
|
|
35
|
+
credentials when the backends differ.
|
|
36
|
+
|
|
37
|
+
This is an accepted design, not release or acceptance evidence. Shared-default adoption, actual
|
|
38
|
+
runtime pins, native browser behavior, actionable command pages and cross-surface session discovery
|
|
39
|
+
remain subject to implementation and both-surface acceptance. The [parity register](../parity.md)
|
|
40
|
+
tracks source status and gaps; compiler-only equality tests do not establish runtime parity.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ADR-0036
|
|
3
|
+
title: Enforce workspace writes at the filesystem operation
|
|
4
|
+
status: Accepted
|
|
5
|
+
created: 2026-10-26
|
|
6
|
+
proposal: PROP-0039
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# ADR-0036: Enforce workspace writes at the filesystem operation
|
|
10
|
+
|
|
11
|
+
## Decision
|
|
12
|
+
|
|
13
|
+
The Harness owns one filesystem-effect boundary shared by SDK sessions and the terminal. Each run
|
|
14
|
+
pins a non-root `workspaceRoot`; model-controlled native writes and default-scope Bash are confined
|
|
15
|
+
to that root by operating-system enforcement, not by prompt guidance or pathname checks alone.
|
|
16
|
+
|
|
17
|
+
- Native `write` and `edit` calls revalidate the authorized canonical target at mutation and use
|
|
18
|
+
atomic replacement under an OS-enforced write scope. Outside file targets need a one-call
|
|
19
|
+
approval; replacing a directory entry rather than truncating an inode prevents an outside
|
|
20
|
+
hard-link alias from being changed.
|
|
21
|
+
- Before default-scope Bash, Harness scans the workspace for regular-file inodes with links outside
|
|
22
|
+
it and blocks the command if the scan is incomplete or an external alias may exist. The OS
|
|
23
|
+
sandbox prevents the command from creating a cross-boundary hard link. On macOS it denies
|
|
24
|
+
hard-link creation entirely, including within the workspace.
|
|
25
|
+
- Bash outside scope is an explicit `workspaceWriteScope: 'outside'` request, or terminal
|
|
26
|
+
`!outside <command>`. The complete quoted command is shown in approval details. Approval happens
|
|
27
|
+
before execution, is human-only and nonrememberable, and runs the exact command once. An
|
|
28
|
+
undersized terminal denies the request. stdout/stderr never proves a sandbox denial and never
|
|
29
|
+
triggers approval or replay.
|
|
30
|
+
- Full Permission remains the existing explicit boundary bypass for eligible interactive runs; it
|
|
31
|
+
remains subject to hard policy, authorization, read-only, plan, unattended and refinement rules.
|
|
32
|
+
- The filesystem root is not a valid workspace. A same-user peer process outside Harness remains
|
|
33
|
+
outside this boundary. Atomic replacement preserves ordinary file mode where possible but does
|
|
34
|
+
not guarantee ACL or extended-attribute preservation.
|
|
35
|
+
|
|
36
|
+
## Rationale
|
|
37
|
+
|
|
38
|
+
Canonical path checks alone do not contain effects through hard links and are vulnerable to
|
|
39
|
+
pathname changes between authorization and mutation. Atomic replacement avoids writing through a
|
|
40
|
+
shared inode, while an OS scope constrains the helper if a path changes. Shell output is controlled
|
|
41
|
+
by the command and cannot authenticate a denial event; explicit pre-execution scope requests avoid
|
|
42
|
+
replaying partial side effects and make broad writes an intentional decision.
|
|
43
|
+
|
|
44
|
+
## Consequences and alternatives
|
|
45
|
+
|
|
46
|
+
Workspaces with external hard-link aliases cannot use default Bash until repaired. Unsupported or
|
|
47
|
+
incomplete sandbox enforcement fails closed. Outside writes remain possible through the explicit
|
|
48
|
+
one-call approval path. A private copy-on-write workspace would also isolate against same-user peer
|
|
49
|
+
processes, but changes visibility, writeback, conflict handling, metadata and performance; it remains
|
|
50
|
+
out of scope unless that threat must be covered.
|
|
51
|
+
|
|
52
|
+
This decision is not release evidence. See [PROP-0039](../architecture/proposals/PROP-0039-workspace-boundary-hardening.md),
|
|
53
|
+
[the gate contract](../architecture/07-tools-and-gate.md), [terminal parity](../architecture/11-terminal.md)
|
|
54
|
+
and [the release note](../releases/1.2.0.md) for implementation and validation status.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# ADR-0037: Usage analytics read a derived ledger; provider limits are read, never guessed
|
|
2
|
+
|
|
3
|
+
**Status:** Accepted (2026-10-26)
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
Token and cost figures already reach the harness per model request, but only inside run events,
|
|
8
|
+
and the index stores no usage. Provider limits have a schema and health rules but no producer.
|
|
9
|
+
A person needs both answers without reading run folders, and a subscription's plan window must
|
|
10
|
+
not be presented as a made-up percentage.
|
|
11
|
+
|
|
12
|
+
## Decision
|
|
13
|
+
|
|
14
|
+
- **The usage ledger is derived.** `usage_requests` and `usage_indexed` live in `index.sqlite`,
|
|
15
|
+
are written from `usage.updated` events, and are rebuilt from `runs/` like recall. No run file,
|
|
16
|
+
folder or schema changes.
|
|
17
|
+
- **Analytics are bounded and scope-first.** One scope, one period, top-ten breakdowns, an
|
|
18
|
+
unpriced-request count, and cost estimates marked separately from provider figures.
|
|
19
|
+
- **Limits have a stated source.** Response headers first (free and fresh), then a small registry
|
|
20
|
+
of documented provider endpoints read with the credential `Models.getAuth` resolves, then an
|
|
21
|
+
explicit unavailable reason. Undocumented endpoints are off unless `experimentalProbes` is on.
|
|
22
|
+
- **Freshness is a person's choice.** Readings are cached for a configurable interval and
|
|
23
|
+
refreshed on page open or `r`, never by a background timer.
|
|
24
|
+
- **One built-in plugin owns the capability.** `usage` contributes the methods and the two
|
|
25
|
+
namespaced terminal commands; the public method table still comes from `server/methods.ts`.
|
|
26
|
+
|
|
27
|
+
## Consequences
|
|
28
|
+
|
|
29
|
+
The index carries one more derived table set, with an append-only migration. `AccountState`
|
|
30
|
+
gains an optional readout list and `Limit` optional absolute fields, both additive. A page open
|
|
31
|
+
may make a read-only provider request with the account's existing credential; nothing is written
|
|
32
|
+
to a credential file and no model request is made. Hosts can present the same methods later; the
|
|
33
|
+
terminal is the reference surface.
|
|
34
|
+
|
|
35
|
+
## Alternatives rejected
|
|
36
|
+
|
|
37
|
+
Reading raw run logs per page (unbounded), a new data folder (duplicates derived data), scraping
|
|
38
|
+
dashboards (no stable API), inventing percentages (misleading), background polling (surprise
|
|
39
|
+
egress).
|
|
40
|
+
|
|
41
|
+
## References
|
|
42
|
+
|
|
43
|
+
[PROP-0042](../architecture/proposals/PROP-0042-usage-and-provider-limits.md), architecture pages
|
|
44
|
+
02, 06, 08, 09, 10, 11, 12 and 14.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ADR-0038
|
|
3
|
+
title: Plan-mode Bash is read-only by OS sandbox, not by command parsing
|
|
4
|
+
status: Accepted
|
|
5
|
+
created: 2026-10-26
|
|
6
|
+
proposal: PROP-0043
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# ADR-0038: Plan-mode Bash is read-only by OS sandbox, not by command parsing
|
|
10
|
+
|
|
11
|
+
## Decision
|
|
12
|
+
|
|
13
|
+
Plan runs may use Bash, and each call runs in the workspace sandbox's `read-only` scope: no writes
|
|
14
|
+
except a discarded per-call temp folder, no network, no signals outside the sandbox, and (macOS) no
|
|
15
|
+
mach services. Nothing widens that scope in plan mode. A small denylist of system-acting commands is
|
|
16
|
+
checked by the gate as defence in depth only.
|
|
17
|
+
|
|
18
|
+
## Rationale
|
|
19
|
+
|
|
20
|
+
Whether a shell command writes cannot be decided reliably from its text; many read-looking commands
|
|
21
|
+
can run others or write through flags. The Harness already depends on `sandbox-exec` and `bwrap` for
|
|
22
|
+
the workspace boundary (ADR-0036), so the same mechanism with no write roots gives a kernel-enforced
|
|
23
|
+
read-only guarantee at little cost.
|
|
24
|
+
|
|
25
|
+
## Consequences
|
|
26
|
+
|
|
27
|
+
Plans can inspect with real commands. Commands that need to write, such as most builds and tests,
|
|
28
|
+
fail in plan mode. Platforms without a sandbox refuse plan Bash. See
|
|
29
|
+
[PROP-0043](../architecture/proposals/PROP-0043-read-only-plan-bash.md).
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ADR-0039
|
|
3
|
+
title: Progress-aware stall guards and bounded plan research children
|
|
4
|
+
status: Accepted
|
|
5
|
+
created: 2026-10-27
|
|
6
|
+
proposal: PROP-0046
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# ADR-0039: Progress-aware stall guards and bounded plan research children
|
|
10
|
+
|
|
11
|
+
## Decision
|
|
12
|
+
|
|
13
|
+
Remove the global file-change/check no-progress trigger. Keep the targeted protections for repeated
|
|
14
|
+
calls, repeated failing checks, per-path edit churn, compaction thrash, and the independent
|
|
15
|
+
work-slice call/time budgets. Count edit churn only from successful native `edit`/`write` results
|
|
16
|
+
with a path. A successful edit/write clears failed-check counts, exact Bash-check repetition counts
|
|
17
|
+
and the pending nudge, but preserves edit counts and repeats of other calls; a passing check clears
|
|
18
|
+
edit churn.
|
|
19
|
+
|
|
20
|
+
Bound plan-research children with the configured work-slice policy without adding
|
|
21
|
+
`checkpoint_write` or any other capability. When that tool is absent, a budget or stall refusal asks
|
|
22
|
+
the child to stop and return partial findings; another tool call ends the reply, and the runner
|
|
23
|
+
records an evidence-derived checkpoint. Children do not auto-continue. Plan-mode browser and
|
|
24
|
+
connected-app restrictions remain unchanged.
|
|
25
|
+
|
|
26
|
+
## Rationale
|
|
27
|
+
|
|
28
|
+
Distinct reads are not evidence of a stall, and the former 25-call threshold imposed an arbitrary
|
|
29
|
+
file/check-progress boundary. Tool results are the shared, observable signal for whether a native
|
|
30
|
+
edit succeeded; treating failed or blocked attempts as edits would consume the churn allowance
|
|
31
|
+
without changing code. Resetting check-retry state after a successful edit lets the same check run
|
|
32
|
+
against changed input without weakening protection when code is unchanged. A derived checkpoint
|
|
33
|
+
bounds read-only research children without widening their frozen capability set.
|
|
34
|
+
|
|
35
|
+
## Consequences
|
|
36
|
+
|
|
37
|
+
Long sequences of distinct reads are limited by the configured slice budget and targeted loop
|
|
38
|
+
protections, not by missing file/check progress. No run-event schema, stored-data layout or server protocol changes are introduced; the terminal
|
|
39
|
+
uses the same guard rules. See [PROP-0046](../architecture/proposals/PROP-0046-progress-aware-stall-guards.md).
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ADR-0040
|
|
3
|
+
title: Architecture changes do not require proposal approval first
|
|
4
|
+
status: Accepted
|
|
5
|
+
created: 2026-10-27
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# ADR-0040: Architecture changes do not require proposal approval first
|
|
9
|
+
|
|
10
|
+
## Decision
|
|
11
|
+
|
|
12
|
+
The architecture specification remains binding, and changes that alter its contracts, invariants,
|
|
13
|
+
layer boundaries, extension points, or storage layout must update the affected specification pages
|
|
14
|
+
in the same change. Such work does not require a proposal or user approval before implementation.
|
|
15
|
+
|
|
16
|
+
Proposals remain optional design records. When used, they may be created before or alongside
|
|
17
|
+
implementation and should be indexed and status-tracked. Add an ADR for a lasting architectural
|
|
18
|
+
choice. Report existing code/spec drift and resolve relevant drift by updating both sides together
|
|
19
|
+
within the requested scope.
|
|
20
|
+
|
|
21
|
+
## Rationale
|
|
22
|
+
|
|
23
|
+
A binding specification and same-change documentation keep implementation accountable to the
|
|
24
|
+
architecture without making a separate proposal review a prerequisite to requested work. Optional
|
|
25
|
+
proposals remain available when a design benefits from a written comparison or durable rationale.
|
|
26
|
+
|
|
27
|
+
## Consequences
|
|
28
|
+
|
|
29
|
+
Coding agents read the affected specification pages, implement the requested change, update the
|
|
30
|
+
specification in the same change, and run relevant checks. Proposal status records design review or
|
|
31
|
+
implementation progress but does not gate implementation.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ADR-0041
|
|
3
|
+
title: Separate local plugin management from Community Hub discovery
|
|
4
|
+
status: Accepted
|
|
5
|
+
created: 2026-10-27
|
|
6
|
+
proposal: PROP-0047
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# ADR-0041: Separate local plugin management from Community Hub discovery
|
|
10
|
+
|
|
11
|
+
## Decision
|
|
12
|
+
|
|
13
|
+
- `/plugins` is the dedicated local installed-plugin manager: switching, code trust, settings, and
|
|
14
|
+
local package install, update and removal. It does not browse the public catalog.
|
|
15
|
+
- `/hub` is a distinct public-catalog page. Its Catalog view shows Community entries across active
|
|
16
|
+
supported types; its Installed view shows receipts from every channel with the channel visible.
|
|
17
|
+
The broad `/harness` resource browser remains available.
|
|
18
|
+
- Opening Hub shows cached or bundled entries first, then refreshes remotely. The page retains the
|
|
19
|
+
data origin, last-refresh time and any fallback/error status. Registry/document entries keep a
|
|
20
|
+
bounded payload Preview; Pi packages have no payload Preview.
|
|
21
|
+
- A Hub-owned package cannot be silently floated by `plugins.update`. Removing it through
|
|
22
|
+
`plugins.remove` delegates to Hub's exact-receipt uninstall operation; Hub remains the writer of
|
|
23
|
+
its receipt and owned resources. Replacing it requires an explicit, exact catalog version.
|
|
24
|
+
- Host presentations use the same filtering, refresh and receipt lifecycle while choosing their own
|
|
25
|
+
layouts. No new capability, loader, storage format or server response schema is introduced.
|
|
26
|
+
|
|
27
|
+
## Rationale
|
|
28
|
+
|
|
29
|
+
Local plugin management and public catalog discovery have different owners and different safety
|
|
30
|
+
contracts. Separating the direct pages makes that visible without duplicating the services: local
|
|
31
|
+
packages use the plugin manager, while Hub installs are pinned catalog releases with receipts. A
|
|
32
|
+
Community-only catalog view also avoids presenting official items as community submissions, while
|
|
33
|
+
retaining existing Official receipts for management.
|
|
34
|
+
|
|
35
|
+
## Consequences
|
|
36
|
+
|
|
37
|
+
The direct terminal and host routes have distinct screens, but `/harness` stays a broad resource
|
|
38
|
+
browser. Catalog filtering is presentation-only; `hub.list` remains unfiltered for other callers.
|
|
39
|
+
Existing receipts and plugin settings need no migration. The current public catalog has no
|
|
40
|
+
Community Pi-package entry, so no Community plugin appears until a publisher adds one. See
|
|
41
|
+
[PROP-0047](../architecture/proposals/PROP-0047-plugins-hub-separation.md).
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ADR-0042
|
|
3
|
+
title: Run Windows commands behind a per-call approval instead of a sandbox
|
|
4
|
+
status: Accepted
|
|
5
|
+
created: 2026-10-27
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# ADR-0042: Run Windows commands behind a per-call approval instead of a sandbox
|
|
9
|
+
|
|
10
|
+
## Context
|
|
11
|
+
|
|
12
|
+
Bash runs inside an OS write-boundary sandbox: `sandbox-exec` on macOS, bubblewrap on Linux
|
|
13
|
+
(INV-GATE-3, INV-GATE-8). Windows has neither, and missing enforcement fails closed, so on Windows
|
|
14
|
+
every Bash call, and every native `write` and `edit` (whose helper was launched through the same
|
|
15
|
+
sandbox), failed before it started. The shell lookup also searched only `/bin/bash`. A harness
|
|
16
|
+
installed from npm on Windows could not run a command or change a file.
|
|
17
|
+
|
|
18
|
+
## Decision
|
|
19
|
+
|
|
20
|
+
- **Shell.** On Windows, commands run in Git Bash (`%ProgramFiles%\Git\bin\bash.exe`,
|
|
21
|
+
`%ProgramFiles(x86)%\Git\bin\bash.exe`, then `bash.exe` on `PATH`, never the WSL launcher in
|
|
22
|
+
`System32`), otherwise in PowerShell (`pwsh.exe`, PowerShell 7 in Program Files, then Windows
|
|
23
|
+
PowerShell). The capability and tool keep the name `bash`, so capability sets, the gate, plan
|
|
24
|
+
lists and approvals are unchanged; the description names the shell.
|
|
25
|
+
- **Bash.** Every Windows command takes the existing `outside` path: a human-only one-call approval
|
|
26
|
+
or an eligible Full Permission answer, then it runs once unconfined. Remembered tool grants never
|
|
27
|
+
answer it. Plan-mode (read-only) Bash is refused on Windows.
|
|
28
|
+
- **Write and edit.** On Windows the atomic helper runs with Node directly. The target is still
|
|
29
|
+
canonicalized, authorized, revalidated, and replaced by rename; outside targets still need their
|
|
30
|
+
one-call approval. In-workspace writes do not ask.
|
|
31
|
+
- `/doctor` reports the Windows shell as a warning that names it and the approval rule.
|
|
32
|
+
|
|
33
|
+
## Consequences
|
|
34
|
+
|
|
35
|
+
- The harness works on Windows right after `npm install`, with no Git or native helper required.
|
|
36
|
+
- Windows commands are unconfined once approved. The guarantee comes from the person, not the OS.
|
|
37
|
+
- On Windows, a junction or symlink swap between the write check and the rename is not prevented
|
|
38
|
+
by the OS. Atomic replacement still keeps a write from going through a hard-link alias.
|
|
39
|
+
- A real Windows sandbox (restricted token and ACLs through a native helper) would let Windows use
|
|
40
|
+
the macOS/Linux rules again. It is not built.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: ADR-0043
|
|
3
|
+
title: A parent continues its stopped subagents; the monitor shows the main agent and survives reopening
|
|
4
|
+
status: Accepted
|
|
5
|
+
created: 2026-10-27
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# ADR-0043: A parent continues its stopped subagents
|
|
9
|
+
|
|
10
|
+
## Decision
|
|
11
|
+
|
|
12
|
+
- `spawn_subagent { continue: <runId> }` (and `subagents.spawn { continue }`) continues a child that
|
|
13
|
+
stopped before finishing (`interrupted` or `failed`, with saved history). It is a new child run
|
|
14
|
+
with `continueFrom`. It reopens the first link's history folder
|
|
15
|
+
(`<parent sessionDir>/subagents/<first child run id>`) and keeps the earlier child's session id,
|
|
16
|
+
profile, title, goal, account, variant version and frozen capability set. That set must still lie
|
|
17
|
+
within the parent's ceiling; `agent` and `tools` are refused with `continue`. The id may name any
|
|
18
|
+
link of a chain: the newest link is the one continued, and an active or completed newest link is
|
|
19
|
+
refused.
|
|
20
|
+
- The model decides. A subagent never continues itself, and a restarted harness never restarts
|
|
21
|
+
model work (INV-RUN-4). Children an earlier reply left stopped are delivered **before** the next
|
|
22
|
+
reply's first request: a hidden `xingular-subagent-results` message with a receipt, which says
|
|
23
|
+
each child can be continued. A stopped child that has a continuation is reported through that
|
|
24
|
+
continuation instead.
|
|
25
|
+
- Recovery of an earlier parent's children is keyed on the native history branch: the owner
|
|
26
|
+
marker, the same native history id, account, agent, project and working folder. The Harness
|
|
27
|
+
session id is not compared, because a host may give each launch of one conversation a new one.
|
|
28
|
+
- `main` is a reserved profile name. The terminal monitor projects the parent run itself as a
|
|
29
|
+
`main` row: account, model, effort, usage, activity and todo counts, like a child. The
|
|
30
|
+
`/subagents` page shows it pinned first; the rows under the status line omit it.
|
|
31
|
+
- The terminal marks every turn's run on the branch (`xingular-subagent-owner`). When a
|
|
32
|
+
conversation opens with no run active, it rebuilds the monitor from the branch's latest parent
|
|
33
|
+
run in that folder and its descendants, by folding their saved events. The rows keep their final
|
|
34
|
+
status until the next run begins.
|
|
35
|
+
- Run records carry the launch `model` and `effort` (the opened session's model supersedes the
|
|
36
|
+
selection), so a rebuilt row can show them.
|
|
37
|
+
|
|
38
|
+
## Rationale
|
|
39
|
+
|
|
40
|
+
Esc on a parent interrupts every child, and until now the next turn was told to start them again.
|
|
41
|
+
That lost work that was saved on disk. Reopening a child's own history keeps every pin a run
|
|
42
|
+
already has, so no capability or account can change, and leaving the choice to the model keeps
|
|
43
|
+
INV-RUN-4.
|
|
44
|
+
|
|
45
|
+
## Consequences
|
|
46
|
+
|
|
47
|
+
The monitor stays a private, read-only terminal projection; no event or public method is added.
|
|
48
|
+
Records written before this change have no `model` or `effort`, and their rebuilt rows show `—`.
|
|
49
|
+
A person cannot continue a child from the page directly; they ask the parent.
|
package/docs/doctor.md
CHANGED
|
@@ -8,10 +8,23 @@ provider requests, token refreshes, browser launch, permission prompts or comput
|
|
|
8
8
|
pass does not establish live connectivity. Other accounts show their saved status and timestamp.
|
|
9
9
|
Providers without diagnostics report unverified. Disabled capabilities are not failures.
|
|
10
10
|
|
|
11
|
+
The shell check reports which `bash` the session would run and whether the platform's
|
|
12
|
+
write-boundary sandbox (sandbox-exec on macOS, bubblewrap on Linux) is installed, because a missing
|
|
13
|
+
backend stops every Bash call before the command starts. It runs nothing. On Windows it reports a
|
|
14
|
+
warning naming the shell (Git Bash or PowerShell) and that each command asks for approval, because
|
|
15
|
+
Windows has no write-boundary sandbox; the live shell check reports unverified there, since a
|
|
16
|
+
command would need a person to approve it.
|
|
17
|
+
|
|
11
18
|
Press `l` to choose live checks, then review the account/model, destinations, possible charges and
|
|
12
19
|
isolation notice. The model check makes one synthetic request with at most 64 output tokens;
|
|
13
20
|
usage appears on a separate diagnostic run. Web checks fetch example.com and search for “example
|
|
14
|
-
domain”.
|
|
21
|
+
domain”. The shell check runs one fixed command written by the harness (`printf`) in the working
|
|
22
|
+
folder through the same root, hard-link scan and write-boundary sandbox a normal Bash call uses, and
|
|
23
|
+
reports only the exit status: no model input is sent, no file is written and no network request is
|
|
24
|
+
made. A diagnostic never widens the boundary, so Full Permission cannot change its result; when the
|
|
25
|
+
boundary refuses before the shell starts (for example a hard-link alias in the workspace), the
|
|
26
|
+
finding is blocked with that reason instead of claiming the shell is broken. MCP checks
|
|
27
|
+
connect/list only. Browser checks use a disposable headless profile and an
|
|
15
28
|
offline synthetic page; configured CDP attachment is blocked. Computer input is blocked unless the
|
|
16
29
|
host supplies a disposable diagnostic surface; the current desktop host supplies readiness only.
|
|
17
30
|
|