gentle-pi 4.8.0 → 4.9.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 (370) hide show
  1. package/README.md +60 -0
  2. package/assets/agents/gentle-ai-explore.md +1 -1
  3. package/assets/agents/gentle-ai-verify.md +1 -1
  4. package/assets/agents/gentle-ai-worker.md +10 -9
  5. package/assets/design-canvas/canvas-boards.js +22 -2
  6. package/assets/design-canvas/canvas-boot.js +3 -1
  7. package/assets/design-canvas/canvas-i18n-es.js +5 -0
  8. package/assets/design-canvas/canvas-menu.js +13 -7
  9. package/assets/design-canvas/canvas-messages.js +1 -1
  10. package/assets/design-canvas/canvas-rail.js +5 -2
  11. package/assets/design-canvas/canvas-store.js +3 -0
  12. package/assets/design-canvas/canvas-theme.js +69 -0
  13. package/assets/design-canvas/canvas.css +27 -2
  14. package/assets/design-canvas/index.html +3 -0
  15. package/assets/design-canvas/inspector.js +28 -5
  16. package/assets/design-canvas/theme-early.js +10 -0
  17. package/assets/migrations/agent-body-history.json +6 -0
  18. package/assets/orchestrator-delegation.md +1 -5
  19. package/assets/orchestrator-full-delegation-card.md +9 -13
  20. package/assets/orchestrator-full-delegation.md +2 -2
  21. package/assets/orchestrator-memory.md +2 -2
  22. package/assets/orchestrator-prompts.md +3 -31
  23. package/assets/orchestrator-tracking.md +6 -6
  24. package/assets/orchestrator-verification.md +4 -4
  25. package/assets/orchestrator-writer.md +12 -12
  26. package/assets/orchestrator.md +2 -2
  27. package/bin/gentle-shell.mjs +77 -1
  28. package/contracts/review-provider-contract-mirror/provider-contract.lock.json +7 -7
  29. package/contracts/review-provider-contract-mirror/{v1.5.0 → v1.6.0}/bundle/manifest.json +3 -3
  30. package/contracts/review-provider-contract-mirror/{v1.5.0 → v1.6.0}/bundle/orchestration/pi.md +1 -1
  31. package/contracts/review-provider-contract-mirror/{v1.5.0 → v1.6.0}/bundle/routing/pi.md +10 -10
  32. package/contracts/review-provider-contract-mirror/{v1.5.0 → v1.6.0}/generated/provider-capabilities.baseline.json +3 -3
  33. package/contracts/review-provider-contract-mirror/{v1.5.0 → v1.6.0}/generated/provider-roles.baseline.json +1 -1
  34. package/docs/assets/features/gentle-tower.png +0 -0
  35. package/docs/auto-permission-answers.md +1 -1
  36. package/docs/bundled-install.md +1 -1
  37. package/docs/delegated-verification.md +6 -4
  38. package/docs/desktop-feed.md +303 -0
  39. package/docs/desktop-rpc.md +703 -25
  40. package/docs/fast-mode.md +2 -2
  41. package/docs/gentle-shell-desktop.md +465 -0
  42. package/docs/gentle-shell.md +65 -3
  43. package/docs/images/desktop/chat.png +0 -0
  44. package/docs/images/desktop/palette.png +0 -0
  45. package/docs/images/desktop/todo.png +0 -0
  46. package/docs/install-wizard.md +1 -1
  47. package/docs/odd-preparation-continuity.md +1 -1
  48. package/docs/readme-reference.md +44 -15
  49. package/docs/work-continuity.md +10 -7
  50. package/extensions/ask-user-choice.ts +36 -18
  51. package/extensions/ask-user-question.ts +47 -8
  52. package/extensions/gentle-agents.ts +206 -37
  53. package/extensions/gentle-ai.ts +234 -24
  54. package/extensions/gentle-desktop-feed.ts +778 -0
  55. package/extensions/gentle-desktop-rpc.ts +145 -12
  56. package/extensions/gentle-herdr-desktop-status.ts +275 -0
  57. package/extensions/gentle-shell.ts +69 -7
  58. package/extensions/gentle-stats.ts +30 -1
  59. package/extensions/gentle-tower.ts +305 -0
  60. package/extensions/skill-registry.ts +13 -3
  61. package/herdr/RECIPE.md +157 -0
  62. package/herdr/keys.json +14 -0
  63. package/herdr/layouts/gentle-shell.json +202 -0
  64. package/herdr/mods/gentle-agents/icons/kind-herdr.svg +1 -0
  65. package/herdr/mods/gentle-agents/icons/kind-remote.svg +1 -0
  66. package/herdr/mods/gentle-agents/icons/kind-tui.svg +1 -0
  67. package/herdr/mods/gentle-agents/main.js +190 -0
  68. package/herdr/mods/gentle-agents/mod.json +1 -0
  69. package/herdr/mods/gentle-agents/snapshot.js +469 -0
  70. package/herdr/mods/gentle-agents/tokens.js +273 -0
  71. package/herdr/mods/gentle-chat/MINIMAL.md +69 -0
  72. package/herdr/mods/gentle-chat/actions.js +180 -0
  73. package/herdr/mods/gentle-chat/feed.js +321 -0
  74. package/herdr/mods/gentle-chat/icons/branch.svg +1 -0
  75. package/herdr/mods/gentle-chat/icons/chat.svg +1 -0
  76. package/herdr/mods/gentle-chat/icons/check.svg +1 -0
  77. package/herdr/mods/gentle-chat/icons/chev.svg +1 -0
  78. package/herdr/mods/gentle-chat/icons/clip.svg +1 -0
  79. package/herdr/mods/gentle-chat/icons/down.svg +1 -0
  80. package/herdr/mods/gentle-chat/icons/folder.svg +1 -0
  81. package/herdr/mods/gentle-chat/icons/kind-herdr.svg +1 -0
  82. package/herdr/mods/gentle-chat/icons/kind-remote.svg +1 -0
  83. package/herdr/mods/gentle-chat/icons/kind-tui.svg +1 -0
  84. package/herdr/mods/gentle-chat/icons/mark.svg +1 -0
  85. package/herdr/mods/gentle-chat/icons/send.svg +1 -0
  86. package/herdr/mods/gentle-chat/icons/shield.svg +1 -0
  87. package/herdr/mods/gentle-chat/icons/stop.svg +1 -0
  88. package/herdr/mods/gentle-chat/icons/term.svg +1 -0
  89. package/herdr/mods/gentle-chat/icons/user.svg +1 -0
  90. package/herdr/mods/gentle-chat/icons/x.svg +1 -0
  91. package/herdr/mods/gentle-chat/main.js +968 -0
  92. package/herdr/mods/gentle-chat/mod.json +1 -0
  93. package/herdr/mods/gentle-chat/session.js +212 -0
  94. package/herdr/mods/gentle-chat/snapshot.js +469 -0
  95. package/herdr/mods/gentle-chat/tokens.js +137 -0
  96. package/herdr/mods/gentle-chat/ui.js +883 -0
  97. package/herdr/mods/gentle-confirm/main.js +60 -0
  98. package/herdr/mods/gentle-confirm/mod.json +1 -0
  99. package/herdr/mods/gentle-inspector/actions.js +180 -0
  100. package/herdr/mods/gentle-inspector/icons/bolt.svg +1 -0
  101. package/herdr/mods/gentle-inspector/icons/bot.svg +1 -0
  102. package/herdr/mods/gentle-inspector/icons/check.svg +1 -0
  103. package/herdr/mods/gentle-inspector/icons/db.svg +1 -0
  104. package/herdr/mods/gentle-inspector/icons/diff.svg +1 -0
  105. package/herdr/mods/gentle-inspector/icons/jobs.svg +1 -0
  106. package/herdr/mods/gentle-inspector/icons/plug.svg +1 -0
  107. package/herdr/mods/gentle-inspector/icons/review.svg +1 -0
  108. package/herdr/mods/gentle-inspector/icons/stats.svg +1 -0
  109. package/herdr/mods/gentle-inspector/icons/stop.svg +1 -0
  110. package/herdr/mods/gentle-inspector/icons/todo.svg +1 -0
  111. package/herdr/mods/gentle-inspector/main.js +500 -0
  112. package/herdr/mods/gentle-inspector/mod.json +1 -0
  113. package/herdr/mods/gentle-inspector/snapshot.js +469 -0
  114. package/herdr/mods/gentle-inspector/tokens.js +273 -0
  115. package/herdr/mods/gentle-palette/actions.js +180 -0
  116. package/herdr/mods/gentle-palette/icons/bolt.svg +1 -0
  117. package/herdr/mods/gentle-palette/icons/bot.svg +1 -0
  118. package/herdr/mods/gentle-palette/icons/chat.svg +1 -0
  119. package/herdr/mods/gentle-palette/icons/check.svg +1 -0
  120. package/herdr/mods/gentle-palette/icons/cmd.svg +1 -0
  121. package/herdr/mods/gentle-palette/icons/diff.svg +1 -0
  122. package/herdr/mods/gentle-palette/icons/jobs.svg +1 -0
  123. package/herdr/mods/gentle-palette/icons/plus.svg +1 -0
  124. package/herdr/mods/gentle-palette/icons/review.svg +1 -0
  125. package/herdr/mods/gentle-palette/icons/search.svg +1 -0
  126. package/herdr/mods/gentle-palette/icons/shield.svg +1 -0
  127. package/herdr/mods/gentle-palette/icons/stats.svg +1 -0
  128. package/herdr/mods/gentle-palette/icons/stop.svg +1 -0
  129. package/herdr/mods/gentle-palette/icons/term.svg +1 -0
  130. package/herdr/mods/gentle-palette/icons/todo.svg +1 -0
  131. package/herdr/mods/gentle-palette/main.js +333 -0
  132. package/herdr/mods/gentle-palette/mod.json +1 -0
  133. package/herdr/mods/gentle-palette/snapshot.js +469 -0
  134. package/herdr/mods/gentle-palette/tokens.js +273 -0
  135. package/herdr/mods/gentle-pane/icons/chat.svg +1 -0
  136. package/herdr/mods/gentle-pane/icons/close.svg +1 -0
  137. package/herdr/mods/gentle-pane/icons/kind-herdr.svg +1 -0
  138. package/herdr/mods/gentle-pane/icons/kind-remote.svg +1 -0
  139. package/herdr/mods/gentle-pane/icons/kind-tui.svg +1 -0
  140. package/herdr/mods/gentle-pane/icons/split-down.svg +1 -0
  141. package/herdr/mods/gentle-pane/icons/split-right.svg +1 -0
  142. package/herdr/mods/gentle-pane/icons/term.svg +1 -0
  143. package/herdr/mods/gentle-pane/icons/unzoom.svg +1 -0
  144. package/herdr/mods/gentle-pane/icons/zoom.svg +1 -0
  145. package/herdr/mods/gentle-pane/main.js +91 -0
  146. package/herdr/mods/gentle-pane/mod.json +1 -0
  147. package/herdr/mods/gentle-pane/snapshot.js +469 -0
  148. package/herdr/mods/gentle-pane/tokens.js +273 -0
  149. package/herdr/mods/gentle-sidebar/actions.js +180 -0
  150. package/herdr/mods/gentle-sidebar/icons/gear.svg +1 -0
  151. package/herdr/mods/gentle-sidebar/icons/mark.svg +1 -0
  152. package/herdr/mods/gentle-sidebar/icons/refresh.svg +1 -0
  153. package/herdr/mods/gentle-sidebar/icons/server-plus.svg +1 -0
  154. package/herdr/mods/gentle-sidebar/main.js +171 -0
  155. package/herdr/mods/gentle-sidebar/mod.json +1 -0
  156. package/herdr/mods/gentle-sidebar/snapshot.js +469 -0
  157. package/herdr/mods/gentle-sidebar/tokens.js +273 -0
  158. package/herdr/mods/gentle-spaces/icons/kind-herdr.svg +1 -0
  159. package/herdr/mods/gentle-spaces/icons/kind-remote.svg +1 -0
  160. package/herdr/mods/gentle-spaces/icons/kind-tui.svg +1 -0
  161. package/herdr/mods/gentle-spaces/icons/monitor.svg +1 -0
  162. package/herdr/mods/gentle-spaces/icons/plus.svg +1 -0
  163. package/herdr/mods/gentle-spaces/icons/server.svg +1 -0
  164. package/herdr/mods/gentle-spaces/machines.js +31 -0
  165. package/herdr/mods/gentle-spaces/main.js +299 -0
  166. package/herdr/mods/gentle-spaces/mod.json +1 -0
  167. package/herdr/mods/gentle-spaces/snapshot.js +469 -0
  168. package/herdr/mods/gentle-spaces/tokens.js +273 -0
  169. package/herdr/mods/gentle-status/actions.js +180 -0
  170. package/herdr/mods/gentle-status/main.js +192 -0
  171. package/herdr/mods/gentle-status/mod.json +1 -0
  172. package/herdr/mods/gentle-status/snapshot.js +469 -0
  173. package/herdr/mods/gentle-status/tokens.js +273 -0
  174. package/herdr/mods/gentle-tabs/icons/close.svg +1 -0
  175. package/herdr/mods/gentle-tabs/icons/kind-herdr.svg +1 -0
  176. package/herdr/mods/gentle-tabs/icons/kind-remote.svg +1 -0
  177. package/herdr/mods/gentle-tabs/icons/kind-tui.svg +1 -0
  178. package/herdr/mods/gentle-tabs/icons/plus.svg +1 -0
  179. package/herdr/mods/gentle-tabs/icons/win-close.svg +1 -0
  180. package/herdr/mods/gentle-tabs/icons/win-max.svg +1 -0
  181. package/herdr/mods/gentle-tabs/icons/win-min.svg +1 -0
  182. package/herdr/mods/gentle-tabs/icons/win-restore.svg +1 -0
  183. package/herdr/mods/gentle-tabs/main.js +171 -0
  184. package/herdr/mods/gentle-tabs/mod.json +1 -0
  185. package/herdr/mods/gentle-tabs/snapshot.js +469 -0
  186. package/herdr/mods/gentle-tabs/tokens.js +273 -0
  187. package/herdr/mods/gentle-tokens/main.js +20 -0
  188. package/herdr/mods/gentle-tokens/mod.json +1 -0
  189. package/herdr/mods/gentle-tokens/snapshot.js +469 -0
  190. package/herdr/mods/gentle-tokens/tokens.js +273 -0
  191. package/herdr/preview.png +0 -0
  192. package/herdr/themes/gentle-shell-dark.json +33 -0
  193. package/herdr/themes/gentle-shell-light.json +34 -0
  194. package/lib/agents-protocol.ts +2 -0
  195. package/lib/agents-rpc-publisher.ts +39 -12
  196. package/lib/agents-runner.ts +1 -0
  197. package/lib/auto-permission-answers.ts +2 -1
  198. package/lib/background-jobs.ts +22 -2
  199. package/lib/bounded-writer-admission.ts +1 -1
  200. package/lib/change-diff.ts +104 -0
  201. package/lib/commit-slice-signal.ts +1 -1
  202. package/lib/design-canvas-assets.ts +2 -0
  203. package/lib/desktop-agents-service.ts +31 -10
  204. package/lib/desktop-changes-service.ts +171 -0
  205. package/lib/desktop-feed-actions.ts +804 -0
  206. package/lib/desktop-feed-answers.ts +129 -0
  207. package/lib/desktop-feed-sources.ts +184 -0
  208. package/lib/desktop-feed-stats.ts +98 -0
  209. package/lib/desktop-feed-store.ts +124 -0
  210. package/lib/desktop-feed.ts +788 -0
  211. package/lib/desktop-jobs-service.ts +34 -7
  212. package/lib/desktop-review-service.ts +187 -0
  213. package/lib/desktop-rpc-agents.ts +112 -3
  214. package/lib/desktop-rpc-changes.ts +223 -0
  215. package/lib/desktop-rpc-config-watch.ts +285 -0
  216. package/lib/desktop-rpc-config.ts +162 -8
  217. package/lib/desktop-rpc-jobs.ts +118 -9
  218. package/lib/desktop-rpc-permissions.ts +154 -3
  219. package/lib/desktop-rpc-review.ts +180 -0
  220. package/lib/desktop-rpc-session.ts +203 -0
  221. package/lib/desktop-rpc-sessions.ts +250 -0
  222. package/lib/desktop-rpc-stats.ts +187 -0
  223. package/lib/desktop-rpc-updates.ts +143 -0
  224. package/lib/desktop-rpc.ts +116 -5
  225. package/lib/desktop-session-service.ts +223 -0
  226. package/lib/desktop-sessions-service.ts +249 -0
  227. package/lib/desktop-stats-service.ts +142 -0
  228. package/lib/desktop-updates-service.ts +268 -0
  229. package/lib/gentle-shell-desktop.ts +1370 -0
  230. package/lib/gentle-shell-launcher.ts +45 -3
  231. package/lib/herdr-desktop-events.ts +40 -0
  232. package/lib/herdr-desktop-status.ts +229 -0
  233. package/lib/jobs-sidebar-state.ts +5 -0
  234. package/lib/native-review-cli.ts +7 -0
  235. package/lib/openai-fast-tier.ts +1 -0
  236. package/lib/session-profile-freeze.ts +13 -5
  237. package/lib/stats-collector.ts +56 -27
  238. package/lib/tower-actions.ts +100 -0
  239. package/lib/tower-hub.ts +73 -0
  240. package/lib/tower-launch.ts +111 -0
  241. package/lib/tower-open.ts +99 -0
  242. package/lib/tower-presence.ts +70 -0
  243. package/lib/tower-server.ts +234 -0
  244. package/lib/tower-snapshot.ts +298 -0
  245. package/lib/update-status.ts +238 -0
  246. package/lib/verifier-settle-reminder.ts +1 -1
  247. package/package.json +13 -4
  248. package/runtime/design-canvas-assets.mjs +2 -0
  249. package/runtime/gentle-shell-desktop.mjs +1371 -0
  250. package/runtime/gentle-shell-launcher.mjs +44 -2
  251. package/runtime/native-review-cli.mjs +7 -0
  252. package/runtime/tower-actions.mjs +101 -0
  253. package/runtime/tower-hub.mjs +74 -0
  254. package/runtime/tower-launch.mjs +112 -0
  255. package/runtime/tower-open.mjs +100 -0
  256. package/runtime/tower-presence.mjs +71 -0
  257. package/runtime/tower-server.mjs +234 -0
  258. package/runtime/tower-snapshot.mjs +299 -0
  259. package/scripts/build-full-delegation-card.mjs +1 -21
  260. package/scripts/build-runtime-modules.mjs +9 -0
  261. package/scripts/gentle-ai-installer.mjs +10 -10
  262. package/scripts/verify-package-files.mjs +35 -15
  263. package/skills/provider-defect-report/SKILL.md +61 -0
  264. package/skills/rdd-defect-workflow/SKILL.md +3 -3
  265. package/tests/agent-prompt-diet-contract.test.ts +2 -2
  266. package/tests/append-system-prompt-route.test.ts +16 -5
  267. package/tests/ask-user-choice.test.ts +78 -21
  268. package/tests/ask-user-question.test.ts +59 -5
  269. package/tests/auto-permission-answers.test.ts +12 -1
  270. package/tests/background-jobs.test.ts +12 -0
  271. package/tests/bounded-stop-contract.test.ts +139 -26
  272. package/tests/change-diff.test.ts +75 -0
  273. package/tests/commit-slice-signal.test.ts +3 -2
  274. package/tests/decision-routing-contract.test.ts +390 -0
  275. package/tests/delegated-key-learnings-contract.test.ts +21 -28
  276. package/tests/delivery-b-rendered-surfaces.test.ts +32 -0
  277. package/tests/design-canvas-i18n.test.ts +24 -22
  278. package/tests/design-canvas-inspector.test.ts +67 -0
  279. package/tests/design-canvas-modules.test.ts +3 -2
  280. package/tests/design-canvas-rail.test.ts +10 -10
  281. package/tests/design-canvas-store.test.ts +9 -0
  282. package/tests/design-canvas-theme.test.ts +198 -0
  283. package/tests/design-canvas-tokens.test.ts +1 -1
  284. package/tests/desktop-feed-actions-guards.test.ts +595 -0
  285. package/tests/desktop-feed-actions.test.ts +761 -0
  286. package/tests/desktop-feed-live-work.test.ts +209 -0
  287. package/tests/desktop-feed-performance.test.ts +369 -0
  288. package/tests/desktop-feed-plan-profiles.test.ts +509 -0
  289. package/tests/desktop-feed-send-prompt.test.ts +303 -0
  290. package/tests/desktop-feed-tool-summaries.test.ts +69 -0
  291. package/tests/desktop-feed.test.ts +615 -0
  292. package/tests/desktop-rpc-agents.test.ts +428 -2
  293. package/tests/desktop-rpc-changes.test.ts +608 -0
  294. package/tests/desktop-rpc-config-watch.test.ts +1159 -0
  295. package/tests/desktop-rpc-config.test.ts +11 -1
  296. package/tests/desktop-rpc-design.test.ts +11 -1
  297. package/tests/desktop-rpc-jobs.test.ts +402 -5
  298. package/tests/desktop-rpc-permissions.test.ts +11 -1
  299. package/tests/desktop-rpc-review.test.ts +678 -0
  300. package/tests/desktop-rpc-session.test.ts +642 -0
  301. package/tests/desktop-rpc-sessions.test.ts +647 -0
  302. package/tests/desktop-rpc-stats.test.ts +431 -0
  303. package/tests/desktop-rpc-updates.test.ts +525 -0
  304. package/tests/desktop-rpc-usage.test.ts +11 -1
  305. package/tests/desktop-rpc.test.ts +43 -2
  306. package/tests/fixtures/primary-session-prompt/gentleman.golden.md +11 -13
  307. package/tests/fixtures/session-profile-v1/replay.ts +4 -1
  308. package/tests/full-delegation-closure.test.ts +20 -1
  309. package/tests/gentle-agents.test.ts +519 -4
  310. package/tests/gentle-ai-binary.test.ts +1 -1
  311. package/tests/gentle-ai-installer.test.ts +52 -52
  312. package/tests/gentle-ai.test.ts +75 -16
  313. package/tests/gentle-fast.test.ts +15 -0
  314. package/tests/gentle-herdr-desktop-status.test.ts +595 -0
  315. package/tests/gentle-shell-desktop-bin.test.ts +125 -0
  316. package/tests/gentle-shell-desktop.test.ts +927 -0
  317. package/tests/gentle-shell-launcher-tower.test.ts +104 -0
  318. package/tests/gentle-shell.test.ts +3 -0
  319. package/tests/gentle-tower.test.ts +578 -0
  320. package/tests/herdr-desktop-status.test.ts +285 -0
  321. package/tests/independent-recovery-delivery.test.ts +16 -4
  322. package/tests/installer-server.test.ts +2 -2
  323. package/tests/lazy-module-contradictions-contract.test.ts +27 -4
  324. package/tests/maintainer/desktop-rpc.maintest.ts +279 -4
  325. package/tests/native-review-capability-contract.test.ts +9 -1
  326. package/tests/no-self-pause-contract.test.ts +23 -13
  327. package/tests/odd-routing-canonical-ratchet.test.ts +10 -0
  328. package/tests/odd-routing-contract.test.ts +19 -3
  329. package/tests/orchestrator-budget.test.ts +3 -1
  330. package/tests/orchestrator-prompt-budget.test.ts +2 -1
  331. package/tests/orchestrator-prompt-diet-contract.test.ts +31 -3
  332. package/tests/package-manifest.test.ts +10 -10
  333. package/tests/pi-routing-measured-values.test.ts +24 -0
  334. package/tests/primary-session-prompt.test.ts +25 -0
  335. package/tests/profile-fast-tier.test.ts +66 -1
  336. package/tests/provider-defect-handoff.test.ts +118 -100
  337. package/tests/review-contract-prompt.test.ts +2 -1
  338. package/tests/review-due-public-boundary.test.ts +2 -1
  339. package/tests/sensitive-path-tools.test.ts +138 -4
  340. package/tests/session-profile-extension.test.ts +310 -16
  341. package/tests/session-profile-freeze.test.ts +26 -0
  342. package/tests/session-profile-v1-compat.test.ts +20 -0
  343. package/tests/skill-collision-prefixes.test.ts +1 -0
  344. package/tests/skill-contradictions-contract.test.ts +5 -3
  345. package/tests/skill-registry.test.ts +54 -0
  346. package/tests/stats-collector.test.ts +109 -2
  347. package/tests/support/design-canvas-dom.ts +17 -0
  348. package/tests/task-size-routing-contract.test.ts +7 -3
  349. package/tests/tower-actions.test.ts +247 -0
  350. package/tests/tower-artifacts.test.ts +114 -0
  351. package/tests/tower-open.test.ts +97 -0
  352. package/tests/tower-presence.test.ts +175 -0
  353. package/tests/tower-server.test.ts +122 -0
  354. package/tests/tower-snapshot.test.ts +236 -0
  355. package/tests/tower-web-echo.test.ts +125 -0
  356. package/tests/tower-web-hover.test.ts +251 -0
  357. package/tests/verification-scoped-stop-contract.test.ts +32 -0
  358. package/tests/verification-tiers-contract.test.ts +5 -5
  359. package/tests/verifier-settle-reminder.test.ts +2 -2
  360. package/tests/verify-first-launch-contract.test.ts +2 -2
  361. package/tests/work-continuity-contract.test.ts +83 -17
  362. package/tests/writer-rejection-next-step.test.ts +55 -0
  363. package/tests/writer-surface-authority-contract.test.ts +158 -0
  364. /package/contracts/review-provider-contract-mirror/{v1.5.0 → v1.6.0}/bundle/README.md +0 -0
  365. /package/contracts/review-provider-contract-mirror/{v1.5.0 → v1.6.0}/bundle/schemas/lens.schema.json +0 -0
  366. /package/contracts/review-provider-contract-mirror/{v1.5.0 → v1.6.0}/bundle/schemas/refuter.schema.json +0 -0
  367. /package/contracts/review-provider-contract-mirror/{v1.5.0 → v1.6.0}/bundle/schemas/targeted-validator.schema.json +0 -0
  368. /package/contracts/review-provider-contract-mirror/{v1.5.0 → v1.6.0}/bundle/vectors/lens.json +0 -0
  369. /package/contracts/review-provider-contract-mirror/{v1.5.0 → v1.6.0}/bundle/vectors/refuter.json +0 -0
  370. /package/contracts/review-provider-contract-mirror/{v1.5.0 → v1.6.0}/bundle/vectors/targeted-validator.json +0 -0
@@ -16,6 +16,26 @@ Use `/skill:gentle-ui-design` for web and product interface guidance or a read-o
16
16
 
17
17
  The extension wraps only the active terminal instance's `setProgramStatus`, preserving Pi's states and messages. Pi can emit an initial `pi` report before extensions load; the extension immediately replays its cached native status with the corrected identity, without waiting for a prompt. The wrapper and guarded startup-cache replay are compatibility adaptations, not an official Pi identity hook; shutdown, reload and session replacement release the wrapper without overwriting later extensions. If a terminal has no compatible cached status, correction begins with its next native report. Disabling this extension removes the fallback on Pi versions that ignore the variable. This changes reported identity, not Herdr's resume-command configuration.
18
18
 
19
+ ## OSC 7501 activity record contract
20
+
21
+ Interactive top-level Gentle Shell sessions publish the following OSC 7501 **sub-records** for third-party consumers. Publishing requires a nonempty `HC_TERMINAL_ID`, `PI_PROGRAM_STATUS_APP=gentle-shell`, an interactive TUI with UI, and `GENTLE_PI_AGENTS_CHILD` unset. The extension never writes the root record: Pi and `gentle-program-identity` own it. In particular, no `decision` record is sent; the root status reports a blocked user question.
22
+
23
+ Each update is a full record; `state=clear` removes its ID. Fields not listed for a row are omitted. Every `msg` string below, including its spaces and substituted value, is part of the contract.
24
+
25
+ | ID | State / kind | Title, message and progress | Lifecycle |
26
+ | --- | --- | --- | --- |
27
+ | `todo` | `working` | Title is the first in-progress todo; progress is the rounded percentage of completed todos. No message. | Updated while an in-progress todo exists; otherwise cleared. |
28
+ | `bg/<jobId>` | `working` | Title is the explicitly supplied job label; otherwise `background job` for `bash_background` or `monitor` for `monitor` (and `background job` if the kind is unavailable). Commands are never published as fallback titles. No message. | Present while running; cleared on success or `stopped`. A monitor reaching its mandatory timeout is stopped normally. |
29
+ | `bg/<jobId>` | `error` | Same title; message `exited <code>` for a nonzero exit code, or `failed` for failed status. | Replaces the running record and clears after 60 seconds. Missing exit codes are not guessed as failures. |
30
+ | `subagents/<taskId>` | `working` | Title is the explicitly supplied task label, otherwise the agent name; prompt text is never published as a fallback title. No message. | Present while queued or running; clears immediately on success or cancellation. |
31
+ | `subagents/<taskId>` | `blocked` / `question` | Same title; message `waiting for user` for a child question, or `question for parent` for an unanswered parent query. The parent query takes precedence. | Updated as questions change; clears immediately on success or cancellation. |
32
+ | `subagents/<taskId>` | `error` | Same title; message `failed` or `timed out`. | Replaces the active record and clears after 60 seconds. |
33
+ | `wait/<target>` | `working` | No title; message `consulting <target>`. | Present until the last concurrent consultation to that target settles. |
34
+ | `sent/<target>` | `idle` | No title; message `sent to <target>`. | Present for five seconds after the latest accepted send. |
35
+ | `ask/<peer>` | `blocked` / `question` | Title is the peer's display name, falling back to its ID; message `question from <name>`. | Present while an incoming message remains unanswered; cleared when handled or after its five-minute expiry. |
36
+
37
+ All sub-records clear on session shutdown, widget disposal or session replacement. If the terminal rejects a write, the remaining changes are retried about one second later; records a replaced session could not clear are cleared by the next session, unless it publishes the same ID again, in which case the new record replaces them. Titles and messages are UTF-8 encoded as base64 after terminal controls are replaced with spaces, and each is capped at 512 bytes without splitting a Unicode scalar. Dynamic ID segments use ASCII letters, digits, `_`, `-` and `.`; unsafe, reserved `h-` or overlong segments become `h-` plus a truncated SHA-256 digest. Original target names remain in the encoded messages. IDs are at most 64 characters.
38
+
19
39
  ## Updating Pi safely
20
40
 
21
41
  Run `gentle-shell update` to update the Pi this launcher runs. It also works when that Pi is older than the required minimum version, which every other command refuses. Shell verifies npm/pnpm global listing JSON and canonical package roots before installing exactly one supplying package. This supports pnpm v11 linked stores without relying on `PNPM_HOME` containment. When the launcher runs its adjacent Pi peer, the supplier is the listed `gentle-pi` package itself: Shell is reinstalled at its current version so the package manager re-resolves the peer, because updating a separate global Pi never changes the peer a Shell install runs. A main-channel Shell (`<version>-main.<sha12>`) is never published, so it is reinstalled from the tarball `gentle-shell upgrade --channel main` packed under `<config home>/main/packages/` (an absolute `GENTLE_PI_CONFIG_HOME`, else `~/.pi/gentle-ai`; a relative override is refused); when that tarball is missing, `update` installs nothing and names the rebuild path (`gentle-shell upgrade --channel release`, then `--channel main`), because `upgrade --channel main` alone is a no-op when already at the latest main. A Pi found on `PATH` or through `GENTLE_SHELL_PI` is updated through its own listed global package; a package-manager shim is followed to the single `cli.js` it names. Pi and Shell are never combined into a comma install.
@@ -46,7 +66,7 @@ The [v2.6.0 release](https://github.com/Gentleman-Programming/gentle-pi/releases
46
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.
47
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.
48
68
 
49
- The source checkout prepares `gentle-pi` `4.8.0` with a package-local Gentle AI `v4.5.0` pin; this does not imply that the package release has been published.
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`.
50
70
 
51
71
  ## Shell interactions and runtime behavior
52
72
 
@@ -318,7 +338,7 @@ The same registration adds thin-orchestration rules to `codemode`'s prompt guide
318
338
  Gentle Shell ships its own interactive tools instead of depending on third-party extensions; the built-ins replace `npm:pi-subagents-j0k3r` and `npm:@juicesharp/rpiv-todo` (see Gentle Agents and Gentle Todo below for the removal steps).
319
339
 
320
340
  - **`ask_user_question`** — one to four structured questions in a single questionnaire, each with two to four options, multi-select, per-option descriptions and previews — rendered as real TUI dialogs, usable in the live session.
321
- - **`ask_user_choice`** — one exactly representable single-select question, with an opt-in free-text response.
341
+ - **`ask_user_choice`** — one exactly representable single-select question that offers "Type your answer" by default; provider consent, maintenance authorizations and exact-token decisions pass `allowCustomResponse: false`.
322
342
  - **`todo`** — plan tracking with the Gentle Todo card (see Gentle Todo below).
323
343
  - **`bash_background`**, **`monitor`**, **`job_stop`**, **`job_list`** — background shell jobs that notify the agent when they exit, or on every output line (see Background jobs below).
324
344
  - **`gentle_review` / capture tools** — the native review surface for receipt-driven development. While RDD is not off, **`gentle_review_run`** runs an ordinary native review in one call ([ordinary review in one call](review-coordinator.md)).
@@ -470,7 +490,7 @@ The canvas opens in navigation mode: the mouse wheel and trackpad pan or zoom th
470
490
 
471
491
  - While the agent is busy, the run is queued as a follow-up.
472
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.
473
- - **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**), 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.
493
+ - **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.
474
494
  - **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.
475
495
  - **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.
476
496
  - **Minimap** (bottom right of the canvas): every board drawn small where the layout puts it, the chosen artboard in the accent color, and the visible area outlined; click or drag in it to move the view there. `M` (a single key you can change in **Keyboard shortcuts**) shows or hides it; it hides inside an artboard and in Compare. The minimap is pointer-only (a picture to screen readers); from the keyboard the arrow keys pan the canvas, `+` and `-` zoom and `0` fits every board.
@@ -502,6 +522,48 @@ The canvas opens in navigation mode: the mouse wheel and trackpad pan or zoom th
502
522
 
503
523
  The canvas server binds `127.0.0.1` on a random port and needs a random per-server token in every URL. It rejects any `Host` other than its own loopback address, accepts every write (comments, Send all, resolve/reopen, Implement, parts) only with its own `Origin` (`http://127.0.0.1:<port>` or `http://localhost:<port>`), a JSON body, and bounded lengths, keeps at most 500 comments per design, and serves only files under `design/` in the session cwd (design folders, plus exactly `design/system.html` for the system board), resolved by real path so neither `..` nor a symlink can escape. Artboards run in iframes sandboxed without `allow-same-origin`, so they cannot read the canvas or post comments themselves. The canvas may frame only loopback origins (its `frame-src`), and the Compare preview frame keeps its own origin (`allow-scripts allow-same-origin allow-forms allow-popups`, never top navigation) only because it is another origin than the canvas: the canvas refuses a preview on its own port, and sends no referrer, so the app never sees the token. No other network traffic is involved. The server and the tool write `comments.json`, `handoffs.json` and `parts.json` one at a time through an atomic replace, and never overwrite a file they cannot parse.
504
524
 
525
+ ### Gentle Tower
526
+
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.
528
+
529
+ <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
+
531
+ **What each part means**
532
+
533
+ | In the tower | In Gentle Shell |
534
+ | --- | --- |
535
+ | Building | A project folder; the switcher at the top changes building, and a `?` marks a project where someone waits for you. |
536
+ | Floor (`⌘1…⌘9`) | A session. Its card shows the name, cost and helpers; the bar below it is the todo list (`2/4 · blocked: …`), and a click opens the full list with notes. |
537
+ | Orchestrator (bowler hat) | The session's main agent. It waves with `?` when it needs you, thinks while working, and has a drink in the lounge when done. |
538
+ | Helpers (hats by role) | Live subagents, named by role (`worker`, `explore`, `verify`) with a task word when a role repeats (`worker-tests`). Finished helpers leave the building. |
539
+ | Rooms | What an agent is doing: MAP explore and plan (its corkboard notes are the floor's tasks), WORKSHOP build, LAB test, REVIEW outside review (dark when review mode is off), ENGRAM memory, GENTLE AI the engine room with the session's cost meter, LOUNGE done. |
540
+ | The door | The most permissive floor: a bouncer and closed rope for normal, half-open rope for auto, `BRB` for yolo, an open door for super-yolo. A click opens that floor's permissions. |
541
+
542
+ **What you can do**
543
+
544
+ - **Talk** (`T`, or click the orchestrator): a conversation with the floor, your messages on the right and the orchestrator's replies below them. A message arrives as a new turn, or as a follow-up while the agent works. A question asked in the terminal shows as waiting; answer it there or tell the floor.
545
+ - **Artifacts**: docs, Mermaid diagrams and images the session wrote open in a viewer (tables, lists and code rendered; raw HTML is shown as text). In the building, the newest diagram is pinned on the map board, the newest doc lies on the workshop desk and the newest image hangs on its wall.
546
+ - **New floor** (`N`): opens a new Gentle Shell session in a new terminal window, in the project you are looking at, with an optional first message. The window is Terminal on macOS, the default terminal (`x-terminal-emulator`) on Linux, and Windows Terminal on Windows, or a `cmd` window when Windows Terminal is not installed.
547
+ - **Engram library**: a read-only search over the project's memories, grouped by type, plus the ones waiting for your review.
548
+ - **Your tab**: what the open sessions spent, by model, project and session.
549
+ - **Controls**: stop a helper (two clicks), switch review mode, and change a floor's permissions. Lowering applies at once; raising asks for confirmation in that session's own terminal and applies only on yes. When the session's current mode cannot be read, nothing changes and the floor says "Permissions unchanged: could not read the current mode". A change that takes too long is reported as still pending with the mode the session is in, and the floor reports the real result once it settles.
550
+
551
+ **How it works**
552
+
553
+ Every session with the tower extension writes a small snapshot of itself to `~/.gentle-shell/tower/sessions/` (folder `0700`, files `0600`), with its tasks, live helpers, cost, context, model, phase, permission and review state, latest words and artifacts. The project folder and artifact paths are never shortened; an artifact whose path is longer than 4096 characters is left out. Sessions without the extension still appear as **basic floors** (name, project and live helpers, from the peer presence registry Gentle Agents already keeps), with no tasks, cost or controls. A snapshot whose process has ended is ignored; after an abrupt exit the independent presence heartbeat can still show a basic floor for up to two minutes since its last heartbeat.
554
+
555
+ To test a checkout's Tower with your existing Pi home, run this from the checkout root (after building its web app and runtime modules):
556
+
557
+ ```sh
558
+ node bin/gentle-shell.mjs --link --package-root "$PWD"
559
+ ```
560
+
561
+ `--link` alone may use the `gentle-pi` already installed in that home, rather than the checkout; `--package-root` explicitly selects the checkout for this linked launch.
562
+
563
+ The server listens on `127.0.0.1` only, on a random port unless you pick one, with a fresh token as the first path segment on every launch; it refuses other origins. A request from the page is checked and queued to that session's private inbox, and the session runs it itself with its own rules; the web never has more power than the terminal. Set `GENTLE_TOWER=off` to stop a session from publishing.
564
+
565
+ The web app is built with Vite, TypeScript and PixiJS into `web/tower/dist`, which ships with the package (`pnpm build:tower` rebuilds it).
566
+
505
567
  ### Gentle Music
506
568
 
507
569
  `/gentle:music [mood]` hands the terminal to the [gentle-stream](https://github.com/Gentleman-Programming/gentle-stream) player, like Pi's external editor, passing the mood and the session model. In the player, `b` returns to Pi with the music playing and `q` returns and stops it. `/gentle:music next`, `pause`, `play`, `stop`, and `status` control the music without leaving Pi. Quitting Pi after using the command stops the music. gentle-stream runs from `PATH`, or through `uvx`/`uv` when it is not installed. On native Windows the player is not available yet (it needs POSIX; WSL works), so the command only says so. A bundled Gentle Shell on macOS or Linux without any of them offers, with your consent, to install the player inside its own folder: a pinned, checksum-verified uv 0.13.6 in `runtime/`, and the uv-managed Python 3.13 and gentle-stream in `music/` (about 150 MB to download, about 210 MB on disk). A pnpm or npm install keeps the manual install hint. See [Gentle Music](gentle-music.md).
Binary file
Binary file
Binary file
@@ -60,7 +60,7 @@ 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
62
  supported), Pi ≥1.2.0, pnpm acquisition 11.1.1, Gentle Shell package 4.0.0 and package-local
63
- Gentle AI 4.5.0. Windows native source builds require Go ≥1.25.10 when the
63
+ Gentle AI 4.6.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.
@@ -21,4 +21,4 @@ No new telemetry, framework, budget, agent, tracking artifact, approval or autho
21
21
 
22
22
  ## Validation
23
23
 
24
- The existing prompt-diet and work-continuity suites pass (17 tests). They check instruction contracts and parent prompt delivery, not model choices. The always-on prompt and provider-owned mirrored routing are unchanged. 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.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.
@@ -15,7 +15,7 @@ The primary-session prompt renders steps 1-7, the phase-reporting line, and the
15
15
 
16
16
  1. **Authorize** — read-only unless implementation is authorized; ask one clarification when intent is ambiguous.
17
17
  2. **Explore** — read existing code and requirements first, proportionately to the request.
18
- 3. **Resolve uncertainty** — optional research or one focused product question only for a real unresolved decision.
18
+ 3. **Resolve uncertainty** — optional research for a named uncertainty and at most one scoped assumption challenge, plus the routed decision: continue when no human decision remains; otherwise the available compatible tool that represents it asks, and text only for a genuinely open clarification or no usable compatible interface. Independent ordinary decisions batch when the interface supports it; provider consent keeps its closed lossless protocol and text is never its approval.
19
19
  4. **Classify** — use only small or large by the Task Size section: small when understood, risk is contained, and the work could be resumed from the request plus `git diff`; large only when that resume test fails. Counts never classify. Reassess cumulative discovery after each batch: a fired evidence-budget trigger takes precedence over initial size, including for read-only requests. Preparation for an already understood inline write stays inline; further discovery does not use that exception.
20
20
  5. **Track before the first write** — create the feature document and Engram mirror automatically for large work, and tell the user in one line.
21
21
  6. **Implement task by task** — route each task through the smallest safe workflow, with configured TDD and applicable checks. Commit work units in reviewable slices of about 400 authored changed lines on the feature branch (branch first when on the default branch), with tests and docs alongside the behavior and a Conventional Commit message; a unit whose Risk line names a high-risk item gets its own commit so native review can take it alone, and the last slice closes the feature; the feature document records the commit that holds each task as evidence.
@@ -25,11 +25,11 @@ The primary-session prompt renders steps 1-7, the phase-reporting line, and the
25
25
  - **Recovery:** write local progress first and save the full mirror at the task-transition cadence; writes are not atomic. After an explicit complete save acknowledgement, inspect changed local lines as needed instead of routinely rereading both full copies. Missing, partial, truncated, failed or uncertain acknowledgements require checking which writes applied before retrying; never replay an applied write. Unavailable Engram leaves an explicit pending mirror, not invented success or a block on unrelated safe work. At initial implementation or recovery after interruption or context loss, the parent reads full feature memory and the actual task file, reconciles code and evidence, and preserves conflicting versions. An intact continuation reuses its specs, next task, route and applicable proof; new scope, external edits, stale proof or missing context require inspecting affected state. Pass the locator and relevant context; workers read the document before edits. The existing Todo UI is a projection, not another authority.
26
26
  - **Task size:** about 400 authored changed lines (additions plus deletions) is advisory only, not a cap, acceptance criterion, automatic stop, forced split, or RDD trigger. Keep coherent behavior with tests and docs, explain natural overages, and continue under existing PR policy. Forward this instruction to workers; never remove whitespace, comments, or tests, minify, invent abstractions, or split artificially for cosmetic savings.
27
27
  - **Delegation boundary:** the parent delegates a writer for tracked tasks only for a reason (parallel units or context), never for size, file count, or a price ratio, and a second direct path alone is not a runtime refusal. The runtime cannot infer whether an edit is mechanical from write history. Validate consequential premises before building, reuse relevant sibling findings, run focused checks while iterating, then the applicable full suite at closure. This is effort guidance, not a hard token or line budget.
28
- - **Research:** optional research addresses a named uncertainty. Establish problem, intended outcome, constraints, and current evidence; inspect code and adapt depth to consequence, not fixed questionnaires or rounds. The parent asks one focused product question only when needed, then waits; workers return gaps. Use available authorized documentation/web tools, prefer primary sources, and attribute claims to URLs/code locations. Distinguish facts, assumptions, contradictions, freshness, and gaps; return a recommendation, tradeoffs, open questions, and implementation implications. Forward these instructions to a fresh general worker. Unavailable evidence pauses only unsafe dependent decisions. Research stays read-only; a brief proposal is needed only for a real decision.
28
+ - **Research:** optional research addresses a named uncertainty. Establish problem, intended outcome, constraints, and current evidence; inspect code and adapt depth to consequence, not fixed questionnaires or rounds. The parent asks one focused text question only for a genuinely open clarification or no usable compatible interface, then waits; workers return gaps. Use available authorized documentation/web tools, prefer primary sources, and attribute claims to URLs/code locations. Distinguish facts, assumptions, contradictions, freshness, and gaps; return a recommendation, tradeoffs, open questions, and implementation implications. Forward these instructions to a fresh general worker. Unavailable evidence pauses only unsafe dependent decisions. Research stays read-only; a brief proposal is needed only for a real decision.
29
29
  - **Assumptions:** at most one scoped independent read-only challenge for a high-consequence unproven premise, including a small security-critical change. Deterministic failures need fixes, not debate. Native RDD claims stay with its refuter.
30
30
  - **TDD:** resolve on/off from existing project/session configuration or explicit user choice; retain source and exact runner in the feature document when present and forward all three on every implementation delegation, refreshing on resume. Test presence does not enable TDD. Enabled requires observed RED before implementation → GREEN → REFACTOR; disabled still requires ordinary functional checks. Unknown/conflicting mode or a missing runner needs only the clarification affecting the next action, never invented precedence or commands.
31
31
  - **Checks:** functional checks run per task; a TODO checkbox never triggers a review cycle. The native review candidate is a work-unit commit or a PR slice, never a TODO checkbox and never the accumulated feature branch. After each work-unit commit, when RDD is enabled, assess it with `gentle_review` `{"operation":"assess"}` and `{"baseRef":"<last reviewed boundary>","committedOnly":true}`. Passive or low stays silent and the boundary advances. High, or an unavailable or failed assessment, reviews the commit itself right away at that base. Medium defers to the PR slice, the commits accumulated since the last reviewed boundary, bounded by the delivery budget of about 400 authored changed lines, and reviews at slice close. The first boundary is the branch point, and every reviewed boundary becomes the next base. Record the assessed tier and outcome per task: granted, declined, passive, deferred to slice, or unavailable. Existing risk, consent, and authority stay unchanged; never infer low risk from a failed assessment. Never skip an existing delivery gate.
32
- - **Delivery:** at feature-document creation, forecast authored changed lines (additions plus deletions, generated files excluded) from the task list, and keep a running count from work-unit commits. Choose one delivery strategy per feature: `ask-on-risk` (default), `auto-chain`, `single-pr`, or `exception-ok`. When the forecast or running count exceeds about 400 authored changed lines, apply the chosen strategy before the next commit. `ask-on-risk` asks once using the ordered oversized-delivery menu; `auto-chain` asks only for a missing chain strategy and slices automatically with a cached choice. When either chaining path needs a choice, offer exactly these three semantic outcomes:
32
+ - **Delivery:** at feature-document creation, forecast authored changed lines (additions plus deletions, generated files excluded) from the task list, and keep a running count from work-unit commits. Choose one delivery strategy per feature: `ask-on-risk` (default), `auto-chain`, `single-pr`, or `exception-ok`. When the forecast or running count exceeds about 400 authored changed lines, record the slice boundary in the feature document and apply the chosen strategy only when the user asks to publish (push or PR), never before a local work-unit commit; local work-unit commits stay separate from publishing. `ask-on-risk` asks once using the ordered oversized-delivery menu; `auto-chain` asks only for a missing chain strategy and slices automatically with a cached choice. When either chaining path needs a choice, offer exactly these three semantic outcomes:
33
33
 
34
34
  1. **Feature/tracker branch chain** — `chain_strategy=feature-branch-chain`; integrate the feature after reviewing child slices.
35
35
  2. **Verified default/main branch chain** — `chain_strategy=stacked-to-main`; land slices in order on the verified destination default branch, not an assumed name.
@@ -99,6 +99,18 @@ small adapters in any terminal tool, independently of Herdr. See
99
99
  heartbeat/staleness rules and privacy guidance. The task-summary preference also
100
100
  controls titles in these files; existing Herdr behavior is unchanged.
101
101
 
102
+ ## Desktop session snapshot
103
+
104
+ Interactive top-level Gentle Shell sessions also keep a bounded JSON snapshot of
105
+ everything the terminal UI shows (model, profile, context, cost, plan usage,
106
+ permission mode, todo, changes, subagents, jobs, review, stats, activity and the
107
+ open question) under `<agentDir>/desktop/sessions/<sessionId>.json`, for the
108
+ Gentle Shell Desktop mods. See [desktop feed format](desktop-feed.md).
109
+
110
+ ## OSC 7501 activity records
111
+
112
+ The [OSC 7501 activity record contract](gentle-shell.md#osc-7501-activity-record-contract) documents the sub-records available to third-party consumers.
113
+
102
114
  ## Herdr active-work summary
103
115
 
104
116
  Choose `/gentle:customize` → **Layout** → **Task summary: on/off** to show or
@@ -175,7 +187,7 @@ otherwise `herdr` from `PATH`, without a shell.
175
187
  | **Skill creation workflow** | Provides the `gentle-ai-skill-creator`/`gentle-ai-skill-improver` skills, `/skill-creation` prompt, and packaged style guide for LLM-first skills. |
176
188
  | **Delivery skills** | Includes issue-first PRs, chained PRs, work-unit commits, cognitive docs, comment writing, and Judgment Day review. |
177
189
  | **Bounded native review** | Freezes one candidate, dispatches only controller-selected lenses, and records native authority. Review outcomes are informational; delivery follows ordinary repository policy. |
178
- | **Verified native runtime** | The current source checkout provisions the exact package-local Gentle AI v4.5.0 runtime: signed, SHA-256-pinned release archives on Darwin/Linux and a Go SumDB-verified source build on Windows x64/arm64. It validates package-local integrity and rejects PATH, global, sibling, symlink, and mode fallbacks. |
190
+ | **Verified native runtime** | The current source checkout provisions the exact package-local Gentle AI v4.6.0 runtime: signed, SHA-256-pinned release archives on Darwin/Linux and a Go SumDB-verified source build on Windows x64/arm64. It validates package-local integrity and rejects PATH, global, sibling, symlink, and mode fallbacks. |
179
191
  | **Runtime safety** | Blocks destructive shell commands, asks for confirmation for sensitive operations, and blocks direct read/write/edit/grep/find/ls access to sensitive paths (the guard checks the tool's `path` input, so a search scoped to a directory still reads whatever that directory contains, and bash is not covered). Blocks writing a test file that reads git history at a literal commit or points `TMPDIR` inside the working directory (including a relative path such as `.tmp`, `./.tmp`, or `tmp/x`), in the primary session and in subagents. Refuses native review tools (`gentle_review*`) called from inside another tool, such as a codemode script: they run only as direct tool calls. |
180
192
 
181
193
  ## TPS notifications
@@ -244,7 +256,7 @@ This installs the current npm release from the `latest` dist-tag. For a reproduc
244
256
 
245
257
  ### Source checkout
246
258
 
247
- This checkout declares its `gentle-pi` version in [`package.json`](../package.json), with a package-local Gentle AI `v4.5.0` pin. Checkout metadata alone is not proof of npm publication; verify the registry version and its release workflow.
259
+ This checkout declares its `gentle-pi` version in [`package.json`](../package.json), with a package-local Gentle AI `v4.6.0` pin. Checkout metadata alone is not proof of npm publication; verify the registry version and its release workflow.
248
260
 
249
261
  ### Pi compatibility
250
262
 
@@ -268,7 +280,7 @@ Native RDD was introduced in `gentle-pi` `v0.15.0` on 2026-07-10 with bounded re
268
280
 
269
281
  RDD is optional and on by default (since Gentle AI v4.0.0). Open `/gentle:rdd` to inspect the effective mode and deciding source, then explicitly select a repository or machine-wide action. The RDD entry in `/gentle:customize` shows the state checked when the card opened; explicitly applying it closes Customize and opens the same selector with fresh status. Highlighting the entry does not change RDD. Cancelling leaves both unchanged. Repository enable clears a clone-local off but cannot override machine-wide off; machine-wide enable does not clear a clone-local off. `/gentle:review-mode status|enable|disable` retains its existing clone-local behavior. These controls neither grant provider review consent nor change permission modes. The `.git/gentle-ai/candidate-views` parent must sit on a filesystem that honors private POSIX modes (or equivalent Windows ACLs); WSL DrvFS mounts without metadata can reject START before lineage creation.
270
282
 
271
- The source checkout's RDD integration installs Gentle AI only into its private `.gentle-ai/` directory. Darwin and Linux use pinned release assets with asset and executable SHA-256 verification (signed archives for source pin `v4.5.0`; raw prerelease binaries only under a prerelease pin). Windows x64 and arm64 build the exact `v4.5.0` source tag with a local Go 1.25.10+ toolchain, a sealed Go environment, `GOTOOLCHAIN=local`, and `GOSUMDB=sum.golang.org`; it does not download Go automatically (the [installation wizard](install-wizard.md#pinned-go) can put its own pinned Go first on PATH for that build). Go runs in a short private directory under the system temp directory, never inside the package, because a deep pnpm store path pushes Go's working directories past MAX_PATH; a failed build prints its whole cause chain with the failing command's output tail. Windows provenance is Go-toolchain plus SumDB evidence and postinstall tamper detection, **not** Authenticode or protection against a malicious joint binary-and-manifest replacement. Package-private locks coordinate cooperative concurrent or crashed installers; their tombstones fail closed. A malicious same-user process with write access to package-private `node_modules` is outside that protocol because it can already replace package code, binary, or manifest, and portable Node has no pathname-delete CAS. It never uses `PATH` or a global `gentle-ai` installation. For development or offline installs only, set `GENTLE_PI_SKIP_GENTLE_AI_INSTALL=1`; native review operations then fail closed with an actionable `package-local-binary-missing` error. To recover explicitly, if `GENTLE_PI_SKIP_GENTLE_AI_INSTALL` is set, remove or unset it before changing to the installed `gentle-pi` package directory. Then run `node scripts/install-gentle-ai.mjs`. This invokes the package-owned installer without relying on a global binary or npm configuration change. A missing binary can result from skipped lifecycle scripts, but does not prove that lifecycle scripts were disabled.
283
+ The source checkout's RDD integration installs Gentle AI only into its private `.gentle-ai/` directory. Darwin and Linux use pinned release assets with asset and executable SHA-256 verification (signed archives for source pin `v4.6.0`; raw prerelease binaries only under a prerelease pin). Windows x64 and arm64 build the exact `v4.6.0` source tag with a local Go 1.25.10+ toolchain, a sealed Go environment, `GOTOOLCHAIN=local`, and `GOSUMDB=sum.golang.org`; it does not download Go automatically (the [installation wizard](install-wizard.md#pinned-go) can put its own pinned Go first on PATH for that build). Go runs in a short private directory under the system temp directory, never inside the package, because a deep pnpm store path pushes Go's working directories past MAX_PATH; a failed build prints its whole cause chain with the failing command's output tail. Windows provenance is Go-toolchain plus SumDB evidence and postinstall tamper detection, **not** Authenticode or protection against a malicious joint binary-and-manifest replacement. Package-private locks coordinate cooperative concurrent or crashed installers; their tombstones fail closed. A malicious same-user process with write access to package-private `node_modules` is outside that protocol because it can already replace package code, binary, or manifest, and portable Node has no pathname-delete CAS. It never uses `PATH` or a global `gentle-ai` installation. For development or offline installs only, set `GENTLE_PI_SKIP_GENTLE_AI_INSTALL=1`; native review operations then fail closed with an actionable `package-local-binary-missing` error. To recover explicitly, if `GENTLE_PI_SKIP_GENTLE_AI_INSTALL` is set, remove or unset it before changing to the installed `gentle-pi` package directory. Then run `node scripts/install-gentle-ai.mjs`. This invokes the package-owned installer without relying on a global binary or npm configuration change. A missing binary can result from skipped lifecycle scripts, but does not prove that lifecycle scripts were disabled.
272
284
 
273
285
  Recommended companion packages, into the standalone `gentle-shell` home:
274
286
 
@@ -329,6 +341,7 @@ gentle-shell upgrade [--channel release|main]
329
341
  gentle-shell upgrade --rollback
330
342
  gentle-shell update [pi|self|--self|--all] [--latest]
331
343
  gentle-shell self-uninstall [--dry-run] [--yes] [--include-shared]
344
+ gentle-shell desktop [--yes] [--no-open] | --status | --uninstall
332
345
  ```
333
346
 
334
347
  ### Flags
@@ -618,6 +631,17 @@ when empty. Like `upgrade`, it runs before any Pi runtime check.
618
631
  `gentle-shell uninstall <source>` stays Pi's own alias for `remove`. Details,
619
632
  refusals and exit codes: [Removing Gentle Shell](gentle-shell-uninstall.md).
620
633
 
634
+ ### `desktop` subcommand
635
+
636
+ `gentle-shell desktop` installs and opens Gentle Shell Desktop: Herdr app
637
+ (0.1.15 or newer, unchanged; a missing or older one gets the pinned 0.1.15,
638
+ checked against its SHA-256) with the package's `herdr/` mods, layout and
639
+ shortcuts. It prints its plan and asks first (`--yes` skips the question);
640
+ `--no-open` installs only, `--status` reports, `--uninstall` removes only what
641
+ it installed and puts back what was there before. Like `upgrade`, it runs before
642
+ any Pi runtime check, and `gentle-shell upgrade` refreshes it when it was
643
+ installed. Guide: [Gentle Shell Desktop](gentle-shell-desktop.md).
644
+
621
645
  ### First run in an isolated or custom home
622
646
 
623
647
  The first time `gentle-shell` resolves to an isolated or `--home <path>` home that does not already exist, it creates the directory, writes `"tuiMode": "fullscreen"` and, unless the home's `settings.json` already declares one, `"theme": "Gentleman-Cute"` into its `settings.json`, writes a small ownership marker file at `<home>/.gentle-shell-home` (a one-line JSON object naming the `gentle-pi` version that created it), and prints one hint to stderr pointing at `--link` (and at `gentle-shell home import-pi` when your pi home has an `auth.json`). A `--link` home is never bootstrapped this way — it is assumed to already exist as your pi agent home. Later runs against the same home skip the write and the hint. The default theme is also re-applied after automatic or manual setup if gentle-ai's own managed install wrote a different theme into a home that had none before that run; a home (or `--link`) that already declares its own theme is never touched.
@@ -646,7 +670,7 @@ gentle-pi's postinstall only writes the global `tuiMode: fullscreen` setting whe
646
670
 
647
671
  ### Interactive RPC hosts
648
672
 
649
- Setting `GENTLE_SHELL_INTERACTIVE_HOST=1` on a `pi --mode rpc` process turns on two things a plain headless RPC host does not get: dialogs for `ask_user_question` and `ask_user_choice` (one `ctx.ui.select` prompt per question, looped for multiSelect), and Gentle Agents' helper activity pushed live through `setWidget`. A subagent child spawned by such a host never inherits the variable, so nested children stay headless regardless of their parent. See the [activity payload reference](gentle-agents-activity.md) for the exact schema, field bounds, and shrink order.
673
+ Setting `GENTLE_SHELL_INTERACTIVE_HOST=1` on a `pi --mode rpc` process turns on two things a plain headless RPC host does not get: dialogs for `ask_user_question` and `ask_user_choice` (one `ctx.ui.select` prompt per question, looped for multiSelect, plus a free-text entry answered through `ctx.ui.input`: `ask_user_question`'s "Type something." row, and `ask_user_choice`'s "Type your answer" unless the call passes `allowCustomResponse: false`), and Gentle Agents' helper activity pushed live through `setWidget`. A subagent child spawned by such a host never inherits the variable, so nested children stay headless regardless of their parent. See the [activity payload reference](gentle-agents-activity.md) for the exact schema, field bounds, and shrink order.
650
674
 
651
675
  ### Herdr lifecycle bridge
652
676
 
@@ -768,15 +792,15 @@ parent git/status + clarify → one worker writes authorized fixes → focused v
768
792
 
769
793
  A bounded writer launch with a missing or invalid `## Allowed edit surfaces` section is rejected, by the tool hook and by the executor alike, with one concrete problem followed by one rule sentence. For an invalid entry the problem quotes the entry, gives its position (the Nth non-empty line under the heading, and the section number when there are several), says why it is invalid (an absolute or home path, the repository root, a `..` segment or a glob in the first segment, checked first; then text beside a backticked or plain path, several paths on one line, a label before a path, spaces outside backticks, prose, stray backticks, a control character, a bare list marker, an indented heading, or heading-like text under a list marker) with its fix, and counts any further invalid lines. A suggested fix applied literally gives the path the author meant or a section that is still rejected, never a different accepted surface: only an entry that reads as one path with spaces is told to use backticks. The quoted entry is at most 80 UTF-8 bytes, ellipsis included, and keeps everything but ASCII spaces at its ends; control characters such as a tab are escaped, and secret-looking assignment values and long digit-bearing tokens are masked whole, in time linear in the line length. A missing heading names a near-miss heading such as `## Allowed edit surfaces:` when one exists. Only the message names the problem: which sections are accepted is unchanged.
770
794
 
771
- A second admission check stops small-task delegation: in the primary session, a `gentle-ai-worker` or `worker` launch is admitted only when its task or context has a line that starts with `Spec: odd/tasks/<feature>.md` and names a task `T<n>` later on that line (for example `, T2, S3` or the delegation card's `(read until "## Log"). Do T2; S3.`), where the document is a regular file under the writer root's `odd/tasks/` after resolving symlinks, when the parent's measured context reaches the context backstop described below, or when it is one of two or more generic writer launches that make up every tool call of the same assistant message and whose `## Allowed edit surfaces` are pairwise disjoint (the same overlap check as concurrent writers; an entry it cannot interpret counts as overlapping). The hook reads that message from the session branch, where Pi stores it before preparing any of its calls, so launches split across messages, launches beside any other tool call, and launches made from a `codemode` script (nested calls) do not form a batch. Admission cannot measure unit size: two tiny units launched together pass, and "each heavier than a subagent start" stays a prompt rule. Admission does not make the batch run fully in parallel: a batch larger than `max_concurrency` (5 by default) runs partly in sequence, and a sibling that a later guard rejects leaves the other writers running without it. Otherwise the launch is rejected with an instruction to write the unit inline. Judgment Day fix agents, read-only subagents, and continuations are not affected.
795
+ A second admission check stops small-task delegation: in the primary session, a `gentle-ai-worker` or `worker` launch is admitted only when its task or context has a line that starts with `Spec: odd/tasks/<feature>.md` and names a task `T<n>` later on that line (for example `, T2, S3` or the delegation card's `(read until "## Log"). Do T2; S3.`), where the document is a regular file under the writer root's `odd/tasks/` after resolving symlinks, when the parent's measured context reaches the context backstop described below, or when it is one of two or more generic writer launches that make up every tool call of the same assistant message and whose `## Allowed edit surfaces` are pairwise disjoint (the same overlap check as concurrent writers; an entry it cannot interpret counts as overlapping). The hook reads that message from the session branch, where Pi stores it before preparing any of its calls, so launches split across messages, launches beside any other tool call, and launches made from a `codemode` script (nested calls) do not form a batch. Admission cannot measure unit size: two tiny units launched together pass, and "each heavier than a subagent start" stays a prompt rule. Admission does not make the batch run fully in parallel: a batch larger than `max_concurrency` (5 by default) runs partly in sequence, and a sibling that a later guard rejects leaves the other writers running without it. Otherwise the launch is rejected with an instruction to write the unit inline. The rejection also says the parent never ends its turn blocked on it: for small understood work it writes the unit inline and says in one line that delegation was refused because a writer costs more tokens and time than the change; when the user explicitly required delegation, it asks with `ask_user_choice` (do it inline, recommended for small work with that cost reason; track it as an ODD task; switch to full delegation; plus a typed answer), continues independent work meanwhile, and follows the answer. Admission itself does not change: a user's request to delegate is not a writer reason. Judgment Day fix agents, read-only subagents, and continuations are not affected.
772
796
 
773
797
  A third admission check keeps the independent verifier for high-risk changes: in the primary session, a `gentle-ai-verify` launch is admitted only when its task or context has a declaration that starts a line (optionally as a list item) or a sentence (after `.`, `!` or `?` and a space) with `Risk:` and names a Task Size high-risk item first, in the form `Risk: item N` with N from 1 to 6 (several items are allowed, for example `Risk: item 2, item 3 (reason)`), or when it carries a feature-document task line the writer check above accepts, or when the parent's measured context reaches the context backstop. `Risk: none`, a mention inside a sentence, or no declaration is rejected with a message that says no supported `Risk: item N` declaration was recognized in the launch `task` or `context`, and an instruction to run the change's focused test and suite inline, not to retry the launch, and never to add a Risk line or create a feature document only to get a verifier admitted. Subagent children, continuations, writers, Judgment Day agents, native review relays, and read-only explorers are not affected.
774
798
 
775
- The admission only sees launches that happen, so a settle reminder covers the run that declares a high-risk item and never launches the verifier. At `agent_before_settle` in the primary session, when the run's final assistant message declares `Risk: item N` with the same grammar and no `subagent_run` call for `gentle-ai-verify` was attempted during the current user prompt (an admitted or a rejected launch both count), Gentle AI appends one visible reminder and requests one continuation. The reminder names the item, says to launch `gentle-ai-verify` with the `Risk: item N` line in its `task`, states that a user's visual or manual approval does not replace technical verification, and says to close with **Needs your decision** naming the missing proof when verification is unavailable. It is sent at most once per user prompt, so the continuation never loops; a new user prompt resets it, a steer during the run does not. `Risk: none`, no declared item, an aborted or failed run, and subagent children get no reminder.
799
+ The admission only sees launches that happen, so a settle reminder covers the run that declares a high-risk item and never launches the verifier. At `agent_before_settle` in the primary session, when the run's final assistant message declares `Risk: item N` with the same grammar and no `subagent_run` call for `gentle-ai-verify` was attempted during the current user prompt (an admitted or a rejected launch both count), Gentle AI appends one visible reminder and requests one continuation. The reminder names the item, says to launch `gentle-ai-verify` with the `Risk: item N` line in its `task`, states that a user's visual or manual approval does not replace technical verification, and says to report the missing proof without claiming the change complete when verification is unavailable. It is sent at most once per user prompt, so the continuation never loops; a new user prompt resets it, a steer during the run does not. `Risk: none`, no declared item, an aborted or failed run, and subagent children get no reminder.
776
800
 
777
801
  Every subagent child runs with its own `TMPDIR` (also `TMP` and `TEMP` on Windows): a fresh `gaXXXXXX` directory created under the inherited temp directory (joined to the inherited value as given, never its real path), so scratch the child makes with `mktemp` stays out of the worktree. The runtime removes that directory and everything in it when the child ends, including a failed launch. A quarantined child, whose process exit is unconfirmed, keeps its directory under the system temp directory, because a surviving descendant may still use it; once its exit is proven, including a process group that ends after the child's own exit, the directory is removed and the slot is freed. Each continuation is a new child with a new directory.
778
802
 
779
- After a successful `git commit` run through `bash` in the primary session, the runtime appends one line to the tool result with the branch's authored changed lines since its merge base with the default branch (`origin/HEAD`, else `main` or `master`), counting additions plus deletions (a moved file counts only the lines the move changed) and excluding lock files and binary files, whatever characters their paths hold, and the commit count. The count runs in the directory of `git -C <dir>` under any `cd <dir>` that precedes the commit through `;`, `&&`, `||`, or a new line. Below about 400 lines it says how many remain; past them it says to apply the feature's delivery strategy before the next commit. Commits on the default branch, outside Git, or from subagents get no line, and neither do commits run as background jobs (their result arrives before the commit exists) or a count whose `git` query fails or times out. Only a `git` invocation that starts a shell command or segment is a commit; text that mentions `git commit` (an `echo`, a message) is not. The count runs asynchronously, so the parent stays responsive while `git` answers.
803
+ After a successful `git commit` run through `bash` in the primary session, the runtime appends one line to the tool result with the branch's authored changed lines since its merge base with the default branch (`origin/HEAD`, else `main` or `master`), counting additions plus deletions (a moved file counts only the lines the move changed) and excluding lock files and binary files, whatever characters their paths hold, and the commit count. The count runs in the directory of `git -C <dir>` under any `cd <dir>` that precedes the commit through `;`, `&&`, `||`, or a new line. Below about 400 lines it says how many remain; past them it says to record the slice boundary in the feature document and choose the delivery shape when publishing. Commits on the default branch, outside Git, or from subagents get no line, and neither do commits run as background jobs (their result arrives before the commit exists) or a count whose `git` query fails or times out. Only a `git` invocation that starts a shell command or segment is a commit; text that mentions `git commit` (an `echo`, a message) is not. The count runs asynchronously, so the parent stays responsive while `git` answers.
780
804
 
781
805
  The context backstop is measured, not estimated. Pi's `getContextUsage()` reports the parent's context tokens and the model's context window, and the backstop is `min(absolute cap, fraction × context window)`: 150,000 tokens and 0.15 by default, overridable with `GENTLE_PI_CONTEXT_BACKSTOP_TOKENS` (a positive number of tokens) and `GENTLE_PI_CONTEXT_BACKSTOP_FRACTION` (greater than 0, at most 1); invalid values keep the defaults. The cap holds for any model because carried context is paid again on every remaining turn whatever the provider; the fraction holds because answer quality and headroom depend on how full the window is, so a window reaches the backstop at 15% of its size until the cap applies (about 41k for a 272k window; the 150,000-token cap from a 1M window up). The 0.15 default comes from the bench: on a wide five-feature task, delegating at that point cost less and finished sooner, while small tasks never reached it. An unknown window leaves only the cap; unknown tokens (for example right after compaction, before the next response) never count as reaching it. In the primary session, the first tool result after the measured context reaches the backstop gets one appended notice with the measured tokens, the percent of the window, and the threshold, telling the parent to delegate the next bounded unit that needs several steps with a short handoff while single small edits and state checks stay inline. The tool output and structured content are kept and the error flag is never changed; a commit result carries the slice line first. The notice is sent once per crossing and re-armed when the measured context drops below the backstop again, for example after compaction. Subagents never get it. The writer and verifier admission checks above use the same threshold.
782
806
 
@@ -861,7 +885,7 @@ flowchart TD
861
885
 
862
886
  VALIDATE is informational. Commit, push, PR, and release commands follow ordinary repository policy; RDD never authorizes, rewrites, consumes review state for, or blocks them. Dangerous-command safety and destructive-review consent remain independent.
863
887
 
864
- For the source checkout, native contract pairing is exact: this adapter resolves only the integrity-verified package-local Gentle AI v4.5.0 executable, independently hashes it, then negotiates `gentle-ai.review-integration/v2` outside the repository. Capabilities are cached by that executable digest. Every START, target status, FINALIZE, and validate request passes the same contract identifier. Negotiated envelopes decode exactly against the vendored schemas; `recover` routes only the provider-selected `action_disposition`, and optional additions require a future compatible schema/minor that the provider explicitly advertises and the consumer negotiates.
888
+ For the source checkout, native contract pairing is exact: this adapter resolves only the integrity-verified package-local Gentle AI v4.6.0 executable, independently hashes it, then negotiates `gentle-ai.review-integration/v2` outside the repository. Capabilities are cached by that executable digest. Every START, target status, FINALIZE, and validate request passes the same contract identifier. Negotiated envelopes decode exactly against the vendored schemas; `recover` routes only the provider-selected `action_disposition`, and optional additions require a future compatible schema/minor that the provider explicitly advertises and the consumer negotiates.
865
889
 
866
890
  Contract `/v2` replaces the Base64 `candidate_diff` reviewer transport of `/v1` with immutable `base_tree`/`candidate_tree` plus an ordered `changed_path_manifest` and never an inline patch. `gentle-pi` negotiates `/v2` only, with no dual-lane fallback; the cutover landed as one atomic commit against gentle-ai v2.2.2 (tracked by the `migrate-review-integration-v2` change), and the `/v1` schemas stay packaged because the `/v2` schemas `$ref` into their fragments. This provider contract version is unrelated to Pi's own internal "compact-v2" review-authority naming used below — the shared digit is coincidental, not a version pairing.
867
891
 
@@ -873,7 +897,7 @@ Windows skips automatic candidate-owner sweeping during startup and candidate ma
873
897
 
874
898
  On POSIX, if START rejects a group- or world-accessible `.git/gentle-ai/candidate-views` parent, Pi reports `candidate-owner-parent-privacy` before native START. When a sanitized probe shows the filesystem cannot represent private POSIX modes (for example WSL DrvFS mounts without `metadata`), Pi instead reports `candidate-owner-parent-chmod-ineffective` with guidance to move the Git common directory to a POSIX-metadata filesystem or enable metadata support. Inspect that parent's ownership and permissions and correct them out of band before retrying; Pi does not change them automatically. Other owner-preparation failures retain a generic diagnostic rather than exposing filesystem errors. `inspect` runs the same read-only privacy assert before advertising a ready `review.start` and withholds the advertisement with the identical typed diagnostic under `candidate-view-preflight-blocked`, so STATUS and START stop disagreeing about a candidate whose view cannot materialize (gentle-ai#2196).
875
899
 
876
- Once the source checkout's pinned gentle-ai runtime (currently v4.5.0) has written review authority, rollback MUST preserve every native store and receipt and MUST NOT run a downgraded binary against that repository. Disable the Pi route or roll forward to a compatible authority-aware release instead; deleting authority data or reinstalling an older binary is not a rollback path.
900
+ Once the source checkout's pinned gentle-ai runtime (currently v4.6.0) has written review authority, rollback MUST preserve every native store and receipt and MUST NOT run a downgraded binary against that repository. Disable the Pi route or roll forward to a compatible authority-aware release instead; deleting authority data or reinstalling an older binary is not a rollback path.
877
901
 
878
902
  ### FINALIZE wrapper input
879
903
 
@@ -1031,7 +1055,8 @@ Behavior:
1031
1055
  - a best-effort watcher refreshes when skill files change; the cache is a non-authoritative SHA-256 hint, and each refresh compares actual rendered and on-disk bytes;
1032
1056
  - watcher events are debounced by 500 ms; a full fallback scan every 30 seconds also detects changes when watchers are unavailable or silently miss an event. Those missed changes can wait until the next scan; explicit refresh and the next prompt still read the current disk state;
1033
1057
  - each file is published atomically, registry before cache; they are not an atomic pair, and a later refresh repairs a mismatch;
1034
- - the registry indexes skill names, descriptions, scope, and exact `SKILL.md` paths without copying skill body rules or runtime-only rows.
1058
+ - the registry indexes skill names, descriptions, scope, and exact `SKILL.md` paths without copying skill body rules or runtime-only rows;
1059
+ - dot-prefixed directories directly inside a skill root (for example `.backup-foo-2026/`) are not scanned; when sibling directories declare the same skill `name`, the directory named after the skill wins over copies such as `foo.backup-2026/`, otherwise project scope, root order, and direct-over-nested order decide.
1035
1060
 
1036
1061
  Skill discovery is a guardrail, not a workflow router: it helps Pi load the right skill without forcing extra ceremony.
1037
1062
 
@@ -1355,6 +1380,8 @@ Every parent session uses one profile for its subagent launches, the footer and
1355
1380
 
1356
1381
  A session that never selected a profile resolves the shared defaults once, at startup: the local pin (`p`), then the repository declaration (`P`), then the globally active profile in `profiles.json`. It keeps that profile's name, routing, and origin (`local`, `repo`, or `global`). Changing a pin, the repository declaration, the active profile, or the profile's content afterwards affects new sessions only, the same way Pi's "set as default" for the orchestrator model leaves open sessions alone. Outside a Git worktree the repository declaration is still read, as non-Git writer admission does.
1357
1382
 
1383
+ **Live orchestrator at own start.** A new parent session that starts on a profile also switches its live orchestrator to that profile's `orchestrator` entry, resolved through the `p → P → G` layers of its own directory. Pi's persisted default remains only when no profile resolves or the entry is missing or unavailable (model not found or credentials missing); a failed switch keeps the current model and notifies you. This never writes `settings.json`. Follow mode and subagent children do not switch.
1384
+
1358
1385
  **Behavior change for unpinned sessions.** Without a pin or declaration, launches now use the globally active profile from `profiles.json`, replacing the materialized `subagents.json` routing wholesale like a pin does. Before, an unpinned launch read the materialized stores. When nothing is pinned and no profile is active, the session freezes "no profile" and keeps routing through the materialized stores, as before; a pin added later does not change it.
1359
1386
 
1360
1387
  **Drift notice.** On each subagent launch, a session with a frozen profile compares it with the current defaults of its own directory, without applying them. When they differ, it shows one line:
@@ -1529,6 +1556,7 @@ Use it when you want skills available normally but do not want Gentle AI to refr
1529
1556
  - `gentle-ai-issue-creation` — issue workflow with checks before creation.
1530
1557
  - `gentle-ai-skill-creator` — create LLM-first skills with valid frontmatter.
1531
1558
  - `gentle-ai-skill-improver` — audit and upgrade existing LLM-first skills.
1559
+ - `gentle-ai-provider-defect-report` — consented, privacy-scrubbed reporting of a Gentle AI provider defect, loaded only when a Gentle AI invocation produced the failure.
1532
1560
 
1533
1561
  ## Memory
1534
1562
 
@@ -1579,12 +1607,12 @@ To opt out:
1579
1607
  | `extensions/codegraph-tools.ts` | Runs workspace-scoped CodeGraph init/query/explore and keeps `.codegraph/` out of git through the worktree's local `info/exclude` (never a tracked file). |
1580
1608
  | `contracts/review-provider-contract-mirror/` | Verified mirror of the Gentle AI provider contract bundle: the `orchestration/pi.md` review execution contract and the `routing/pi.md` ODD steps. Refresh it only with `node scripts/mirror-provider-contract.mjs --bundle <local archive or tree>`; `pnpm run check:provider-contract` checks it offline against its lock. |
1581
1609
  | `assets/orchestrator.md` | Parent-session orchestration contract (always-on core). |
1582
- | `assets/orchestrator-delegation.md` | Lazy-loaded delegation card read when the parent delegates: the mirrored gentle-ai triggers, handoff, launch, and Key Learnings rules. |
1610
+ | `assets/orchestrator-delegation.md` | Lazy-loaded delegation card read when the parent delegates: the mirrored gentle-ai triggers, handoff, and launch rules. |
1583
1611
  | `assets/orchestrator-delegation-reference.md` | Lazy-loaded delegation reference read only when named: per-action table, Work Routing Ladder, background policy, runtime bindings, canonical workflows. |
1584
1612
  | `assets/orchestrator-tracking.md` | Lazy-loaded large-task ODD tracking: authorization, research, checks and consent, phase signaling, RDD assess, delivery. |
1585
1613
  | `assets/orchestrator-verification.md` | Lazy-loaded Verification rule, native risk tiers, and writer verification contract. |
1586
1614
  | `assets/orchestrator-writer.md` | Lazy-loaded allowed edit surfaces and Judgment Day fix dispatch. |
1587
- | `assets/orchestrator-prompts.md` | Lazy-loaded lossless blocking-prompt relays and Gentle AI provider defect handoff. |
1615
+ | `assets/orchestrator-prompts.md` | Lazy-loaded lossless blocking-prompt relays and the provider-defect classification stub; the report workflow loads from the `gentle-ai-provider-defect-report` skill. |
1588
1616
  | `assets/orchestrator-memory.md` | Lazy-loaded ODD feature continuity and memory lifecycle rules. |
1589
1617
  | `assets/orchestrator-skills.md` | Lazy-loaded skill registry fallback semantics and intent-driven skill discovery. |
1590
1618
  | `assets/agents/` | Delegation and review agents installed as global Pi runtime assets. |
@@ -1595,6 +1623,7 @@ To opt out:
1595
1623
  | `docs/skill-style-guide.md` | Normative style guide used by the packaged skill creation/improvement skills. |
1596
1624
  | `docs/native-authority-architecture.md` | Post-U8 ownership boundary, reproducible slimming metrics, Windows evidence, exact #191 seam, and the `review-integration/v1`→`v2` migration status, including the "compact-v2" naming disambiguation. |
1597
1625
  | `docs/review-integration.md` | Negotiated provider/consumer contract and the current Gentle Pi adoption boundary. |
1626
+ | `herdr/` | Gentle Shell Desktop for Herdr app: the `gentle-*` mods, the `gentle-shell` layout, `keys.json` shortcuts, the gallery brief `RECIPE.md` and `preview.png`. Installed by `gentle-shell desktop` ([guide](gentle-shell-desktop.md)). |
1598
1627
 
1599
1628
  ## Development
1600
1629
 
@@ -2,16 +2,19 @@
2
2
 
3
3
  ## Scope and delivered guidance
4
4
 
5
- This is a Shell prompt-guidance improvement, not an incident closure for #2211 or #1669. The always-on parent guidance distinguishes a recoverable failure from genuinely inaccessible proof before a bounded stop, and describes a parent-only route for explicitly authorized maintenance that a worker cannot perform. Neither rule grants permission, changes correction limits, or implements a backup or rollback operation.
5
+ This is a Shell prompt-guidance improvement, not an incident closure for #2211 or #1669. The provider-owned canonical Close now owns the authorized-work boundary: authorized steps continue, a pending child is a wait event whose completion resumes the turn without asking the human, and only a real human decision, the user's explicit stop, a denial, missing consent, or an exhausted limit stops the work it applies to, never independent authorized work. Pi's always-on continuity keeps its unique guard, budget, worker-continuation, and maintenance clauses without restating that boundary or licensing a generic **Needs your decision** stop. The parent-only maintenance route remains guidance for an explicitly authorized operation a worker cannot perform. None of these rules grants permission, changes correction limits, or implements a backup or rollback operation.
6
6
 
7
7
  | Situation | Guidance delivered to the parent |
8
8
  | --- | --- |
9
9
  | A test or harness check fails, but a correction and rerun remain in scope and within the existing budget | Correct and continue without asking for approval of each transition. Do not reset the budget or weaken the check. |
10
- | The human specified one run, no retries, or diagnostic only | Honor that limit; do not propose diagnostic-only or single-attempt authorization unless requested. |
11
- | Proof is genuinely inaccessible, consent is required, an action is denied, or the correction budget is exhausted | Stop and report the blocker. Terminal outcomes and existing bounded-stop rules remain binding; an unavailable verifier is not retried automatically. The narrow human-requested quota recovery below is a separate attempt. |
10
+ | The human specified one run, no retries, or diagnostic only | Honor that limit; correct only within the existing correction budget and never reset or weaken it. |
11
+ | Proof is missing, partial, unavailable, or declined; consent is required; an action is denied; or the correction budget is exhausted | Missing proof forbids claiming completion of the affected work, never an independently authorized next step; a required authorized check the existing budget still allows keeps running. Denial, missing consent, and exhaustion stop only the work they apply to. Terminal outcomes and existing bounded-stop rules remain binding; an unavailable verifier is not retried automatically. The narrow human-requested quota recovery below is a separate attempt. |
12
+ | A worker exhausts its correction limit and returns `status: partial` with its diagnosed loop cause | The worker's cycle ends, not the unit. The parent decides the next step from that evidence without asking the user: it names the cause and acts on it (organic mode may fix inline when small and understood; full delegation launches a new bounded writer carrying the diagnosis and new evidence with a changed scope or hypothesis). It never repeats the same attempt; the same cause again, or no new hypothesis, blocks that unit while independent work continues. Only a genuinely human decision goes to the user. See `docs/delegated-verification.md`. |
12
13
  | A worker cannot perform an upgrade | Only the parent may act after explicit authorization of the operation, exact scope and ownership, preservation, permitted tools, applicable fresh consent and guards, a validated backup, applicable artifact/migration validation, and a recovery path are established. |
13
14
  | An authorized rollback mixes task changes and unrelated changes, even in one file | Preserve unrelated edits; remove only proven task-created helpers. Never blanket restore, reset, or clean. Ambiguous ownership or denial stops the operation. |
14
15
 
16
+ A tracked task may end the turn pending only while it waits on already-launched work; for the affected work an already-decided denial, missing consent, the user's explicit stop, or an exhausted limit applies; or a genuine human decision stays outstanding. A partial user stop applies only to that work, unrelated runnable authorized work continues, and the turn never abandons runnable work or presents an unverified outcome as final. A report never turns into a blind self-reprompt loop.
17
+
15
18
  Broad feature approval is not destructive-operation authority. Do not reroute a denial to another worker or tool. No real maintenance, backup, migration, rollback, destructive Git operation, or model/provider operation was performed for this work.
16
19
 
17
20
  ## Temporary verifier quota recovery
@@ -22,11 +25,11 @@ A verifier that ended on a temporary quota error without a verdict has not suppl
22
25
 
23
26
  Preserve the failed attempt and still-valid successful checks; run the missing verification rather than replaying passed suites. Before dispatch, confirm the previous child has ended and no child has uncertain status. A candidate change requires the ordinary verification decision for that changed candidate. Do not automatically wait, retry, or substitute a provider/model. Consent, actual denials, explicit one-run/no-retry limits, terminal native outcomes and exhausted native budgets remain binding; this request does not reset them.
24
27
 
25
- This guidance changes no runtime quota detection, provider selection, or native review authority. The provider-owned Close text and pinned contracts remain unchanged. Delivered-instruction tests do not establish model adherence or a successful subscription-recovery journey.
28
+ This guidance changes no runtime quota detection, provider selection, or native review authority. The provider-owned Close boundary and the pinned installer contracts remain outside this quota-recovery rule. Delivered-instruction tests do not establish model adherence or a successful subscription-recovery journey.
26
29
 
27
30
  ## Current bounded checks
28
31
 
29
- On the current Windows workspace, with existing dependencies and no installation, network, provider, or model calls, the bounded verification run recorded these results:
32
+ On the earlier Windows workspace, with existing dependencies and no installation, network, provider, or model calls, the bounded verification run recorded these results against the then-current contract 1.4.0 mirror. The current field-test mirror is contract 1.6.0 and `node scripts/check-provider-contract.mjs` validates its bytes:
30
33
 
31
34
  | Command | Result |
32
35
  | --- | --- |
@@ -51,6 +54,6 @@ Those four selected cases are bounded Windows evidence only. They do not attribu
51
54
 
52
55
  ## Ownership and review limits
53
56
 
54
- The continuity clarification is Shell-owned and operates before existing terminal outcomes. The provider owns the mirrored Close contract; its bundle, hashes, and wording remain unchanged. A provider-owned semantic change requires separate authority.
57
+ The continuity clarification is Shell-owned and defers to the provider-owned Close contract for the authorized-work boundary. This delivery consumes the contract 1.6.0 field-test mirror generated from the finished canonical source through `scripts/mirror-provider-contract.mjs`; Pi never hand-edits bundle bytes or the manifest digest, and the released installer pin and capability rows remain unchanged. A released provider, installer, RDD-switch, native-guard, question-tool, or surface-policy change requires separate authority.
55
58
 
56
- Global RDD was on. An earlier preflight stopped with `immutable_review_transport_unsupported`; no review authority was started, no receipt exists, and review or mode was not retried. That unavailable review transport does not itself authorize or prohibit ordinary delivery; any delivery decision must use its applicable authority and evidence. Two wording advisories remain nonblocking and unproven: the sentence about not proposing diagnostic-only or single-attempt authorization, and the maintenance sentence that stops when a prerequisite is missing. No GitHub issue status was consulted, and this document does not claim publishing, delivery approval, or issue closure.
59
+ Global RDD was on. An earlier preflight stopped with `immutable_review_transport_unsupported`; no review authority was started, no receipt exists, and review or mode was not retried. That unavailable review transport does not itself authorize or prohibit ordinary delivery; any delivery decision must use its applicable authority and evidence. Earlier wording advisories concerned the diagnostic-only sentence, now removed with the generic terminal license, and the maintenance sentence, which remains guidance without new authority. No GitHub issue status was consulted, and this document does not claim publishing, delivery approval, or issue closure.