gentle-pi 4.9.0 → 5.1.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.
Files changed (443) hide show
  1. package/README.md +2 -2
  2. package/assets/agents/gentle-ai-explore.md +3 -6
  3. package/assets/agents/gentle-ai-verify.md +2 -2
  4. package/assets/agents/gentle-ai-worker.md +9 -9
  5. package/assets/agents/jd-fix-agent.md +2 -2
  6. package/assets/agents/jd-judge-a.md +0 -1
  7. package/assets/agents/jd-judge-b.md +0 -1
  8. package/assets/migrations/agent-body-history.json +9 -0
  9. package/assets/orchestrator-delegation.md +1 -1
  10. package/assets/orchestrator-full-delegation.md +1 -1
  11. package/assets/orchestrator-maintenance.md +11 -0
  12. package/assets/orchestrator-quota-recovery.md +1 -1
  13. package/assets/orchestrator-skills.md +10 -0
  14. package/assets/orchestrator-tracking.md +2 -2
  15. package/assets/orchestrator-verification.md +10 -8
  16. package/assets/orchestrator.md +2 -2
  17. package/bin/gentle-shell.mjs +69 -17
  18. package/contracts/review-provider-contract-mirror/provider-contract.lock.json +11 -10
  19. package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/manifest.json +5 -5
  20. package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/orchestration/pi.md +5 -3
  21. package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/routing/pi.md +2 -2
  22. package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/schemas/lens.schema.json +3 -3
  23. package/contracts/review-provider-contract-mirror/v1.7.0/bundle/vectors/lens.json +1 -0
  24. package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/generated/provider-capabilities.baseline.json +3 -3
  25. package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/generated/provider-roles.baseline.json +3 -3
  26. package/docs/bundled-install.md +2 -2
  27. package/docs/delegated-verification.md +10 -6
  28. package/docs/desktop-feed.md +15 -6
  29. package/docs/desktop-rpc.md +298 -30
  30. package/docs/gentle-shell-desktop.md +10 -3
  31. package/docs/gentle-shell.md +25 -19
  32. package/docs/install-wizard.md +7 -5
  33. package/docs/native-authority-architecture.md +3 -3
  34. package/docs/odd-preparation-continuity.md +2 -2
  35. package/docs/permission-modes.md +10 -2
  36. package/docs/readme-reference.md +53 -24
  37. package/docs/review-coordinator.md +4 -2
  38. package/docs/session-profile-format.md +33 -7
  39. package/docs/sound-notifications.md +1 -1
  40. package/docs/work-continuity.md +7 -7
  41. package/docs/yolo-mode.md +1 -1
  42. package/extensions/ask-user-choice.ts +2 -2
  43. package/extensions/ask-user-question.ts +1 -1
  44. package/extensions/child-context.ts +2 -11
  45. package/extensions/gentle-agents.ts +86 -30
  46. package/extensions/gentle-ai.ts +918 -632
  47. package/extensions/gentle-desktop-feed.ts +13 -3
  48. package/extensions/gentle-desktop-rpc.ts +51 -2
  49. package/extensions/gentle-fast.ts +9 -2
  50. package/extensions/gentle-music.ts +2 -0
  51. package/extensions/gentle-notifications.ts +12 -4
  52. package/extensions/gentle-shell.ts +157 -62
  53. package/extensions/gentle-star-prompt.ts +3 -0
  54. package/extensions/gentle-tps.ts +7 -0
  55. package/extensions/history/index.ts +1 -1
  56. package/extensions/quiet-tools.ts +13 -22
  57. package/extensions/skill-registry.ts +9 -1
  58. package/extensions/startup-banner.ts +8 -13
  59. package/herdr/mods/gentle-agents/snapshot.js +30 -23
  60. package/herdr/mods/gentle-chat/feed.js +6 -0
  61. package/herdr/mods/gentle-chat/main.js +76 -16
  62. package/herdr/mods/gentle-chat/session.js +13 -5
  63. package/herdr/mods/gentle-chat/snapshot.js +30 -23
  64. package/herdr/mods/gentle-chat/ui.js +7 -1
  65. package/herdr/mods/gentle-inspector/main.js +2 -0
  66. package/herdr/mods/gentle-inspector/snapshot.js +30 -23
  67. package/herdr/mods/gentle-palette/main.js +1 -1
  68. package/herdr/mods/gentle-palette/snapshot.js +30 -23
  69. package/herdr/mods/gentle-pane/snapshot.js +30 -23
  70. package/herdr/mods/gentle-sidebar/snapshot.js +30 -23
  71. package/herdr/mods/gentle-spaces/snapshot.js +30 -23
  72. package/herdr/mods/gentle-status/snapshot.js +30 -23
  73. package/herdr/mods/gentle-tabs/main.js +3 -2
  74. package/herdr/mods/gentle-tabs/new-tab.js +9 -0
  75. package/herdr/mods/gentle-tabs/snapshot.js +30 -23
  76. package/herdr/mods/gentle-tokens/snapshot.js +30 -23
  77. package/lib/agent-profiles.ts +50 -10
  78. package/lib/agents-config.ts +69 -5
  79. package/lib/agents-runner.ts +34 -1
  80. package/lib/auto-permission-runtime.ts +2 -1
  81. package/lib/background-jobs-tools.ts +24 -16
  82. package/lib/banner-config.ts +69 -0
  83. package/lib/child-session.ts +6 -0
  84. package/lib/claude-bridge-config.ts +41 -0
  85. package/lib/codex-turn-continuation.ts +40 -0
  86. package/lib/compaction-threshold.ts +46 -0
  87. package/lib/context-threshold.ts +5 -5
  88. package/lib/desktop-agent-definitions-service.ts +93 -0
  89. package/lib/desktop-auth-service.ts +102 -0
  90. package/lib/desktop-background-subagents-service.ts +155 -0
  91. package/lib/desktop-command-rpc.ts +71 -0
  92. package/lib/desktop-feed-sources.ts +44 -1
  93. package/lib/desktop-feed.ts +41 -29
  94. package/lib/desktop-rpc-agent-definitions.ts +119 -0
  95. package/lib/desktop-rpc-agents.ts +44 -3
  96. package/lib/desktop-rpc-auth.ts +103 -0
  97. package/lib/desktop-rpc-background-subagents.ts +126 -0
  98. package/lib/desktop-rpc-changes.ts +13 -4
  99. package/lib/desktop-rpc-config.ts +287 -13
  100. package/lib/desktop-rpc-profile-binding.ts +212 -0
  101. package/lib/desktop-rpc-profiles.ts +2 -0
  102. package/lib/desktop-rpc-stats.ts +16 -4
  103. package/lib/desktop-rpc-status.ts +103 -0
  104. package/lib/desktop-status-service.ts +86 -0
  105. package/lib/destructive-command-guard.ts +9 -185
  106. package/lib/exploration-budget.ts +3 -7
  107. package/lib/gentle-design.ts +23 -4
  108. package/lib/gentle-shell-desktop.ts +85 -0
  109. package/lib/gentle-shell-launcher.ts +120 -8
  110. package/lib/mcp-config.ts +214 -0
  111. package/lib/native-choice-list.ts +1 -1
  112. package/lib/native-fullscreen-interaction.ts +3 -0
  113. package/lib/native-pointer-region.ts +1 -1
  114. package/lib/native-review-cli.ts +213 -397
  115. package/lib/odd-phase-inference.ts +1 -1
  116. package/lib/orchestrator-mode-policy.ts +25 -12
  117. package/lib/path-consent-fence.ts +113 -0
  118. package/lib/persona-config.ts +77 -0
  119. package/lib/pi-settings.ts +157 -0
  120. package/lib/questionnaire/questionnaire-view.ts +1 -1
  121. package/lib/review-continuation-registry.ts +9 -26
  122. package/lib/review-coordinator.ts +13 -2
  123. package/lib/review-host-relay.ts +2 -35
  124. package/lib/review-integration-v2.ts +129 -180
  125. package/lib/review-object-store.ts +0 -57
  126. package/lib/review-repository.ts +0 -44
  127. package/lib/review-risk-assessment.ts +11 -36
  128. package/lib/review-start-context.ts +2 -1
  129. package/lib/review-transaction.ts +6 -6
  130. package/lib/sensitive-paths.ts +45 -0
  131. package/lib/session-profile-binding.ts +29 -0
  132. package/lib/session-profile-freeze.ts +11 -4
  133. package/lib/session-worktree-registry.ts +11 -5
  134. package/lib/shell-bar.ts +41 -18
  135. package/lib/shell-card.ts +27 -1
  136. package/lib/shell-changes-view.ts +6 -2
  137. package/lib/shell-changes.ts +94 -37
  138. package/lib/shell-git-worker.ts +158 -0
  139. package/lib/shell-idle-changes.ts +88 -0
  140. package/lib/shell-untracked-cache.ts +142 -0
  141. package/lib/shell-untracked-lines.ts +178 -0
  142. package/lib/stats-collector.ts +24 -0
  143. package/lib/tower-open.ts +8 -1
  144. package/lib/tps-policy.ts +85 -0
  145. package/lib/vim-editor-adapter.ts +9 -2
  146. package/lib/voice-artifacts.ts +8 -1
  147. package/lib/voice-install.ts +7 -3
  148. package/lib/yolo-session-policy.ts +2 -2
  149. package/package.json +1 -1
  150. package/runtime/gentle-shell-desktop.mjs +85 -0
  151. package/runtime/gentle-shell-launcher.mjs +120 -8
  152. package/runtime/native-review-cli.mjs +206 -390
  153. package/runtime/review-integration-v2.mjs +129 -180
  154. package/runtime/review-risk-assessment.mjs +11 -36
  155. package/runtime/sensitive-paths.mjs +46 -0
  156. package/runtime/tower-open.mjs +8 -1
  157. package/scripts/build-runtime-modules.mjs +2 -0
  158. package/scripts/gentle-ai-installer.mjs +13 -14
  159. package/scripts/installer-preflight.mjs +1 -1
  160. package/scripts/main-channel.mjs +47 -11
  161. package/scripts/pi-update.mjs +10 -4
  162. package/scripts/prepare-verifier.mjs +14 -4
  163. package/scripts/verify-package-files.mjs +45 -13
  164. package/skills/judgment-day/SKILL.md +1 -1
  165. package/skills/judgment-day/references/prompts-and-formats.md +1 -1
  166. package/skills/provider-defect-report/SKILL.md +1 -1
  167. package/skills/rdd-defect-workflow/SKILL.md +2 -2
  168. package/skills/skill-creator/SKILL.md +4 -4
  169. package/skills/skill-improver/SKILL.md +4 -4
  170. package/skills/skill-registry/SKILL.md +2 -2
  171. package/tests/agent-profiles-workflow.test.ts +102 -0
  172. package/tests/agent-risk-escalation.test.ts +15 -0
  173. package/tests/agents-config.test.ts +22 -2
  174. package/tests/agents-protocol.test.ts +1 -1
  175. package/tests/agents-runner.test.ts +94 -2
  176. package/tests/append-system-prompt-route.test.ts +16 -11
  177. package/tests/ask-user-choice.test.ts +19 -0
  178. package/tests/ask-user-question.test.ts +23 -4
  179. package/tests/auto-permission-runtime.test.ts +4 -4
  180. package/tests/bounded-stop-contract.test.ts +50 -62
  181. package/tests/built-web-guard.test.ts +32 -0
  182. package/tests/child-context-files.test.ts +6 -6
  183. package/tests/child-ui-extensions.test.ts +125 -0
  184. package/tests/child-web-package.test.ts +1 -1
  185. package/tests/codex-turn-continuation.test.ts +183 -0
  186. package/tests/committed-range-untracked-exclusion.test.ts +18 -0
  187. package/tests/controlled-engineering-editor.test.ts +192 -0
  188. package/tests/controlled-engineering-launch.test.ts +136 -0
  189. package/tests/controlled-engineering.test.ts +244 -0
  190. package/tests/delegate-for-reason-contract.test.ts +1 -1
  191. package/tests/delivery-b-rendered-surfaces.test.ts +1 -1
  192. package/tests/delivery-conflict-markers.test.ts +2 -3
  193. package/tests/desktop-feed-tool-summaries.test.ts +1 -1
  194. package/tests/desktop-feed-transcript.test.ts +17 -0
  195. package/tests/desktop-feed.test.ts +141 -7
  196. package/tests/desktop-liveness.test.ts +125 -0
  197. package/tests/desktop-persona.test.ts +17 -0
  198. package/tests/desktop-rpc-agent-definitions.test.ts +219 -0
  199. package/tests/desktop-rpc-agents.test.ts +113 -3
  200. package/tests/desktop-rpc-auth.test.ts +278 -0
  201. package/tests/desktop-rpc-background-subagents.test.ts +186 -0
  202. package/tests/desktop-rpc-changes.test.ts +81 -4
  203. package/tests/desktop-rpc-config-mcp-fidelity.test.ts +106 -0
  204. package/tests/desktop-rpc-config-readonly-stores.test.ts +458 -0
  205. package/tests/desktop-rpc-config-settings.test.ts +234 -0
  206. package/tests/desktop-rpc-config.test.ts +17 -3
  207. package/tests/desktop-rpc-design.test.ts +30 -1
  208. package/tests/desktop-rpc-jobs.test.ts +9 -1
  209. package/tests/desktop-rpc-permissions.test.ts +9 -1
  210. package/tests/desktop-rpc-profile-binding.test.ts +195 -0
  211. package/tests/desktop-rpc-review.test.ts +1 -1
  212. package/tests/desktop-rpc-session-snapshot-commands.test.ts +50 -0
  213. package/tests/desktop-rpc-session.test.ts +2 -2
  214. package/tests/desktop-rpc-stats.test.ts +42 -11
  215. package/tests/desktop-rpc-status.test.ts +195 -0
  216. package/tests/desktop-rpc-updates.test.ts +1 -1
  217. package/tests/desktop-rpc-usage.test.ts +9 -1
  218. package/tests/desktop-rpc.test.ts +2 -2
  219. package/tests/desktop-session-switch.test.ts +237 -0
  220. package/tests/desktop-target-session.test.ts +104 -0
  221. package/tests/destructive-command-guard.test.ts +187 -0
  222. package/tests/devbinary/pi-host-relay.devtest.ts +73 -9
  223. package/tests/exploration-budget.test.ts +2 -26
  224. package/tests/fixtures/primary-session-prompt/gentleman.golden.md +15 -11
  225. package/tests/full-delegation-closure.test.ts +19 -9
  226. package/tests/generic-agent-tools.test.ts +3 -3
  227. package/tests/gentle-agents.test.ts +215 -10
  228. package/tests/gentle-ai-binary.test.ts +3 -3
  229. package/tests/gentle-ai-exploration-budget.test.ts +3 -2
  230. package/tests/gentle-ai-installer.test.ts +60 -59
  231. package/tests/gentle-ai.test.ts +30 -59
  232. package/tests/gentle-chat-read-failure.test.ts +74 -0
  233. package/tests/gentle-chat-session-read.test.ts +127 -0
  234. package/tests/gentle-design.test.ts +39 -0
  235. package/tests/gentle-notifications.test.ts +43 -5
  236. package/tests/gentle-shell-desktop.test.ts +108 -0
  237. package/tests/gentle-shell-launcher-auto-provision.test.ts +152 -0
  238. package/tests/gentle-shell-launcher-machine-output.test.ts +356 -0
  239. package/tests/gentle-shell-launcher-tower.test.ts +7 -1
  240. package/tests/gentle-shell.test.ts +163 -15
  241. package/tests/gentle-tps.test.ts +57 -0
  242. package/tests/independent-recovery-delivery.test.ts +15 -13
  243. package/tests/installer-preflight.test.ts +3 -2
  244. package/tests/installer-server.test.ts +3 -2
  245. package/tests/installer-windows-bootstrap.test.ts +6 -0
  246. package/tests/job-turn-end-texts.test.ts +57 -0
  247. package/tests/judgment-day-dispatch-diagnostics.test.ts +87 -0
  248. package/tests/lazy-module-contradictions-contract.test.ts +2 -3
  249. package/tests/main-channel-upgrade.test.ts +14 -7
  250. package/tests/main-channel.test.ts +78 -23
  251. package/tests/maintainer/desktop-rpc.maintest.ts +4 -4
  252. package/tests/native-fullscreen-interaction.test.ts +37 -1
  253. package/tests/native-review-capability-contract.test.ts +13 -1
  254. package/tests/native-review-cli-nonblocking-findings.test.ts +9 -84
  255. package/tests/native-review-cli.test.ts +199 -21
  256. package/tests/native-review-consent.test.ts +20 -3
  257. package/tests/native-review-start-escalation-real-binary.test.ts +42 -0
  258. package/tests/no-self-pause-contract.test.ts +8 -7
  259. package/tests/odd-phase-inference.test.ts +2 -2
  260. package/tests/odd-routing-canonical-ratchet.test.ts +1 -1
  261. package/tests/odd-routing-contract.test.ts +2 -2
  262. package/tests/orchestrator-budget.test.ts +7 -2
  263. package/tests/orchestrator-prompt-diet-contract.test.ts +5 -5
  264. package/tests/orchestrator-skills-inline-contract.test.ts +26 -0
  265. package/tests/package-manifest.test.ts +11 -16
  266. package/tests/packaged-agent-codemode.test.ts +79 -0
  267. package/tests/path-consent-fence.test.ts +326 -0
  268. package/tests/persona-config.test.ts +42 -0
  269. package/tests/pi-update-launcher.test.ts +1 -1
  270. package/tests/pi-update-source.test.ts +48 -2
  271. package/tests/primary-session-prompt.test.ts +9 -7
  272. package/tests/profile-fast-tier.test.ts +79 -4
  273. package/tests/progress-rule-contract.test.ts +54 -0
  274. package/tests/rdd-delivery-warning.test.ts +109 -0
  275. package/tests/review-actor-tool-deny.test.ts +1 -2
  276. package/tests/review-agent-end-preflight.test.ts +3 -1
  277. package/tests/review-assess-escalation-forwarding.test.ts +99 -0
  278. package/tests/review-authority-recovery-docs.test.ts +9 -12
  279. package/tests/review-continuation-registry.test.ts +24 -25
  280. package/tests/review-controller-native-recovery.test.ts +165 -178
  281. package/tests/review-controller-native-routing.test.ts +352 -27
  282. package/tests/review-coordinator-correction-gate.test.ts +5 -9
  283. package/tests/review-coordinator-runtime.test.ts +3 -2
  284. package/tests/review-coordinator.test.ts +14 -0
  285. package/tests/review-due-compaction.test.ts +1 -1
  286. package/tests/review-failure-facts.test.ts +2 -2
  287. package/tests/review-host-relay-restart-parity.test.ts +2 -52
  288. package/tests/review-host-relay-routing.test.ts +59 -298
  289. package/tests/review-host-relay.test.ts +0 -46
  290. package/tests/review-integration-nonblocking-findings.test.ts +3 -6
  291. package/tests/review-integration-v2-forward.test.ts +114 -234
  292. package/tests/review-integration-v2.test.ts +85 -39
  293. package/tests/review-json-arguments.test.ts +30 -9
  294. package/tests/review-legacy-check.test.ts +38 -0
  295. package/tests/review-object-store.test.ts +2 -57
  296. package/tests/review-one-call-findings.test.ts +1 -0
  297. package/tests/review-one-call.test.ts +56 -0
  298. package/tests/review-risk-assessment.test.ts +14 -43
  299. package/tests/review-run-escalate-forwarding.test.ts +59 -0
  300. package/tests/review-sidebar-state.test.ts +2 -1
  301. package/tests/review-untracked-inventory-replay.test.ts +181 -0
  302. package/tests/runtime-harness.mjs +30 -4
  303. package/tests/sensitive-path-tools.test.ts +210 -5
  304. package/tests/session-profile-binding-observers.test.ts +47 -0
  305. package/tests/session-profile-extension.test.ts +109 -11
  306. package/tests/session-profile-freeze.test.ts +49 -2
  307. package/tests/session-profile-v1-compat.test.ts +11 -3
  308. package/tests/session-worktree-registry.test.ts +23 -0
  309. package/tests/shell-bar.test.ts +21 -3
  310. package/tests/shell-changes-idle-start.test.ts +510 -0
  311. package/tests/shell-changes-untracked-bound.test.ts +230 -0
  312. package/tests/shell-changes-view.test.ts +8 -2
  313. package/tests/shell-changes.test.ts +134 -0
  314. package/tests/shell-git-runner-stall.test.ts +74 -0
  315. package/tests/shell-git-worker-fallback.test.ts +140 -0
  316. package/tests/shell-git-worker-lifetime.test.ts +91 -0
  317. package/tests/shell-render-cache-runtime.test.ts +256 -3
  318. package/tests/shell-sidebar-layout.test.ts +1 -1
  319. package/tests/shell-sidebar-scroll-benchmark.test.ts +14 -5
  320. package/tests/shell-untracked-cache.test.ts +213 -0
  321. package/tests/short-check-routing-contract.test.ts +11 -7
  322. package/tests/skill-references.test.ts +39 -0
  323. package/tests/skill-registry.test.ts +4 -4
  324. package/tests/startup-banner.test.ts +2 -1
  325. package/tests/status-timing-diagnostics.test.ts +2 -1
  326. package/tests/support/capabilities-v26.ts +22 -0
  327. package/tests/support/chat-ui.ts +39 -0
  328. package/tests/support/review-coordinator-runtime.ts +11 -2
  329. package/tests/support/status-v9.ts +8 -0
  330. package/tests/t7-recovery-preservation.test.ts +68 -0
  331. package/tests/tower-open.test.ts +24 -0
  332. package/tests/tower-pack.test.ts +48 -0
  333. package/tests/tps-policy.test.ts +96 -0
  334. package/tests/turn-end-rule-contract.test.ts +155 -0
  335. package/tests/turn-end-scope.test.ts +39 -0
  336. package/tests/verification-proportionality.test.ts +1 -1
  337. package/tests/verification-scoped-stop-contract.test.ts +1 -1
  338. package/tests/verification-tiers-contract.test.ts +4 -3
  339. package/tests/verifier-admission.test.ts +1 -1
  340. package/tests/verifier-preparation.test.ts +94 -1
  341. package/tests/verifier-settle-reminder.test.ts +1 -1
  342. package/tests/verify-first-launch-contract.test.ts +19 -7
  343. package/tests/vim-editor-adapter.test.ts +12 -2
  344. package/tests/voice-install.test.ts +97 -11
  345. package/tests/windows-hidden-processes.test.ts +11 -44
  346. package/tests/work-continuity-contract.test.ts +48 -55
  347. package/tests/yolo-session-policy.test.ts +2 -0
  348. package/web/tower/dist/assets/BatchableSprite-BJ_TQxjN.js +217 -0
  349. package/web/tower/dist/assets/BufferResource-DeJpHuO6.js +139 -0
  350. package/web/tower/dist/assets/CanvasPool-cwc03T_x.js +23 -0
  351. package/web/tower/dist/assets/CanvasRenderer-DO84oP5R.js +1 -0
  352. package/web/tower/dist/assets/Filter-BKhT9lO8.js +1 -0
  353. package/web/tower/dist/assets/GlUniformGroupSystem-DluI7cqd.js +130 -0
  354. package/web/tower/dist/assets/GpuUboSystem-CM4Dys0F.js +17 -0
  355. package/web/tower/dist/assets/Graphics-3OyUtCzC.js +1 -0
  356. package/web/tower/dist/assets/RenderTargetSystem-X-9GAQ1C.js +184 -0
  357. package/web/tower/dist/assets/WebGLRenderer-I0fqIX1w.js +20 -0
  358. package/web/tower/dist/assets/WebGPURenderer-BRWSXotK.js +79 -0
  359. package/web/tower/dist/assets/_commonjsHelpers-CqkleIqs.js +1 -0
  360. package/web/tower/dist/assets/abnfDiagram-VCTEODGH-C4iBBhTL.js +1 -0
  361. package/web/tower/dist/assets/architectureDiagram-5GKGNRK7-Ih-qvfTu.js +36 -0
  362. package/web/tower/dist/assets/blockDiagram-I7D4REHJ-I9z_u3wb.js +129 -0
  363. package/web/tower/dist/assets/browserAll-gmBFNIA4.js +14 -0
  364. package/web/tower/dist/assets/c4Diagram-7LVT6UL2-DOyk2rEJ.js +38 -0
  365. package/web/tower/dist/assets/canvasUtils-DTaMcbkN.js +1 -0
  366. package/web/tower/dist/assets/channel-wuxBkGGz.js +1 -0
  367. package/web/tower/dist/assets/chunk-2Q5K7J3B-BaJ-OrJ_.js +1 -0
  368. package/web/tower/dist/assets/chunk-5VM5RSS4-wICrhvyw.js +15 -0
  369. package/web/tower/dist/assets/chunk-F27PBJKO-DUQ_JqvZ.js +1 -0
  370. package/web/tower/dist/assets/chunk-IMKFNOWR-DKfgQrGM.js +231 -0
  371. package/web/tower/dist/assets/chunk-JWPE2WC7-1k1LW87d.js +1 -0
  372. package/web/tower/dist/assets/chunk-POPQ4Y6H-Df8cN2w9.js +1 -0
  373. package/web/tower/dist/assets/chunk-SVP7TREG-CxU5LDj8.js +88 -0
  374. package/web/tower/dist/assets/chunk-TICWLB2K-CEuHEBi0.js +206 -0
  375. package/web/tower/dist/assets/chunk-XXDRQBXY-CbSAjj9l.js +1 -0
  376. package/web/tower/dist/assets/classDiagram-ZZMXUADV-DbRmVQRX.js +1 -0
  377. package/web/tower/dist/assets/classDiagram-v2-VYDZK3BY-DbRmVQRX.js +1 -0
  378. package/web/tower/dist/assets/cose-bilkent-JH36ORCC-8xZLSHER.js +1 -0
  379. package/web/tower/dist/assets/cynefin-OW5HDTMX-Cw4XG9Zj.js +166 -0
  380. package/web/tower/dist/assets/cynefinDiagram-5FMLGOSQ-CcQdokUv.js +62 -0
  381. package/web/tower/dist/assets/cytoscape.esm-BHa1VTXv.js +321 -0
  382. package/web/tower/dist/assets/d3-scale-4DPf7zan.js +1 -0
  383. package/web/tower/dist/assets/dagre-GXQ25YYZ-D-Xv7L9X.js +4 -0
  384. package/web/tower/dist/assets/diagram-S7CK7UJ4-Bqy2eT2c.js +30 -0
  385. package/web/tower/dist/assets/diagram-UQ7AKVKN-B2wK2GHj.js +41 -0
  386. package/web/tower/dist/assets/diagram-VSXAHHWV-CIZqh7BH.js +3 -0
  387. package/web/tower/dist/assets/diagram-VX7I27RA-BGX4HBj2.js +24 -0
  388. package/web/tower/dist/assets/diagram-Z3DM3KII-DYpsfaJW.js +24 -0
  389. package/web/tower/dist/assets/ebnfDiagram-PWID7BFC-BNnwCZNv.js +1 -0
  390. package/web/tower/dist/assets/erDiagram-RLTQ6QDP-_MN9W-1E.js +99 -0
  391. package/web/tower/dist/assets/flowDiagram-HODETNUW-D_ndx1UC.js +168 -0
  392. package/web/tower/dist/assets/ganttDiagram-EL5Y4UJY-C8chdEiZ.js +292 -0
  393. package/web/tower/dist/assets/getPo2TextureFromSource-CqJsdi0J.js +1 -0
  394. package/web/tower/dist/assets/getTexelRangeRects-DN3N5aFp.js +57 -0
  395. package/web/tower/dist/assets/getTextureBatchBindGroup-RNSiAVH3.js +1 -0
  396. package/web/tower/dist/assets/gitGraphDiagram-WWUBYQGX-B5ijv7LI.js +106 -0
  397. package/web/tower/dist/assets/index-B1Ho-Igs.css +1 -0
  398. package/web/tower/dist/assets/index-CfNjH1Wr.js +45 -0
  399. package/web/tower/dist/assets/infoDiagram-27XIBGKW-AYbp5ElT.js +2 -0
  400. package/web/tower/dist/assets/ishikawaDiagram-5VMMS53U-DnmwARuR.js +70 -0
  401. package/web/tower/dist/assets/journeyDiagram-3NMN7TZE-CK737kko.js +139 -0
  402. package/web/tower/dist/assets/kanban-definition-UXKFOSKX-0AhM3axC.js +89 -0
  403. package/web/tower/dist/assets/katex-HP8lGamR.js +257 -0
  404. package/web/tower/dist/assets/layout-wOIeK9c_.js +1 -0
  405. package/web/tower/dist/assets/mermaid.core-CGYyw6G7.js +310 -0
  406. package/web/tower/dist/assets/mindmap-definition-YA3MSWOX-CkZ_JOdx.js +96 -0
  407. package/web/tower/dist/assets/pegDiagram-XKGWAZYB-CHAPspih.js +1 -0
  408. package/web/tower/dist/assets/pieDiagram-E7YTZNPT-LwCcZl5o.js +39 -0
  409. package/web/tower/dist/assets/preload-helper-PPVm8Dsz.js +1 -0
  410. package/web/tower/dist/assets/quadrantDiagram-AXDQQJYC-Cm4uijV2.js +7 -0
  411. package/web/tower/dist/assets/railroadDiagram-O6MQD6OU-BPQHZ2b5.js +1 -0
  412. package/web/tower/dist/assets/requirementDiagram-BXWQKSXE-JLtSUDfS.js +84 -0
  413. package/web/tower/dist/assets/sankeyDiagram-P5KCCOFB-DJsYv9ii.js +40 -0
  414. package/web/tower/dist/assets/sequenceDiagram-WJ2MYXX4-Ca8T8sT0.js +162 -0
  415. package/web/tower/dist/assets/sizeCapture-INFHLROL-Ch4i2dS-.js +1 -0
  416. package/web/tower/dist/assets/stateDiagram-D77RDMKH-DDSkncYm.js +1 -0
  417. package/web/tower/dist/assets/stateDiagram-v2-MP3YSRHH-BkO_9mIH.js +1 -0
  418. package/web/tower/dist/assets/swimlanes-42K2YHIH-Bns5iI3y.js +1 -0
  419. package/web/tower/dist/assets/swimlanesDiagram-VR7AAH4N--LEBb1ti.js +8 -0
  420. package/web/tower/dist/assets/timeline-definition-24CTP7MA-QJDuVTb3.js +120 -0
  421. package/web/tower/dist/assets/vennDiagram-4TSXK5OY-pBNxKxOV.js +34 -0
  422. package/web/tower/dist/assets/wardleyDiagram-VM6X3IG4-1PEarjN1.js +78 -0
  423. package/web/tower/dist/assets/webworkerAll-D_Np003p.js +83 -0
  424. package/web/tower/dist/assets/xychartDiagram-S5SC5T6Z-CLwsvOg7.js +7 -0
  425. package/web/tower/dist/index.html +41 -0
  426. package/contracts/review-provider-contract-mirror/v1.6.0/bundle/vectors/lens.json +0 -1
  427. package/docs/review-delivery-preflight.md +0 -22
  428. package/extensions/codegraph-tools.ts +0 -437
  429. package/lib/native-review-authority-quarantine.ts +0 -2
  430. package/lib/review-delivery-preflight.ts +0 -85
  431. package/lib/review-legacy-detector.ts +0 -81
  432. package/tests/child-codegraph-bootstrap.test.ts +0 -74
  433. package/tests/codegraph-tools.test.ts +0 -554
  434. package/tests/fixtures/devbinary/capabilities-v2.1.derived.json +0 -331
  435. package/tests/fixtures/refusal-identity.probe.mjs +0 -139
  436. package/tests/native-review-authority-quarantine.test.ts +0 -10
  437. package/tests/native-review-refusal-identity.test.ts +0 -25
  438. package/tests/review-delivery-preflight.test.ts +0 -462
  439. /package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/README.md +0 -0
  440. /package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/schemas/refuter.schema.json +0 -0
  441. /package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/schemas/targeted-validator.schema.json +0 -0
  442. /package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/vectors/refuter.json +0 -0
  443. /package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/vectors/targeted-validator.json +0 -0
@@ -82,7 +82,7 @@ with the session's name, its Herdr badge, its folder and the same **Chat \| Term
82
82
  (Terminal active; on a narrow card the switch keeps only its icons). Click **Chat** or press `⌘J` to
83
83
  go back. Nothing is copied: the chat and the TUI are two views of one session.
84
84
 
85
- Some facts are not published yet and show as empty: the persona ("No persona"), integrations
85
+ Some facts are not published yet and show as empty: integrations
86
86
  ("Engram and MCP status are not published by this session yet"), and plan usage for providers
87
87
  that report none (the usage panel's own note, such as "usage arrives with the first response").
88
88
 
@@ -112,7 +112,7 @@ chosen in Herdr's Settings still wins, as for any layout.
112
112
 
113
113
  | Control | Does |
114
114
  |---|---|
115
- | Project row | Click selects the project; drag reorders; right-click opens Herdr's space menu. |
115
+ | Project row | Click selects the project and every region follows it, even when a session in another terminal was shown; drag reorders; right-click opens Herdr's space menu. |
116
116
  | **+** next to Projects | Opens a new project (Herdr's `space.new`). |
117
117
  | Agent row | **Herdr** section: focuses that agent's pane. **TUI** section: shows that session in every region. |
118
118
  | Project row of a project no space holds | Shows its session that needs you, else its newest one. |
@@ -120,7 +120,7 @@ chosen in Herdr's Settings still wins, as for any layout.
120
120
  | **Add machine** (sidebar footer) | Herdr's own Add machine dialog (`mod.open machine-add`, as in Herdr's sidebar): lists your ssh-config hosts and says what each needs. |
121
121
  | Machine header in Projects | Shown once a machine other than this computer exists. **+** opens a new project on that machine; an unavailable machine opens Settings › Machines (its login guidance). |
122
122
  | Gear in Plan usage | Opens Herdr's settings. |
123
- | Tab | Click selects; drag reorders; double-click renames; right-click opens the tab menu; the wheel moves between tabs. A TUI session's tab: click shows it. |
123
+ | Tab | Click selects and every region follows it; a tab with no Gentle Shell session shows no session (the chat says "No Gentle Shell session"), never the session shown before. Drag reorders; double-click renames; right-click opens the tab menu; the wheel moves between tabs. A TUI session's tab: click shows it. |
124
124
  | **+** after the tabs | Starts a new Gentle Shell session in the project's folder. |
125
125
  | Window buttons (Windows, Linux) | Minimise, maximise (restore when maximised) and close, at the end of the tab bar, as in Herdr's own layout. On macOS the traffic lights stay at the top left. |
126
126
 
@@ -182,6 +182,9 @@ from another session, until the next Expand all / Collapse all.
182
182
  | Paperclip | Pastes the clipboard (an image, or files on macOS) into the session's draft, as `Ctrl+V` does in the TUI. It goes with your next message. |
183
183
  | **Stop** | Replaces Send while the agent works and the draft is empty. Stops the turn, as `Esc Esc` does in the TUI. Typing brings Send back: the message is queued, as in the TUI. |
184
184
 
185
+ Send, answers, **Apply** and the chat's other actions go to the session the window shows at that
186
+ moment, also while the chat still reads the session shown before.
187
+
185
188
  ### Inspector
186
189
 
187
190
  | Tab | Controls |
@@ -193,6 +196,9 @@ from another session, until the next Expand all / Collapse all.
193
196
  | **Review** | **Start review** and **Skip for this change** show the Terminal, where you answer the review consent. The **RDD** row turns receipt-driven review on or off **for every repository**, after a dialog that says so. |
194
197
  | **Session** | Read only: stats, cost by model, integrations. |
195
198
 
199
+ A refusal or notice under the panel belongs to the session it came from: it is cleared when
200
+ the window shows another session.
201
+
196
202
  ### Status bar
197
203
 
198
204
  Click **Commands** to open the palette. Everything else on the bar is read only.
@@ -347,6 +353,7 @@ own instructions. `gentle-shell self-uninstall` covers Gentle Shell itself
347
353
  | The window looks stale, or `herdr-app shot` returns an old frame | Herdr does not draw a covered or hidden window. Bring it to the front. |
348
354
  | A working session's dot does not pulse | On purpose: any animation redraws the whole Herdr window on every frame, which kept Herdr app near 40 % CPU while a session worked. The dot's colour and its word (Working, streaming) say it; the chat and the inspector update as the session writes. Measurements: `herdr/PERF.md`. |
349
355
  | "No Gentle Shell session focused" / "No Gentle Shell session here" | Focus a tab that runs `gentle-shell`, or start one with **+** in the tab bar. Sessions started with `--link` or `--home` are not seen ([Requirements](#requirements)). |
356
+ | "Cannot read this conversation" | The chat could not read the session file the session names (moved, deleted or unreadable). It reads it again when the session updates; its Terminal still shows the conversation. |
350
357
  | A session in another terminal is missing | It is listed while its process runs and once it published a snapshot (an interactive Gentle Shell TUI does). Check **TUI · Other terminals**. |
351
358
  | "This session started before desktop messages: type in its own terminal, or restart it." / "This session takes no prompts from the desktop. Update Gentle Shell and restart it." | The TUI session runs a Gentle Shell from before desktop messages. Restart it, or type in its own terminal. |
352
359
  | "Open that session's terminal to run /commands." | The shown session runs in another terminal; pi's and extensions' commands run only there. |
@@ -42,7 +42,7 @@ Run `gentle-shell update` to update the Pi this launcher runs. It also works whe
42
42
 
43
43
  The global installer resolves an exact latest stable Pi after consent when it must install Pi or update an older owned Pi; compatible existing installations are left alone. Its setup-recovery check still accepts only the legacy verified recovery pin, so an interrupted setup after a newer Pi was installed cannot use automatic recovery.
44
44
 
45
- A source-linked Shell uses a separate local route: the exact listed Shell link and selected adjacent Pi must resolve to the checkout. A single-project Git checkout needs an exact `npm@x.y.z` or `pnpm@x.y.z` `packageManager` declaration and a compatible manager on PATH: pnpm may match or exceed the declared version; npm must match its pin. pnpm's `--pm-on-fail=ignore` keeps the checked newer manager instead of downloading the older project pin, without changing the declaration or release-age/security policy. Bundled installations continue to use their own contained manager; source checkouts do not borrow an unverified manager from another prefix. The checkout also needs a direct registry Pi dependency, and exactly one matching lockfile (`package-lock.json` or `pnpm-lock.yaml`). `update` runs a named, range-respecting local update with `--no-save` and lifecycle scripts disabled, preserving the global Shell link and declared ranges. Its Pi/transitive lockfile graph may change. pnpm's metadata cache and minimum-release-age policy still apply: an unchanged version is reported without clearing caches or overriding that policy. The checkout's adjacent Pi is read back after installation; an unreadable version is reported, never invented. Root-only `pnpm-workspace.yaml` configuration is allowed only when the pinned manager's read-only selectors and recursive project listing prove that the checkout is the sole project. Its release-age/security settings are loaded normally, never ignored, and its bytes must remain unchanged. Declared multi-project or ancestor workspaces, conflicting/missing lockfiles, linked manifests/lockfiles and installed Pi source-checkout overrides (including `npm link` without a manifest change) refuse before installation; resolve these layouts manually rather than deleting a lockfile blindly.
45
+ A source-linked Shell uses a separate local route: the exact listed Shell link and selected adjacent Pi must resolve to the checkout. A single-project Git checkout needs an exact `npm@x.y.z` or `pnpm@x.y.z` `packageManager` declaration and a compatible manager on PATH: pnpm may match or exceed the declared version; npm must match its pin. pnpm's `--pm-on-fail=ignore` keeps the checked newer manager instead of downloading the older project pin, without changing the declaration or release-age/security policy. Bundled installations continue to use their own contained manager; source checkouts do not borrow an unverified manager from another prefix. The checkout also needs a direct registry Pi dependency, and exactly one matching lockfile (`package-lock.json` or `pnpm-lock.yaml`). `update` runs a named, range-respecting local update with `--no-save` and lifecycle scripts disabled, preserving the global Shell link and declared ranges. It updates Pi and also moves the Shell's directly declared, exactly pinned `@earendil-works` packages (such as `pi-ai` and `pi-tui`) to the exact versions the selected Pi pins, for pnpm and npm (npm also reads the published manifests), without changing manifest ranges. Its Pi/transitive lockfile graph may change. pnpm's metadata cache and minimum-release-age policy still apply: an unchanged version is reported without clearing caches or overriding that policy. The checkout's adjacent Pi is read back after installation; an unreadable version is reported, never invented. Root-only `pnpm-workspace.yaml` configuration is allowed only when the pinned manager's read-only selectors and recursive project listing prove that the checkout is the sole project. Its release-age/security settings are loaded normally, never ignored, and its bytes must remain unchanged. Declared multi-project or ancestor workspaces, conflicting/missing lockfiles, linked manifests/lockfiles and installed Pi source-checkout overrides (including `npm link` without a manifest change) refuse before installation; resolve these layouts manually rather than deleting a lockfile blindly.
46
46
 
47
47
  Unknown or ambiguous ownership, unsupported source/link packages, and pnpm global groups shared with other top-level packages refuse without installation changes. Separate groups in one aggregated listing are allowed. After the install, Shell reads the supplied Pi version back from a fresh listing and reports whether it changed. pnpm installs only releases older than its `minimumReleaseAge` setting (pnpm 11 defaults to 4320 minutes), so a very recent Pi release is picked up once it is old enough; Shell reports that rule instead of overriding it. Global listings, version probes and global installations run from the system temporary directory so the current project's `packageManager` pin never changes which pnpm answers. Only a verified source update runs from its checkout. Use the supplying package manager for unsupported layouts. `gentle-shell update --extensions-only` remains an extension-only Pi command. Prefix-bundled `gentle-shell update` selects the newest published stable Pi (`--latest` is an alias), without the release's verified lockfile; it warns that features relying on audited Pi internals, such as the Vim editor, may turn off. A later Shell `upgrade` keeps a newer Pi and warns when it must install without the new release's lockfile. Explicit extension pins stay pinned; `--all` also forwards extension updates. Managed Pi self updates reject `--force`. See [managing packages](readme-reference.md#managing-packages) for the ownership contract.
48
48
 
@@ -64,9 +64,9 @@ The [v2.6.0 release](https://github.com/Gentleman-Programming/gentle-pi/releases
64
64
  - Registered worktrees survive reloads. `/gentle:changes` groups each dirty root (the session's repository and its subagents' worktrees) and shows Git status, line counts, and lazy diffs against HEAD without conflating identical paths from different worktrees.
65
65
  - Fullscreen pointer navigation and the responsive sidebar keep changes, agents, and TODO usable at changing terminal widths; cached frames avoid redrawing inactive sidebar content while live status still updates.
66
66
  - The Agents List and Details views preserve the orchestrator/session hierarchy and completion, abort, and lost-exit history. Parent-child queries and notifications have an explicit handoff path, while model, effort, and usage stay observable per task.
67
- - Named `/gentle:profiles` atomically route the orchestrator separately from packaged and review roles, and carry a per-profile orchestrator workflow mode (`w` on the models screen: organic, where the orchestrator may implement inline, or full delegation, where every implementation goes to a subagent); see the [technical reference](readme-reference.md#agent-model-profiles) for the profile model. Full delegation pays off with an expensive orchestrator and light workers; on small tasks it costs a few times the wall time of organic, so see [Orchestrator workflow mode](readme-reference.md#orchestrator-workflow-mode) for the measured cost and which mode to pick.
67
+ - Named `/gentle:profiles` atomically route the orchestrator separately from packaged and review roles, and carry a per-profile orchestrator workflow mode (`w` on the models screen: organic, where the orchestrator may implement inline, or full delegation, where every implementation goes to a subagent); see the [technical reference](readme-reference.md#agent-model-profiles) for the profile model. Full delegation pays off with an expensive orchestrator and light workers; on small tasks it costs a few times the wall time of organic, so see [Orchestrator workflow mode](readme-reference.md#orchestrator-workflow-mode) for the measured cost and which mode to pick. A profile can also turn on [Controlled Engineering](readme-reference.md#controlled-engineering) (`c` on the models screen, off by default), which adds authoring rules against unrequested machinery to the sessions that write or verify code.
68
68
 
69
- The source checkout prepares `gentle-pi` `4.9.0` with a package-local Gentle AI `v4.6.0` pin; this does not imply that the package release has been published. The published provider bundle matches the existing `1.6.0` mirror, and the native review CLI still advertises `capabilities/v2.6`.
69
+ The source checkout declares `gentle-pi` `5.1.0` with a package-local Gentle AI `v5.1.0` pin; the source manifest does not establish whether that version is published. The mirror uses the signed provider bundle `1.7.0` published with v5.1.0. The native review CLI still advertises `capabilities/v2.6` without legacy authority.
70
70
 
71
71
  ## Shell interactions and runtime behavior
72
72
 
@@ -108,7 +108,7 @@ At 140 columns or wider, fullscreen with the split header draws an IDE inside th
108
108
  └ job-1
109
109
  ─ ✿ waiting for input ───────────────── INSERT ─ ▾ AGENTS 3 running · 1 waiting
110
110
  › type, or / for commands …
111
- main ±3 │ SUPER-YOLO gpt-5.5 · medium · claude (session) │ ctx ▰▰▰▰▱▱▱▱ 45% │ $9.49 sub │ usage · alt+u
111
+ main ±3 │ SUPER-YOLO gpt-5.5 · medium · claude (session) │ ctx ▰▰▰▰▱▱▱▱ 45% (133k to compact) │ $9.49 sub │ usage · alt+u
112
112
  ```
113
113
 
114
114
  - **Title row.** The project name and path once, and the session name on the right; when space runs out the path gives way first. The effective agent profile (with its source suffix, `claude (session)`) follows the model and effort in the status bar (`claude-opus-5-5 · high · claude (session)`), giving way before the usage does, and opens the rail's Stats section (`profile claude (session)`); Integrations no longer lists it. On a phone with split selected, the title row carries the model, effort and profile, since the narrow status bar leaves them out.
@@ -125,10 +125,10 @@ At 140 columns or wider, fullscreen with the split header draws an IDE inside th
125
125
  The regular-mode compact bar replaces pi's three-line footer with a single line of segments:
126
126
 
127
127
  ```text
128
- ✿ gentle shell ⟡ ~/work/gentle-pi main ⟡ gpt-5.5 · medium ⟡ ctx ▰▰▰▰▱▱▱▱ 45% ⟡ $9.49 sub ⟡ MCP: 3 servers enabled Release notes
128
+ ✿ gentle shell ⟡ ~/work/gentle-pi main ⟡ gpt-5.5 · medium ⟡ ctx ▰▰▰▰▱▱▱▱ 45% (133k to compact) ⟡ $9.49 sub ⟡ MCP: 3 servers enabled Release notes
129
129
  ```
130
130
 
131
- - Context is a gauge, not a number. It turns amber at 80% and red at 95%; after compaction it shows `?%` until the next response.
131
+ - The `ctx` gauge shows the percentage of the model's context window used (amber at 80%, red at 95%) and, when space permits, the estimated tokens left before auto-compaction. The estimate subtracts Pi's effective reserve for the active model (model override, ordinary setting, then 16,384) from the window, then subtracts current usage. At or above that boundary it shows `0 to compact`; Pi's threshold check triggers only above the boundary. `compact off` means auto-compaction is disabled. `? to compact` means the estimate is unavailable, such as after compaction when usage shows `?%` until the next response.
132
132
  - Cost carries `sub` when the active model runs on a subscription login.
133
133
  - `pi-claude-bridge` records every turn at $0, so a `claude-bridge` turn is priced at the Anthropic list price of the same model when it ends. The cost (shown with `sub`), the Stats section and `/gentle:stats` then show what those tokens would cost on the API, not what the subscription bills. Subagents price their `claude-bridge` turns the same way, so the Stats `agents` row adds them to subagents on other providers. Sessions recorded before this stay at $0.
134
134
  - Statuses other extensions publish through `setStatus` are appended as trailing segments; the session name sits at the right edge.
@@ -173,7 +173,7 @@ While a draft holds chips, a strip above the prompt lists each one:
173
173
 
174
174
  ### Changes
175
175
 
176
- Changes shows the **current Git state** — working tree against HEAD, untracked files included — of the session's repository and of every worktree or repository its subagents used that still exists. Nothing is scanned at startup; the list fills at the first turn end or when the panel opens, then refreshes at each turn end and while the panel is open. Fullscreen, the sidebar, and mouse interaction are unchanged.
176
+ Changes shows the **current Git state** — working tree against HEAD, untracked files included — of the session's repository and of every worktree or repository its subagents used that still exists. Startup and reload do not wait for an inventory. After the first shell frame, Changes loads in the background once the session is idle and there has been no typing for 250 ms. If a turn starts first, its normal turn-end refresh loads the list instead. If an idle scan cannot read a root, it retries after 1, 3, and 10 seconds of quiet, stopping once all roots are readable or those three retries are used. Typing restarts the current wait; starting a turn or shutting down cancels it. Turn end, opening the panel, and registering a worktree still refresh immediately, and the panel keeps refreshing while open.
177
177
 
178
178
  ```text
179
179
  ✎ 3 files · +42 −7 · extensions/gentle-shell.ts, lib/shell-bar.ts, tests/x.test.ts · /gentle:changes
@@ -189,7 +189,11 @@ Changes shows the **current Git state** — working tree against HEAD, untracked
189
189
 
190
190
  ### Bounds and session lifetime
191
191
 
192
- Changes lists every changed file outside the untracked dependency-backup exclusion without a count limit. One selected diff is bounded at 1 MiB or 20,000 lines; beyond that the panel shows "Diff too large — press o to open in editor." If Git times out, partial diff output is discarded and the pane shows "no diff for this file"; press `o` to inspect the file in the editor.
192
+ Changes lists every changed file outside the untracked dependency-backup exclusion without a count limit. If an inventory hits its 64 MiB budget for reading untracked files, the list is shown with partial line counts, which finish in later quiet passes. Files without a count go before re-counts of edited files. An unreadable file reports zero for the current scan and is retried on the next refresh without scheduling an extra scan on its own. A failed read gives its share of the budget back within the same scan, so unreadable files never keep readable ones waiting. Quiet passes stop as soon as one of them leaves the number of pending files where it was; the next refresh (a turn end, opening the panel) starts them again if anything moved. A Git read that cannot run or times out marks its root as failed, with the usual notice, never as a repository without commits. Desktop's `get_changes` makes at most two passes per request. If any counts are still deferred, the response and each affected file include `countsPending: true`; an affected file's `added` value may be zero or stale. When all counts are complete, the field is absent.
193
+
194
+ Like Git, Changes treats an untracked file with a NUL byte in its first 8,000 bytes as binary: it shows `+0`, reads no further bytes, and does not mark the count pending. Text files within the 1 MiB counting limit are counted in full. Counts are reused when size and modification time match, including across sessions. The versioned cache lives outside the repository at `<Pi agent directory>/cache/gentle-shell-untracked-lines/`, with one file per real repository root. Changes loads it on the first scan of that root, batches saves, and flushes completed counts on shutdown. An unavailable cache does not prevent counting.
195
+
196
+ One selected diff is bounded at 1 MiB or 20,000 lines; beyond that the panel shows "Diff too large — press o to open in editor." If Git times out, partial diff output is discarded and the pane shows "no diff for this file"; press `o` to inspect the file in the editor. On POSIX, inventory Git runs in a lazy worker that exits on session shutdown or after 30 seconds without work. Bounded diff reads keep the original UTF-8 truncation behavior.
193
197
 
194
198
  Captured evidence (`gentle-pi.session-change/v1`) is still stored for session statistics and root discovery, capped at 256 operations and 4 MiB per session, without affecting the Changes list. Reload and resume read the same state from Git; new sessions and forks do not inherit another session's worktrees.
195
199
 
@@ -346,7 +350,7 @@ Gentle Shell ships its own interactive tools instead of depending on third-party
346
350
 
347
351
  ### Gentle Agents
348
352
 
349
- The current package requires Pi 1.2.0 or newer and Node `^22.19.0 || >=23.6.0` (22.19.0 or a later 22.x release, or 23.6.0 or newer; Node 23.0–23.5 are not supported). Development tests resolve Pi through the open `>=1.0.0` development range. The private Vim editor adapter admits only the audited Pi `0.99.1`, `0.99.2`, `1.0.0`, `1.1.0`, `1.2.0`, `1.3.0`, `1.4.0`, `1.5.0`, `1.5.1`, and `1.5.2` releases; any other release keeps ordinary prompt editing until its editor is audited. Use the latest Pi release; gentle-pi does not update your installed Pi automatically. Children, including any `GENTLE_PI_AGENTS_PI` override, must emit `agent_settled`: `agent_end` records a run's output but is not completion because retries or queued continuations may follow.
353
+ The current package requires Pi 1.2.0 or newer and Node `^22.19.0 || >=23.6.0` (22.19.0 or a later 22.x release, or 23.6.0 or newer; Node 23.0–23.5 are not supported). Development tests resolve Pi through the open `>=1.0.0` development range. The private Vim editor adapter admits only the audited Pi `0.99.1`, `0.99.2`, `1.0.0`, `1.1.0`, `1.2.0`, `1.3.0`, `1.4.0`, `1.5.0`, `1.5.1`, `1.5.2`, `1.6.0`, and `1.6.1` releases; any other release keeps ordinary prompt editing until its editor is audited. Use the latest Pi release; gentle-pi does not update your installed Pi automatically. Children, including any `GENTLE_PI_AGENTS_PI` override, must emit `agent_settled`: `agent_end` records a run's output but is not completion because retries or queued continuations may follow.
350
354
 
351
355
  The `subagent_*` tools and the agents card replace the third-party subagents package (remove `npm:pi-subagents-j0k3r` from your pi packages; while it is still installed the tools stay unregistered and a warning says so at startup). Agent definitions and settings are the ones you already have: markdown agents in `~/.pi/agent/agents/`, `~/.pi/agent/subagents/`, `<cwd>/.pi/agents/`, `<cwd>/.pi/subagents/` (project beats global, `subagents/` beats `agents/`), and `subagents.json` at the global and project level (`default_model`, `default_effort`, `default_mode`, `model_profiles`, `stall_timeout_ms`, `tool_stall_timeout_ms`, `max_concurrency`, `history_max_tasks`, `report_max_bytes`). A finished child's report is delivered into your context up to `report_max_bytes` (default 16384) UTF-8 bytes; a longer one arrives as its head, a truncation line with the exact byte counts naming `subagent_result`, and the end of the report (its last 2048 bytes at most, from a line start), so a closing summary that a memory provider reads from the delivered text is not lost (a report whose part after the head is 2048 bytes or less is delivered whole); a report from a `jd-*` or `review-*` agent, or one that is a single JSON object or array, is never cut, and `subagent_result` returns the full text.
352
356
 
@@ -363,15 +367,17 @@ The card is above the editor in every mode, including fullscreen — it is not o
363
367
 
364
368
  Every subagent is its own `pi --mode rpc` child process, so the terminal never runs subagent work: the host reads JSON lines, applies each one as a small delta to a bounded per-task thread, and notifies only the listeners of that task. A task-mode child's question (`ctx.ui.select`, `confirm`, `input`, `editor`) reaches you as an ordinary pi dialog; a background child's question is dismissed. Subagents have no automatic total execution timeout: a long-running child remains live while it continues emitting RPC events. A silent child still times out through the configurable `stall_timeout_ms` watchdog (default four minutes). An announced tool call that is still running is live work, not silence, so it is bounded by `tool_stall_timeout_ms` instead (default 30 minutes, never below `stall_timeout_ms`). Closing pi stops the children that are still running.
365
369
 
366
- Delegated children (`GENTLE_PI_AGENTS_CHILD=1`) load the same context files as their parent, minus the gentle-ai managed blocks that bind themselves to the orchestrator, such as `orchestrator` and `agent-routing` (the full list lives in [`lib/child-context-files.ts`](../lib/child-context-files.ts)), and minus the `engram-protocol` memory block, which gentle-engram injects itself every turn. Every other managed block (for example `codegraph-guidance`, or `remote-authorization` nested inside `agent-routing`) and all unmanaged project text reach the child unchanged. A marker counts only when it is alone on its line outside fenced code; if a file's markers are unbalanced, mismatched, or ambiguous, that file is passed through unfiltered. The filtering lives in the packaged `extensions/child-context.ts`, which every child loads (see below); if that file is missing, the child starts without it and keeps today's unfiltered context. The extension registers only a `before_agent_start` hook and does nothing outside a child session; the primary session applies the same filter itself while Gentle Shell injects its own orchestrator prompt. Only the injected context is filtered: every file on disk keeps all of its blocks, so a runtime that reads the same file as a workspace file and carries no runtime-injected protocol (OpenClaw) still gets the `engram-protocol` block.
370
+ Delegated children (`GENTLE_PI_AGENTS_CHILD=1`) load the same context files as their parent, minus the gentle-ai managed blocks that bind themselves to the orchestrator, such as `orchestrator` and `agent-routing` (the full list lives in [`lib/child-context-files.ts`](../lib/child-context-files.ts)), and minus the `engram-protocol` memory block, which gentle-engram injects itself every turn. Every other managed block (for example `remote-authorization` nested inside `agent-routing`) and all unmanaged project text reach the child unchanged. A marker counts only when it is alone on its line outside fenced code; if a file's markers are unbalanced, mismatched, or ambiguous, that file is passed through unfiltered. The filtering lives in the packaged `extensions/child-context.ts`, which every child loads (see below); if that file is missing, the child starts without it and keeps today's unfiltered context. The extension registers only a `before_agent_start` hook and does nothing outside a child session; the primary session applies the same filter itself while Gentle Shell injects its own orchestrator prompt. Only the injected context is filtered: every file on disk keeps all of its blocks, so a runtime that reads the same file as a workspace file and carries no runtime-injected protocol (OpenClaw) still gets the `engram-protocol` block.
367
371
 
368
372
  Children of the package-owned `gentle-ai-worker`, `gentle-ai-explore`, and `gentle-ai-verify` agents start without Pi's skills catalog: the parent passes the exact skill paths they need, which they open with `read`. Gentle Agents sets `GENTLE_PI_AGENTS_NO_SKILLS_CATALOG=1` for those children, and `extensions/child-context.ts` empties the loaded skills before the first prompt, so no `<available_skills>` section is sent under either launch form, including the package's own skills in the Gentle Shell launch below. An agent with one of those names in a project `.pi/agents/` or a `subagents/` directory, and every other agent, keeps the full catalog.
369
373
 
370
374
  In the isolated Gentle Shell home, `settings.json` does not declare gentle-pi; the launcher injects it with `-e`. So that children load the same package as the parent, the launcher also exports `GENTLE_SHELL_CHILD_PACKAGE_INJECTION` with that exact `-e` set, and Gentle Agents forwards the same set to every child as `--extension` arguments, plus `--no-extensions` when the launch replaced the configured extensions (a takeover). A child then has the same package commands, tools, guardrails, skills, and prompts as a regular gentle-pi child, where `settings.json` declares the package:
371
375
 
372
376
  - Children skip parent-only startup work: package asset install, model configuration, the skill registry, and history capture.
377
+ - Children also skip the UI-only entrypoints: `startup-banner`, `gentle-music`, `gentle-star-prompt`, and `gentle-tps` register nothing when `GENTLE_PI_AGENTS_CHILD=1`, because a child has no terminal to paint. A child's `rpc` inputs therefore no longer count toward the star prompt. Parent sessions are unchanged, and the must-run child behavior listed above stays loaded.
378
+ - An agent definition's frontmatter is read for `name`, `description`, `model`, `thinking` (also `effort`, `thinking_level`), `mode` (also `subagent_mode`), and `tools`. Any other key, for example `extensions:`, is ignored: the agent still loads and Gentle Shell reports `<file>: unknown frontmatter key "<key>" is ignored` as a discovery notice. A child's extensions are set by the host, never by the agent file.
373
379
  - A guardrails command classed `confirm` becomes a child question like any other above: a task-mode child asks the parent user and waits for the answer; a background child's question is dismissed.
374
- - A tool the agent requests in `--tools` that does not exist in the child when its first prompt starts adds a task note, for example `gentle-agents: requested tools missing in child: codegraph`. MCP tools (`mcp__*`) are not checked because they register later.
380
+ - A tool the agent requests in `--tools` that does not exist in the child when its first prompt starts adds a task note, for example `gentle-agents: requested tools missing in child: gentle_review_scope`. MCP tools (`mcp__*`) are not checked because they register later.
375
381
  - Without the signal, for example after a manual `pi -e <package>` launch, children fall back to `extensions/child-context.ts`, `extensions/child-safety.ts`, and `extensions/nan-provider.ts` only, with no missing-tool note. That fallback list is frozen; new child behavior ships in the package.
376
382
  - A takeover forwards every package the parent loaded, so a settings package with no extensions (for example a skills-only package with only a `package.json`), which already makes the takeover parent fail with `Failed to load extension`, makes the child fail the same way; this limitation predates forwarding.
377
383
 
@@ -398,9 +404,9 @@ In the isolated Gentle Shell home, `settings.json` does not declare gentle-pi; t
398
404
 
399
405
  ### Background jobs
400
406
 
401
- Use synchronous bash for local, finite, deterministic checks reasonably expected to finish within 30 seconds, with an explicit timeout <= 30 seconds (30 included). Use `bash_background` for longer or unknown duration, external waits, CI, builds, and servers. Inline means the same parent, not necessarily synchronous bash. Report a timeout as failure; never automatically retry, restart, or migrate it to background. Preserve RED/GREEN and public-check exit codes, stdout, and stderr; do not defer or batch Engram bugfix saves and session summaries or bypass RDD. This is agent-facing guidance, not runtime enforcement and not a performance guarantee.
407
+ Use synchronous bash for local, finite, deterministic checks likely to finish within 30s (explicit timeout <= 30s, inclusive). Use `bash_background` for longer or unknown duration, external waits, CI, builds, servers, deploys, and long tests. Inline means the same parent, not necessarily synchronous bash. Report synchronous timeouts as failures. Read output and diagnose the cause. Rerun with a fix within explicit limits, never the same timed-out invocation. If duration is the cause, say so; the same command may run in background. Preserve RED/GREEN and public-check exit codes, stdout, and stderr; do not defer or batch Engram bugfix saves and session summaries or bypass RDD. This is agent-facing guidance, not runtime enforcement and not a performance guarantee.
402
408
 
403
- Waiting on CI, a build, or a server should cost neither a `sleep` loop nor a subagent, and neither should reacting to a log or a CI run while it progresses. `bash_background` runs a shell command in the background and returns a job id at once; the agent ends its turn or keeps working, and when the command exits the agent gets one message with the exit code, the last output lines, and the output file path. The wait condition lives inside the command, so its exit is the event:
409
+ Waiting on CI, a build, or a server should cost neither a `sleep` loop nor a subagent, and neither should reacting to a log or a CI run while it progresses. `bash_background` runs a shell command in the background and returns a job id at once. The agent continues independent in-scope work now and ends the turn to wait only when none remains. On exit the agent gets one message with the exit code, the last output lines, and the output file path. The wait condition lives inside the command, so its exit is the event:
404
410
 
405
411
  ```bash
406
412
  gh run watch 12345 --exit-status # CI finished
@@ -408,12 +414,12 @@ until curl -sf localhost:3000/health; do sleep 1; done # server is up
408
414
  ```
409
415
 
410
416
  - Jobs run through Pi's own Bash execution: your configured `shellPath` and `shellCommandPrefix`, a process group per job, and process-tree kill. `bash_background` is a separate tool; native `bash` is unchanged.
411
- - The exit notice uses the same delivery as background subagent results: it is steered into a running turn at the next turn boundary, or stored and wakes an idle session. A job the agent stops with `job_stop` sends no notice; one you stop from `/gentle:jobs` is reported to the agent as stopped by the user.
417
+ - The exit notice uses the same delivery as background subagent results: it is steered into a running turn at the next turn boundary, or stored and wakes an idle session. The agent reads the result and continues the authorized work that depended on the job; a non-zero exit is an obstacle to diagnose, not the end of the task. A job the agent stops with `job_stop` sends no notice; one you stop from `/gentle:jobs` is reported to the agent as stopped by the user.
412
418
  - stdout and stderr go to a temp file (`gentle-jobs-*/job-N.log`), never into the context; the agent reads it with `read` when it needs more than the tail. The tail keeps the last 20 lines, each capped at its newest 2,000 characters, and the log directory is removed when the session shuts down.
413
419
  - `bash_background` passes through the same command confirmation, YOLO waiver, and child safety guards as `bash`.
414
- - While the orchestrator has background work running (a subagent task or a background job), a `bash` call that only sleeps (`sleep 10`, `sleep 2m`, or several such sleeps joined by `&&`/`;`) is refused with a message to end the turn, because each completion already arrives as its own message. Wait conditions such as `until ...; do sleep 1; done`, sleeps mixed with real commands, `bash_background`, and `monitor` are never refused, and `sleep` is unrestricted when nothing runs in the background.
420
+ - While the orchestrator has background work running (a subagent task or a background job), a `bash` call that only sleeps (`sleep 10`, `sleep 2m`, or several such sleeps joined by `&&`/`;`) is refused with a message to continue independent work and end the turn only when none remains, because each completion already arrives as its own message. Wait conditions such as `until ...; do sleep 1; done`, sleeps mixed with real commands, `bash_background`, and `monitor` are never refused, and `sleep` is unrestricted when nothing runs in the background.
415
421
  - Jobs live in memory, belong to the session that started them, and are stopped when the session shuts down. At most 25 run at once.
416
- - `monitor` is a background job whose every output line is an event, delivered while the command keeps running — for example `tail -f app.log | grep --line-buffered ERROR`, or a loop that prints each CI check as it finishes. Lines within 200 ms share one notice of at most 20 lines (the rest are counted, and stay in the log); notices waiting for a busy agent coalesce. `timeout_seconds` is mandatory (1–1800): the monitor is stopped when it expires and reports its event count. One that prints more than 120 lines within 60 seconds is stopped as a flood, so filter its output. When the command exits, a final notice reports the exit code and event count. It goes through the same command guards as `bash`.
422
+ - `monitor` is a background job whose every output line is an event, delivered while the command keeps running — for example `tail -f app.log | grep --line-buffered ERROR`, or a loop that prints each CI check as it finishes. Lines within 200 ms share one notice of at most 20 lines (the rest are counted, and stay in the log); notices waiting for a busy agent coalesce. `timeout_seconds` is mandatory (1–1800). When that agent-configured limit expires, the monitor ends and reports its event count; this is not a failure or a user stop. A new monitor is allowed only if watching is still needed for authorized work and other limits allow it. One that prints more than 120 lines within 60 seconds is stopped as a flood, so filter its output. When the command exits, a final notice reports the exit code and event count. The same wait rule applies: continue independent in-scope work and resume dependent work on relevant events or the exit notice. It goes through the same command guards as `bash`.
417
423
  - `/gentle:jobs` opens a full-terminal overlay with this session's jobs beside the selected job's command, status, output file, and live output tail; `↑`/`↓` or `j`/`k` move, `s` stops the selected running job, `q` closes (narrow terminals: `Tab` toggles details, `Escape` goes back). In fullscreen, click a visible job or the details, Stop and close controls; hovered targets use the shared orange role, and Stop rechecks the selected job's current identity and running status. The footer shows `⧗ N jobs` while any run. In fullscreen at 140 columns or wider, running jobs also get their own collapsible sidebar card (`⧗ Jobs`), one row per job with its elapsed time, newest first; it paints nothing only while nothing is current — no running jobs and no finished result still inside its 60-second tail, the Status card never repeats it, and `ctrl+shift+j` (or clicking the card's header) collapses it; `GENTLE_PI_JOBS_KEY` remaps the shortcut, with an empty value or `off` disabling it.
418
424
 
419
425
  ### Conflict markers in commits
@@ -426,7 +432,7 @@ The session refuses a `git commit` run through `bash` or `bash_background` when
426
432
  - For a file that contains markers on purpose, such as a fixture or a document that shows a conflict, set Git's own `conflict-marker-size` attribute in `.gitattributes`, for example `docs/conflict-example.md conflict-marker-size=32`. Markers that a file already contained before this commit do not count.
427
433
  - `git -C <dir>`, a leading `cd <dir> &&`, `builtin cd` and `command cd` select the repository that is checked. Redirections (`2>&1`, `>&2`, `&>file`, `> /dev/null`, `< file`) belong to their command and keep that directory, and a backslash at the end of a line continues the command, so flags and paths on the next line count.
428
434
  - Not checked, and let through without a message: pushes (the range a push publishes depends on remote refs that may be stale or missing offline, so a check would block legitimate pushes of content already published; every commit made in the session is checked instead); wrapped shells (`sh -c`, `eval`, `env`, a `cd` with options); `GIT_*` variables, `--git-dir` and `--work-tree`; `git add -p`, `-i`, `-e`, `-N`, pathspec magic (`:(...)`) and shell globs, whose staging cannot be predicted (the existing index is still checked); a direct `git merge <branch>` that completes without stopping; untracked files over 1 MiB, binary files, and more than 200 candidate files per check; a diff over 16 MiB; and anything Git cannot answer within the 5-second budget for the whole check, or outside a repository.
429
- - This is a mechanical guard, not a review. It runs whether RDD is on, off or unknown, and only after the RDD pre-delivery check, whose denials take precedence and are unchanged. It does not run in subagent sessions and never writes to the repository.
435
+ - This is a mechanical guard, not a review. It runs whether RDD is on, off or unknown. It does not run in subagent sessions and never writes to the repository.
430
436
 
431
437
  ### Gentle Todo
432
438
 
@@ -489,7 +495,7 @@ You do not need the command: ask in plain language for a screen, mockup, landing
489
495
  The canvas opens in navigation mode: the mouse wheel and trackpad pan or zoom the canvas, even over an artboard, a drag on the empty canvas pans it (a drag on an artboard moves it; see **Layout**), and Ctrl/Cmd + wheel zooms. Hovering an artboard shows "Click to use this design"; clicking it enters focus mode, which shows that artboard at 100% as wide as the window (**Desktop**, see **Sizes**; an artboard designed wider than the window keeps its width and is drawn smaller to fit, with the zoom showing how much) and lets it own the pointer and keyboard, so its own scrolling, hovers, buttons, and inputs behave like the real page. While an artboard is in focus, it keeps 8 px from the window's edges with a 48 px band below it for "Back to canvas", the comments panel hides to make room, the other artboards are hidden, the canvas does not pan or zoom, and an artboard taller than the window scrolls inside its frame. To return to navigation mode, press the floating "Back to canvas" button or `Shift+Esc`, which works even while typing inside the artboard; plain `Esc` stays with the design, and the previous zoom, position, and comments panel are restored. Comment mode keeps working in both modes: a click picks an element instead of entering focus mode.
490
496
 
491
497
  - While the agent is busy, the run is queued as a follow-up.
492
- - `/gentle:design open [slug]` shows a design on a local canvas in the default browser: every artboard side by side at its manifest size, with its title and tradeoff; zoom with the buttons or Ctrl/Cmd + wheel, pan by scrolling or by dragging the empty canvas, and Fit to the window. The view starts fitted and fits again when the window or the panel changes size, until you zoom or pan yourself; while you write a comment it waits, and the next size change fits it. The canvas reloads an artboard when its file changes and the whole design when `design.json` changes. Without a slug it opens the most recent design. The URL is always printed; when the browser cannot be opened, open it manually.
498
+ - `/gentle:design open [slug]` shows a design on a local canvas in the default browser: every artboard side by side at its manifest size, with its title and tradeoff; zoom with the buttons or Ctrl/Cmd + wheel, pan by scrolling or by dragging the empty canvas, and Fit to the window. The view starts fitted and fits again when the window or the panel changes size, until you zoom or pan yourself; while you write a comment it waits, and the next size change fits it. The canvas reloads an artboard when its file changes and the whole design when `design.json` changes. Without a slug it opens the most recent design. The URL is always printed; when the browser cannot be opened, open it manually. A host that shows the canvas itself, such as the desktop app, sets `GENTLE_DESIGN_OPEN_BROWSER=0` so an open never launches the system browser; the canvas still starts and the URL is still printed (the `gentle_design` tool returns `opened: false, browserDisabled: true`).
493
499
  - **Tool rail** (left of the canvas): few tools, each an icon with a word under it: **Move** (`V`, leaves Comment mode) and **Comment** (`C`), one pressed pair; **Overview** (`F`), which fits every board like **Fit**; and **Settings** (a gear) at the bottom, a menu with **Design system board** (shows `design/system.html` in focus mode; unavailable when there is none), **Keyboard shortcuts** (`?`), the list of every shortcut, **Technical details**, a checkbox (off by default) that turns on the token inspector (see **Tokens**), the theme, two radio items under a **Theme** heading: **Gentleman**, the Gentleman brand's pink on plum, and **Neutral**, the default gray and blue (saved in this browser, `localStorage`, key `gentle-design:theme`, applied at once and from the first paint on reload; artboards keep their own colors, while the Comment mode outlines drawn inside them follow the theme), and the language, three radio items under a **Language** heading: **Español**, **English** and **Match the browser**, the default, which follows the browser's language (Spanish for any `es` language, English for anything else) and changes with it. The choice is saved in this browser (`localStorage`, key `gentle-design:language`; a browser that blocks storage keeps it for the page only) and applies at once, without reloading any artboard: the canvas's own words on every surface (the rail, the top bar, the artboards' controls and handoff row, the keyboard shortcuts list, the minimap, the preview sizes with All sizes and the Overflows chip, the ⋯ export menu, Compare, the layout's messages, the Comments panel and the comment box, **Partial implementations** with its dates, the token inspector and **Quality**, whose accessibility findings are shown in the chosen language) and the page's `lang` switch (a message already on the status line or in a toast keeps the language it was shown in), while comment text, artboard titles and tradeoffs, and design file names stay as written; the menu notes that Messages to the agent stay in English, as everything the canvas sends to the session does: a comment goes as you wrote it, the request **Ask the agent to fix** prefills is in English, and so are the findings in it, even when the card shows them in Spanish. `]` shows or hides the Comments panel. Settings keeps the usual menu keys (arrows, `Home`, `End`, `Enter`, `Esc` back to the button, `Tab` or a click outside to close). Compare covers the rail, which stays inactive until **Back to canvas**. Single-key shortcuts are ignored while typing, with Ctrl, Alt or Cmd (a key typed with AltGr still counts as a single key), while the comment popover, a menu or Compare is open, and in focus mode, where only `Shift+Esc` applies; while the list is open only its own key works, and closes it. These keys are the defaults and can be changed in the **Keyboard shortcuts** list: **Change** next to an action (Move, Comment, Overview, the Comments panel, the minimap or **Show keyboard shortcuts**, the list itself) waits for the next key and gives that action the single key pressed (a letter, digit or punctuation key, without Ctrl, Alt or Cmd, AltGr allowed; `Esc` cancels the wait and `Tab` moves on and ends it), and a key another action already uses is refused with a message naming that action, so nothing changes. **Reset** puts one action back on its default key and **Restore defaults** puts them all back. The keys are saved in this browser (`localStorage`, key `gentle-design:shortcuts`) for every design the running canvas shows (when the browser cannot save them, the list says the change holds for this page only); the browser keeps them per canvas address, and the canvas server listens on a new port each time it starts, so after a restart the shortcuts are back to their defaults, an unusable or conflicting saved entry falls back to that action's default, and the rail's tooltips, the Comments button, the minimap, **Settings** and the list always show the current keys. `Esc`, `Shift+Esc`, the arrows, `Space`, `Enter`, `Tab` and the zoom keys (`+`, `-`, `0`) stay fixed and cannot be assigned.
494
500
  - **Layout**: in Move mode, drag an artboard by any part of it (its title, its frame, the gaps in its header; not its buttons) to move it anywhere on the canvas, in canvas pixels at any zoom; the artboard you press shows selected, outlined whole, until you press the empty canvas or `Esc`, and a still click on its frame still opens it. A drag on the empty canvas pans, and holding `Space` pans from anywhere, even over an artboard. **Row**, **Column** and **Grid** in the top bar lay every artboard out again, 80 px apart, and fit the view; a moved artboard makes the layout free (none of the three pressed). Where the artboards sit is saved once per move or arrangement in `design/<slug>/layout.json` (the system board under the key `system`), restored when the design opens, and followed live by every open canvas page; without the file the artboards sit in a row, and a file that cannot be read never stops the canvas: a `layout.json` that cannot be read or used (not valid JSON, no valid layout or a position more than 2,000,000 px from the origin, too large, or not a regular file) keeps the artboards where they are and says so in the status line, and until it can be read again (or is removed) nothing is saved over it: moving an artboard or **Row**, **Column** and **Grid** change only the view. A read with no answer from the server keeps the artboards where they are without a message. A save that fails says so in the status line, and the message stays (a `design.json` reload shows it again) while the layout is unsaved; the next save that succeeds clears it. The arrangement is off inside an artboard, in Compare and when no board shows, and in Comment mode a drag on an artboard pans instead of moving it, so a click still picks an element. `Space` held on **Row**, **Column** or **Grid** just clicked pans too; a button reached with `Tab` keeps `Space` for itself. Moving an artboard by hand (free positioning) is pointer-only: from the keyboard, **Row**, **Column** and **Grid** lay the artboards out, and on the canvas the arrow keys pan, `+` and `-` zoom and `0` fits every board.
495
501
  - **Sizes**: the **Preview size** button in the top bar, after **Row**, **Column** and **Grid**, shows the open artboard's size with its icon, name and `<width> × <height>` (`Desktop 1440 × 900`); it works on an open artboard only, so outside focus mode it is disabled and its tooltip says to open an artboard. It opens a menu with the usual menu keys (arrows, `Home`, `End`, `Enter`, `Esc` back to the button, `Tab` or a click outside to close) and **Phone** (390 × 844), **Tablet** (820 × 1180), **Desktop** (the window's width less its 8 px margins, at the artboard's height in `design.json`, never narrower than the artboard's own width; checked when focus mode starts), **All sizes**, and a **Custom** width field (whole px from 240 to 2560, applied with `Enter`; the height stays the artboard's own). A width out of range keeps the menu open and says which numbers it takes. A size resizes the artboard's frame at 100% without reloading it, so the design's own media queries respond; a size taller than the window is clipped like a tall artboard, and one wider than the window keeps its width and is drawn smaller to fit. **All sizes** shows the open artboard at Phone, Tablet and **As designed** (the artboard's own size in `design.json`) side by side below its title, each in its own iframe at its true width so the design's media queries apply, all drawn at one scale that fits the window (each label names the size and the scale); live reload reloads every frame. Comment mode and pins work at every size and in every All sizes frame: a pick opens the comment box beside the element in the frame it was made in. A frame whose page is wider than it shows an **Overflows** chip at its bottom right, whose tooltip says the content is wider than that many px; the open artboard's own frame shows it only at a single size. A comment made at Phone, Tablet, a custom width or in an All sizes frame records that size unless it is the artboard's own; Desktop records none, since its width is the window's. Its card in the comments panel shows the size it was made at (`Phone 390 × 844`, `Tablet 820 × 1180` or `<width> × <height>`). Leaving focus mode, or opening another artboard, restores the artboard's own size and closes All sizes.
@@ -524,7 +530,7 @@ The canvas server binds `127.0.0.1` on a random port and needs a random per-serv
524
530
 
525
531
  ### Gentle Tower
526
532
 
527
- Gentle Tower is a web view of every open Gentle Shell session, for people who prefer a picture to a terminal. Each project is a painted building and each session is a floor of it. Open it with `/gentle:tower` inside a session, or with `gentle-shell tower` from any terminal (`--no-open` prints the URL only, `--port <n>` fixes the port). It serves until Ctrl+C or until the session that opened it ends. Hovering anything clickable outlines it and names what a click does; a short tour on the first visit points at the floors, people, rooms, door and top bar, and the `?` button (or the `?` key) shows it again.
533
+ Gentle Tower is a web view of every open Gentle Shell session, for people who prefer a picture to a terminal. Each project is a painted building and each session is a floor of it. Open it with `/gentle:tower` inside a session, or with `gentle-shell tower` from any terminal (`--no-open` prints the URL only, `--port <n>` fixes the port, `--json` prints one JSON line `{"schema":"gentle-shell.tower/v1","url":…,"host":"127.0.0.1","port":…}` instead of the text, for programs such as the desktop app). It serves until Ctrl+C or until the session that opened it ends. Hovering anything clickable outlines it and names what a click does; a short tour on the first visit points at the floors, people, rooms, door and top bar, and the `?` button (or the `?` key) shows it again.
528
534
 
529
535
  <img width="100%" src="assets/features/gentle-tower.png" alt="Gentle Tower with two floors of the gentle-pi building, their todo bars on the left and the selection strip with Talk, Tasks, Artifacts and Permissions at the bottom">
530
536
 
@@ -59,8 +59,8 @@ it lets the window close.
59
59
  Current requirements come from `package.json` and
60
60
  [`gentle-ai-installer.mjs`](../scripts/gentle-ai-installer.mjs): Node `^22.19.0 || >=23.6.0`
61
61
  (22.19.0 or a later 22.x release, or 23.6.0 or newer; 23.0–23.5 are not
62
- supported), Pi ≥1.2.0, pnpm acquisition 11.1.1, Gentle Shell package 4.0.0 and package-local
63
- Gentle AI 4.6.0. Windows native source builds require Go ≥1.25.10 when the
62
+ supported), Pi ≥1.2.0, pnpm acquisition 11.1.1, Gentle Shell package 5.1.0 and package-local
63
+ Gentle AI 5.1.0. Windows native source builds require Go ≥1.25.10 when the
64
64
  required usable native binary is missing. A reusable binary does not require Go.
65
65
  When a build needs Go and the user's Go is missing, older or unchecked, the installer uses
66
66
  its own [pinned Go](#pinned-go) instead of blocking.
@@ -743,7 +743,7 @@ PNPM_HOME, `pnpm add -g @earendil-works/pi-coding-agent@1.0.0 gentle-pi@4.0.0`
743
743
  lists Pi 1.0.0 while the Pi beside gentle-pi is 1.1.0. So Gentle Shell may run a
744
744
  Pi newer than `PI_INSTALL_VERSION`, always at least the minimum: the runner
745
745
  verifies that Pi (`verify-global-list`, the setup recovery, a pnpm
746
- `verify-updated-shell`) and, when it is not `PI_INSTALL_VERSION` (1.5.2 now; the 1.0.0/1.1.0/1.2.0 figures above are that older verification), the outcome says which Pi
746
+ `verify-updated-shell`) and, when it is not `PI_INSTALL_VERSION` (1.6.0 now; the 1.0.0/1.1.0/1.2.0 figures above are that older verification), the outcome says which Pi
747
747
  Gentle Shell runs. `--config.auto-install-peers=false` would leave gentle-pi
748
748
  with no Pi beside it, so the launcher would run any `pi` on PATH, and
749
749
  `--config.overrides` is ignored for global installs.
@@ -794,7 +794,7 @@ publishes main builds, so main is built on this computer
794
794
  - After the release stack is installed and `verify-gentle-ai` passed, the runner:
795
795
  1. `build-gentle-ai-main`: resolves the latest `main` commit of
796
796
  Gentleman-Programming/gentle-ai (GitHub API, raw SHA), runs
797
- `go install github.com/gentleman-programming/gentle-ai/v4/cmd/gentle-ai@<sha>`
797
+ `go install github.com/gentleman-programming/gentle-ai/v5/cmd/gentle-ai@<sha>`
798
798
  in a sealed Go environment (`GOPROXY=https://proxy.golang.org`,
799
799
  `GOSUMDB=sum.golang.org`, `GOTOOLCHAIN=local`, `GOFLAGS=-modcacherw`),
800
800
  asks Go (`go list -m -json`, same environment) which module version that
@@ -810,7 +810,9 @@ publishes main builds, so main is built on this computer
810
810
  path, never a `tar` from PATH: Git for Windows' MSYS tar in `usr\bin` reads
811
811
  a `D:\…` archive path as a remote host and fails with `Cannot connect to D:
812
812
  resolve failed`), sets its version to `<version>-main.<sha12>`, removes `prepack` and `prepare`
813
- (which would run the full test suite), packs it with `pnpm pack` into
813
+ (which would run the full test suite), runs `pnpm run build:tower` so the
814
+ packed tarball includes `web/tower/dist` (otherwise `gentle-shell tower`
815
+ fails on a main-channel install), packs it with `pnpm pack` into
814
816
  `<config home>/main/packages/`, runs `pnpm add -g <tgz> --allow-build=gentle-pi`
815
817
  and requires `pnpm list -g` to report that exact version under PNPM_HOME,
816
818
  with a Pi at least the minimum beside it.
@@ -40,7 +40,7 @@ The permanent modules have direct production consumers after #191:
40
40
  | Permanent module | Direct production consumers |
41
41
  | --- | --- |
42
42
  | `review-canonical.ts` | `extensions/gentle-ai.ts` and eight live review modules |
43
- | `review-repository.ts` | `extensions/gentle-ai.ts`, graph object store, legacy detector, snapshot, and transaction |
43
+ | `review-repository.ts` | `extensions/gentle-ai.ts`, graph object store, snapshot, and transaction |
44
44
  | `review-candidate-view.ts` | `extensions/gentle-ai.ts` |
45
45
 
46
46
  The remaining ordinary reducer is not dead authority. Historical graph event replay calls it to validate semantic adjacency. Deleting it would weaken graph integrity even though controller mutation is read-only.
@@ -92,9 +92,9 @@ The packaged `contracts/review-integration/v1/` schemas and fixtures plus `docs/
92
92
 
93
93
  ## Published Maintenance Boundary
94
94
 
95
- Gentle AI has exposed explicit, audited maintenance commands outside negotiated ordinary review since v2.1.11; the currently pinned v2.4.0 keeps them available under the same legacy version table. Pi invokes `review abandon`, `review quarantine-legacy`, and `review reconcile-authority` only after fresh interactive approval of exact LF-only authorization text; headless execution and absent, malformed, or stale bindings fail closed.
95
+ Gentle AI has exposed explicit, audited maintenance commands outside negotiated ordinary review since v2.1.11; the currently pinned v2.4.0 keeps them available under the same legacy version table. Pi invokes `review abandon` only after fresh interactive approval of exact LF-only authorization text; headless execution and absent, malformed, or stale bindings fail closed.
96
96
 
97
- `abandon` is restricted by native re-derivation to a caller-named non-terminal compact-v2 lineage; the facade freshly reads the authoritative native inventory, requires a unique lineage entry, and derives the exact discarded-work summary before rendering the `gentle-ai.review-abandon-authorization/v2` binding, whose fields the native gate re-derives before accepting (captured lens results with their ordinal order, findings presence). `quarantine-legacy` accepts only the published malformed freeze-findings diagnostic and disposition. Reconciliation accepts the exact dual anomaly suffix `anomalies=unchanged_target,malformed_recovery_authorization` only in that order. `repair-legacy-alias` derives repository, revision, diagnostic, and disposition from freshly read native inventory before its own approval and can only quarantine one qualified historical alias chain. `review dispose-result` remains unexposed pending design. Recovery routes only the provider-selected negotiated `action_disposition`.
97
+ `abandon` is restricted by native re-derivation to a caller-named non-terminal compact-v2 lineage; the facade freshly reads the authoritative native inventory, requires a unique lineage entry, and derives the exact discarded-work summary before rendering the `gentle-ai.review-abandon-authorization/v2` binding, whose fields the native gate re-derives before accepting (captured lens results with their ordinal order, findings presence). `review dispose-result` remains unexposed pending design. Recovery routes only the provider-selected negotiated `action_disposition`.
98
98
 
99
99
  ## Windows Evidence
100
100
 
@@ -17,8 +17,8 @@ Source: `42c68c46859f1724ce9179d8781dd4ee35c13a00`, `odd/tasks/review-one-call.m
17
17
 
18
18
  This accounts only for removed mandatory mirror reads, excluding protocol envelopes. Targeted local inspection, full mirror writes and initial/recovery reads remain. Tools may expose extra bytes or clip outputs. This is instruction-volume accounting, **not an observed agent run, model-compliance result, token-cost measurement or latency benchmark**. It does not establish the cause or duration of the original incidents. Available local project sessions predate the November reports and were not treated as reproductions.
19
19
 
20
- No new telemetry, framework, budget, agent, tracking artifact, approval or authority layer was introduced. No memory records were created for the accounting fixture. Existing consent, verification, delivery and correction limits are unchanged.
20
+ No new telemetry, framework, budget, agent, tracking artifact, approval or authority layer was introduced. No memory records were created for the accounting fixture. Consent, verification, delivery and explicit limits still apply. Worker corrections follow the [progress rule](delegated-verification.md#parent-continuation-after-a-workers-partial-handoff): diagnose each obstacle and change what caused it, without a default attempt limit.
21
21
 
22
22
  ## Validation
23
23
 
24
- The existing prompt-diet and work-continuity suites pass. They check instruction contracts and parent prompt delivery, not model choices. The provider-owned mirrored routing's Close step now owns the authorized-work boundary (contract 1.6.0 field-test mirror): a pending child is a wait event whose completion resumes the turn, and only a real human decision, the user's explicit stop, an already-decided denial, missing consent, or an exhausted limit stops the affected work, never unrelated authorized work. The always-on prompt defers to that boundary and keeps only Pi-owned reuse, budget, and guard clauses. No RDD switch, native guard, question tool, or surface policy changed. A representative real task trace is still needed to measure time to the first useful edit, repeated reads/consultations and redundant verification, and to decide whether other causes remain.
24
+ The existing prompt-diet and work-continuity suites pass. They check instruction contracts and parent prompt delivery, not model choices. The provider-owned mirrored routing's Close step now owns the authorized-work boundary (contract 1.7.0 field-test mirror): a pending child is a wait event whose completion resumes the turn. A real human decision, the user's explicit stop, a denial, missing consent, or an exhausted limit stops only the affected work. If a check fails, continue while a permitted route remains. If none remains, report the affected work as incomplete and continue independent authorized work; a technical dead end does not itself require a human decision. The always-on prompt defers to that boundary and keeps only Pi-owned reuse, budget, and guard clauses. No RDD switch, native guard, question tool, or surface policy changed. A representative real task trace is still needed to measure time to the first useful edit, repeated reads/consultations and redundant verification, and to decide whether other causes remain.
@@ -1,6 +1,14 @@
1
1
  # Choose how permission questions are handled
2
2
 
3
- Use **Normal**, **Auto**, **YOLO**, or **Super Yolo** for the current primary session. Optionally save any of them as the user-global default for future sessions. These modes do not redesign Gentle Shell delegation, expand the task you authorized, or replace independent safety and consent. One always-on exception: reading the task's exact resolved skill files (the selected `SKILL.md` plus its referenced instruction files, by registry, catalog or parent-supplied paths) needs no per-file permission question in any mode; secrets, sensitive paths, unrelated personal files and explicit user prohibitions still apply.
3
+ Use **Normal**, **Auto**, **YOLO**, or **Super Yolo** for the current primary session. Optionally save any of them as the user-global default for future sessions. These modes do not redesign Gentle Shell delegation, expand the task you authorized, or replace independent safety and consent. One always-on exception: reading the task's exact resolved skill files (for example, the selected `SKILL.md` plus its referenced instruction files, by registry, catalog or parent-supplied paths) needs no per-file permission question in any mode when those exact files are indexed by the session; secrets, sensitive paths, unrelated personal files and explicit user prohibitions still apply.
4
+
5
+ ## File tools outside the session worktree
6
+
7
+ `read`, `write`, `edit`, `grep`, `find`, and `ls` ask before using a target outside the session's Git worktree (or session directory outside Git) and its registered same-clone worktrees. The dialog names the resolved, absolute target. A yes grants access to that target for the rest of the live session, not its children or neighbors. Without an interactive UI, an ungranted outside target is blocked.
8
+
9
+ The OS temp directory (session `TMPDIR`, `/tmp`, or `/var/tmp`) does not need this consent. Neither does `read` of an exact skill file indexed by Pi or Gentle Shell; nearby files and writes to outside skill files are not exempt. Sensitive paths still deny first. In Auto, a confirmed access still goes through the classifier. YOLO already covers non-sensitive reads and listings, and Super Yolo waives permission prompts; neither mode overrides hard denials.
10
+
11
+ This is a consent check, not a filesystem sandbox. It does not inspect every file inside a search target, and it does not cover `bash` or custom tools.
4
12
 
5
13
  ## Tool context in Auto
6
14
 
@@ -53,7 +61,7 @@ Changing the default does **not** change the current session. To return this ses
53
61
  | **Normal** | Existing permission behavior; the default when no valid global preference exists. Guarded-command confirmations offer scoped choices: **Allow once**, **Allow for this session** (remembers the guarded identity until the session ends) and **Always allow <family>** (persists `guardedCommands[key]="allow"` for non-push guards, or a push-variant entry in the user-level `runtime-guardrails.json`), besides **Deny**. Recognized data-loss commands never offer Always allow; hosts without a select dialog keep the plain yes/no confirm. |
54
62
  | **Auto** | A separate reviewer using the current session model checks eligible actions against live user intent before execution. Local reads are classified too; locality does not exempt an action from explicit restrictions. |
55
63
  | **YOLO** | Standing permission for ordinary already-authorized work and delivery; no Auto classifier. Destructive and independent consent boundaries remain, except recursive removal of the session's own [temp scratch](yolo-mode.md#temp-scratch-removal). Destructive confirmations apply only to commands the session actually runs: destructive text quoted from issues, files or docs is not an execution. Reading and listing non-sensitive material outside the workspace (the agent's own skills, docs, configuration) needs no permission question; sensitive-path and private-credential blocks still win. [Full YOLO details](yolo-mode.md). |
56
- | **Super Yolo** | No permission prompts at all, including data-loss confirmations and configured guardrail actions. The only remaining line is the sensitive-path guard: read/write/edit of `.env`, `.ssh`, keychains, `*.pem/*.key/*.p12/*.pfx`, `secrets/` and cloud credential files stays hard-blocked. Code-level catastrophic denies (`rm -rf /`, `--no-preserve-root`, `git reset --hard`, forced clean, force push) also remain. |
64
+ | **Super Yolo** | No permission prompts at all, including data-loss confirmations and configured guardrail actions. The only remaining line is the sensitive-path guard: the `read`, `grep`, `find`, `ls`, `write` and `edit` tools refuse `.env`, `.ssh`, keychains, `*.pem/*.key/*.p12/*.pfx`, `auth.json`, `secrets/` and cloud credential files. A shell command is judged as a whole line: such a path in it is blocked when the line contains a command that shows, copies, sends, opens, deletes or prints the environment (`cat`, `cp`, `scp`, `curl`, `git`, `rm`, `printenv`, `xargs` and similar), `cd`/`pushd`, `.`/`source` (env files excepted), or, for a path under `.ssh`, a program that creates files there (`install`, `touch`, `mkdir`, `ssh-keygen`, `ssh-copy-id`); also when the path is a script rather than a path (`bash -c "…"`), the first word of a command, or a redirection target. Any other command may hand a secret file to a program (`docker compose --env-file .env.local`, `ssh -i key`), but a line mixing a secret file and a reader is blocked as a whole. `printenv` and `env` are blocked, but `export -p`, `declare`, `set` and `echo "$VAR"` after sourcing an env file are not. Other limits: the guard does not see unlisted programs that print or send a file, writes into `.ssh` through `docker run -v` or an unlisted program, readers assembled at run time, interpreters given a key as an argument, or program output. Code-level catastrophic denies (`rm -rf /`, `--no-preserve-root`, `git reset --hard`, forced clean, force push) also remain. |
57
65
 
58
66
  ## Commands and menu
59
67