gentle-pi 4.6.0 → 4.7.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/README.md +10 -11
- package/assets/agents/gentle-ai-explore.md +1 -0
- package/assets/agents/gentle-ai-verify.md +5 -2
- package/assets/agents/gentle-ai-worker.md +3 -0
- package/assets/agents/jd-fix-agent.md +1 -0
- package/assets/agents/jd-judge-a.md +1 -0
- package/assets/agents/jd-judge-b.md +1 -0
- package/assets/design-canvas/canvas.css +13 -1
- package/assets/design-canvas/canvas.js +11 -2
- package/assets/install-wizard/wizard.js +1 -0
- package/assets/migrations/agent-body-history.json +16 -1
- package/assets/orchestrator-delegation-reference.md +4 -4
- package/assets/orchestrator-delegation.md +1 -1
- package/assets/orchestrator-full-delegation-card.md +65 -0
- package/assets/orchestrator-full-delegation.md +34 -0
- package/assets/orchestrator-memory.md +3 -3
- package/assets/orchestrator-prompts.md +1 -1
- package/assets/orchestrator-skills.md +1 -1
- package/assets/orchestrator-verification.md +7 -5
- package/assets/orchestrator.md +3 -3
- package/bin/gentle-shell.mjs +164 -56
- package/docs/agent-status.md +61 -0
- package/docs/bundled-install.md +7 -5
- package/docs/delegated-verification.md +29 -7
- package/docs/gentle-agents-activity.md +14 -0
- package/docs/gentle-shell.md +54 -16
- package/docs/install-wizard.md +1 -1
- package/docs/permission-modes.md +9 -4
- package/docs/readme-reference.md +75 -30
- package/docs/render-cache-performance.md +11 -1
- package/docs/review-coordinator.md +33 -0
- package/docs/review-request-context.md +19 -0
- package/docs/review-windows-acl.md +18 -0
- package/docs/voice.md +6 -3
- package/docs/yolo-mode.md +5 -5
- package/extensions/ask-user-choice.ts +1 -0
- package/extensions/ask-user-question.ts +1 -0
- package/extensions/child-safety.ts +3 -0
- package/extensions/gentle-agent-status.ts +99 -0
- package/extensions/gentle-agents.ts +326 -34
- package/extensions/gentle-ai.ts +1496 -454
- package/extensions/gentle-shell.ts +293 -63
- package/extensions/gentle-todo.ts +18 -2
- package/extensions/gentle-tps.ts +48 -0
- package/extensions/quiet-tools.ts +38 -8
- package/extensions/skill-registry.ts +175 -18
- package/extensions/startup-banner.ts +30 -3
- package/lib/agent-profile-pin.ts +3 -3
- package/lib/agent-profiles.ts +160 -2
- package/lib/agent-status.ts +105 -0
- package/lib/agents-config.ts +46 -0
- package/lib/agents-history.ts +24 -5
- package/lib/agents-messaging.ts +47 -5
- package/lib/agents-runner.ts +183 -12
- package/lib/auto-permission-runtime.ts +1 -1
- package/lib/bounded-writer-admission.ts +13 -1
- package/lib/card-content-policy.ts +8 -6
- package/lib/command-palette.ts +133 -17
- package/lib/context-backstop.ts +14 -5
- package/lib/destructive-command-guard.ts +48 -4
- package/lib/execution-surface-guard.ts +20 -0
- package/lib/exploration-budget.ts +4 -2
- package/lib/gentle-ai-binary.ts +1 -1
- package/lib/gentle-design.ts +3 -0
- package/lib/gentle-shell-bundled.ts +6 -19
- package/lib/gentle-shell-launcher.ts +43 -8
- package/lib/herdr-activity.ts +14 -2
- package/lib/herdr-busy.ts +45 -0
- package/lib/image-attachments.ts +33 -0
- package/lib/image-disk-cache.ts +137 -0
- package/lib/inprocess-reviewer.ts +270 -140
- package/lib/jobs-view.ts +198 -11
- package/lib/model-routing-authority.ts +22 -4
- package/lib/native-choice-list.ts +20 -2
- package/lib/native-review-cli.ts +96 -19
- package/lib/orchestrator-mode-policy.ts +105 -0
- package/lib/questionnaire/questionnaire-view.ts +105 -12
- package/lib/rdd-mode-control.ts +32 -0
- package/lib/reply-language-anchor.ts +104 -0
- package/lib/review-blocker.ts +92 -0
- package/lib/review-candidate-symlink-scan.ts +136 -0
- package/lib/review-candidate-view-owner.ts +81 -44
- package/lib/review-continuation-registry.ts +99 -0
- package/lib/review-coordinator.ts +163 -0
- package/lib/review-failure-facts.ts +49 -0
- package/lib/review-host-relay.ts +46 -10
- package/lib/review-integration-v2.ts +7 -1
- package/lib/review-relay-phase-timing.ts +45 -0
- package/lib/review-start-context.ts +17 -0
- package/lib/session-profile-freeze.ts +4 -2
- package/lib/shell-bar.ts +140 -58
- package/lib/shell-changes.ts +2 -0
- package/lib/shell-panel.ts +17 -3
- package/lib/shell-sidebar-layout.ts +112 -40
- package/lib/shell-sidebar.ts +7 -0
- package/lib/shell-todo.ts +10 -3
- package/lib/verifier-admission.ts +1 -1
- package/lib/visual-customization-policy.ts +36 -16
- package/lib/visual-customize-view.ts +216 -21
- package/lib/visual-layout-preview.ts +9 -5
- package/lib/visual-profiles.ts +2 -2
- package/lib/windows-session-transport.ts +53 -2
- package/lib/yolo-session-policy.ts +40 -15
- package/package.json +2 -1
- package/runtime/gentle-ai-binary.mjs +1 -1
- package/runtime/gentle-shell-bundled.mjs +6 -19
- package/runtime/gentle-shell-launcher.mjs +42 -7
- package/runtime/native-review-cli.mjs +93 -16
- package/runtime/review-integration-v2.mjs +7 -1
- package/scripts/build-full-delegation-card.mjs +175 -0
- package/scripts/bundled-install.mjs +38 -8
- package/scripts/download-progress.mjs +68 -0
- package/scripts/gentle-ai-installer.mjs +41 -18
- package/scripts/gentle-ai-proxy.mjs +294 -0
- package/scripts/install-gentle-ai.mjs +14 -1
- package/scripts/installer-preflight.mjs +5 -5
- package/scripts/installer-runner.mjs +27 -12
- package/scripts/installer-server.mjs +8 -7
- package/scripts/render-cache-host.mjs +72 -0
- package/scripts/render-cache-performance-worker.mjs +5 -4
- package/scripts/render-cache-performance.mjs +6 -1
- package/scripts/run-test-suite.mjs +40 -28
- package/scripts/verify-package-files.mjs +12 -2
- package/scripts/voice-worker.cjs +32 -6
- package/skills/design/SKILL.md +11 -8
- package/skills/gentle-ai/SKILL.md +2 -2
- package/skills/gentle-ui-design/SKILL.md +46 -0
- package/skills/gentle-ui-design/references/adaptive-interfaces.md +46 -0
- package/skills/gentle-ui-design/references/browse-and-compare.md +62 -0
- package/skills/gentle-ui-design/references/composition-and-feedback.md +56 -0
- package/skills/gentle-ui-design/references/task-and-content.md +60 -0
- package/skills/skill-registry/SKILL.md +4 -2
- package/skills/work-unit-commits/SKILL.md +6 -7
- package/tests/agent-home.test.ts +28 -9
- package/tests/agent-profiles-workflow.test.ts +163 -0
- package/tests/agent-risk-escalation.test.ts +1 -1
- package/tests/agent-status.test.ts +143 -0
- package/tests/agents-config.test.ts +96 -0
- package/tests/agents-history.test.ts +31 -0
- package/tests/agents-jobs-frames.test.ts +93 -0
- package/tests/agents-prompt-lifecycle-runtime.test.ts +376 -0
- package/tests/agents-runner-drain.test.ts +193 -0
- package/tests/agents-runner.test.ts +178 -2
- package/tests/append-system-prompt-route.test.ts +4 -1
- package/tests/ask-user-choice.test.ts +4 -3
- package/tests/ask-user-question.test.ts +97 -0
- package/tests/auto-permission-runtime.test.ts +1 -1
- package/tests/autonomous-guard.test.ts +346 -10
- package/tests/bounded-stop-contract.test.ts +43 -3
- package/tests/bridge-cost.test.ts +19 -4
- package/tests/bundled-install.test.ts +30 -5
- package/tests/card-content-policy.test.ts +3 -3
- package/tests/chained-pr-skill.test.ts +8 -6
- package/tests/child-safety.test.ts +11 -0
- package/tests/codegraph-tools.test.ts +11 -5
- package/tests/command-palette.test.ts +284 -1
- package/tests/delegate-for-reason-contract.test.ts +3 -3
- package/tests/design-canvas-assets.test.ts +185 -2
- package/tests/destructive-command-guard.test.ts +52 -0
- package/tests/download-progress.test.ts +71 -0
- package/tests/execution-surface-guard.test.ts +55 -0
- package/tests/fixtures/primary-session-prompt/gentleman.golden.md +9 -5
- package/tests/fixtures/proxy-tls/proxy.crt +19 -0
- package/tests/fixtures/proxy-tls/proxy.key +28 -0
- package/tests/fixtures/session-profile-v1/gentle-ai-reviewer.ts +89 -0
- package/tests/fixtures/session-profile-v1/replay.ts +53 -6
- package/tests/full-delegation-closure.test.ts +131 -0
- package/tests/full-delegation-notices.test.ts +76 -0
- package/tests/generic-agent-tools.test.ts +3 -3
- package/tests/gentle-agent-status.test.ts +74 -0
- package/tests/gentle-agents-child-jobs.test.ts +237 -0
- package/tests/gentle-agents.test.ts +1070 -12
- package/tests/gentle-ai-binary.test.ts +3 -1
- package/tests/gentle-ai-elapsed-store.test.ts +19 -0
- package/tests/gentle-ai-exploration-budget.test.ts +18 -2
- package/tests/gentle-ai-installer.test.ts +134 -51
- package/tests/gentle-ai-proxy.test.ts +434 -0
- package/tests/gentle-ai.test.ts +113 -38
- package/tests/gentle-design.test.ts +21 -0
- package/tests/gentle-herdr-activity.test.ts +9 -6
- package/tests/gentle-shell-bin.test.ts +123 -0
- package/tests/gentle-shell-bundled.test.ts +207 -31
- package/tests/gentle-shell-launcher.test.ts +77 -10
- package/tests/gentle-shell.test.ts +899 -59
- package/tests/gentle-todo.test.ts +19 -2
- package/tests/gentle-tps.test.ts +123 -0
- package/tests/gentle-ui-design-skill.test.ts +59 -0
- package/tests/herdr-busy.test.ts +59 -0
- package/tests/herdr-task-summary-policy.test.ts +8 -4
- package/tests/image-disk-cache.test.ts +163 -0
- package/tests/independent-recovery-delivery.test.ts +83 -0
- package/tests/inprocess-reviewer.test.ts +176 -4
- package/tests/installer-posix-bootstrap.test.ts +1 -1
- package/tests/installer-preflight.test.ts +5 -4
- package/tests/installer-runner.test.ts +79 -44
- package/tests/installer-server.test.ts +14 -11
- package/tests/jobs-view.test.ts +260 -6
- package/tests/modal-mouse-boundaries.test.ts +136 -0
- package/tests/model-routing-authority.test.ts +178 -2
- package/tests/native-choice-list.test.ts +77 -2
- package/tests/native-review-capability-contract.test.ts +7 -1
- package/tests/native-review-cli.test.ts +269 -1
- package/tests/no-self-pause-contract.test.ts +4 -1
- package/tests/odd-routing-canonical-ratchet.test.ts +3 -3
- package/tests/orchestrator-budget.test.ts +7 -2
- package/tests/orchestrator-delegation-mode.test.ts +153 -0
- package/tests/orchestrator-mode-policy.test.ts +175 -0
- package/tests/orchestrator-prompt-budget.test.ts +3 -1
- package/tests/orchestrator-rdd-ownership.test.ts +2 -2
- package/tests/package-manifest.test.ts +11 -9
- package/tests/permission-allowlist.test.ts +202 -0
- package/tests/pi-update-launcher.test.ts +8 -0
- package/tests/pnpm-workspace-config.test.ts +58 -0
- package/tests/primary-session-prompt.test.ts +13 -0
- package/tests/profile-pin.test.ts +29 -2
- package/tests/profile-tier-footer.test.ts +5 -0
- package/tests/profiles-panel-delegation-mode.test.ts +422 -0
- package/tests/questionnaire-view.test.ts +115 -0
- package/tests/quiet-bash-runtime.test.ts +1 -1
- package/tests/quiet-tool-rendering.test.ts +48 -0
- package/tests/rdd-aware-verification-contract.test.ts +16 -11
- package/tests/rdd-customize.test.ts +287 -0
- package/tests/rdd-mode-cache.test.ts +450 -0
- package/tests/rdd-mode-control.test.ts +407 -0
- package/tests/rdd-mode-scope-regression.test.ts +137 -0
- package/tests/rdd-off-independent-regression.test.ts +69 -0
- package/tests/rdd-status-line.test.ts +18 -0
- package/tests/render-cache-performance.test.ts +171 -2
- package/tests/reply-language-anchor.test.ts +173 -0
- package/tests/review-agent-end-preflight.test.ts +1 -1
- package/tests/review-blocker.test.ts +193 -0
- package/tests/review-candidate-owner-retry.test.ts +1 -1
- package/tests/review-candidate-symlink-scan.test.ts +157 -0
- package/tests/review-candidate-view.test.ts +1 -1
- package/tests/review-candidate-windows-boundary.test.ts +131 -0
- package/tests/review-candidate-windows-probe.test.ts +63 -0
- package/tests/review-committed-restart-ack.test.ts +129 -0
- package/tests/review-continuation-registry.test.ts +76 -0
- package/tests/review-controller-native-routing.test.ts +261 -5
- package/tests/review-controller-workspace-root.test.ts +230 -3
- package/tests/review-controller.test.ts +96 -11
- package/tests/review-coordinator-runtime.test.ts +117 -0
- package/tests/review-coordinator.test.ts +195 -0
- package/tests/review-failure-facts.test.ts +87 -0
- package/tests/review-host-relay-routing.test.ts +258 -4
- package/tests/review-host-relay.test.ts +39 -0
- package/tests/review-integration-v2.test.ts +46 -3
- package/tests/review-json-arguments.test.ts +65 -10
- package/tests/review-last-event-closure.test.ts +68 -0
- package/tests/review-loadout-rdd-off-sdk.test.ts +65 -31
- package/tests/review-owner-identity.test.ts +60 -24
- package/tests/review-relay-phase-timing.test.ts +128 -0
- package/tests/review-relay-transport-agent.test.ts +12 -2
- package/tests/review-reviewer-evidence.test.ts +183 -0
- package/tests/review-risk-assessment.test.ts +74 -3
- package/tests/review-session-standing-permission-controller.test.ts +21 -1
- package/tests/review-start-context.test.ts +19 -0
- package/tests/review-tool-prose-budget.test.ts +121 -0
- package/tests/run-test-suite.test.ts +122 -1
- package/tests/runtime-harness.mjs +4 -1
- package/tests/sensitive-path-tools.test.ts +181 -5
- package/tests/session-profile-append-controller-pi.test.ts +60 -31
- package/tests/session-profile-binding.test.ts +19 -1
- package/tests/session-profile-disk-reader-pi.test.ts +58 -16
- package/tests/session-profile-v1-compat.test.ts +35 -1
- package/tests/shell-bar.test.ts +186 -42
- package/tests/shell-panel.test.ts +50 -22
- package/tests/shell-sidebar-fullscreen.test.ts +5 -5
- package/tests/shell-sidebar-layout.test.ts +294 -23
- package/tests/shell-sidebar-scroll-benchmark.test.ts +1 -1
- package/tests/shell-surface-transparent.test.ts +89 -0
- package/tests/shell-todo.test.ts +12 -0
- package/tests/skill-registry.test.ts +838 -5
- package/tests/startup-banner.test.ts +152 -1
- package/tests/startup-home-repo.test.ts +2 -0
- package/tests/support/review-coordinator-runtime.ts +69 -0
- package/tests/task-size-routing-contract.test.ts +5 -3
- package/tests/verifier-admission.test.ts +49 -0
- package/tests/verify-first-launch-contract.test.ts +78 -3
- package/tests/visual-customization-policy.test.ts +39 -6
- package/tests/visual-customize-view.test.ts +573 -9
- package/tests/visual-layout-preview.test.ts +15 -1
- package/tests/visual-profiles.test.ts +11 -0
- package/tests/voice-worker.test.ts +73 -2
- package/tests/windows-session-transport.test.ts +126 -0
- package/tests/work-continuity-contract.test.ts +28 -0
- package/tests/writer-feature-document-admission.test.ts +92 -0
- package/tests/yolo-customize.test.ts +27 -4
- package/tests/yolo-mode.test.ts +23 -18
- package/tests/yolo-session-policy.test.ts +270 -1
package/docs/readme-reference.md
CHANGED
|
@@ -91,8 +91,25 @@ flowchart TD
|
|
|
91
91
|
|
|
92
92
|
This is guidance through existing tools, not a new CLI, phase, state engine, or execution harness. Static prompt tests and scripted hook checks prove instruction delivery, not autonomous model adherence; actual create/update/resume behavior requires observed Pi sessions.
|
|
93
93
|
|
|
94
|
+
## Universal agent-status file
|
|
95
|
+
|
|
96
|
+
Interactive top-level sessions publish private, per-session JSON status files for
|
|
97
|
+
small adapters in any terminal tool, independently of Herdr. See
|
|
98
|
+
[agent-status format and reader example](agent-status.md) for the location, fields,
|
|
99
|
+
heartbeat/staleness rules and privacy guidance. The task-summary preference also
|
|
100
|
+
controls titles in these files; existing Herdr behavior is unchanged.
|
|
101
|
+
|
|
94
102
|
## Herdr active-work summary
|
|
95
103
|
|
|
104
|
+
Choose `/gentle:customize` → **Layout** → **Task summary: on/off** to show or
|
|
105
|
+
hide the active-task summary published to terminal tools (for example Herdr's
|
|
106
|
+
sidebar). On is the default. Highlighting a choice does not save it; press Enter
|
|
107
|
+
or Space to apply it now. The preference is stored as `enabled` in
|
|
108
|
+
`herdr-task-summary.json` in the active launch's Gentle Pi config home (including
|
|
109
|
+
any `GENTLE_PI_CONFIG_HOME` override). Existing summary colors are preserved. Malformed or
|
|
110
|
+
unreadable preferences are refused with an error and left unchanged. This option
|
|
111
|
+
does not edit Herdr config or change the local Todo list.
|
|
112
|
+
|
|
96
113
|
Under Herdr, root interactive Pi sessions publish only the `in_progress` Todo
|
|
97
114
|
title, prefixed with `◐`. No phase, working/verifying label or tool fallback is
|
|
98
115
|
used; prompts, tool arguments, output and Todo notes never supply text. Missing,
|
|
@@ -158,9 +175,17 @@ otherwise `herdr` from `PATH`, without a shell.
|
|
|
158
175
|
| **Skill creation workflow** | Provides the `gentle-ai-skill-creator`/`gentle-ai-skill-improver` skills, `/skill-creation` prompt, and packaged style guide for LLM-first skills. |
|
|
159
176
|
| **Delivery skills** | Includes issue-first PRs, chained PRs, work-unit commits, cognitive docs, comment writing, and Judgment Day review. |
|
|
160
177
|
| **Bounded native review** | Freezes one candidate, dispatches only controller-selected lenses, and records native authority. Review outcomes are informational; delivery follows ordinary repository policy. |
|
|
161
|
-
| **Verified native runtime** | The current source checkout provisions the exact package-local Gentle AI v4.
|
|
178
|
+
| **Verified native runtime** | The current source checkout provisions the exact package-local Gentle AI v4.4.0 runtime: signed, SHA-256-pinned release archives on Darwin/Linux and a Go SumDB-verified source build on Windows x64/arm64. It validates package-local integrity and rejects PATH, global, sibling, symlink, and mode fallbacks. |
|
|
162
179
|
| **Runtime safety** | Blocks destructive shell commands, asks for confirmation for sensitive operations, and blocks direct read/write/edit/grep/find/ls access to sensitive paths (the guard checks the tool's `path` input, so a search scoped to a directory still reads whatever that directory contains, and bash is not covered). Blocks writing a test file that reads git history at a literal commit or points `TMPDIR` inside the working directory (including a relative path such as `.tmp`, `./.tmp`, or `tmp/x`), in the primary session and in subagents. Refuses native review tools (`gentle_review*`) called from inside another tool, such as a codemode script: they run only as direct tool calls. |
|
|
163
180
|
|
|
181
|
+
## TPS notifications
|
|
182
|
+
|
|
183
|
+
Gentle Shell and the `gentle-pi` Pi package automatically load the TPS extension; no separate installation or command is needed. In UI-enabled sessions it shows an informational notification such as `TPS 410.0 tok/s. out 1,025, in 1,750, cache r/w 4,100/50, total 6,925, 2.5s` at the end of a run.
|
|
184
|
+
|
|
185
|
+
The notification sums the reported usage of assistant messages in that run. TPS is output tokens divided by elapsed wall time from `agent_start` to `agent_end`, including tool execution and waits within the run; it is not model-only streaming speed. Automatic retries and queued follow-ups can start separate runs and produce separate notifications. Runs without a start, positive elapsed time, positive output, or a UI do not produce a notification.
|
|
186
|
+
|
|
187
|
+
An old manually installed `tps.ts` (for example, `.pi/extensions/tps.ts`) may produce duplicate notifications alongside the bundled extension. Disable or remove that manual copy yourself if you do not want both; Gentle Shell does not delete it.
|
|
188
|
+
|
|
164
189
|
## Audio notifications
|
|
165
190
|
|
|
166
191
|
Audio is off by default. `/gentle:customize` → **Notifications** shows audio controls directly in the same customization modal, separate from visual settings and profiles: global enable/disable, three independent type groups (**Success**, **Error**, **Attention**) that each own a builtin tone or a validated absolute local WAV, per-event exceptions folded behind **Advanced**, explicit preview, and process mute/resume. Enter cycles a type/event sound; `f` edits its local WAV path inline and `p` previews it. Preview does not enable or save automatic audio. Invalid/unreadable configuration requires fresh explicit replacement confirmation. RPC (including interactive hosts) and children remain silent. Linux/macOS listening and manual lifecycle verification are pending; Windows audio is unavailable. See [sound notifications](sound-notifications.md) for the complete schema, defaults, file security, retention costs and manual matrix.
|
|
@@ -215,11 +240,11 @@ gentle-shell --link
|
|
|
215
240
|
pi install npm:gentle-pi
|
|
216
241
|
```
|
|
217
242
|
|
|
218
|
-
This installs the current npm release
|
|
243
|
+
This installs the current npm release from the `latest` dist-tag. For a reproducible pin, use `pi install npm:gentle-pi@<version>` with a published version. Restart Pi after installation, then run `gentle-ai sync`. Check the [published releases](https://github.com/Gentleman-Programming/gentle-shell/releases) for version-specific runtime and provider-contract pairing.
|
|
219
244
|
|
|
220
245
|
### Source checkout
|
|
221
246
|
|
|
222
|
-
This checkout declares `gentle-pi` `
|
|
247
|
+
This checkout declares its `gentle-pi` version in [`package.json`](../package.json), with a package-local Gentle AI `v4.4.0` pin. Checkout metadata alone is not proof of npm publication; verify the registry version and its release workflow.
|
|
223
248
|
|
|
224
249
|
### Pi compatibility
|
|
225
250
|
|
|
@@ -237,16 +262,11 @@ Malformed/nonobject JSON, symlink/nonregular settings, unsafe paths, or a busy s
|
|
|
237
262
|
|
|
238
263
|
### RDD history and default
|
|
239
264
|
|
|
240
|
-
Native RDD was introduced in `gentle-pi` `v0.15.0` on 2026-07-10 with bounded review transactions.
|
|
241
|
-
|
|
242
|
-
```bash
|
|
243
|
-
# Stable release
|
|
244
|
-
pi install npm:gentle-pi@3.5.1
|
|
245
|
-
```
|
|
265
|
+
Native RDD was introduced in `gentle-pi` `v0.15.0` on 2026-07-10 with bounded review transactions. Current releases include native RDD; use the [installation guidance above](#path-b-inside-an-existing-pi) for the current npm release or an explicit version pin. The introduction version is historical context, not a separate stable/unstable release line.
|
|
246
266
|
|
|
247
|
-
RDD is optional and on by default (since Gentle AI v4.0.0).
|
|
267
|
+
RDD is optional and on by default (since Gentle AI v4.0.0). Open `/gentle:rdd` to inspect the effective mode and deciding source, then explicitly select a repository or machine-wide action. The RDD entry in `/gentle:customize` shows the state checked when the card opened; explicitly applying it closes Customize and opens the same selector with fresh status. Highlighting the entry does not change RDD. Cancelling leaves both unchanged. Repository enable clears a clone-local off but cannot override machine-wide off; machine-wide enable does not clear a clone-local off. `/gentle:review-mode status|enable|disable` retains its existing clone-local behavior. These controls neither grant provider review consent nor change permission modes. The `.git/gentle-ai/candidate-views` parent must sit on a filesystem that honors private POSIX modes (or equivalent Windows ACLs); WSL DrvFS mounts without metadata can reject START before lineage creation.
|
|
248
268
|
|
|
249
|
-
The source checkout's RDD integration installs Gentle AI only into its private `.gentle-ai/` directory. Darwin and Linux use pinned release assets with asset and executable SHA-256 verification (signed archives for source pin `v4.
|
|
269
|
+
The source checkout's RDD integration installs Gentle AI only into its private `.gentle-ai/` directory. Darwin and Linux use pinned release assets with asset and executable SHA-256 verification (signed archives for source pin `v4.4.0`; raw prerelease binaries only under a prerelease pin). Windows x64 and arm64 build the exact `v4.4.0` source tag with a local Go 1.25.10+ toolchain, a sealed Go environment, `GOTOOLCHAIN=local`, and `GOSUMDB=sum.golang.org`; it does not download Go automatically (the [installation wizard](install-wizard.md#pinned-go) can put its own pinned Go first on PATH for that build). Go runs in a short private directory under the system temp directory, never inside the package, because a deep pnpm store path pushes Go's working directories past MAX_PATH; a failed build prints its whole cause chain with the failing command's output tail. Windows provenance is Go-toolchain plus SumDB evidence and postinstall tamper detection, **not** Authenticode or protection against a malicious joint binary-and-manifest replacement. Package-private locks coordinate cooperative concurrent or crashed installers; their tombstones fail closed. A malicious same-user process with write access to package-private `node_modules` is outside that protocol because it can already replace package code, binary, or manifest, and portable Node has no pathname-delete CAS. It never uses `PATH` or a global `gentle-ai` installation. For development or offline installs only, set `GENTLE_PI_SKIP_GENTLE_AI_INSTALL=1`; native review operations then fail closed with an actionable `package-local-binary-missing` error. To recover explicitly, if `GENTLE_PI_SKIP_GENTLE_AI_INSTALL` is set, remove or unset it before changing to the installed `gentle-pi` package directory. Then run `node scripts/install-gentle-ai.mjs`. This invokes the package-owned installer without relying on a global binary or npm configuration change. A missing binary can result from skipped lifecycle scripts, but does not prove that lifecycle scripts were disabled.
|
|
250
270
|
|
|
251
271
|
Recommended companion packages, into the standalone `gentle-shell` home:
|
|
252
272
|
|
|
@@ -305,7 +325,7 @@ gentle-shell home [link|isolated|<path>]
|
|
|
305
325
|
gentle-shell [home selectors] setup [--dry-run]
|
|
306
326
|
gentle-shell upgrade [--channel release|main]
|
|
307
327
|
gentle-shell upgrade --rollback
|
|
308
|
-
gentle-shell update [pi|self|--self|--all] --latest
|
|
328
|
+
gentle-shell update [pi|self|--self|--all] [--latest]
|
|
309
329
|
gentle-shell self-uninstall [--dry-run] [--yes] [--include-shared]
|
|
310
330
|
```
|
|
311
331
|
|
|
@@ -378,19 +398,19 @@ Tradeoff: `--link` shares one credential store with pi; `import-pi` duplicates i
|
|
|
378
398
|
|
|
379
399
|
`gentle-shell install npm:<pkg>`, `gentle-shell remove ...`, `gentle-shell list`, `gentle-shell update ...`, `gentle-shell config`, and `gentle-shell auth ...` run pi's own commands against the resolved home — the `--isolated` home by default, or your own pi home with `--link`. A launcher flag before the subcommand (`--link`, `--isolated`, `--home <path>`) still selects which home the subcommand runs against. Running `gentle-shell install npm:gentle-pi` inside the isolated home is unnecessary: the launcher already loads the Gentle Shell package itself (see "Loading the package" below).
|
|
380
400
|
|
|
381
|
-
`gentle-shell list` and extension updates follow that same home selection. `gentle-shell update --extensions-only` preserves Pi's extension-only command; `--extensions`, package targets, and model updates also stay with Pi.
|
|
401
|
+
`gentle-shell list` and extension updates follow that same home selection. `gentle-shell update --extensions-only` preserves Pi's extension-only command; `--extensions`, package targets, and model updates also stay with Pi. In a bundled Shell-owned home, `gentle-shell update --extensions` also updates the unversioned Shell-managed `gentle-engram` Pi package. Pi's normal startup package-update notice lists it when newer; opening Shell does not install that update. The native Engram executable is separate.
|
|
382
402
|
|
|
383
403
|
`gentle-shell update` updates the selected Pi through its verified npm or pnpm global owner, avoiding Pi's self-update refusal for pnpm v11 linked stores. Ownership requires successful global listing JSON, an exact canonical listed package-root/CLI match, and binding to the selected runtime. An adjacent peer (the launcher's `bundled` runtime) is supplied by the exact listed `gentle-pi` package: that Shell package is reinstalled at its current version so the manager re-resolves the peer (a main-channel `<version>-main.<sha12>` Shell, which is never published, from the tarball `gentle-shell upgrade --channel main` packed under `<config home>/main/packages/` (an absolute `GENTLE_PI_CONFIG_HOME`, else `~/.pi/gentle-ai`; a relative override is refused), refusing without installation when it is missing and naming `gentle-shell upgrade --channel release` then `--channel main` as the rebuild path), and a separate global Pi is never the target, because updating it leaves the peer a Shell install runs unchanged. A `PATH` or `GENTLE_SHELL_PI` runtime is supplied only by its own listed global Pi package; when that executable is a package-manager shim (pnpm's POSIX shim, a `.cmd`), Shell follows the single `dist/bundle/cli.js` it names, relative to the shim's directory, and refuses shims naming none or several. Pi and Shell are never installed together in a comma group, and unrelated packages are never reinstalled. Merely residing under `PNPM_HOME` proves nothing. Adjacent peers resolve where the package manager places them: nested under the Shell package (npm), beside it in pnpm's linked store, or in the global group's own `node_modules`. Linked Pi entries remain rejected. A source-linked Shell instead updates its exact checkout's local Pi, without replacing its global link: single-project Git roots only, an npm/pnpm `packageManager` declaration (pnpm at least that version; npm exact) and matching available version, a direct registry Pi range, and one matching lockfile are required. Multi-project/ancestor workspaces and conflicting lockfiles refuse before installation. Root-only pnpm configuration is retained after read-only manager queries prove a sole root project; updates do not ignore or rewrite its security policy. The named update disables lifecycle scripts and range changes, but may update Pi's transitive lockfile graph. pnpm updates additionally require that the actual old global group contains only the target top-level package: aggregated listings may contain other, separate groups, but shared groups are rejected because pnpm can remove the whole old group. Unknown, malformed, failed, or ambiguous ownership refuses before installation; update unsupported layouts with their supplying package manager.
|
|
384
404
|
|
|
385
405
|
After a successful install, Shell reads the supplied Pi version back from a fresh global listing and reports it, naming the previous version when it changed. An unchanged pnpm result also names pnpm's `minimumReleaseAge` setting: pnpm installs only releases older than that age (pnpm 11 defaults to 4320 minutes), so a very recent Pi release is picked up once it is old enough; Shell reports the rule rather than overriding it. Global listings, manager version probes and global installations run from the system temporary directory, so a project's `packageManager` pin in the current directory never changes which pnpm answers. A verified source update alone runs from the checkout and rechecks the Shell link, unchanged manifest and adjacent Pi there instead of reading a separate global Pi. When the version cannot be read back, the output says so and points at `gentle-shell --version`.
|
|
386
406
|
|
|
387
|
-
Prefix-bundled
|
|
407
|
+
Prefix-bundled `gentle-shell update` selects the newest published stable Pi without the release's verified lockfile; `--latest` is an alias (see [`upgrade`](#upgrade-subcommand-and-channels)). Outside a bundled install `--latest` uses the ordinary managed update, including a source checkout's declared range. `update --all` forwards extension updates after the Pi attempt, and reports a Pi failure even if extensions succeed. Explicit extension pins remain pinned. Managed Pi self updates reject `--force`; ownership refusals stop without mutation.
|
|
388
408
|
|
|
389
409
|
### `setup` subcommand
|
|
390
410
|
|
|
391
|
-
**Bundled Engram safety:** Shell shares the global Engram server on `127.0.0.1:7437`, like other agents' hooks. A running server is reused only through Engram's exact `GET /compatibility` ready contract; when nothing listens, Shell starts the checksum-pinned Engram 3.5.2 core as a detached `engram serve` (Engram's default port and `~/.engram`, no update check, no GitHub tokens) and waits up to 10 seconds for that same contract, so you never start the server yourself. An existing store does not disable memory by itself, whoever created it; only a database header from a newer Engram schema keeps Shell from starting its older core on it. Anything else (a server that does not verify, a token-protected or unknown server, a start that fails or never reports ready) disables memory for that launch with an explanation of the missing safety evidence and backup precautions (matching versions or updating alone do not prove compatibility); Shell never stops or replaces a listening server. Shell always points `ENGRAM_BIN` at its own guard (`bin/engram-guard`), which fails before any store access for every gentle-engram from 0.4.1 on, whichever Pi route loaded it, so memory reaches the store only through the verified server's `ENGRAM_URL`. No compatibility is inferred from versions. An explicit `ENGRAM_BIN` or `ENGRAM_URL` is never replaced and bypasses the guard.
|
|
411
|
+
**Bundled Engram safety:** Shell shares the global Engram server on `127.0.0.1:7437`, like other agents' hooks. A running server is reused only through Engram's exact `GET /compatibility` ready contract; when nothing listens, Shell starts the checksum-pinned Engram 3.5.2 core as a detached `engram serve` (Engram's default port and `~/.engram`, no update check, no GitHub tokens) and waits up to 10 seconds for that same contract, so you never start the server yourself. An existing store does not disable memory by itself, whoever created it; only a database header from a newer Engram schema keeps Shell from starting its older core on it. Anything else (a server that does not verify, a token-protected or unknown server, a start that fails or never reports ready) disables memory for that launch with an explanation of the missing safety evidence and backup precautions (matching versions or updating alone do not prove compatibility); Shell never stops or replaces a listening server. Shell always points `ENGRAM_BIN` at its own guard (`bin/engram-guard`), which fails before any store access for every gentle-engram from 0.4.1 on, whichever Pi route loaded it, so memory reaches the store only through the verified server's `ENGRAM_URL`. No compatibility is inferred from versions. An explicit `ENGRAM_BIN` or `ENGRAM_URL` is never replaced and bypasses the guard. Shell verifies the selected companion's `engram.startupPolicy: 1`; a failed check is reported and Shell still starts. In a Shell-owned home, the old `npm:gentle-engram@0.4.2` registration is migrated to unversioned `npm:gentle-engram` through Pi's package manager without installing an update. Linked/foreign homes and other pinned or local selections are preserved. See [bundled startup safety](bundled-install.md#engram-startup-safety) for the full rules and known limits.
|
|
392
412
|
|
|
393
|
-
The memory decision never skips or fails bundled setup: it
|
|
413
|
+
The memory decision never skips or fails bundled setup: it publishes the verified core and runs Gentle AI, then only selects the Engram environment (the guard as `ENGRAM_BIN`, plus `ENGRAM_URL` when memory is allowed) for setup children and the launched Pi. `--dry-run` installs nothing. Non-bundled setup keeps the existing behavior described below.
|
|
394
414
|
|
|
395
415
|
`gentle-shell setup` provisions the resolved home — the same home selection as any other invocation, `--isolated` by default, or `--link`/`--home <path>` when given before `setup` — with the same companion packages a regular `gentle-ai install --agent pi` installs into a Pi agent home: `npm:gentle-pi`, `npm:gentle-engram`, `npm:@juicesharp/rpiv-ask-user-question`, `npm:pi-web-access`, `npm:pi-btw`, plus running `pi-engram init`. It never touches `~/.pi/agent` unless you pass `--link`.
|
|
396
416
|
|
|
@@ -553,13 +573,17 @@ package.
|
|
|
553
573
|
is named and keeps the path above. Details:
|
|
554
574
|
[Migration](bundled-install.md#migration-from-a-global-install).
|
|
555
575
|
|
|
556
|
-
`gentle-shell update`
|
|
557
|
-
resolved home. In a bundled install
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
576
|
+
`gentle-shell update` updates the selected Pi; package updates reach Pi in the
|
|
577
|
+
resolved home. In a bundled install, self-update forms (no target, `--self`,
|
|
578
|
+
`self`, `pi`, `--all`, or `self`/`pi` with `--extensions`) select the newest
|
|
579
|
+
published stable Pi. `--latest` is an alias. The command warns that features
|
|
580
|
+
relying on audited Pi internals (such as Vim) may turn off, then installs without
|
|
581
|
+
the release's verified lockfile, verifies and activates the pair, and keeps the
|
|
582
|
+
previous version for rollback. If the latest tag moves backwards, it changes
|
|
583
|
+
nothing. A later Shell release keeps a newer active Pi without applying the
|
|
584
|
+
release's lockfile to it. `--all` still forwards extensions on Pi failure and
|
|
585
|
+
returns nonzero; explicit extension pins remain pinned. Source-linked updates
|
|
586
|
+
remain constrained by the checkout's declared Pi range.
|
|
563
587
|
In a bundled install Pi and the agent's commands keep your own environment;
|
|
564
588
|
Pi installs packages with Gentle Shell's npm through the `npmCommand` setting
|
|
565
589
|
of its own home. Details: [Bundled install](bundled-install.md#launcher-in-a-bundled-install).
|
|
@@ -636,7 +660,7 @@ Outside Herdr, the petal prompt frame replaces Pi's standard loader row. Inside
|
|
|
636
660
|
|
|
637
661
|
### Herdr blocker events
|
|
638
662
|
|
|
639
|
-
The Gentle AI adapter projects native `gentle-pi:ask-user-question:blocked`, legacy `rpiv:ask-user:blocked`, choice blockers,
|
|
663
|
+
The Gentle AI adapter projects native `gentle-pi:ask-user-question:blocked`, legacy `rpiv:ask-user:blocked`, choice blockers, guarded confirmations, and every `gentle_review` authorization dialog (review consent and maintenance approvals, labeled `Review authorization awaiting input`) into one balanced `herdr:blocked` interval. It emits one activation when blocking begins and one release after the last source clears, retaining the initial generic label without relabel pulses. Native and legacy questionnaires are tracked independently; duplicate or malformed source events are ignored. Questionnaire answers, prompts, and commands are not included in the projection. This adapter emits local events; transport availability is a separate concern.
|
|
640
664
|
|
|
641
665
|
## Diagnose STATUS timing without retrying it
|
|
642
666
|
|
|
@@ -669,6 +693,7 @@ Synthetic tests prove the observer's behavior, not the cause of issue #213. A ne
|
|
|
669
693
|
/gentle:profiles Open the models screen on this repository's profile. Subcommands: export <name>, import, publish <name>, export-routing, restore-routing, clear.
|
|
670
694
|
/gentle:persona Switch between gentleman and neutral persona modes.
|
|
671
695
|
/gentle:background-subagents Show or set the managed background-subagents policy, with its deciding source.
|
|
696
|
+
/gentle:rdd Open the interactive RDD selector for this repository or an explicit machine-wide choice.
|
|
672
697
|
/gentle:review-mode Show or set the receipt-driven development mode (status|enable|disable).
|
|
673
698
|
/gentle:status-timing Arm, clear, or inspect session-only STATUS diagnostics (enable|disable|show).
|
|
674
699
|
/gentle:animations Show or set global animations: quality, performance, or potato.
|
|
@@ -706,7 +731,7 @@ Size and uncertainty can call for scoped exploration or delegation within ODD. T
|
|
|
706
731
|
|
|
707
732
|
### Delegation triggers
|
|
708
733
|
|
|
709
|
-
`gentle-pi` keeps the parent session thin and delegates at the narrowest useful point. When the Pi Subagents extension is installed, the preferred runtime is the `subagent_*` tool family because it runs the user's configured project/global subagent definitions and preserves history/background behavior. With the background policy on, delegations default to background mode: the terminal stays free and each result comes back as a message that starts a new turn; task mode is the bounded print-mode alternative and also supports delegations that must ask the user something mid-flight. Background work requires a live interactive/RPC parent; `subagent_run` and `subagent_continue` reject background mode in the single-shot modes `pi -p` and `pi --mode json`, which exit before a later result can be received. If those tools are unavailable, the parent
|
|
734
|
+
`gentle-pi` keeps the parent session thin and delegates at the narrowest useful point. When the Pi Subagents extension is installed, the preferred runtime is the `subagent_*` tool family because it runs the user's configured project/global subagent definitions and preserves history/background behavior. With the background policy on, delegations default to background mode: the terminal stays free and each result comes back as a message that starts a new turn; task mode is the bounded print-mode alternative and also supports delegations that must ask the user something mid-flight. Background work requires a live interactive/RPC parent; `subagent_run` and `subagent_continue` reject background mode in the single-shot modes `pi -p` and `pi --mode json`, which exit before a later result can be received. If those tools are unavailable, the parent falls back to Pi's native `Agent` tool in the current runtime; it must never fall back to an external pane, terminal, session, window, or remote worker. If no in-runtime mechanism is available, the parent stops and tells the user.
|
|
710
735
|
|
|
711
736
|
| Trigger | Required behavior |
|
|
712
737
|
| --------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
|
@@ -822,7 +847,7 @@ flowchart TD
|
|
|
822
847
|
|
|
823
848
|
VALIDATE is informational. Commit, push, PR, and release commands follow ordinary repository policy; RDD never authorizes, rewrites, consumes review state for, or blocks them. Dangerous-command safety and destructive-review consent remain independent.
|
|
824
849
|
|
|
825
|
-
For the source checkout, native contract pairing is exact: this adapter resolves only the integrity-verified package-local Gentle AI v4.
|
|
850
|
+
For the source checkout, native contract pairing is exact: this adapter resolves only the integrity-verified package-local Gentle AI v4.4.0 executable, independently hashes it, then negotiates `gentle-ai.review-integration/v2` outside the repository. Capabilities are cached by that executable digest. Every START, target status, FINALIZE, and validate request passes the same contract identifier. Negotiated envelopes decode exactly against the vendored schemas; `recover` routes only the provider-selected `action_disposition`, and optional additions require a future compatible schema/minor that the provider explicitly advertises and the consumer negotiates.
|
|
826
851
|
|
|
827
852
|
Contract `/v2` replaces the Base64 `candidate_diff` reviewer transport of `/v1` with immutable `base_tree`/`candidate_tree` plus an ordered `changed_path_manifest` and never an inline patch. `gentle-pi` negotiates `/v2` only, with no dual-lane fallback; the cutover landed as one atomic commit against gentle-ai v2.2.2 (tracked by the `migrate-review-integration-v2` change), and the `/v1` schemas stay packaged because the `/v2` schemas `$ref` into their fragments. This provider contract version is unrelated to Pi's own internal "compact-v2" review-authority naming used below — the shared digit is coincidental, not a version pairing.
|
|
828
853
|
|
|
@@ -834,7 +859,7 @@ Windows skips automatic candidate-owner sweeping during startup and candidate ma
|
|
|
834
859
|
|
|
835
860
|
On POSIX, if START rejects a group- or world-accessible `.git/gentle-ai/candidate-views` parent, Pi reports `candidate-owner-parent-privacy` before native START. When a sanitized probe shows the filesystem cannot represent private POSIX modes (for example WSL DrvFS mounts without `metadata`), Pi instead reports `candidate-owner-parent-chmod-ineffective` with guidance to move the Git common directory to a POSIX-metadata filesystem or enable metadata support. Inspect that parent's ownership and permissions and correct them out of band before retrying; Pi does not change them automatically. Other owner-preparation failures retain a generic diagnostic rather than exposing filesystem errors. `inspect` runs the same read-only privacy assert before advertising a ready `review.start` and withholds the advertisement with the identical typed diagnostic under `candidate-view-preflight-blocked`, so STATUS and START stop disagreeing about a candidate whose view cannot materialize (gentle-ai#2196).
|
|
836
861
|
|
|
837
|
-
Once the source checkout's pinned gentle-ai runtime (currently v4.
|
|
862
|
+
Once the source checkout's pinned gentle-ai runtime (currently v4.4.0) has written review authority, rollback MUST preserve every native store and receipt and MUST NOT run a downgraded binary against that repository. Disable the Pi route or roll forward to a compatible authority-aware release instead; deleting authority data or reinstalling an older binary is not a rollback path.
|
|
838
863
|
|
|
839
864
|
### FINALIZE wrapper input
|
|
840
865
|
|
|
@@ -982,7 +1007,7 @@ Skill discovery is a guardrail, not a workflow router: it helps Pi load the righ
|
|
|
982
1007
|
|
|
983
1008
|
`gentle-pi` also ships package-owned `gentle-ai-skill-creator` and `gentle-ai-skill-improver` skills plus the `/skill-creation` prompt for creating or updating project skills. Both skills use `docs/skill-style-guide.md` as their normative style contract. The workflow checks for duplicates, keeps `SKILL.md` concise, uses one-line trigger-rich frontmatter, and reminds maintainers to refresh the registry after skill changes.
|
|
984
1009
|
|
|
985
|
-
Packaged skills include `cognitive-doc-design`, `comment-writer`, `gentle-ai-judgment-day`, `gentle-ai-skill-creator`, `gentle-ai-skill-improver`, and the other delivery/review skills under `skills/`.
|
|
1010
|
+
Packaged skills include `gentle-ui-design` for web and product interface guidance, `cognitive-doc-design`, `comment-writer`, `gentle-ai-judgment-day`, `gentle-ai-skill-creator`, `gentle-ai-skill-improver`, and the other delivery/review skills under `skills/`.
|
|
986
1011
|
|
|
987
1012
|
Compatibility: the package keeps the existing skill folders (`skills/branch-pr`, `skills/cognitive-doc-design`, `skills/comment-writer`, `skills/judgment-day`, `skills/skill-creator`, `skills/skill-registry`, and `skills/work-unit-commits`) but their exported frontmatter names are prefixed to avoid collisions with user/global skills. Treat former package names such as `branch-pr`, `cognitive-doc-design`, `comment-writer`, `judgment-day`, `skill-creator`, `skill-registry`, and `work-unit-commits` as legacy aliases in prose; runtime skill selection should use `gentle-ai-branch-pr`, `gentle-ai-cognitive-doc-design`, `gentle-ai-comment-writer`, `gentle-ai-judgment-day`, `gentle-ai-skill-creator`, `gentle-ai-skill-registry`, and `gentle-ai-work-unit-commits`.
|
|
988
1013
|
|
|
@@ -1073,7 +1098,7 @@ Saved globally at:
|
|
|
1073
1098
|
~/.pi/gentle-ai/models.json
|
|
1074
1099
|
```
|
|
1075
1100
|
|
|
1076
|
-
Global routing is owned by profiles: edit a profile's routing on the models screen and apply it with **Make default**. Applying writes the shared global config at `~/.pi/gentle-ai/models.json
|
|
1101
|
+
Global routing is owned by profiles: edit a profile's routing on the models screen and apply it with **Make default**. Applying writes the shared global config at `~/.pi/gentle-ai/models.json`. Existing project-local `.pi/gentle-ai/models.json` files are still read as a legacy source and merged under the global config: an agent entry present only in the project file still applies, while an entry present in both prefers the global one. This merge is skipped while a pinned or active profile exists and the global file is present, so an agent a profile deliberately omits cannot be resurrected by a stale project-local entry; routing then comes from the global file (and, from the profile's own stored snapshot, when the global file is still missing) alone.
|
|
1077
1102
|
|
|
1078
1103
|
Startup and reload materialize saved non-empty routing, but never treat a saved empty agent entry (`{}`) as permission to delete an existing `subagents.json` model profile or agent frontmatter. This also preserves previously materialized routes and routes whose agent definition is missing. To clear routing, make a profile whose entries are inherit the default (or confirm a profile replacement) on the models screen. Activation needs no ownership sidecar or lock.
|
|
1079
1104
|
|
|
@@ -1171,6 +1196,25 @@ The `profiles` values use the same per-agent shape as `models.json`. Profile nam
|
|
|
1171
1196
|
|
|
1172
1197
|
The store is replaced atomically through a sibling temp file and a rename, so an interrupted write cannot leave truncated JSON behind. **Make default** writes `profiles.json` first and then materializes routing; if materialization fails, the previous active marker is restored, and the previous routing is restored when a profile was active before. With no previously active profile there is no routing to restore: `models.json` keeps the new routing and the warning says so. Anything that could not be restored is named in the warning.
|
|
1173
1198
|
|
|
1199
|
+
### Orchestrator workflow mode
|
|
1200
|
+
|
|
1201
|
+
Every profile also carries an orchestrator workflow mode: `organic` or `full-delegation`. They are peers, not a better and a worse option — the mode decides **who writes**, nothing else.
|
|
1202
|
+
|
|
1203
|
+
- **organic** — the orchestrator may implement inline, and delegates to a writer when a delegation trigger fires.
|
|
1204
|
+
- **full-delegation** — the orchestrator never implements. Every authorized mutation goes to a bounded writer with its code, tests and docs together, while the orchestrator keeps authorize, explore-for-routing, decide, ask, track, commit, verify and report.
|
|
1205
|
+
|
|
1206
|
+
On the models screen, `w` toggles the shown profile's mode and `s` saves it together with that profile's routing. The Orchestrator row shows the mode beside the tier indicator, both modes with the same weight and differenced only by glyph and label, and its description line states what each mode does.
|
|
1207
|
+
|
|
1208
|
+
The mode travels with the profile and is resolved on every prompt build, so switching profiles changes the orchestrator's rules on the next turn in both directions, with no restart. It is stored beside the profiles in `profiles.json`, under `workflow` keyed by profile name: `organic` needs no entry, so a profile that never opted in serializes exactly as before, and only a `full-delegation` mode is written. `GENTLE_PI_ORCHESTRATOR_MODE=organic|full-delegation` overrides the profile for the process, which is meant for CI and headless runs.
|
|
1209
|
+
|
|
1210
|
+
The mode changes the runtime as well as the prompt, so the two never disagree:
|
|
1211
|
+
|
|
1212
|
+
- **Writer admission.** Organic mode admits a generic writer only for a task of an existing feature document or past the context backstop. Full delegation mode admits it for any authorized change, small ones included. Allowed edit surfaces stay mandatory in both modes.
|
|
1213
|
+
- **What the orchestrator reads.** In full delegation mode the organic routing rules are removed, not annotated: the ODD steps are projected without their inline route, and the session's lazy detail is `assets/orchestrator-full-delegation-card.md` instead of the organic delegation and writer cards. Task Size still decides tracking and risk, never who writes.
|
|
1214
|
+
- **Runtime notices.** The context backstop, exploration budget and todo rules drop their inline wording in full delegation mode.
|
|
1215
|
+
|
|
1216
|
+
`assets/orchestrator-full-delegation-card.md` is generated: it projects the rules both modes share out of `orchestrator-delegation.md`, `orchestrator-writer.md` and `orchestrator-delegation-reference.md`, which stay their single source. After editing any of them, run `node scripts/build-full-delegation-card.mjs --write`; `tests/full-delegation-closure.test.ts` fails while the card is out of date, and also fails if a full delegation session could reach an organic routing rule through any asset it names.
|
|
1217
|
+
|
|
1174
1218
|
### Model fallback chains
|
|
1175
1219
|
|
|
1176
1220
|
Each profile can give every agent an ordered list of fallback models, kept in `profile-fallbacks.json` next to `profiles.json` (older versions keep reading `profiles.json` and simply never fall back):
|
|
@@ -1293,6 +1337,7 @@ The notice appears once per distinct change: further launches stay quiet until t
|
|
|
1293
1337
|
| `/gentle:animations` | Shows or sets global animations (`status\|quality\|performance\|potato`); no argument opens a selector. |
|
|
1294
1338
|
| `/gentle:vim` | Shows or sets opt-in prompt Vim mode (`status\|enable\|disable`); no argument opens a selector. |
|
|
1295
1339
|
| `/gentle:telemetry` | Shows or changes the local Gentle AI telemetry trigger (`status\|enable\|disable\|preview`). |
|
|
1340
|
+
| `/gentle:rdd` | Shows effective RDD mode and source, with explicit repository and machine-wide choices; cancellation changes nothing. |
|
|
1296
1341
|
| `/gentle:review-mode` | Shows or sets the receipt-driven development mode (`status\|enable\|disable`); user-initiated only, Pi automation never toggles it. |
|
|
1297
1342
|
| `/gentle:scratch` | Lists (`list`, the default) or cleans (`clean`) this session's scratch dir and the clones and worktrees recorded by this and ended sessions; see [Session scratch and artifact ledger](#session-scratch-and-artifact-ledger). |
|
|
1298
1343
|
| `/gentle:status-timing` | Arms timing for the next authorized STATUS-bearing tool call, clears it, or manually shows the last summary (`enable\|disable\|show`). Off by default, session-only, no native invocation. |
|
|
@@ -1325,7 +1370,7 @@ With the policy `on`, `subagent_run` defaults to `mode: "background"` at the run
|
|
|
1325
1370
|
|
|
1326
1371
|
Background delegation is off unless you turn it on. The policy is user-owned: only an explicit `/gentle:background-subagents enable` or `disable` writes it, and Pi automation never toggles it.
|
|
1327
1372
|
|
|
1328
|
-
An agent whose explicit `tools` frontmatter includes `bash_background` fails before spawn when the effective background-subagents policy is `off`, in either task or background mode. Admission resolves policy at dispatch using the request's environment and config home, including queued tasks. The error names the policy file, the exact opt-in shape `{"schema":"gentle-pi.background-subagents/v1","policy":"on"}`, and `/gentle:background-subagents enable|disable|status`. Agents without explicit tools are unchanged; the child missing-tools check remains the backstop for other names. Policy `on` passes this admission check
|
|
1373
|
+
An agent whose explicit `tools` frontmatter includes `bash_background` fails before spawn when the effective background-subagents policy is `off`, in either task or background mode. Admission resolves policy at dispatch using the request's environment and config home, including queued tasks. The error names the policy file, the exact opt-in shape `{"schema":"gentle-pi.background-subagents/v1","policy":"on"}`, and `/gentle:background-subagents enable|disable|status`. Agents without explicit tools are unchanged; the child missing-tools check remains the backstop for other names. Policy `on` passes this admission check and forwards the job capability to the child, which registers `bash_background`, `job_list`, and `job_stop` for its own session and reports its job state so a running job gets one bounded drain window at settlement before the ordinary orderly shutdown. The `monitor` tool stays parent-only, and child jobs are never routed through the parent.
|
|
1329
1374
|
|
|
1330
1375
|
```text
|
|
1331
1376
|
/gentle:background-subagents Report the effective policy, the deciding source, and the resolved capability.
|
|
@@ -14,6 +14,16 @@ node scripts/render-cache-performance.mjs \
|
|
|
14
14
|
|
|
15
15
|
Default matrix: 100/1,000/5,000 tools × 100/160 columns × float/neon × pulse, scroll, typing, streaming, append, resize and theme. Four fresh-process paired replicas alternate before/after order (AB/BA/AB/BA). `--counts`, `--widths`, `--styles`, `--samples`, `--repetitions` and `--live-ms` override these settings; use small counts and samples for a smoke run. Run serially on an otherwise idle machine.
|
|
16
16
|
|
|
17
|
+
The same entry point is available as `pnpm perf:render-cache -- <args>`, which keeps the harness discoverable without duplicating its arguments.
|
|
18
|
+
|
|
19
|
+
## Host requirement
|
|
20
|
+
|
|
21
|
+
`--pi-root` must be a Pi install root, not the installed package directory: it needs `package.json`, `dist/` and a `node_modules/` carrying `@earendil-works/pi-tui`, `@earendil-works/pi-ai`, `@earendil-works/pi-agent-core` and `jiti`. The command validates it before it fingerprints either worktree, and the worker re-checks it before importing the host. Both refuse anything else and name the resolved root, the package and version they actually found, and the audited version, instead of failing on a bare read error.
|
|
22
|
+
|
|
23
|
+
The audited host version is 1.2.0, the same minimum the package declares (`>=1.2.0`), so the harness fails closed on any other version. Moving the pin requires re-auditing the private frame surface against the newer host and re-running the harness there.
|
|
24
|
+
|
|
25
|
+
On Windows without Developer Mode symlink creation is unavailable, so the report-path protection test skips with an explicit reason there; it still runs wherever symlinks are permitted.
|
|
26
|
+
|
|
17
27
|
## Read the evidence
|
|
18
28
|
|
|
19
29
|
- `runs`: raw action-plus-frame wall/CPU times, cold render, construction time, paint/projection counters, visible-screen hashes, memory snapshots and a separate live quality-timer/typing run.
|
|
@@ -25,4 +35,4 @@ Default matrix: 100/1,000/5,000 tools × 100/160 columns × float/neon × pulse,
|
|
|
25
35
|
|
|
26
36
|
Reports must use a new path outside the source/harness/host roots; existing files and symlinks are rejected. Read only reports with a `finished` field after successful process exit: progress writes are not atomic.
|
|
27
37
|
|
|
28
|
-
The transcript is synthetic. Deterministic cases drive the real quality interval callback with controlled time; the separate live run uses real timers and records input-to-frame latency and timer drift. The ANSI sink has no terminal emulator or real terminal-write cost. Model/network latency, other extensions and real session restore/startup are not measured. Private APIs are audited only on Pi and pi-tui 1.
|
|
38
|
+
The transcript is synthetic. Deterministic cases drive the real quality interval callback with controlled time; the separate live run uses real timers and records input-to-frame latency and timer drift. The ANSI sink has no terminal emulator or real terminal-write cost. Model/network latency, other extensions and real session restore/startup are not measured. Private APIs are audited only on Pi and pi-tui 1.2.0 and fail closed on version/editor identity/output mismatches. Preserve raw data and report replicas separately; consecutive frames are correlated, so neither p95 nor a render speedup describes the entire application's latency.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Experimental ordinary review coordinator
|
|
2
|
+
|
|
3
|
+
Enable `GENTLE_PI_EXPERIMENTAL_REVIEW_COORDINATOR=1` before loading the extension to register `gentle_review_run` in a parent session. The tool is absent by default and in managed child sessions. It is model-only and follows the existing direct-call restriction; it is not a codemode entry point.
|
|
4
|
+
|
|
5
|
+
The coordinator calls the existing wrapped review facade executors. Native mode, host consent, session identity, workspace/base selection, opaque bindings and native admission remain authoritative. It never parses binding strings, invents results, retries a failed capture or authorizes delivery.
|
|
6
|
+
|
|
7
|
+
For a fresh ordinary review, provide pertinent `lenses` and `lensesReason`, optionally `workspaceRoot`, a committed selector (`baseRef` together with `committedOnly: true`), and an existing `requestContextPath`. [Frozen request intent](review-request-context.md) is accepted only for a fresh transaction. Unresolved consent returns to the host.
|
|
8
|
+
|
|
9
|
+
The loop follows the native next_transition kind. It runs supported facade execute offers, captures the exact ordered opaque bindings, returns authored input to the model, and surfaces stop unchanged. It never reads native states, reason codes, binding contents or capture closure variants. Facade operations that require additional maintenance authorization return to the caller.
|
|
10
|
+
|
|
11
|
+
Native correction_request explicitly identifies a plan that needs authored input. The coordinator returns that request to the model without deriving requiresInput metadata from submission domains or changing ordinary STATUS output. Unsupported capture responses return control to the caller. Correction-plan authoring and edits remain explicit handoffs; after an authorized edit, resume with the same lineage and workspace/base selection. Native decides which opaque capture comes next.
|
|
12
|
+
|
|
13
|
+
The existing capture facade presents the model-run forecast before execution. Every observed forecast is also preserved losslessly in the final forecasts array, including when a later operation refuses. The primary model must relay every entry in the user’s language, preserving all fields and counts. These forecasts are informational, not review consent. A missing display, changed session or disabled mode prevents the run. Accepted captures refresh bound STATUS for the next transition; failed or reoffered captures never retry.
|
|
14
|
+
|
|
15
|
+
Approval closes through the offered facade acknowledgement. The verified ACK envelope identifies the frozen target and burned authority. There is no post-ACK STATUS, ASSESS or replay, and closure makes no claim about subsequent edits or permission to commit, push or publish.
|
|
16
|
+
|
|
17
|
+
## Validation and rollout
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
node --experimental-strip-types --test tests/review-coordinator.test.ts tests/review-coordinator-runtime.test.ts tests/review-last-event-closure.test.ts tests/rdd-off-native-refusal.test.ts
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Unit and registered-runtime tests cover opaque binding order, authored input, native stop, state/reason independence, consent, cancellation, mode/session changes, failed or repeated captures, identity drift and terminal ACK without follow-up queries. Runtime fixtures are in-memory authority simulations; they do not claim real native approval.
|
|
24
|
+
|
|
25
|
+
Historical measurements, candidate identities and their limitations live in [issue #2881](https://github.com/Gentleman-Programming/gentle-shell/issues/2881) and [PR #2884](https://github.com/Gentleman-Programming/gentle-shell/pull/2884). Benchmark data is not shipped in the npm package and does not certify this candidate.
|
|
26
|
+
|
|
27
|
+
SDK event accounting sees the outer coordinator call. Its returned metrics.steps describe internal facade calls; those direct calls emit no additional tool_call/tool_result or timing events.
|
|
28
|
+
|
|
29
|
+
When the relay supplies execution evidence, the final reviewer_runs array retains snapshots of the resolved reviewer model, phase, durations and available reported usage/cost. Groups include all prepared runs, even when submission later stops; legacy submitted-only diagnostics are not counted again. Missing usage stays unknown. This is not a billing ledger: sibling runs can remain unreported when group preparation fails before returning its results, and thrown/cancelled calls retain their existing behavior. The coordinator computes no cost total and emits no additional SDK accounting events.
|
|
30
|
+
|
|
31
|
+
Reviewer authentication and completion share a host deadline. Cancellation or an expired deadline prevents further dispatch, and late results are not admitted. A provider that ignores cancellation may continue consuming resources after the host stops waiting.
|
|
32
|
+
|
|
33
|
+
Related delivery: [issue #2881](https://github.com/Gentleman-Programming/gentle-shell/issues/2881). Keep the feature default-off until independent security/reliability review and an opt-in real-use pilot complete.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Frozen request intent in Shell
|
|
2
|
+
|
|
3
|
+
Fresh ordinary `gentle_review` START accepts `input.requestContextPath`, for example:
|
|
4
|
+
|
|
5
|
+
```json
|
|
6
|
+
{"operation":"start","input":"{\"mode\":\"ordinary\",\"requestContextPath\":\"docs/feature-request.md\",\"lenses\":[\"risk\"],\"lensesReason\":\"Changes document authorization\"}"}
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Relative paths resolve against the selected workspace; `~/` (and `~\` on Windows) expands to the home directory. Shell resolves the real path before forwarding it and rejects missing paths or broken aliases. Supply an existing UTF-8 file containing the request the candidate was built for; files outside the repository can be explicitly selected too. Their contents are sent to reviewer models just like request files inside the repository. Gentle AI reads the file through its existing `--request-context` contract, includes it in the native prompt budget, freezes its contents, and binds the hash into authority and reviewer subject identity. Shell forwards the provider-issued START and consent arguments unchanged. Before forwarding the file, Shell queries the selected executable’s advertised capabilities and requires both `start_request_context` and `start_options_preflight`. The executable hash is reused only while its device, inode, size, mtime and ctime match; capabilities are cached per client, executable path and digest. STATUS and authority are always queried afresh. Unsupported providers fail early with “provider does not support request context”; Shell never retries without its intent.
|
|
10
|
+
|
|
11
|
+
Use this field when business intent is needed to distinguish a requested behavior change from a regression. `lensesReason` only explains lens selection, and a README does not reach reviewers merely because it exists. Native treats request text as evidence, not reviewer instructions, and excludes its optional `## Verify` section from reviewer context.
|
|
12
|
+
|
|
13
|
+
Existing lineages retain their frozen intent. START with an explicit request file is blocked when authority already exists; resolve that authority through the ordinary workflow before requesting a fresh review. Editing the source file does not rewrite an old review or retroactively revoke its original scope. Native refuses replaying a lineage under a changed request, and produces different reviewer subject hashes for different intent. Resume with `lineageId` without supplying a request path; the original frozen intent remains in force.
|
|
14
|
+
|
|
15
|
+
The same sensitive-path policy used by file tools applies to request files, including aliases resolving into protected locations. Files such as .env, .envrc, .netrc, private keys and files in secrets directories are rejected before native reads. This checks path names, not file contents; hardlinks do not expose their other names through realpath and are not detected by this policy. Select a specification that excludes credentials. Resolving aliases reduces the gap between checking and opening a path, but does not make the subsequent native read atomic with the Shell check.
|
|
16
|
+
|
|
17
|
+
If START pauses for intended-untracked selection, its continuation retains the selected request file. Unrelated native stops remain visible without being mistaken for an existing review. Consent also retains the original file: every offered and replayed choice must carry exactly one matching request-context argument. Selecting a different file requires a fresh request.
|
|
18
|
+
|
|
19
|
+
START and consent compare request paths literally on every platform. If native changes Windows path spelling (including trailing dots or extended-path prefixes), Shell refuses the transition rather than assuming the paths identify the same file.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Windows candidate owner observations
|
|
2
|
+
|
|
3
|
+
Candidate creation, verification and explicit cleanup retain their existing owner, DACL, marker, lock, registration and replacement checks. Each Windows safety boundary obtains a fresh observation. The three parent directories share one read-only PowerShell invocation; file checks remain separate. Observations are not cached across calls, Git callbacks or writable-conversion callbacks.
|
|
4
|
+
|
|
5
|
+
The trusted system PowerShell reads the current identity and each requested object's owner and Access SDDL. Paths travel through UTF-8 JSON on stdin. The response is bounded and must contain the complete ordered set of observations. Existing owner/DACL policy validators decide whether those observations are authorized. Invalid responses and policy failures are outside the idempotent transport retry.
|
|
6
|
+
|
|
7
|
+
This reduces process startup work without changing removal sequencing or adding a recursive deletion fallback. Automatic Windows orphan sweeping remains conservative. Non-Windows ownership checks keep their existing behavior.
|
|
8
|
+
|
|
9
|
+
## Verification
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
node --experimental-strip-types --test tests/review-owner-identity.test.ts tests/review-candidate-windows-probe.test.ts tests/review-candidate-owner-retry.test.ts tests/review-candidate-owner-sweep.test.ts
|
|
13
|
+
node --experimental-strip-types --test tests/review-candidate-windows-boundary.test.ts
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The second file uses real Windows ACLs in disposable Git repositories, including quoted/Unicode paths, changes after Git inspection, marker/lock tampering, Git removal failure and parent replacement. It skips on other platforms. The parser/transport tests separately cover incomplete responses and an unauthorized owner through a controlled subprocess response; they do not claim a privileged ownership transfer.
|
|
17
|
+
|
|
18
|
+
Related work and experimental measurements: [issue #2881](https://github.com/Gentleman-Programming/gentle-shell/issues/2881). The combined redesign measurements include other changes and are not an isolated performance claim for this patch.
|
package/docs/voice.md
CHANGED
|
@@ -230,8 +230,8 @@ built for their architecture (checked from the binary headers, not by loading).
|
|
|
230
230
|
|--------|--------------------------------------------|
|
|
231
231
|
| macOS arm64 | macOS 11 or newer |
|
|
232
232
|
| macOS x64 | macOS 10.12 or newer |
|
|
233
|
-
| Linux x64, glibc 2.34+ | ALSA `libasound.so.2
|
|
234
|
-
| Linux arm64, glibc 2.34+ | ALSA `libasound.so.2
|
|
233
|
+
| Linux x64, glibc 2.34+ | ALSA `libasound.so.2`; under WSL, a PulseAudio server (WSLg provides one) |
|
|
234
|
+
| Linux arm64, glibc 2.34+ | ALSA `libasound.so.2`; under WSL, a PulseAudio server (WSLg provides one) |
|
|
235
235
|
| Windows x64 | Microsoft Visual C++ runtime (`vcruntime140.dll`) |
|
|
236
236
|
|
|
237
237
|
node-cpal requires Node 22 or newer, and a dictation session refuses to start
|
|
@@ -243,7 +243,10 @@ None of these targets has been verified on real hardware yet: native loading,
|
|
|
243
243
|
library paths and microphone capture have not been executed. Linux with a glibc
|
|
244
244
|
older than 2.34 is unsupported and the diagnosis names the version found.
|
|
245
245
|
Windows ARM64 has no native sherpa-onnx package and is unsupported. musl Linux
|
|
246
|
-
is unsupported. WSL
|
|
246
|
+
is unsupported. On a Microsoft kernel (WSL) the worker selects node-cpal's
|
|
247
|
+
shipped PulseAudio backend instead of ALSA, because WSLg exposes audio through
|
|
248
|
+
a PulseAudio server and no ALSA device; the backend's own native file is
|
|
249
|
+
validated before loading.
|
|
247
250
|
|
|
248
251
|
## Licenses and attribution
|
|
249
252
|
|
package/docs/yolo-mode.md
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
> 🚀 **Full speed, destructive actions still ask.** YOLO lets the agent implement, commit, push and open PRs within the already authorized task without asking each time, which suits long autonomous runs. Destructive operations still require fresh confirmation; the one exception is recursive removal of the session's own temp scratch (see [Temp scratch removal](#temp-scratch-removal)).
|
|
4
4
|
|
|
5
|
-
Use `/gentle:yolo
|
|
5
|
+
Use `/gentle:yolo` in the interactive primary Pi TUI to choose Normal, Auto, YOLO or Super Yolo for the current session. Select YOLO to stop repeated permission questions for ordinary work **within your already authorized task**. YOLO is **OFF** unless you select it or save YOLO as the user-global default. [Permission modes and global defaults](permission-modes.md) are managed separately from the live-session selection. The active status and a separate editor widget both say **🚀 YOLO ON 🔥 — destructive confirmations remain**, even when Gentle Shell hides its status layout.
|
|
6
6
|
|
|
7
7
|
| Command | Effect |
|
|
8
8
|
| --- | --- |
|
|
9
9
|
| `/gentle:yolo enable` | Select YOLO for this live session and workspace/clone. |
|
|
10
10
|
| `/gentle:yolo disable` | Select Normal immediately and clear the YOLO indicators; saved defaults stay unchanged. |
|
|
11
|
-
| `/gentle:yolo status` | Show
|
|
12
|
-
| `/gentle:yolo` |
|
|
11
|
+
| `/gentle:yolo status` | Show YOLO or Super Yolo when active, otherwise **YOLO OFF**, without activating. |
|
|
12
|
+
| `/gentle:yolo` | Choose `normal`, `auto`, `yolo` or `super-yolo` for this session. The menu shows the current mode and a short description of each choice. Cancelling changes nothing; without an interactive primary TUI it reports status instead. |
|
|
13
13
|
|
|
14
14
|
Invalid arguments leave state unchanged.
|
|
15
15
|
|
|
@@ -17,7 +17,7 @@ The Session command palette also includes YOLO. Interactive selection requires a
|
|
|
17
17
|
|
|
18
18
|
## Super Yolo
|
|
19
19
|
|
|
20
|
-
**💥 Super Yolo removes every permission prompt; the only line left is private material.** Select it with `/gentle:mode super-yolo
|
|
20
|
+
**💥 Super Yolo removes every permission prompt; the only line left is private material.** Select it with `/gentle:yolo` or `/gentle:mode super-yolo`, or save it for new sessions with `/gentle:mode default super-yolo`.
|
|
21
21
|
|
|
22
22
|
While it is active:
|
|
23
23
|
|
|
@@ -26,7 +26,7 @@ While it is active:
|
|
|
26
26
|
- The **sensitive-path guard stays hard-blocked**: `read`, `write` and `edit` of `.env` files, `.ssh`, keychains, `*.pem/*.key/*.p12/*.pfx`, `secrets/` directories and cloud credential files are refused in every mode, Super Yolo included.
|
|
27
27
|
- Code-level catastrophic denies remain: `rm -rf /`, `rm -rf ~`, `--no-preserve-root`, `git reset --hard`, forced clean and force push are blocked without a dialog.
|
|
28
28
|
- `ask_user` tools, provider consent, maintenance/recovery authorization and opaque-token decisions are never automatically answered.
|
|
29
|
-
-
|
|
29
|
+
- `/gentle:yolo status` identifies Super Yolo while it is active, and `/gentle:yolo disable` returns to Normal. Children never inherit Super Yolo; their bounded delegation and child guards are unchanged.
|
|
30
30
|
|
|
31
31
|
Super Yolo is deliberate maximum autonomy for a workspace you accept the consequences of. The shell recognition remains lexical, not a sandbox: unrecognized script forms, custom tools and prompt injection can still reach destructive effects, and OS-level isolation remains your real containment boundary.
|
|
32
32
|
|
|
@@ -261,6 +261,7 @@ export default function askUserChoice(pi: ExtensionAPI): void {
|
|
|
261
261
|
selectedPrefix: (text) => theme.fg("accent", text),
|
|
262
262
|
selectedText: (text) => theme.fg("accent", text),
|
|
263
263
|
description: (text) => theme.fg("muted", text),
|
|
264
|
+
fg: (_role, text) => theme.fg("warning", text),
|
|
264
265
|
hoverBackground: (text) => theme.bg("toolPendingBg", text),
|
|
265
266
|
}, keybindings);
|
|
266
267
|
let completed = false;
|
|
@@ -295,6 +295,7 @@ export default function askUserQuestion(pi: ExtensionAPI): void {
|
|
|
295
295
|
const container = createNativeFullscreenInteraction({
|
|
296
296
|
keyboardTarget: view,
|
|
297
297
|
requestRender: () => tui.requestRender(),
|
|
298
|
+
mouseObserver: view.createMouseObserver(() => tui.requestRender()),
|
|
298
299
|
});
|
|
299
300
|
container.addChild(new DynamicBorder((text: string) => theme.fg("accent", text)));
|
|
300
301
|
container.addChild(view);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ExtensionAPI, ToolCallEventResult } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import { SHELL_COMMAND_TOOLS } from "../lib/background-jobs.ts";
|
|
3
3
|
import { recognizeDestructiveCommands } from "../lib/destructive-command-guard.ts";
|
|
4
|
+
import { evaluateExecutionSurfaceTool } from "../lib/execution-surface-guard.ts";
|
|
4
5
|
|
|
5
6
|
export function blockChildDestructiveCommand(command: string): ToolCallEventResult | undefined {
|
|
6
7
|
if (recognizeDestructiveCommands(command).length === 0) return undefined;
|
|
@@ -13,6 +14,8 @@ export function createChildSafetyExtension(env: NodeJS.ProcessEnv = process.env)
|
|
|
13
14
|
return (pi) => {
|
|
14
15
|
if (env.GENTLE_PI_AGENTS_CHILD !== "1") return;
|
|
15
16
|
pi.on("tool_call", (event) => {
|
|
17
|
+
const surfaceDenied = evaluateExecutionSurfaceTool(event.toolName, event.input);
|
|
18
|
+
if (surfaceDenied) return surfaceDenied;
|
|
16
19
|
const command = (event.input as { command?: unknown }).command;
|
|
17
20
|
if (!SHELL_COMMAND_TOOLS.has(event.toolName) || typeof command !== "string") return undefined;
|
|
18
21
|
return blockChildDestructiveCommand(command);
|