gentle-pi 4.7.0 → 4.8.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 (365) hide show
  1. package/README.md +55 -44
  2. package/assets/agents/gentle-ai-explore.md +3 -3
  3. package/assets/agents/gentle-ai-verify.md +20 -6
  4. package/assets/agents/gentle-ai-worker.md +6 -6
  5. package/assets/agents/jd-judge-a.md +1 -3
  6. package/assets/agents/jd-judge-b.md +1 -3
  7. package/assets/agents/review-readability.md +1 -5
  8. package/assets/agents/review-reliability.md +1 -5
  9. package/assets/agents/review-resilience.md +1 -5
  10. package/assets/agents/review-risk.md +1 -5
  11. package/assets/design-canvas/canvas-api.js +45 -0
  12. package/assets/design-canvas/canvas-boards.js +456 -0
  13. package/assets/design-canvas/canvas-boot.js +217 -0
  14. package/assets/design-canvas/canvas-checks.js +491 -0
  15. package/assets/design-canvas/canvas-comments.js +315 -0
  16. package/assets/design-canvas/canvas-compare.js +159 -0
  17. package/assets/design-canvas/canvas-events.js +75 -0
  18. package/assets/design-canvas/canvas-export.js +393 -0
  19. package/assets/design-canvas/canvas-focus.js +203 -0
  20. package/assets/design-canvas/canvas-handoffs.js +150 -0
  21. package/assets/design-canvas/canvas-i18n-es.js +392 -0
  22. package/assets/design-canvas/canvas-i18n.js +108 -0
  23. package/assets/design-canvas/canvas-layout.js +526 -0
  24. package/assets/design-canvas/canvas-menu.js +213 -0
  25. package/assets/design-canvas/canvas-messages.js +86 -0
  26. package/assets/design-canvas/canvas-minimap.js +163 -0
  27. package/assets/design-canvas/canvas-parts.js +401 -0
  28. package/assets/design-canvas/canvas-popover.js +234 -0
  29. package/assets/design-canvas/canvas-rail.js +348 -0
  30. package/assets/design-canvas/canvas-sizes.js +524 -0
  31. package/assets/design-canvas/canvas-store.js +164 -0
  32. package/assets/design-canvas/canvas-tokens.js +674 -0
  33. package/assets/design-canvas/canvas-ui.js +24 -0
  34. package/assets/design-canvas/canvas-view.js +184 -0
  35. package/assets/design-canvas/canvas.css +746 -15
  36. package/assets/design-canvas/canvas.js +2 -1506
  37. package/assets/design-canvas/index.html +117 -36
  38. package/assets/design-canvas/inspector.js +546 -16
  39. package/assets/install-wizard/wizard.js +5 -1
  40. package/assets/migrations/agent-body-history.json +24 -0
  41. package/assets/orchestrator-delegation-reference.md +8 -14
  42. package/assets/orchestrator-delegation.md +4 -4
  43. package/assets/orchestrator-full-delegation-card.md +4 -5
  44. package/assets/orchestrator-full-delegation.md +8 -8
  45. package/assets/orchestrator-memory.md +2 -2
  46. package/assets/orchestrator-prompts.md +1 -1
  47. package/assets/orchestrator-quota-recovery.md +5 -0
  48. package/assets/orchestrator-skills.md +13 -12
  49. package/assets/orchestrator-tracking.md +10 -14
  50. package/assets/orchestrator-verification.md +10 -8
  51. package/assets/orchestrator-writer.md +4 -4
  52. package/assets/orchestrator.md +18 -22
  53. package/bin/gentle-shell.mjs +128 -9
  54. package/contracts/review-provider-contract-mirror/provider-contract.lock.json +8 -9
  55. package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/manifest.json +3 -3
  56. package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/orchestration/pi.md +1 -0
  57. package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/routing/pi.md +6 -6
  58. package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/generated/provider-capabilities.baseline.json +3 -3
  59. package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/generated/provider-roles.baseline.json +1 -1
  60. package/docs/assets/brand/sponsor-banner.svg +60 -0
  61. package/docs/bundled-install.md +14 -6
  62. package/docs/delegated-verification.md +18 -2
  63. package/docs/desktop-rpc.md +1253 -0
  64. package/docs/gentle-agents-activity.md +26 -0
  65. package/docs/gentle-shell.md +39 -16
  66. package/docs/install-wizard.md +30 -21
  67. package/docs/odd-preparation-continuity.md +24 -0
  68. package/docs/permission-modes.md +9 -1
  69. package/docs/prompt-budget.md +12 -0
  70. package/docs/rdd-odd-friction-triage-2026-11-07.md +57 -0
  71. package/docs/readme-reference.md +76 -24
  72. package/docs/review-coordinator.md +29 -9
  73. package/docs/review-delivery-preflight.md +22 -0
  74. package/docs/work-continuity.md +11 -1
  75. package/extensions/ask-user-question.ts +2 -2
  76. package/extensions/child-context.ts +21 -7
  77. package/extensions/gentle-agents.ts +234 -33
  78. package/extensions/gentle-ai.ts +576 -135
  79. package/extensions/gentle-design.ts +69 -3
  80. package/extensions/gentle-desktop-rpc.ts +143 -0
  81. package/extensions/gentle-guide.ts +3 -0
  82. package/extensions/gentle-shell.ts +105 -52
  83. package/extensions/gentle-todo.ts +48 -25
  84. package/extensions/skill-registry.ts +248 -223
  85. package/lib/agent-assets.ts +30 -6
  86. package/lib/agent-tool-overlay.ts +117 -0
  87. package/lib/agents-config.ts +47 -6
  88. package/lib/agents-message-delivery.ts +17 -0
  89. package/lib/agents-messaging.ts +8 -2
  90. package/lib/agents-protocol.ts +15 -0
  91. package/lib/agents-report-cap.ts +115 -0
  92. package/lib/agents-runner.ts +91 -6
  93. package/lib/agents-session-transport.ts +17 -1
  94. package/lib/background-jobs-tools.ts +9 -4
  95. package/lib/bounded-writer-admission.ts +184 -31
  96. package/lib/child-context-files.ts +21 -6
  97. package/lib/codemode-renderer.ts +1 -0
  98. package/lib/delivery-conflict-markers.ts +349 -0
  99. package/lib/design-canvas-assets.ts +36 -0
  100. package/lib/design-canvas-server.ts +241 -23
  101. package/lib/design-comments.ts +94 -4
  102. package/lib/design-handoffs.ts +2 -1
  103. package/lib/design-layout.ts +125 -0
  104. package/lib/design-parts.ts +281 -0
  105. package/lib/design-system-tokens.ts +111 -0
  106. package/lib/desktop-agents-service.ts +294 -0
  107. package/lib/desktop-design-service.ts +233 -0
  108. package/lib/desktop-jobs-service.ts +263 -0
  109. package/lib/desktop-rpc-agents.ts +294 -0
  110. package/lib/desktop-rpc-config.ts +731 -0
  111. package/lib/desktop-rpc-design.ts +138 -0
  112. package/lib/desktop-rpc-jobs.ts +181 -0
  113. package/lib/desktop-rpc-permissions.ts +177 -0
  114. package/lib/desktop-rpc-profiles.ts +196 -0
  115. package/lib/desktop-rpc-usage.ts +229 -0
  116. package/lib/desktop-rpc.ts +225 -0
  117. package/lib/desktop-usage-service.ts +310 -0
  118. package/lib/destructive-command-guard.ts +188 -13
  119. package/lib/gentle-ai-renderer.ts +13 -1
  120. package/lib/gentle-design.ts +201 -14
  121. package/lib/gentle-shell-bundled.ts +100 -9
  122. package/lib/hidden-tools.ts +35 -0
  123. package/lib/inprocess-reviewer.ts +96 -12
  124. package/lib/model-fallback-policy.ts +9 -0
  125. package/lib/model-routing-authority.ts +9 -0
  126. package/lib/nan-provider.ts +42 -28
  127. package/lib/native-review-cli.ts +79 -4
  128. package/lib/orchestrator-discovery.ts +39 -2
  129. package/lib/reply-language-anchor.ts +27 -2
  130. package/lib/request-context-placement.ts +53 -0
  131. package/lib/review-candidate-view.ts +11 -1
  132. package/lib/review-continuation-registry.ts +17 -0
  133. package/lib/review-coordinator.ts +252 -8
  134. package/lib/review-delivery-preflight.ts +85 -0
  135. package/lib/review-host-relay.ts +5 -1
  136. package/lib/review-integration-v2.ts +56 -3
  137. package/lib/reviewer-stream.ts +87 -0
  138. package/lib/shell-prompt.ts +16 -3
  139. package/lib/shell-usage.ts +10 -0
  140. package/lib/vim-editor-adapter.ts +9 -2
  141. package/lib/writer-batch-admission.ts +55 -0
  142. package/lib/yolo-session-policy.ts +6 -1
  143. package/package.json +2 -2
  144. package/prompts/skill-creation.md +1 -10
  145. package/runtime/design-canvas-assets.mjs +37 -0
  146. package/runtime/gentle-shell-bundled.mjs +100 -9
  147. package/runtime/native-review-cli.mjs +79 -4
  148. package/runtime/review-integration-v2.mjs +56 -3
  149. package/scripts/bootstrap.cmd +2 -2
  150. package/scripts/bootstrap.sh +41 -4
  151. package/scripts/build-full-delegation-card.mjs +4 -0
  152. package/scripts/build-runtime-modules.mjs +1 -0
  153. package/scripts/gentle-ai-installer.mjs +10 -10
  154. package/scripts/gentle-ai-proxy.mjs +1 -1
  155. package/scripts/installer-downloads.mjs +34 -8
  156. package/scripts/installer-preflight.mjs +28 -17
  157. package/scripts/installer-probes.mjs +25 -5
  158. package/scripts/installer-server.mjs +38 -9
  159. package/scripts/installer-windows.mjs +2 -2
  160. package/scripts/pi-update.mjs +166 -27
  161. package/scripts/prepare-verifier.mjs +107 -0
  162. package/scripts/update-agent-body-history.mjs +55 -8
  163. package/scripts/verify-package-files.mjs +40 -19
  164. package/skills/branch-pr/SKILL.md +16 -16
  165. package/skills/comment-writer/SKILL.md +1 -1
  166. package/skills/design/SKILL.md +6 -6
  167. package/skills/gentle-ai/SKILL.md +5 -5
  168. package/skills/judgment-day/SKILL.md +2 -2
  169. package/skills/judgment-day/references/prompts-and-formats.md +1 -1
  170. package/skills/rdd-defect-workflow/SKILL.md +6 -6
  171. package/skills/skill-improver/SKILL.md +2 -2
  172. package/skills/skill-registry/SKILL.md +11 -13
  173. package/skills/tui-design/SKILL.md +1 -1
  174. package/skills/work-unit-commits/SKILL.md +5 -5
  175. package/tests/agent-prompt-diet-contract.test.ts +101 -0
  176. package/tests/agent-tool-overlay-acceptance.test.ts +158 -0
  177. package/tests/agent-tool-overlay.test.ts +89 -0
  178. package/tests/agents-config.test.ts +10 -1
  179. package/tests/agents-message-delivery.test.ts +36 -0
  180. package/tests/agents-queries.test.ts +144 -4
  181. package/tests/agents-report-cap.test.ts +126 -0
  182. package/tests/agents-runner.test.ts +37 -1
  183. package/tests/agents-session-transport.test.ts +34 -0
  184. package/tests/always-on-prompt-verdicts-contract.test.ts +188 -0
  185. package/tests/append-system-prompt-route.test.ts +10 -2
  186. package/tests/approved-text-leftovers-contract.test.ts +136 -0
  187. package/tests/artifact-language.test.ts +1 -1
  188. package/tests/ask-user-question.test.ts +2 -1
  189. package/tests/audit-leftovers-contract.test.ts +51 -0
  190. package/tests/bounded-stop-contract.test.ts +9 -1
  191. package/tests/branch-pr-skill.test.ts +10 -1
  192. package/tests/bundled-install.test.ts +1 -1
  193. package/tests/child-context-files.test.ts +64 -8
  194. package/tests/child-skills-catalog.test.ts +56 -0
  195. package/tests/codemode-rendering.test.ts +4 -1
  196. package/tests/delegate-for-reason-contract.test.ts +30 -8
  197. package/tests/delivery-conflict-markers.test.ts +348 -0
  198. package/tests/design-canvas-all-sizes.test.ts +631 -0
  199. package/tests/design-canvas-allowlist.test.ts +32 -0
  200. package/tests/design-canvas-assets.test.ts +11 -878
  201. package/tests/design-canvas-boards.test.ts +77 -0
  202. package/tests/design-canvas-checks.test.ts +655 -0
  203. package/tests/design-canvas-compare.test.ts +79 -0
  204. package/tests/design-canvas-events.test.ts +59 -0
  205. package/tests/design-canvas-export.test.ts +1168 -0
  206. package/tests/design-canvas-focus.test.ts +113 -0
  207. package/tests/design-canvas-handoffs.test.ts +59 -0
  208. package/tests/design-canvas-i18n-review.test.ts +513 -0
  209. package/tests/design-canvas-i18n-views.test.ts +259 -0
  210. package/tests/design-canvas-i18n.test.ts +526 -0
  211. package/tests/design-canvas-inspector.test.ts +937 -0
  212. package/tests/design-canvas-layout.test.ts +1222 -0
  213. package/tests/design-canvas-minimap.test.ts +413 -0
  214. package/tests/design-canvas-modules.test.ts +90 -0
  215. package/tests/design-canvas-parts.test.ts +721 -0
  216. package/tests/design-canvas-rail.test.ts +799 -0
  217. package/tests/design-canvas-server.test.ts +855 -17
  218. package/tests/design-canvas-sizes.test.ts +548 -0
  219. package/tests/design-canvas-store.test.ts +180 -0
  220. package/tests/design-canvas-tokens.test.ts +965 -0
  221. package/tests/design-canvas-view.test.ts +299 -0
  222. package/tests/design-comments.test.ts +201 -1
  223. package/tests/design-handoffs.test.ts +20 -0
  224. package/tests/design-layout.test.ts +100 -0
  225. package/tests/design-parts.test.ts +260 -0
  226. package/tests/design-system-tokens.test.ts +215 -0
  227. package/tests/desktop-rpc-agents.test.ts +893 -0
  228. package/tests/desktop-rpc-config.test.ts +1452 -0
  229. package/tests/desktop-rpc-design.test.ts +662 -0
  230. package/tests/desktop-rpc-jobs.test.ts +796 -0
  231. package/tests/desktop-rpc-permissions.test.ts +311 -0
  232. package/tests/desktop-rpc-profiles.test.ts +140 -0
  233. package/tests/desktop-rpc-safety.test.ts +119 -0
  234. package/tests/desktop-rpc-usage.test.ts +697 -0
  235. package/tests/desktop-rpc.test.ts +252 -0
  236. package/tests/devbinary/pi-host-relay.devtest.ts +149 -80
  237. package/tests/devbinary/review-session-consent.devtest.ts +84 -0
  238. package/tests/engram-safety.test.ts +111 -0
  239. package/tests/fixtures/devbinary/status-v9-escalated-non-blocking.captured.json +92 -0
  240. package/tests/fixtures/devbinary/status-v9-escalated-non-blocking.provenance.md +3 -0
  241. package/tests/fixtures/primary-session-prompt/gentleman.golden.md +20 -29
  242. package/tests/fixtures/refusal-identity.probe.mjs +139 -0
  243. package/tests/full-delegation-closure.test.ts +29 -0
  244. package/tests/gentle-agents.test.ts +329 -4
  245. package/tests/gentle-ai-binary.test.ts +1 -1
  246. package/tests/gentle-ai-child-guards.test.ts +1 -0
  247. package/tests/gentle-ai-installer.test.ts +52 -51
  248. package/tests/gentle-ai-renderer.test.ts +36 -2
  249. package/tests/gentle-ai.test.ts +121 -6
  250. package/tests/gentle-design.test.ts +365 -1
  251. package/tests/gentle-shell-bundled.test.ts +91 -5
  252. package/tests/gentle-shell-launcher.test.ts +1 -1
  253. package/tests/gentle-shell.test.ts +118 -87
  254. package/tests/gentle-todo.test.ts +32 -9
  255. package/tests/hidden-tools.test.ts +188 -0
  256. package/tests/independent-recovery-delivery.test.ts +19 -5
  257. package/tests/inprocess-reviewer.test.ts +73 -0
  258. package/tests/install-wizard.test.ts +27 -1
  259. package/tests/installer-downloads.test.ts +30 -1
  260. package/tests/installer-posix-bootstrap.test.ts +114 -13
  261. package/tests/installer-preflight.test.ts +49 -1
  262. package/tests/installer-probes.test.ts +146 -0
  263. package/tests/installer-server.test.ts +203 -4
  264. package/tests/installer-windows-bootstrap.test.ts +19 -1
  265. package/tests/judgment-day-severity-admission.test.ts +46 -0
  266. package/tests/lazy-module-contradictions-contract.test.ts +158 -0
  267. package/tests/maintainer/desktop-rpc.maintest.ts +632 -0
  268. package/tests/maintainer/pi-update-source.maintest.ts +48 -18
  269. package/tests/model-fallback-policy.test.ts +26 -7
  270. package/tests/nan-provider-runtime.test.ts +17 -3
  271. package/tests/nan-provider.test.ts +111 -56
  272. package/tests/native-review-capability-contract.test.ts +11 -1
  273. package/tests/native-review-cli-nonblocking-findings.test.ts +165 -0
  274. package/tests/native-review-parity.test.ts +24 -5
  275. package/tests/native-review-refusal-identity.test.ts +25 -0
  276. package/tests/no-self-pause-contract.test.ts +11 -3
  277. package/tests/odd-integration.test.ts +11 -3
  278. package/tests/odd-routing-contract.test.ts +80 -28
  279. package/tests/orchestrator-budget.test.ts +30 -5
  280. package/tests/orchestrator-consultation-sdk.test.ts +32 -6
  281. package/tests/orchestrator-delegation-mode.test.ts +2 -1
  282. package/tests/orchestrator-discovery.test.ts +28 -0
  283. package/tests/orchestrator-prompt-budget.test.ts +11 -2
  284. package/tests/orchestrator-prompt-diet-contract.test.ts +221 -0
  285. package/tests/orchestrator-rdd-ownership.test.ts +2 -1
  286. package/tests/orchestrator-work-search.test.ts +4 -2
  287. package/tests/package-files.test.ts +25 -1
  288. package/tests/package-manifest.test.ts +11 -10
  289. package/tests/parallel-reason-contract.test.ts +6 -3
  290. package/tests/permission-allowlist.test.ts +200 -30
  291. package/tests/persona-neutral-voseo.test.ts +4 -4
  292. package/tests/persona-reply-language.test.ts +1 -1
  293. package/tests/persona-single-channel.test.ts +13 -5
  294. package/tests/pi-update-launcher.test.ts +17 -7
  295. package/tests/pi-update-source.test.ts +113 -6
  296. package/tests/pi-update.test.ts +294 -19
  297. package/tests/pnpm-workspace-policy.test.ts +47 -0
  298. package/tests/primary-context-files.test.ts +233 -0
  299. package/tests/primary-context-three-files.test.ts +174 -0
  300. package/tests/provider-defect-handoff.test.ts +9 -2
  301. package/tests/rdd-aware-verification-contract.test.ts +1 -1
  302. package/tests/rdd-status-line.test.ts +94 -1
  303. package/tests/reply-language-anchor-placement.test.ts +184 -0
  304. package/tests/reply-language-anchor.test.ts +17 -1
  305. package/tests/request-context-append-only.test.ts +218 -0
  306. package/tests/request-context-placement.test.ts +148 -0
  307. package/tests/review-agent-end-preflight.test.ts +79 -1
  308. package/tests/review-candidate-view.test.ts +65 -0
  309. package/tests/review-continuation-registry.test.ts +31 -0
  310. package/tests/review-contract-prompt.test.ts +1 -1
  311. package/tests/review-controller.test.ts +2 -1
  312. package/tests/review-coordinator-correction-gate.test.ts +105 -0
  313. package/tests/review-coordinator-findings.test.ts +206 -0
  314. package/tests/review-coordinator-nonblocking-scope.test.ts +169 -0
  315. package/tests/review-coordinator.test.ts +271 -4
  316. package/tests/review-delivery-preflight.test.ts +462 -0
  317. package/tests/review-due-compaction.test.ts +31 -0
  318. package/tests/review-due-public-boundary.test.ts +26 -0
  319. package/tests/review-integration-nonblocking-findings.test.ts +108 -0
  320. package/tests/review-json-arguments.test.ts +41 -2
  321. package/tests/review-ledger-contract.test.ts +19 -40
  322. package/tests/review-loadout-rdd-off-sdk.test.ts +30 -1
  323. package/tests/review-one-call-findings.test.ts +131 -0
  324. package/tests/review-one-call-followups.test.ts +308 -0
  325. package/tests/review-one-call-reviewer-requests.test.ts +207 -0
  326. package/tests/review-one-call.test.ts +452 -0
  327. package/tests/review-relay-transport-agent.test.ts +28 -1
  328. package/tests/review-reviewer-evidence.test.ts +41 -1
  329. package/tests/review-risk-assessment.test.ts +52 -5
  330. package/tests/review-run-statement-guidance-independent.test.ts +54 -0
  331. package/tests/review-session-standing-permission-controller.test.ts +32 -2
  332. package/tests/review-tool-prose-budget.test.ts +1 -0
  333. package/tests/reviewer-stream.test.ts +149 -0
  334. package/tests/session-profile-extension.test.ts +2 -2
  335. package/tests/shell-prompt.test.ts +17 -0
  336. package/tests/shell-usage.test.ts +59 -10
  337. package/tests/skill-contradictions-contract.test.ts +122 -0
  338. package/tests/skill-registry-watcher.test.ts +216 -2
  339. package/tests/skill-registry.test.ts +929 -306
  340. package/tests/support/design-canvas-dom.ts +369 -0
  341. package/tests/support/review-coordinator-runtime.ts +212 -17
  342. package/tests/task-size-routing-contract.test.ts +42 -11
  343. package/tests/test-strength-contract.test.ts +2 -1
  344. package/tests/todo-request-append-only.test.ts +214 -0
  345. package/tests/tool-batching-contract.test.ts +3 -1
  346. package/tests/update-agent-body-history.test.ts +138 -0
  347. package/tests/verification-tiers-contract.test.ts +229 -0
  348. package/tests/verifier-preparation.test.ts +229 -0
  349. package/tests/verify-agent-contract.test.ts +20 -2
  350. package/tests/verify-first-launch-contract.test.ts +87 -11
  351. package/tests/vim-editor-adapter.test.ts +2 -2
  352. package/tests/work-continuity-contract.test.ts +54 -11
  353. package/tests/writer-admission-messages.test.ts +232 -0
  354. package/tests/writer-batch-admission.test.ts +66 -0
  355. package/tests/writer-edit-surface-scope.test.ts +52 -20
  356. package/tests/writer-feature-document-admission.test.ts +184 -0
  357. package/tests/yolo-mode.test.ts +39 -0
  358. package/skills/_shared/review-ledger-contract.md +0 -106
  359. /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/README.md +0 -0
  360. /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/schemas/lens.schema.json +0 -0
  361. /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/schemas/refuter.schema.json +0 -0
  362. /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/schemas/targeted-validator.schema.json +0 -0
  363. /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/vectors/lens.json +0 -0
  364. /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/vectors/refuter.json +0 -0
  365. /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/vectors/targeted-validator.json +0 -0
@@ -0,0 +1,57 @@
1
+ # RDD and ODD friction triage — 2026-11-07
2
+
3
+ Source candidate: `origin/main` at `db5d6b93717cfdf8d271f7b14f34fae8e2d05955`, plus the uncommitted changes on `fix/odd-rdd-friction-20261107`. GitHub issue and merged-PR states were read on November 7. The original `main` working directory contains older, unrelated changes and was left intact.
4
+
5
+ The user requested RDD optimization and bug triage, then explicitly expanded the work to ODD blockers, excessive ceremony, and repairs. Priorities below are proposed triage priorities, not changes to GitHub labels. An open issue is a report, not proof that its original defect persists on this candidate. Titles were screened broadly; the priority reports and linked recent fixes were read in detail. This is not an exhaustive reproduction of the backlog.
6
+
7
+ ## Repairs prepared locally
8
+
9
+ | Problem | Evidence and correction | Verification scope |
10
+ | --- | --- | --- |
11
+ | Canonical `Spec: odd/tasks/...` launches fail from repository subdirectories ([#2337](https://github.com/Gentleman-Programming/gentle-shell/issues/2337)) | The actual `tool_call` hook used raw session cwd. Resolve the selected target's canonical Git worktree root for writer/verifier document admission; preserve non-Git fallback and explicit target isolation. | The new real-Git hook regression failed before the fix and passes after it. Existing missing-document, traversal, escaping-symlink, context-backstop and full-delegation controls remain covered. |
12
+ | Small work refuses a requested task list | The core said both that a requested `todo` never determines task size and that the small path permits no `todo`. Permit requested lists; clarify that they alone create no durable document or memory mirror. | Instruction-delivery assertions and rendered prompt budgets; no model-behavior or latency claim. |
13
+ | Long suites trigger unnecessary independent verification | The delegation reference table required a verifier for long suites/builds even though the canonical rule requires a named high-risk item. Remove duration as a standalone trigger. Actual environment/security risk still applies. | Existing named-risk, inline-check and delegation contracts pass. This does not waive applicable checks. |
14
+ | Generic PRs require Gentle-specific issues and labels ([#2668](https://github.com/Gentleman-Programming/gentle-shell/issues/2668)) | `branch-pr` universally required an approved issue and exactly one `type:*` label. Version 2.1 follows target policy and the user's established approval convention; it reuses existing action authorization. | Structural skill checks and an author-directed instruction walkthrough: no-issue repository, custom approval convention, required `status:approved`, and already-authorized PR preparation. No independent or live model evaluation. |
15
+ | RDD advertises an unusable nested-tool route ([#2691](https://github.com/Gentleman-Programming/gentle-shell/issues/2691)) | Four `gentle_review*` registrations omitted exposure, while the runtime rejected nested calls. Register them as `model-only`, matching the coordinator's existing exposure; retain the nested-call guard. | Registration regression failed before the change; it and existing direct/nested-call controls now pass. Real SDK RDD-off/on loadout checks also pass. |
16
+
17
+ The en-dash task range in [#2335](https://github.com/Gentleman-Programming/gentle-shell/issues/2335) is accepted by the current parser: `T2–T4` and `T2..T4` now have explicit positive controls. This does not reproduce or explain the entire historical incident; no speculative parser rewrite was made.
18
+
19
+ ## Prioritized remaining work
20
+
21
+ P1 means next correctness/availability work; P2 means normal follow-up; P3 means lower-impact presentation or backlog reconciliation. Ownership identifies the likely change surface, not a proven root cause.
22
+
23
+ | Priority | Reports | Current assessment and next acceptance case |
24
+ | --- | --- | --- |
25
+ | P1 | [#2997](https://github.com/Gentleman-Programming/gentle-shell/issues/2997), [#2618](https://github.com/Gentleman-Programming/gentle-shell/issues/2618) | Delivery precedes RDD on bundled commit/push/PR requests; assessment can target only dirty changes. Reproduce on current main with an explicit committed range and fake delivery commands, including compound/background commands. Align assessment, slice-close and pre-delivery behavior with native policy; an end-of-turn reminder is too late. Cross-owner: Shell orchestration and provider report `gentle-ai#6028`. No new delivery gate or universal review requirement is claimed here. |
26
+ | P1 | [#2724](https://github.com/Gentleman-Programming/gentle-shell/issues/2724), [#2735](https://github.com/Gentleman-Programming/gentle-shell/issues/2735), [#2379](https://github.com/Gentleman-Programming/gentle-shell/issues/2379), [#2704](https://github.com/Gentleman-Programming/gentle-shell/issues/2704), [#2450](https://github.com/Gentleman-Programming/gentle-shell/issues/2450), [#1596](https://github.com/Gentleman-Programming/gentle-shell/issues/1596), [#1204](https://github.com/Gentleman-Programming/gentle-shell/issues/1204) | Correction, restart, selector and acknowledgement continuity. Group for investigation, not automatic duplicate closure. Run a committed correction, restart, targeted validation and exact acknowledgement on the same frozen range. Recent route/restart tests cover only parts of this journey; the stable provider pin remains 4.3.1. |
27
+ | P1 | [#2920](https://github.com/Gentleman-Programming/gentle-shell/issues/2920), [#2441](https://github.com/Gentleman-Programming/gentle-shell/issues/2441), [#1346](https://github.com/Gentleman-Programming/gentle-shell/issues/1346) | False blocking findings or rejection of a restoration. The current targeted-validation request schema has `correction_candidate_tree`, without original base-tree content or finding evidence. Provider contract/prompt work is needed before claiming the reported restoration case fixed. Preserve real negative findings and do not fabricate a correction or approval. |
28
+ | P1 | [#2676](https://github.com/Gentleman-Programming/gentle-shell/issues/2676), [#1551](https://github.com/Gentleman-Programming/gentle-shell/issues/1551), [#2361](https://github.com/Gentleman-Programming/gentle-shell/issues/2361) | Reviewer stalls, native-child settlement and stream disconnects are different failure classes. The merged host deadline does not supply first-token/idle watchdogs or prove POSIX zombie settlement. Test each separately: no first token, stalled stream, child exits with open inherited pipe, and midstream disconnect. Avoid blanket retries of stateful submissions. |
29
+ | P1 | [#2953](https://github.com/Gentleman-Programming/gentle-shell/issues/2953), [#2622](https://github.com/Gentleman-Programming/gentle-shell/issues/2622), [#2432](https://github.com/Gentleman-Programming/gentle-shell/issues/2432), [#1260](https://github.com/Gentleman-Programming/gentle-shell/issues/1260), [#1235](https://github.com/Gentleman-Programming/gentle-shell/issues/1235) | Effective model/auth/provider routing can prevent every review. Model preflight and evidence are merged, but do not prove remote API-key entitlement, live routing updates or provider-specific session-header compatibility. Capture the resolved model/provider and test with a supported configured provider. |
30
+ | P1 | [#2723](https://github.com/Gentleman-Programming/gentle-shell/issues/2723), [#1607](https://github.com/Gentleman-Programming/gentle-shell/issues/1607), [#1483](https://github.com/Gentleman-Programming/gentle-shell/issues/1483), [#1259](https://github.com/Gentleman-Programming/gentle-shell/issues/1259) | Invalid generated fields and output exhaustion strand slots. Diagnostics are improved, not artifact admission. Preserve rejected bytes and usage; distinguish malformed schema from truncation before choosing a correction. Do not silently strip fields or weaken native admission. |
31
+ | P2 | [#2984](https://github.com/Gentleman-Programming/gentle-shell/issues/2984), [#2646](https://github.com/Gentleman-Programming/gentle-shell/issues/2646) | Startup status still has a hardcoded 3000 ms deadline. Add bounded, documented timeout configuration or establish a measured cold-start policy. Keep failed-read memoization, unknown-state semantics and actual timeout diagnostics consistent. No evidence that raising the timeout improves warm calls. |
32
+ | P2 | [#2708](https://github.com/Gentleman-Programming/gentle-shell/issues/2708) | Repeated consent after choosing session permission. The current grant path remains conditional on a strict completed-result shape. Reproduce using a real supported result and two candidates in one session/repository; retain session/epoch/common-directory checks and explain a refused grant instead of silently widening permission. |
33
+ | P2 | [#2808](https://github.com/Gentleman-Programming/gentle-shell/issues/2808), [#1685](https://github.com/Gentleman-Programming/gentle-shell/issues/1685), [#1169](https://github.com/Gentleman-Programming/gentle-shell/issues/1169), [#1619](https://github.com/Gentleman-Programming/gentle-shell/issues/1619) | Candidate/workspace preparation failures need separate non-Git, multi-repo, Windows path-length and checkout fixtures. The ODD document-root correction above does not repair RDD candidate materialization. |
34
+ | P2 | [#1494](https://github.com/Gentleman-Programming/gentle-shell/issues/1494), [#2213](https://github.com/Gentleman-Programming/gentle-shell/issues/2213) | Keep measuring total parent/reviewer turns, setup, model duration and prompt bytes. Existing proportionality and one-attempt verifier setup are present; do not add another workflow layer. Repeat the small three-bug fixture and an authorized larger maintenance case to establish actual behavior and cost. |
35
+ | P2 | [#2224](https://github.com/Gentleman-Programming/gentle-shell/issues/2224), [#2333](https://github.com/Gentleman-Programming/gentle-shell/issues/2333) | Clarification and resume design. Ask only unresolved costly decisions; reuse settled choices and check repository evidence before trusting old memory. These are design requests, not reproduced runtime failures in this pass. |
36
+ | P3 | [#1804](https://github.com/Gentleman-Programming/gentle-shell/issues/1804), [#2961](https://github.com/Gentleman-Programming/gentle-shell/issues/2961), [#2894](https://github.com/Gentleman-Programming/gentle-shell/issues/2894), [#2219](https://github.com/Gentleman-Programming/gentle-shell/issues/2219) | Sidebar/language, mode controls and older test expectations need current-version reconciliation. Keep feature requests separate from defects and verify installed release versus merged main before closing. |
37
+
38
+ ## Existing integrations that must not be counted twice
39
+
40
+ All of these PRs were read back as merged. A merge proves integration, not resolution of every related issue or rollout in the user's installed package.
41
+
42
+ - [#2962](https://github.com/Gentleman-Programming/gentle-shell/pull/2962), [#2971](https://github.com/Gentleman-Programming/gentle-shell/pull/2971), [#2972](https://github.com/Gentleman-Programming/gentle-shell/pull/2972): START intent, STATUS selectors and retained continuation routing. Provider resume fix `gentle-ai#5881` is explicitly outside the stable 4.3.1 pin in the delivery evidence.
43
+ - [#2963](https://github.com/Gentleman-Programming/gentle-shell/pull/2963), [#2966](https://github.com/Gentleman-Programming/gentle-shell/pull/2966), [#2975](https://github.com/Gentleman-Programming/gentle-shell/pull/2975): host deadline, execution evidence and optional phase timings. No first-token/idle policy or reproduced POSIX-zombie fix is claimed.
44
+ - [#2964](https://github.com/Gentleman-Programming/gentle-shell/pull/2964): symlink-scan cache for [#2458](https://github.com/Gentleman-Programming/gentle-shell/issues/2458). Reconcile the open issue against its acceptance cases; do not implement a second cache. Reported benefit is warm-scan reuse, not end-to-end speedup.
45
+ - [#2965](https://github.com/Gentleman-Programming/gentle-shell/pull/2965): explicitly frozen empty policy compatibility. It does not supply the baseline/evidence missing in #2920.
46
+ - [#2973](https://github.com/Gentleman-Programming/gentle-shell/pull/2973), [#2974](https://github.com/Gentleman-Programming/gentle-shell/pull/2974): actionable blocker projections and model preflight. Better explanations do not repair the refused operation.
47
+ - [#2980](https://github.com/Gentleman-Programming/gentle-shell/pull/2980): committed approval acknowledgement across fresh processes using simulated provider persistence. The PR explicitly does not close #2724 or claim a real native restart journey.
48
+ - [#2944](https://github.com/Gentleman-Programming/gentle-shell/pull/2944), [#2994](https://github.com/Gentleman-Programming/gentle-shell/pull/2994): reduced review-tool prose and corrected its byte budget. #2213 remains broader than this reduction.
49
+
50
+ ## Validation and limits
51
+
52
+ - Before/after failures were observed for the subdirectory launch and missing `model-only` declarations.
53
+ - Final combined matrix: 194 passing checks, zero failures or skips, across 16 focused test files.
54
+ - Typecheck: zero recorded diagnostics. Generated runtime: 16 modules match. Provider mirror and package inventory pass, including 69 byte-pinned artifacts. `git diff --check` passes. The runtime harness exits zero.
55
+ - The rendered core and declaration budgets remain unchanged. RDD tool declarations are 17,275 bytes under the existing 17,300-byte cap.
56
+ - No full repository-suite pass, paid model benchmark, independent review, live skill execution, new native verdict, installed-package update or universal performance improvement is claimed. Prompt checks establish delivered instructions, not model compliance.
57
+ - No commits, pushes, PR creation, remote comments, labels, issue closure, merges or RDD-mode changes were performed.
@@ -22,7 +22,7 @@ The primary-session prompt renders steps 1-7, the phase-reporting line, and the
22
22
  7. **Close** — report the verified outcome, failed/pending checks, and the next step. The native review candidate is a work-unit commit or a PR slice, never a TODO checkbox and never the accumulated feature branch.
23
23
 
24
24
  - **One feature document:** `odd/tasks/<feature-name>.md` holds objective, problem, why, scope, constraints, actionable checklist with stable IDs and acceptance criteria, verification evidence, progress, and next step. Project-scoped Engram topic `odd/<feature-name>/tasks` mirrors the full document and repository-relative locator. Keep concise rationale for meaningful accepted changes here, not a separate plan or exhaustive journal. Accepted user, review, or verification changes update intent and tasks together; preserve valid completed work, add new tasks or reopen invalidated items with reasons. Findings alone do not authorize expansion or acceptance. Routine corrections stay with their tasks; checkoffs require observed proof.
25
- - **Recovery:** write local progress first and read back both copies; writes are not atomic. Unavailable Engram leaves an explicit pending mirror, not invented success or a block on unrelated safe work. Before implementation or resume, the parent reads full feature memory and the actual task file, reconciles code and evidence, and preserves conflicting versions. Pass the locator and relevant context; workers read the document before edits. The existing Todo UI is a projection, not another authority.
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
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.
@@ -171,11 +171,11 @@ otherwise `herdr` from `PATH`, without a shell.
171
171
  | **Agent overlay close control** | Adds a header close button that adapts to available width. |
172
172
  | **Reviewer protection** | Surfaces review workload risk before a task turns into an oversized PR. |
173
173
  | **Per-agent model assignment** | Pi-native modal for assigning stronger or cheaper models to packaged and custom agents. |
174
- | **Skill discovery registry** | Maintains `.atl/skill-registry.md` from project and user skills so review/comment/PR workflows do not silently miss the right skill. |
174
+ | **Skill discovery registry** | Maintains a shared disk index and a separate Pi session-effective view for selecting and delegating exact skill paths. |
175
175
  | **Skill creation workflow** | Provides the `gentle-ai-skill-creator`/`gentle-ai-skill-improver` skills, `/skill-creation` prompt, and packaged style guide for LLM-first skills. |
176
176
  | **Delivery skills** | Includes issue-first PRs, chained PRs, work-unit commits, cognitive docs, comment writing, and Judgment Day review. |
177
177
  | **Bounded native review** | Freezes one candidate, dispatches only controller-selected lenses, and records native authority. Review outcomes are informational; delivery follows ordinary repository policy. |
178
- | **Verified native runtime** | The current source checkout provisions the exact package-local Gentle AI v4.4.0 runtime: signed, SHA-256-pinned release archives on Darwin/Linux and a Go SumDB-verified source build on Windows x64/arm64. It validates package-local integrity and rejects PATH, global, sibling, symlink, and mode fallbacks. |
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. |
179
179
  | **Runtime safety** | Blocks destructive shell commands, asks for confirmation for sensitive operations, and blocks direct read/write/edit/grep/find/ls access to sensitive paths (the guard checks the tool's `path` input, so a search scoped to a directory still reads whatever that directory contains, and bash is not covered). Blocks writing a test file that reads git history at a literal commit or points `TMPDIR` inside the working directory (including a relative path such as `.tmp`, `./.tmp`, or `tmp/x`), in the primary session and in subagents. Refuses native review tools (`gentle_review*`) called from inside another tool, such as a codemode script: they run only as direct tool calls. |
180
180
 
181
181
  ## TPS notifications
@@ -244,11 +244,11 @@ This installs the current npm release from the `latest` dist-tag. For a reproduc
244
244
 
245
245
  ### Source checkout
246
246
 
247
- This checkout declares its `gentle-pi` version in [`package.json`](../package.json), with a package-local Gentle AI `v4.4.0` pin. Checkout metadata alone is not proof of npm publication; verify the registry version and its release workflow.
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.
248
248
 
249
249
  ### Pi compatibility
250
250
 
251
- The current package requires Pi 1.2.0 or newer and Node >=22.19.0. Development tests resolve Pi through the open `>=1.0.0` development range. The private Vim editor adapter admits only the audited Pi `0.99.1`, `0.99.2`, `1.0.0`, `1.1.0`, `1.2.0`, `1.3.0`, `1.4.0`, and `1.5.0` releases; any other release keeps ordinary prompt editing until its editor is audited. Use the latest Pi release; gentle-pi does not update your installed Pi automatically. Children, including any `GENTLE_PI_AGENTS_PI` override, must emit `agent_settled`: `agent_end` records a run's output but is not completion because retries or queued continuations may follow.
251
+ The current package requires Pi 1.2.0 or newer and Node `^22.19.0 || >=23.6.0` (22.19.0 or a later 22.x release, or 23.6.0 or newer; Node 23.0–23.5 are not supported). Development tests resolve Pi through the open `>=1.0.0` development range. The private Vim editor adapter admits only the audited Pi `0.99.1`, `0.99.2`, `1.0.0`, `1.1.0`, `1.2.0`, `1.3.0`, `1.4.0`, `1.5.0`, `1.5.1`, and `1.5.2` releases; any other release keeps ordinary prompt editing until its editor is audited. Use the latest Pi release; gentle-pi does not update your installed Pi automatically. Children, including any `GENTLE_PI_AGENTS_PI` override, must emit `agent_settled`: `agent_end` records a run's output but is not completion because retries or queued continuations may follow.
252
252
 
253
253
  The [`v2.6.0` release](https://github.com/Gentleman-Programming/gentle-shell/releases/tag/v2.6.0) added persistent registered worktrees and grouped `/gentle:changes` views; fuller workspace interaction details are in the [Gentle Shell reference](gentle-shell.md). It also adds named atomic `/gentle:profiles`, native review intended-untracked selection and provider continuations, and opt-in custom ask responses. Pi recognizes its global Git-managed package path; subsystems install with explicit recovery guidance when npm lifecycle work was skipped. Windows keeps child consoles hidden and fixes ownership mode; Gentle Todo keeps the next pending task visible when collapsed.
254
254
 
@@ -262,11 +262,13 @@ Malformed/nonobject JSON, symlink/nonregular settings, unsafe paths, or a busy s
262
262
 
263
263
  ### RDD history and default
264
264
 
265
+ The primary prompt waits up to 3000 ms for native RDD status. On machines with slow process startup, set `GENTLE_PI_RDD_STATUS_TIMEOUT_MS` to a positive decimal integer from 1 to 10000 to choose a bounded wait; missing, malformed or out-of-range values keep the 3000 ms default. The limit includes waiting for an already-running startup status read and does not retry it after the deadline. A timeout means status is unavailable, not that RDD is off: the host keeps a last-known on status or renders unknown. Failed reads retain the existing 30-second memo to avoid repeated process launches. This setting does not change native review deadlines, consent or authorization.
266
+
265
267
  Native RDD was introduced in `gentle-pi` `v0.15.0` on 2026-07-10 with bounded review transactions. Current releases include native RDD; use the [installation guidance above](#path-b-inside-an-existing-pi) for the current npm release or an explicit version pin. The introduction version is historical context, not a separate stable/unstable release line.
266
268
 
267
269
  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.
268
270
 
269
- The source checkout's RDD integration installs Gentle AI only into its private `.gentle-ai/` directory. Darwin and Linux use pinned release assets with asset and executable SHA-256 verification (signed archives for source pin `v4.4.0`; raw prerelease binaries only under a prerelease pin). Windows x64 and arm64 build the exact `v4.4.0` source tag with a local Go 1.25.10+ toolchain, a sealed Go environment, `GOTOOLCHAIN=local`, and `GOSUMDB=sum.golang.org`; it does not download Go automatically (the [installation wizard](install-wizard.md#pinned-go) can put its own pinned Go first on PATH for that build). Go runs in a short private directory under the system temp directory, never inside the package, because a deep pnpm store path pushes Go's working directories past MAX_PATH; a failed build prints its whole cause chain with the failing command's output tail. Windows provenance is Go-toolchain plus SumDB evidence and postinstall tamper detection, **not** Authenticode or protection against a malicious joint binary-and-manifest replacement. Package-private locks coordinate cooperative concurrent or crashed installers; their tombstones fail closed. A malicious same-user process with write access to package-private `node_modules` is outside that protocol because it can already replace package code, binary, or manifest, and portable Node has no pathname-delete CAS. It never uses `PATH` or a global `gentle-ai` installation. For development or offline installs only, set `GENTLE_PI_SKIP_GENTLE_AI_INSTALL=1`; native review operations then fail closed with an actionable `package-local-binary-missing` error. To recover explicitly, if `GENTLE_PI_SKIP_GENTLE_AI_INSTALL` is set, remove or unset it before changing to the installed `gentle-pi` package directory. Then run `node scripts/install-gentle-ai.mjs`. This invokes the package-owned installer without relying on a global binary or npm configuration change. A missing binary can result from skipped lifecycle scripts, but does not prove that lifecycle scripts were disabled.
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.
270
272
 
271
273
  Recommended companion packages, into the standalone `gentle-shell` home:
272
274
 
@@ -402,13 +404,15 @@ Tradeoff: `--link` shares one credential store with pi; `import-pi` duplicates i
402
404
 
403
405
  `gentle-shell update` updates the selected Pi through its verified npm or pnpm global owner, avoiding Pi's self-update refusal for pnpm v11 linked stores. Ownership requires successful global listing JSON, an exact canonical listed package-root/CLI match, and binding to the selected runtime. An adjacent peer (the launcher's `bundled` runtime) is supplied by the exact listed `gentle-pi` package: that Shell package is reinstalled at its current version so the manager re-resolves the peer (a main-channel `<version>-main.<sha12>` Shell, which is never published, from the tarball `gentle-shell upgrade --channel main` packed under `<config home>/main/packages/` (an absolute `GENTLE_PI_CONFIG_HOME`, else `~/.pi/gentle-ai`; a relative override is refused), refusing without installation when it is missing and naming `gentle-shell upgrade --channel release` then `--channel main` as the rebuild path), and a separate global Pi is never the target, because updating it leaves the peer a Shell install runs unchanged. A `PATH` or `GENTLE_SHELL_PI` runtime is supplied only by its own listed global Pi package; when that executable is a package-manager shim (pnpm's POSIX shim, a `.cmd`), Shell follows the single `dist/bundle/cli.js` it names, relative to the shim's directory, and refuses shims naming none or several. Pi and Shell are never installed together in a comma group, and unrelated packages are never reinstalled. Merely residing under `PNPM_HOME` proves nothing. Adjacent peers resolve where the package manager places them: nested under the Shell package (npm), beside it in pnpm's linked store, or in the global group's own `node_modules`. Linked Pi entries remain rejected. A source-linked Shell instead updates its exact checkout's local Pi, without replacing its global link: single-project Git roots only, an npm/pnpm `packageManager` declaration (pnpm at least that version; npm exact) and matching available version, a direct registry Pi range, and one matching lockfile are required. Multi-project/ancestor workspaces and conflicting lockfiles refuse before installation. Root-only pnpm configuration is retained after read-only manager queries prove a sole root project; updates do not ignore or rewrite its security policy. The named update disables lifecycle scripts and range changes, but may update Pi's transitive lockfile graph. pnpm updates additionally require that the actual old global group contains only the target top-level package: aggregated listings may contain other, separate groups, but shared groups are rejected because pnpm can remove the whole old group. Unknown, malformed, failed, or ambiguous ownership refuses before installation; update unsupported layouts with their supplying package manager.
404
406
 
405
- After a successful install, Shell reads the supplied Pi version back from a fresh global listing and reports it, naming the previous version when it changed. An unchanged pnpm result also names pnpm's `minimumReleaseAge` setting: pnpm installs only releases older than that age (pnpm 11 defaults to 4320 minutes), so a very recent Pi release is picked up once it is old enough; Shell reports the rule rather than overriding it. Global listings, manager version probes and global installations run from the system temporary directory, so a project's `packageManager` pin in the current directory never changes which pnpm answers. A verified source update alone runs from the checkout and rechecks the Shell link, unchanged manifest and adjacent Pi there instead of reading a separate global Pi. When the version cannot be read back, the output says so and points at `gentle-shell --version`.
407
+ Before installing, Shell resolves Pi's `latest` registry tag and rejects anything other than an exact stable version. For a pnpm update it reads that version's published `dependencies`, and those of each `@earendil-works/*` package it pins to an exact stable version, transitively (at most 32 packages). It temporarily adds only Pi and those exactly pinned packages to the effective `minimumReleaseAgeExclude` list: they are published with Pi, so pnpm's strict release-age mode could not otherwise approve them under `--no-save`. Because pnpm applies only the first exclusion naming a package, a new version joins that package's existing entry as one union (`name@1.0.0 || 1.5.2`); a bare name already covers every version. Other existing exclusions pass through unchanged, and the age policy stays in force for other packages, including ranged or third-party dependencies. If a manifest cannot be verified, the closure exceeds its bound, or an existing entry for one of those packages is not an exact-version union, nothing is installed. It does not change configuration files. A source update may select a Pi outside the declared range without changing the manifest; a later ordinary install can restore that range. npm's source `--no-save` update also leaves its lockfile unchanged.
408
+
409
+ After installing, Shell reads the supplied Pi version back, naming the previous version when it changed; a different readable version is reported as an error instead of being called latest. Global listings, manager version probes and global installations run from the system temporary directory, so a project's `packageManager` pin in the current directory never changes which pnpm answers. A verified source update runs from the checkout and rechecks the Shell link, unchanged manifest, pnpm configuration and adjacent Pi there instead of reading a separate global Pi. When the version cannot be read back, the output says so and points at `gentle-shell --version`.
406
410
 
407
- Prefix-bundled `gentle-shell update` selects the newest published stable Pi without the release's verified lockfile; `--latest` is an alias (see [`upgrade`](#upgrade-subcommand-and-channels)). Outside a bundled install `--latest` uses the ordinary managed update, including a source checkout's declared range. `update --all` forwards extension updates after the Pi attempt, and reports a Pi failure even if extensions succeed. Explicit extension pins remain pinned. Managed Pi self updates reject `--force`; ownership refusals stop without mutation.
411
+ Prefix-bundled `gentle-shell update` selects the newest published stable Pi without the release's verified lockfile; `--latest` is an alias (see [`upgrade`](#upgrade-subcommand-and-channels)). Outside a bundled install `--latest` is also an alias for the managed update. `update --all` forwards extension updates after the Pi attempt, and reports a Pi failure even if extensions succeed. Explicit extension pins remain pinned. Managed Pi self updates reject `--force`; ownership refusals stop without mutation.
408
412
 
409
413
  ### `setup` subcommand
410
414
 
411
- **Bundled Engram safety:** Shell shares the global Engram server on `127.0.0.1:7437`, like other agents' hooks. A running server is reused only through Engram's exact `GET /compatibility` ready contract; when nothing listens, Shell starts the checksum-pinned Engram 3.5.2 core as a detached `engram serve` (Engram's default port and `~/.engram`, no update check, no GitHub tokens) and waits up to 10 seconds for that same contract, so you never start the server yourself. An existing store does not disable memory by itself, whoever created it; only a database header from a newer Engram schema keeps Shell from starting its older core on it. Anything else (a server that does not verify, a token-protected or unknown server, a start that fails or never reports ready) disables memory for that launch with an explanation of the missing safety evidence and backup precautions (matching versions or updating alone do not prove compatibility); Shell never stops or replaces a listening server. Shell always points `ENGRAM_BIN` at its own guard (`bin/engram-guard`), which fails before any store access for every gentle-engram from 0.4.1 on, whichever Pi route loaded it, so memory reaches the store only through the verified server's `ENGRAM_URL`. No compatibility is inferred from versions. An explicit `ENGRAM_BIN` or `ENGRAM_URL` is never replaced and bypasses the guard. Shell verifies the selected companion's `engram.startupPolicy: 1`; a failed check is reported and Shell still starts. In a Shell-owned home, the old `npm:gentle-engram@0.4.2` registration is migrated to unversioned `npm:gentle-engram` through Pi's package manager without installing an update. Linked/foreign homes and other pinned or local selections are preserved. See [bundled startup safety](bundled-install.md#engram-startup-safety) for the full rules and known limits.
415
+ **Bundled Engram safety:** Shell shares the global Engram server on `127.0.0.1:7437`, like other agents' hooks. A running server is reused only through Engram's exact `GET /compatibility` ready contract; when nothing listens, Shell starts the checksum-pinned Engram core — as a first-class daemon (`engram run -d`) from 3.7.0 on, so `engram ps/stop/logs/restart` manage it, falling back to a detached `engram serve` on older cores or a failed daemon handoff (Engram's default port and `~/.engram`, no update check, no GitHub tokens) and waits for that same contract within a bounded start budget, so you never start the server yourself. An existing store does not disable memory by itself, whoever created it; only a database header from a newer Engram schema keeps Shell from starting its older core on it. Anything else (a server that does not verify, a token-protected or unknown server, a start that fails or never reports ready) disables memory for that launch with an explanation of the missing safety evidence and backup precautions (matching versions or updating alone do not prove compatibility); Shell never stops or replaces a listening server. Shell always points `ENGRAM_BIN` at its own guard (`bin/engram-guard`), which fails before any store access for every gentle-engram from 0.4.1 on, whichever Pi route loaded it, so memory reaches the store only through the verified server's `ENGRAM_URL`. No compatibility is inferred from versions. An explicit `ENGRAM_BIN` or `ENGRAM_URL` is never replaced and bypasses the guard. Shell also publishes a verified runtime-contract digest for each pinned core and warns, without blocking, when the installed companion's contract differs from the pinned core's or from the digest the running server answers, so an incompatible pair is named instead of surfacing only as blocked memory; after `gentle-shell update --extensions` the replaced companion is re-verified the same way. Shell verifies the selected companion's `engram.startupPolicy: 1`; a failed check is reported and Shell still starts. In a Shell-owned home, the old `npm:gentle-engram@0.4.2` registration is migrated to unversioned `npm:gentle-engram` through Pi's package manager without installing an update. Linked/foreign homes and other pinned or local selections are preserved. See [bundled startup safety](bundled-install.md#engram-startup-safety) for the full rules and known limits.
412
416
 
413
417
  The memory decision never skips or fails bundled setup: it publishes the verified core and runs Gentle AI, then only selects the Engram environment (the guard as `ENGRAM_BIN`, plus `ENGRAM_URL` when memory is allowed) for setup children and the launched Pi. `--dry-run` installs nothing. Non-bundled setup keeps the existing behavior described below.
414
418
 
@@ -729,13 +733,21 @@ Typical flow:
729
733
 
730
734
  Size and uncertainty can call for scoped exploration or delegation within ODD. The delegation triggers below select execution topology, not a different development method.
731
735
 
736
+ ### gentle-ai managed blocks in context files
737
+
738
+ A context file such as a gentle-ai managed `~/AGENTS.md` can carry another orchestrator's policy. While Gentle Shell injects its own orchestrator prompt, the primary session drops the orchestrator-only managed blocks (the set listed in `lib/child-context-files.ts`) from the loaded context files, as delegated children already do. When the primary runs without Gentle Shell's orchestrator prompt, nothing is dropped.
739
+
740
+ The `engram-protocol` managed block is dropped the same way, on the primary session and in delegated children, because gentle-engram injects its own memory protocol every turn. Only the injected context loses it: every file on disk keeps the block byte-for-byte, so a runtime that reads the same file as a workspace file and carries no runtime-injected protocol (OpenClaw) still gets it.
741
+
742
+ Text outside managed markers, other managed blocks, and kept blocks nested inside a dropped one, such as `remote-authorization`, stay byte-for-byte. Files with unbalanced or ambiguous markers stay unchanged. The files on disk are never modified.
743
+
732
744
  ### Delegation triggers
733
745
 
734
746
  `gentle-pi` keeps the parent session thin and delegates at the narrowest useful point. When the Pi Subagents extension is installed, the preferred runtime is the `subagent_*` tool family because it runs the user's configured project/global subagent definitions and preserves history/background behavior. With the background policy on, delegations default to background mode: the terminal stays free and each result comes back as a message that starts a new turn; task mode is the bounded print-mode alternative and also supports delegations that must ask the user something mid-flight. Background work requires a live interactive/RPC parent; `subagent_run` and `subagent_continue` reject background mode in the single-shot modes `pi -p` and `pi --mode json`, which exit before a later result can be received. If those tools are unavailable, the parent falls back to Pi's native `Agent` tool in the current runtime; it must never fall back to an external pane, terminal, session, window, or remote worker. If no in-runtime mechanism is available, the parent stops and tells the user.
735
747
 
736
748
  | Trigger | Required behavior |
737
749
  | --------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
738
- | Understanding needs more than the evidence budget (one parallel batch of at most 3 calls, ~10k tokens) or more than ~5 sequential lookups | Launch `scout`, `context-builder`, or the closest read-only mapping subagent; it returns a handoff of at most ~2k tokens with `path:line` evidence. Never force delegation for a small targeted question. |
750
+ | Understanding needs more than the evidence budget (one parallel batch of at most 3 calls, ~10k tokens) or more than 3 lookups | Launch the package-owned `gentle-ai-explore` (if missing or unusable, native `Agent` with the same read-only mapping task, reporting the fallback); it returns a handoff of at most ~2k tokens with `path:line` evidence. Never force delegation for a small targeted question. |
739
751
  | A large (tracked) task | Track it in the logbook; delegate a writer only for a reason (parallel units or context), never for size, file count, or a price ratio. A parallel unit is one independent piece of behavior (its code, tests, and docs together) that needs several minutes of work; smaller or dependent changes stay inline. Each writer prompt names the existing helpers and invariants its unit must reuse. |
740
752
  | A change that touches a named high-risk item (assess `escalate`) | Run an independent verifier after the change's own checks; otherwise the focused test and suite run inline. A native high tier, a failed assessment, or the writer's model never adds one by itself. |
741
753
  | Commit, push, or PR after code changes | Follow the loaded native instruction, or ordinary repository policy when none is supplied. |
@@ -750,11 +762,13 @@ The intended balanced loop for a bounded bugfix is:
750
762
  parent git/status + clarify → one worker writes authorized fixes → focused verification → parent reports
751
763
  ```
752
764
 
753
- `scout`/`context-builder` save parent context by compressing broad exploration. `worker` runs one bounded writer thread; parallel writers only with disjoint Allowed edit surfaces (runtime-enforced) or isolated worktrees.
765
+ `gentle-ai-explore` saves parent context by compressing broad exploration. `worker` runs one bounded writer thread; parallel writers only with disjoint Allowed edit surfaces (runtime-enforced) or isolated worktrees.
754
766
 
755
767
  "Runtime-enforced" means an admission-time check inside one Pi process: when `subagent_run` or `subagent_continue` queues a bounded writer, it is rejected if a queued or running writer of the same parent process, in the same worktree, has an overlapping `## Allowed edit surfaces` entry. Writers are keyed by their canonical worktree root (the realpath of the Git worktree root, or the realpath of the cwd outside Git), so a subdirectory cwd, the root itself, and a symlinked spelling count as one worktree. It is not a write-time guard: it does not stop a writer from editing outside its declared surfaces, and separate Pi parent processes do not coordinate with each other. Overlap is conservative: an entry also covers everything under it, a whole-segment `**` covers any depth, while `**` inside a segment (for example `src/**.ts`) matches within that one segment, like minimatch. Entries compare in Unicode NFC. Entries with bracket classes, extglob groups, backslashes, or nested, unbalanced, or `/`-spanning braces overlap every other entry, and a wildcard never proves two entries disjoint when either contains non-ASCII characters. A quarantined writer whose process exit is unconfirmed keeps its surfaces until the exit is confirmed; a process that survives quarantine keeps both its surface claim and its concurrency slot until its exit is observed, which can last for the parent's lifetime. Any RDD-specific actor behavior belongs to the runtime instruction supplied by Gentle AI, not to this README.
756
768
 
757
- 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, or when the parent's measured context reaches the context backstop described below. 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.
769
+ 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
+
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.
758
772
 
759
773
  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.
760
774
 
@@ -847,7 +861,7 @@ flowchart TD
847
861
 
848
862
  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.
849
863
 
850
- For the source checkout, native contract pairing is exact: this adapter resolves only the integrity-verified package-local Gentle AI v4.4.0 executable, independently hashes it, then negotiates `gentle-ai.review-integration/v2` outside the repository. Capabilities are cached by that executable digest. Every START, target status, FINALIZE, and validate request passes the same contract identifier. Negotiated envelopes decode exactly against the vendored schemas; `recover` routes only the provider-selected `action_disposition`, and optional additions require a future compatible schema/minor that the provider explicitly advertises and the consumer negotiates.
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.
851
865
 
852
866
  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.
853
867
 
@@ -859,7 +873,7 @@ Windows skips automatic candidate-owner sweeping during startup and candidate ma
859
873
 
860
874
  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).
861
875
 
862
- Once the source checkout's pinned gentle-ai runtime (currently v4.4.0) has written review authority, rollback MUST preserve every native store and receipt and MUST NOT run a downgraded binary against that repository. Disable the Pi route or roll forward to a compatible authority-aware release instead; deleting authority data or reinstalling an older binary is not a rollback path.
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.
863
877
 
864
878
  ### FINALIZE wrapper input
865
879
 
@@ -925,15 +939,19 @@ The host grant is held only in a schema-checked `globalThis[Symbol.for(...)]` We
925
939
 
926
940
  When RDD is on and an agent loop ends with an unreviewed candidate that the native assessment reports `review_due` (high risk), `gentle-pi` sends one read-only reminder pointing the agent back to `gentle_review {"operation":"inspect"}` before it reports completion. A candidate the assessment reports not due (medium or passive, already covered by verify) earns no reminder; an assessment that cannot answer keeps it. This nudge is idempotent (at most once per target identity per session), never fires for a headless session or a subagent's own loop, and never runs START or answers consent itself. Pi treats a child `agent_end` as a latest-answer update, not completion: queued retry, compaction, follow-up, required verification, and legitimate post-correction verification remain live until `agent_settled`. It does not claim ready or RDD-ready first, but this ordering rule does not impose a universal full-suite requirement or turn a receipt into a delivery gate. At session start, `gentle-pi` records the current target identity as a baseline, so a candidate that already existed before the session began (the user's own prior work, not this session's output) never draws the reminder.
927
941
 
942
+ While RDD is not off, the parent runs an ordinary native review with `gentle_review_run`: one call follows the provider-issued transitions from assess to the acknowledged approval. It returns `closed` after the verified acknowledgement, or stops with `not-due`, `assessment-unavailable`, `request-context-requires-fresh-review`, `consent-required`, `input-required` (a correction plan; with its findings and the review's non-blocking findings when the provider reports the non-blocking ones), `selection-required` (an intended-untracked selection; resume with `resume_input`), `stopped` (an escalated review: with its non-blocking findings), `handoff` (maintenance or another unsupported operation), `repeated-capture`, `forecast` (not displayed), `binding-drift` (lineage or target drift), `transition-limit`, `cancelled` (after an approved closure, with its findings) or `blocked` (an error). Single review operations remain for what its result hands back, for a review the user explicitly asks for after `not-due`, and for ASSESS after a delegated writer. `GENTLE_PI_EXPERIMENTAL_REVIEW_COORDINATOR=0` opts out; see [ordinary review in one call](review-coordinator.md).
943
+
928
944
  An ordinary `gentle_review` START input may carry the agent lens selection: `{"mode":"ordinary","lenses":["risk","reliability"],"lensesReason":"<what you touched and how>"}`. The agent names every 4R lens pertinent to what it touched and how (`risk`, `resilience`, `readability`, `reliability`), with one single-line reason of at most 500 bytes; both fields or neither, never with `focus`. Pi forwards the selection through the native STATUS preflight (`--lenses`, `--lenses-reason`) so the provider-issued START freezes exactly those lenses. A provider that predates lens selection refuses the flag before reading the repository; Pi then reruns STATUS without it and the review keeps the tier default.
929
945
 
930
- Review outcomes and receipt state are informational; commit, push, pull-request, and release delivery follow ordinary repository policy. No one-shot command authorization, publication-target revalidation, or receipt gate is required for delivery, and Pi does not inspect RDD mode or native authority to decide a Bash delivery command.
946
+ Review outcomes never authorize delivery; commit, push, pull-request and release actions follow ordinary repository policy. With RDD on, a foreground push/PR call gets one fresh native assessment per repository against its selected committed base, using the existing session registry. Push and PR creation may share a batch or shell wrapper. Finish candidate-changing commands and background waits before delivery; missing base or due review pauses it. Native non-due outcomes and exact host-recorded human declines preserve ordinary policy. This is workflow ordering, not a provider receipt gate, remote-PR identity check or shell sandbox; [scope and limits](review-delivery-preflight.md).
931
947
 
932
948
  When grouped review capture returns `native-status-failed`, a decoded native failure is preserved as `native_failure`, including its phase, code, retry policy, and optional cause/context. `replayability` and `next_action` expose the provider's guidance; they do not trigger a retry. Group progress and mutation reporting still describe reviewers already prepared/submitted. Untyped errors retain their message-only behavior; raw process stdout/stderr and arbitrary error fields are not exposed.
933
949
 
934
950
  Dangerous-command safety remains independent and authoritative. Destructive-review-maintenance consent remains separate from delivery. Review operations and informational VALIDATE perform no commit, push, pull-request, release, or publication operation.
935
951
 
936
- The Pi host relay bounds each locked-down reviewer subprocess by materialized prompt size rather than by one fixed number: a 15-minute floor plus 15 minutes per mebibyte of prompt, clamped to a 2-hour ceiling. Set `GENTLE_PI_REVIEW_RELAY_PI_TIMEOUT_MS` to a positive decimal to replace that derived bound with your own; malformed values are ignored and the same 2-hour ceiling still applies, so no configuration turns a foreground finalize into an unbounded child process. A reviewer killed by the bound reports `pi-host-relay-timeout` with the elapsed time and the limit it was measured against, and it explicitly does not ask you to relaunch the identical slot — that would re-spend the model tokens to reach the same wall. Reviewer results admitted earlier in the same finalize stay admitted and are not re-run.
952
+ The Pi host relay bounds each in-process reviewer completion, including authentication, by materialized prompt size: a 15-minute floor plus 15 minutes per mebibyte of prompt, clamped to a 2-hour ceiling. Set `GENTLE_PI_REVIEW_RELAY_PI_TIMEOUT_MS` to a positive decimal to replace that total bound; malformed values are ignored and the same 2-hour ceiling applies. Reviewer results admitted earlier in the same finalize stay admitted and are not re-run.
953
+
954
+ For iterable SDK reviewer streams, the host also allows 120 seconds for the first non-empty text, thinking, or tool-call delta and 120 seconds of inactivity after content begins. Set `GENTLE_PI_REVIEW_RELAY_FIRST_OUTPUT_TIMEOUT_MS` and `GENTLE_PI_REVIEW_RELAY_IDLE_TIMEOUT_MS` to positive decimal milliseconds (at most 2,147,483,647) to override them; invalid values use the defaults. Thinking deltas count as activity, lifecycle-only events and empty deltas do not, and neither limit extends the total deadline. Progress updates show the reviewer routing key, phase and elapsed time every five seconds without revealing response content. Promise-only compatibility completions retain the total bound and cannot report observed stream activity. Timeout diagnostics distinguish `first-output` from `stream-idle`, retain the effective reviewer model and report the relevant stream limit. On any deadline or cancellation, no partial result is submitted and no automatic retry or provider fallback occurs; a non-cooperative provider may continue internally, but its late result cannot resume this run.
937
955
 
938
956
  Adversarial review roles (the refuter and the targeted validator) are never Pi-authored: the provider renders self-contained `review.capture-refuter` / `review.capture-validation` vectors and Go runs its own locked-down `pi` process on them. Package agent assets remain a package-managed isolated installation. Project and user overrides may shadow a package asset; `gentle-pi` preserves those definitions and does not claim their effective permissions are package-compliant.
939
957
 
@@ -956,7 +974,7 @@ Saved model routing is applied separately; these installation commands do not ch
956
974
  .atl/skill-registry.md
957
975
  ```
958
976
 
959
- The registry scans project and user skill roots, not package-owned skills. It exists to catch workflow skills that are present on disk but not visible in Pi's injected skill list.
977
+ The shared registry indexes disk roots only, not session-only package or custom skills. On each enabled primary-session agent start, Pi also exposes an **effective session skills** block combining the current disk scan with that session's runtime-resolved skills. Select and delegate from that view: neither the shared file nor Pi's injected skill list alone is complete. A disk change appears in the view at the next agent start, not mid-run.
960
978
 
961
979
  It scans common roots such as:
962
980
 
@@ -965,6 +983,7 @@ It scans common roots such as:
965
983
  .opencode/skills
966
984
  .claude/skills
967
985
  .gemini/skills
986
+ .trae/skills
968
987
  .cursor/skills
969
988
  .github/skills
970
989
  .codex/skills
@@ -975,15 +994,20 @@ It scans common roots such as:
975
994
  .agent/skills
976
995
  .agents/skills
977
996
  .atl/skills
997
+ .hermes/skills
978
998
  ~/.pi/agent/skills
979
999
  ~/.config/agents/skills
980
1000
  ~/.agents/skills
1001
+ ~/.kimi-code/skills
981
1002
  ~/.kimi/skills
982
1003
  ~/.config/opencode/skills
983
1004
  ~/.config/kilo/skills
984
1005
  ~/.claude/skills
985
1006
  ~/.gemini/skills
1007
+ ~/.gemini/config/skills
986
1008
  ~/.gemini/antigravity/skills
1009
+ ~/.gemini/antigravity-desktop/skills
1010
+ ~/.gemini/antigravity-cli/skills
987
1011
  ~/.cursor/skills
988
1012
  ~/.copilot/skills
989
1013
  ~/.codex/skills
@@ -991,17 +1015,23 @@ It scans common roots such as:
991
1015
  ~/.qwen/skills
992
1016
  ~/.kiro/skills
993
1017
  ~/.openclaw/skills
1018
+ ~/.hermes/skills
1019
+ ~/.trae/skills
994
1020
  ```
995
1021
 
1022
+ A valid `CODEX_HOME` replaces `~/.codex` for the Codex root; relative values resolve against the process cwd. Shared bytes converge when upgraded Pi and Gentle AI writers use the same cwd, home, effective `CODEX_HOME`, filesystem snapshot, and OS. Different homes and mixed old/new versions are outside that guarantee; upgrade both writers first.
1023
+
996
1024
  Behavior:
997
1025
 
998
1026
  - `.atl/.gitignore` receives a `*` rule when needed; the root `.gitignore` is unchanged;
999
1027
  - the registry refreshes on session start, but automatic writes (including watcher refreshes) preserve Git-tracked targets;
1000
1028
  - skipped writes warn with the protected paths and `/skill-registry:refresh` as the deliberate regeneration path; Git detection failures skip automatic writes rather than assuming files are untracked;
1001
1029
  - startup refresh is skipped when Pi starts with `--no-skills` / `-ns`, `--no-skill-registry`, or `GENTLE_PI_NO_SKILL_REGISTRY=1`;
1002
- - `/skill-registry:refresh` intentionally regenerates the registry and cache and updates the child ignore, even when tracked; review the resulting Git diff;
1003
- - a best-effort watcher refreshes when skill files change;
1004
- - the registry indexes skill names, full descriptions, scope, and exact `SKILL.md` paths without copying skill body rules.
1030
+ - `/skill-registry:refresh` deliberately overrides tracked-target protection and updates the child ignore; review the resulting Git diff. It recomputes from disk but does not rewrite byte-identical registry or cache files;
1031
+ - 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
+ - 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
+ - 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.
1005
1035
 
1006
1036
  Skill discovery is a guardrail, not a workflow router: it helps Pi load the right skill without forcing extra ceremony.
1007
1037
 
@@ -1013,10 +1043,12 @@ Compatibility: the package keeps the existing skill folders (`skills/branch-pr`,
1013
1043
 
1014
1044
  Delegation contract:
1015
1045
 
1016
- - parent/orchestrator resolves project/user skills from the registry and passes matching paths under `## Skills to load before work`;
1046
+ - parent/orchestrator selects project/user and runtime skills from the effective session view (`<available_skills>` plus the on-disk rows of the `Effective session skills` block) and passes matching exact paths under `## Skills to load before work`;
1017
1047
  - during normal runtime, subagents should not independently discover additional project/user `SKILL.md` files or the registry;
1018
1048
  - fallback loading is degraded self-healing and must be reported via `skill_resolution` as `fallback-registry`, `fallback-path`, or `none`.
1019
1049
 
1050
+ How the effective block is built: on each primary `before_agent_start`, the extension merges the current disk scan of project and user skill roots with `systemPromptOptions.skills`. Active resolved records take precedence within a scope; every resolved path, including disabled ones, suppresses its loose counterpart; it never rescans `node_modules` or reparses `pi.skills`. When Pi renders `<available_skills>` (Pi 1.5.2 does so only when `read` or `bash` is a selected tool, the default when no tool list is given), only winners Pi did not list there become rows, so skills from other agents' directories stay visible without repeating Pi's own list; otherwise every winner becomes a row. The block is omitted when no row exists. `gentle-ai-skill-registry` is excluded from the session view only; the on-disk index keeps it for byte parity with the Gentle AI CLI writer.
1051
+
1020
1052
  ## Persona modes
1021
1053
 
1022
1054
  ```text
@@ -1120,6 +1152,24 @@ Config shape (per agent):
1120
1152
 
1121
1153
  Legacy string entries are still accepted and treated as `model`-only config.
1122
1154
 
1155
+ ## Subagent tool overlay
1156
+
1157
+ Subagent tool allowlists ship inside the package-owned agent files, but a user or extension can add or remove tools without editing those files — the same way model routing is kept outside the agent definition. The overlay is applied at load and never written back to the agent file, so the file stays package-owned and keeps receiving upgrades.
1158
+
1159
+ ```json
1160
+ {
1161
+ "gentle-ai-worker": { "add": ["bash_background"], "remove": ["mem_save"] }
1162
+ }
1163
+ ```
1164
+
1165
+ Overlay sources, lowest to highest precedence (the highest wins when one source adds and another removes the same tool):
1166
+
1167
+ 1. extension drop-ins — `agent-overlays.d/*.json` in the Gentle AI config home,
1168
+ 2. global — `tools.json` in the Gentle AI config home (next to `models.json`),
1169
+ 3. project — `.pi/gentle-ai/tools.json`.
1170
+
1171
+ `add` appends tools (deduplicated); `remove` removes tools, including ones the package ships, and removing an absent tool is a no-op. An invalid overlay file or entry is ignored and reported as a notice next to agent parse errors; an overlay entry naming an agent that does not exist is reported the same way. A tool name the child runtime does not provide is passed through and surfaced by the child's own missing-tools notice.
1172
+
1123
1173
  ## Agent-model profiles
1124
1174
 
1125
1175
  ```text
@@ -1207,9 +1257,11 @@ On the models screen, `w` toggles the shown profile's mode and `s` saves it toge
1207
1257
 
1208
1258
  The mode travels with the profile and is resolved on every prompt build, so switching profiles changes the orchestrator's rules on the next turn in both directions, with no restart. It is stored beside the profiles in `profiles.json`, under `workflow` keyed by profile name: `organic` needs no entry, so a profile that never opted in serializes exactly as before, and only a `full-delegation` mode is written. `GENTLE_PI_ORCHESTRATOR_MODE=organic|full-delegation` overrides the profile for the process, which is meant for CI and headless runs.
1209
1259
 
1260
+ Full delegation is a deliberate trade-off for an expensive orchestrator paired with light workers, for example DeepSeek Flash or a local model: every authorized change goes to a worker, small ones included, so expect a few times the wall time of organic on small tasks. In the #1494 three-fix fixture (2026-11-10, n=3 sequential runs per arm, bare Pi median 45.5 s and about $0.036 per run, Pi catalog cost estimates), organic took about 1.2x the wall time at about $0.10 per run. With the orchestrator held at `openai-codex/gpt-6-astra` at `medium`, full delegation took about 3.9x and about $0.66 per run with `openai/gpt-6.1-terra` at `max` workers (orchestrator $0.59, workers $0.05), and about 3.4x and at least $0.58 per run with `nan/deepseek-v4-flash` workers (NaN models are unpriced, so that is a floor). The orchestrator is about 90% of the cost because it carries the always-on prompt for 9-13 turns, so lighter workers save some time (about 24 s here) but little money, and on small tasks only organic stayed within 1.5x of bare Pi. See the [measurement report](../odd/tasks/1494-overhead-measurement.md). For full delegation, give the worker roles lighter models and effort than the orchestrator; prefer organic, on the profile or for one run with `GENTLE_PI_ORCHESTRATOR_MODE=organic`, when small-task latency or cost matters. The profile's `orchestrator` entry moves the live session when you select the profile in `/gentle:profiles`, and **Make default** writes it to `settings.json` for new sessions. A repo profile pin routes roles only, so under a pin the orchestrator stays the session model from `settings.json`, and `--model` (for example in a `-p` run) overrides it for that run.
1261
+
1210
1262
  The mode changes the runtime as well as the prompt, so the two never disagree:
1211
1263
 
1212
- - **Writer admission.** Organic mode admits a generic writer only for a task of an existing feature document or past the context backstop. Full delegation mode admits it for any authorized change, small ones included. Allowed edit surfaces stay mandatory in both modes.
1264
+ - **Writer admission.** Organic mode admits a generic writer only for a task of an existing feature document, past the context backstop, or as one of two or more writers with disjoint surfaces launched alone in one assistant message. Full delegation mode admits it for any authorized change, small ones included, however it is launched, a `codemode` script included; its prompt asks for independent units in the same assistant message or one `codemode` script, never one launch per message. Allowed edit surfaces stay mandatory in both modes.
1213
1265
  - **What the orchestrator reads.** In full delegation mode the organic routing rules are removed, not annotated: the ODD steps are projected without their inline route, and the session's lazy detail is `assets/orchestrator-full-delegation-card.md` instead of the organic delegation and writer cards. Task Size still decides tracking and risk, never who writes.
1214
1266
  - **Runtime notices.** The context backstop, exploration budget and todo rules drop their inline wording in full delegation mode.
1215
1267
 
@@ -1240,7 +1292,7 @@ When a run's final response fails, its error category decides:
1240
1292
  - `rate_limit`, `provider_unavailable`, `timeout` and `network` move on too. Pi already retried them on the same model before the run failed.
1241
1293
  - `context_length`, `invalid_request`, unknown errors and aborts never move on, because another model would fail the same way.
1242
1294
 
1243
- The orchestrator uses its `orchestrator` chain once the run settles (after Pi's own retries; a run you abort never moves on): the session switches to the next model (and its effort) and a follow-up message resumes the work; a model Pi refuses or cannot log in to is skipped. The chain is walked once per episode, which ends when a turn succeeds. A subagent switches its live child to the next model (`set_model`, plus the step's effort, or the agent's configured effort when the step has none) and is asked to continue the same conversation, so finished steps are not repeated. A model that failed is skipped by every agent of the session for a while: 30 minutes after a limit or auth error, 2 minutes after a transient one. A launch whose primary model is cooling down starts on the first usable fallback. When `/gentle:usage` reads a spent limit, the model it names waits until that limit resets (providers such as NaN report one limit per model), and the whole provider waits only when every one of its limits is spent, until the earliest reset; so a subagent starts on its next fallback instead of failing first. A later reading with room releases the provider; a model cooled by its own spent limit waits until that limit resets. A full window whose reset already passed is treated as stale. A limit that covers the whole provider (Codex's main limit) holds every model of it while spent; other limits name one model (NaN reports one per model, Codex extras use display names such as `GPT-5.3 Codex_Spark`, matched as `gpt-5.3-codex-spark`). Each switch shows a warning naming the agent, the reason, the new model and, when it costs more, how much (`2.0x the price`), and is recorded in the session as `gentle-pi.model-fallback/v1`; the agent's row in the sidebar then reads `↪ <task> · <model>`, the model shown when the rail has room (failed rows keep their failure note instead). Only models you put in a chain are ever used; when the chain runs out, the run fails as before.
1295
+ The orchestrator uses its `orchestrator` chain once the run settles (after Pi's own retries; a run you abort never moves on): the session switches to the next model (and its effort) and a follow-up message resumes the work; a model Pi refuses or cannot log in to is skipped. The chain is walked once per episode, which ends when a turn succeeds. A subagent switches its live child to the next model (`set_model`, plus the step's effort, or the agent's configured effort when the step has none) and is asked to continue the same conversation, so finished steps are not repeated. A model that failed is skipped by every agent of the session for a while: 30 minutes after a limit or auth error, 2 minutes after a transient one. A launch whose primary model is cooling down starts on the first usable fallback. When `/gentle:usage` reads a spent limit, the model it names waits until that limit resets, and the whole provider waits only when every one of its limits is spent, until the earliest reset; so a subagent starts on its next fallback instead of failing first. A later reading with room releases the provider; a model cooled by its own spent limit waits until that limit resets. A full window whose reset already passed is treated as stale. A limit that covers the whole provider (Codex's main limit) holds every model of it while spent; other limits name one model (Codex extras use display names such as `GPT-5.3 Codex_Spark`, matched as `gpt-5.3-codex-spark`). NaN's per-model token quota is advisory and never cools a NaN model or the provider down; a real NaN quota or rate-limit error still does. Each switch shows a warning naming the agent, the reason, the new model and, when it costs more, how much (`2.0x the price`), and is recorded in the session as `gentle-pi.model-fallback/v1`; the agent's row in the sidebar then reads `↪ <task> · <model>`, the model shown when the rail has room (failed rows keep their failure note instead). Only models you put in a chain are ever used; when the chain runs out, the run fails as before.
1244
1296
 
1245
1297
  ### Per-repository pins
1246
1298
 
@@ -1453,7 +1505,7 @@ The frame labels INSERT, NORMAL, VISUAL (characterwise), or VISUAL LINE (linewis
1453
1505
 
1454
1506
  **Deliberate `/` divergence from Claude Code:** NORMAL `/` hands off to **Pi's native slash commands and skills**, enters INSERT, and inserts `/` at the existing cursor. Pi offers slash completion only at the start of the first line; elsewhere it inserts a literal slash without moving or replacing the draft. There is **no reverse prompt-history search**. Pi's explicit history shortcuts still work, transferring to INSERT first. Unknown NORMAL printable input, encoded text and bracketed paste do not silently insert; application shortcuts can transfer to INSERT before acting.
1455
1507
 
1456
- This is a bounded command subset, not full Claude Code/Vim parity. The private editor adapter supports only the audited Pi coding-agent/TUI `0.99.1`, `0.99.2`, `1.0.0`, `1.1.0`, `1.2.0`, `1.3.0`, `1.4.0`, and `1.5.0` package pairs. The two 0.99 releases have byte-identical editor and undo-stack sources. Pi 1.0.0, 1.1.0 and 1.2.0 are separately audited against the touched state, paste/history, cursor/layout, autocomplete and undo-snapshot contracts. Pi 1.2.0's paired APC fake-cursor markers remain intact so the host can suppress software cursors when hardware cursors are visible; selection inversion and empty-prompt hints support both these markers and legacy SGR cursors. Pi 1.5.0 keeps undo-stack.js and editor-component.js byte-identical to 1.2.0; its editor.js adds a read-only `capturesViewportInput` getter and autocomplete pageUp/pageDown matching, and its keys.js adds Kitty F1-F12 mappings plus the functional PUA filter — all additive to input handling, leaving the audited state, paste, layout and autocomplete contracts unchanged. Current bundled and unbundled 1.2.0 tests prove identity, edit/undo, paste, selection, wrapping/scroll and autocomplete behavior, not old/new byte identity. Fabricated metadata tests preserve exact-version admission coverage for the older audited releases. Version metadata must come from a canonical candidate host package root whose actual `CustomEditor` and `Editor` classes match the loaded classes, never from the extension's local metadata or CLI path alone. Unknown versions, mismatched prototypes, or invalid layouts fail closed: a single compatibility warning is shown and the prompt continues with ordinary editing instead of silently entering inert NORMAL mode. Operations that would cross a registered collapsed paste marker, or encounter duplicate occurrences of a registered marker ID, are rejected without editing it. Visual highlighting relies on Pi's render layout and may be omitted if its geometry cannot be validated. No live-terminal proof of every layout or complete parity is claimed.
1508
+ This is a bounded command subset, not full Claude Code/Vim parity. The private editor adapter supports only the audited Pi coding-agent/TUI `0.99.1`, `0.99.2`, `1.0.0`, `1.1.0`, `1.2.0`, `1.3.0`, `1.4.0`, `1.5.0`, `1.5.1`, and `1.5.2` package pairs. The two 0.99 releases have byte-identical editor and undo-stack sources. Pi 1.0.0, 1.1.0 and 1.2.0 are separately audited against the touched state, paste/history, cursor/layout, autocomplete and undo-snapshot contracts. Pi 1.2.0's paired APC fake-cursor markers remain intact so the host can suppress software cursors when hardware cursors are visible; selection inversion and empty-prompt hints support both these markers and legacy SGR cursors. Pi 1.5.0 keeps undo-stack.js and editor-component.js byte-identical to 1.2.0; its editor.js adds a read-only `capturesViewportInput` getter and autocomplete pageUp/pageDown matching, and its keys.js adds Kitty F1-F12 mappings plus the functional PUA filter — all additive to input handling, leaving the audited state, paste, layout and autocomplete contracts unchanged. Pi 1.5.1 keeps undo-stack.js, keys.js and both custom-editor sources byte-identical to 1.5.0; its editor.js stops appending "undefined" to renumbered paste markers that have no size suffix, and its TUI strips every cursor marker from terminal output rather than only the first. Pi 1.5.2 ships the same pi-tui files as 1.5.1. Current bundled and unbundled 1.2.0 tests prove identity, edit/undo, paste, selection, wrapping/scroll and autocomplete behavior, not old/new byte identity. Fabricated metadata tests preserve exact-version admission coverage for the older audited releases. Version metadata must come from a canonical candidate host package root whose actual `CustomEditor` and `Editor` classes match the loaded classes, never from the extension's local metadata or CLI path alone. Unknown versions, mismatched prototypes, or invalid layouts fail closed: a single compatibility warning is shown and the prompt continues with ordinary editing instead of silently entering inert NORMAL mode. Operations that would cross a registered collapsed paste marker, or encounter duplicate occurrences of a registered marker ID, are rejected without editing it. Visual highlighting relies on Pi's render layout and may be omitted if its geometry cannot be validated. No live-terminal proof of every layout or complete parity is claimed.
1457
1509
 
1458
1510
  Startup banner settings remain global in `banner.json` under `GENTLE_PI_CONFIG_HOME` (default `~/.pi/gentle-ai`). Existing `showRose` and `showTextLogo` opt-outs independently control the main startup artwork; both default to enabled. Changes apply on the next session or `/reload`. Color presets are `pink` (default), `cyan`, `yellow`, and `green`. The static sidebar heading is independent of these preferences and follows the active theme.
1459
1511
 
@@ -1,23 +1,37 @@
1
- # Experimental ordinary review coordinator
1
+ # Ordinary review in one call
2
2
 
3
- Enable `GENTLE_PI_EXPERIMENTAL_REVIEW_COORDINATOR=1` before loading the extension to register `gentle_review_run` in a parent session. The tool is absent by default and in managed child sessions. It is model-only and follows the existing direct-call restriction; it is not a codemode entry point.
3
+ `gentle_review_run` runs one ordinary native review in one parent tool call. It is registered in every parent session; managed child sessions never get it, and `GENTLE_PI_EXPERIMENTAL_REVIEW_COORDINATOR=0` before loading the extension opts out. The variable is no longer needed to enable it. While receipt-driven development (RDD) is off, the tool's declaration and guidance are left out of the request, so the prompt is byte-identical to a session without it, and every facade call it makes is refused by the review mode gate. It is model-only and follows the existing direct-call restriction; it is not a codemode entry point.
4
+
5
+ While RDD is not off, its guidance tells the parent to prefer `gentle_review_run` over single review operations to drive a due native review. Single operations remain for what the run result hands back (the consent answer, the correction plan through `gentle_review_capture`, status and recovery), for a review the user explicitly asks for after `not-due`, and for ASSESS after a delegated writer. Correction edits and maintenance remain explicit handoffs. The tool runs the same provider-issued transitions the mirrored review contract describes for single operations (assess, inspect, START, bound STATUS, captures, acknowledgement); it does not change that contract.
4
6
 
5
7
  The coordinator calls the existing wrapped review facade executors. Native mode, host consent, session identity, workspace/base selection, opaque bindings and native admission remain authoritative. It never parses binding strings, invents results, retries a failed capture or authorizes delivery.
6
8
 
7
- For a fresh ordinary review, provide pertinent `lenses` and `lensesReason`, optionally `workspaceRoot`, a committed selector (`baseRef` together with `committedOnly: true`), and an existing `requestContextPath`. [Frozen request intent](review-request-context.md) is accepted only for a fresh transaction. Unresolved consent returns to the host.
9
+ For a fresh ordinary review, provide pertinent `lenses` and `lensesReason`, optionally `workspaceRoot`, a committed selector (`baseRef` together with `committedOnly: true`), and an existing `requestContextPath`. [Frozen request intent](review-request-context.md) is accepted only for a fresh transaction. The START consent stays with the host: in an interactive session the existing consent dialog may resolve it inside the call; otherwise the run returns `consent-required` with the provider envelope; the parent relays it to the human, submits only the human's explicit answer, once, with `gentle_review` `answer-consent` (the model never chooses the answer), and resumes `gentle_review_run` with the returned `lineageId`. The tool rejects consent arguments and never sends a consent answer.
10
+
11
+ The loop follows the native next_transition kind. It runs supported facade execute offers, captures the exact ordered opaque bindings, returns authored input to the model, and surfaces stop unchanged. It never reads native states, reason codes, binding contents or capture closure variants; from a capture closure it reads only `advisory_findings` and `advisory_finding_claims`, from a STATUS correction request only its `findings`, after that request has already returned `input-required`, and from the STATUS that ends the run on a correction request or a stop only its `non_blocking_findings`, to relay them. Facade operations that require additional maintenance authorization return to the caller. The run returns `closed` after the verified acknowledgement, or stops with `not-due`, `assessment-unavailable`, `request-context-requires-fresh-review`, `consent-required`, `input-required` (a correction plan; with its findings and the review's non-blocking findings when the provider reports the non-blocking ones), `selection-required` (an intended-untracked selection; resume with `resume_input`), `stopped` (an escalated review: with its non-blocking findings), `handoff` (maintenance or another unsupported operation), `repeated-capture`, `forecast` (not displayed), `binding-drift` (lineage or target drift the coordinator detects in STATUS; when the facade rejects the drifted route first, for example in the STATUS after a reconciled reviewer group, the run returns `blocked` with `capture-route-registration-rejected`), `transition-limit`, `cancelled` (after an approved closure, with its findings) or `blocked` (an error). `forecast` is returned only when a UI host has no display callback.
8
12
 
9
- The loop follows the native next_transition kind. It runs supported facade execute offers, captures the exact ordered opaque bindings, returns authored input to the model, and surfaces stop unchanged. It never reads native states, reason codes, binding contents or capture closure variants. Facade operations that require additional maintenance authorization return to the caller.
13
+ The run never chooses intended untracked paths. On `selection-required` its result carries `resume_input`, the run's own inputs (selector, `lenses`, `lensesReason`, `requestContextPath`) without any untracked selection; when the caller passed no `workspaceRoot` and INSPECT reported the root it resolved (`workspace_root`), `resume_input.workspaceRoot` names that root, so a resume from a session in another workspace still reviews the one the selection was offered for; after the human or the parent chooses, resume `gentle_review_run` with `resume_input` plus `untrackedScope` (`exclude`, or `select` with `intendedUntracked`). The run then resolves the selection through INSPECT and START keeps the requested lenses and frozen request context. The run relays the facade's INSPECT envelope without its `nextStep`, which names the single `select-intended-untracked` operation: that operation starts the review with only the context a START retained, so after an INSPECT it would start without them. The envelope keeps its `selectionBinding`, whose eligible paths are what the choice is made from; the resume itself does not submit it. A single `gentle_review` INSPECT still returns its own `nextStep` unchanged.
10
14
 
11
15
  Native correction_request explicitly identifies a plan that needs authored input. The coordinator returns that request to the model without deriving requiresInput metadata from submission domains or changing ordinary STATUS output. Unsupported capture responses return control to the caller. Correction-plan authoring and edits remain explicit handoffs; after an authorized edit, resume with the same lineage and workspace/base selection. Native decides which opaque capture comes next.
12
16
 
13
- The existing capture facade presents the model-run forecast before execution. Every observed forecast is also preserved losslessly in the final forecasts array, including when a later operation refuses. The primary model must relay every entry in the user’s language, preserving all fields and counts. These forecasts are informational, not review consent. A missing display, changed session or disabled mode prevents the run. Accepted captures refresh bound STATUS for the next transition; failed or reoffered captures never retry.
17
+ The existing capture facade presents the model-run forecast before execution. With a UI the run displays it to the human before the reviewer runs; its collapsed line leads with the model-run count and the lenses or roles that will run. Without a UI nobody could see it before the run, so the run records it and continues. Every observed forecast is preserved losslessly in the final forecasts array, including when a later operation refuses. The primary model must relay every entry in the user’s language, preserving all fields and counts. These forecasts are informational, not review consent. A changed session or disabled mode prevents the run. Accepted captures refresh bound STATUS for the next transition; failed or reoffered captures never retry. A reviewer group whose results were all admitted without a closing event returns `native-reviewer-group-status-reconciled` after the facade's own bound STATUS confirmed lineage and target and offered no further reviewer capture (for example when the findings need the refuter); the run accepts it like any capture and takes the next transition from bound STATUS, so the refuter runs in the same call. The same outcome with a `failure`, `native_failure`, `reconciliation` or `reconciliation_failure` field, a failed reconciliation, or group authority drift returns `blocked`. An older provider's self-contained refuter or validator vector (`--execute=true`) runs the role in the provider and returns `native-provider-role-captured` with `status: "captured"` instead of a closure; the run accepts it from a single capture like an admitted reviewer result and takes the next transition from bound STATUS. From a group capture, with another status or with one of those fields, it returns `blocked`.
18
+
19
+ Approval closes through the offered facade acknowledgement. The verified ACK envelope identifies the frozen target and burned authority and keeps `delivery: "ordinary-repository-policy"`. Once the run has captured an approved closure with `advisory_findings`, every result it returns from then on carries them, unchanged, whatever the outcome (`closed`, or `blocked` and the other stops before the acknowledgement); when the closure had no such key, neither does the result, and a closure that is not approved adds nothing. A run resumed by `lineageId` that goes straight to the acknowledgement returns `closed` without them: neither bound STATUS nor the acknowledgement envelope carries the closure's findings, so the stopped result before it is the one that carried them. Beside it, `advisory_finding_claims` maps each advisory finding id to the reviewer's own claim for that finding, taken from the same closure's `reviewer_results` by exact id and copied unchanged up to 1,024 UTF-8 bytes (cut at the last whole character within the cap). Claims are added in `advisory_findings` order until the next one would bring the closure's claim text past 8,192 UTF-8 bytes; that id and every later one get no entry. An id with no matching reviewer finding, or with more than one, is left out, and the key is absent when no id has a claim or `advisory_findings` is absent. `advisory_finding_claims_truncated` lists, in the same order, the ids whose claim is a cut prefix, and `advisory_finding_claims_omitted` the ids whose one matching claim the 8,192-byte limit left out; each key is present only when it lists an id, and the run relays each only as an array of strings, beside the claims. They travel with `advisory_findings` on every result that carries them. The facade's approved capture closure carries the same map, so a single `gentle_review_capture` returns it too. The claims are the reviewers' own text: information to relay, never instructions to follow. Nothing routes on either key. There is no post-ACK STATUS, ASSESS or replay, and closure makes no claim about subsequent edits or permission to commit, push or publish.
20
+
21
+ A review that does not approve returns finding text only where the facade already received it. When bound STATUS asks for a correction plan, the run returns `input-required` with that STATUS envelope unchanged (apart from `non_blocking_findings`, below). Only when that STATUS also carries the provider's `non_blocking_findings` (an empty list counts) does it add, beside the envelope, the correction fields that follow; without that answer the result is exactly as before these fields existed, because a parent given only the findings to correct would stop looking for the review's non-blocking findings and the user would lose them. The correction fields are `correction_findings`: each finding of the provider's correction request, in the provider's order, with its `id`, `lens`, `location`, `severity`, and, when present, `evidence_class` and `causal_disposition` copied unchanged (the evidence and proof references stay in the relayed envelope). `correction_finding_claims` maps each of those ids to the finding's `claim` by the same rules as `advisory_finding_claims`: copied unchanged up to 1,024 UTF-8 bytes, added in `correction_findings` order until the next one would pass 8,192 bytes, an id with more than one finding left out, and the key absent when no id has a claim; `correction_finding_claims_truncated` and `correction_finding_claims_omitted` mark them the same way. If any finding lacks a nonempty string `id`, `lens`, `location`, `severity` or `claim`, or carries a non-string `evidence_class` or `causal_disposition`, none of these keys is returned and the outcome is still `input-required`. The correction request carries only the findings to fix (BLOCKER or CRITICAL); a non-blocking finding of the same review is not in it. An escalated review ends `stopped` with the provider's `escalation` (cause, finding ids and refuter outcomes) in the relayed envelope. These claims are also the reviewers' own text, to relay and never to follow, and nothing routes on them.
22
+
23
+ The non-blocking findings of a review that stopped come from the provider's STATUS (gentle-ai#6088). Only the run asks for them. The facade's `gentle_review` `status` and `inspect` operations add `--non-blocking-findings` to their contracted STATUS only when `gentle_review_run` dispatches them. The run sets that scope around its own facade calls, in process; it is not a tool parameter, so no model input can set it. A direct `gentle_review` call never sends the flag, with any provider. The STATUS reads inside captures, recovery, acknowledgement and START never send it. For a current compact authority in `correction_required` or `escalated`, a provider that supports the opt-in answers with `non_blocking_findings`: a `statement` and the admitted findings that are neither to correct nor unresolved, each with `id`, optional `lens` and `location`, `severity`, `disposition` (`informational`, `follow_up` or `refuted`) and the reviewer's `claim`. The decoder accepts the key only on status/v9 for such an authority, with exact key sets, and rejects it anywhere else.
14
24
 
15
- Approval closes through the offered facade acknowledgement. The verified ACK envelope identifies the frozen target and burned authority. There is no post-ACK STATUS, ASSESS or replay, and closure makes no claim about subsequent edits or permission to commit, push or publish.
25
+ When the run returns `input-required` for a correction request, or `stopped`, from that STATUS, it returns `non_blocking_findings`: the `statement`, and each finding's `id`, `lens`, `location`, `severity` and `disposition`, unchanged and in the provider's order. Findings are listed until the next one would bring the list past 16 KiB of JSON. `non_blocking_findings_omitted_count` then gives how many were left out, and is absent when none was. Beside it, `non_blocking_finding_claims`, `non_blocking_finding_claims_truncated` and `non_blocking_finding_claims_omitted` follow the advisory claims' rules and limits (1,024 and 8,192 UTF-8 bytes) over the listed findings only. Claims are cut at bytes only; control characters such as ANSI escapes pass through unchanged, as on the other claim paths. An empty claim is a claim. These top-level keys are the only copy. The relayed provider record (`result.result`) leaves out `non_blocking_findings`, and only that key; everything else in it is unchanged. With 300 findings of about 1.2 KB each, the run's result text is about 29 KB.
26
+
27
+ An empty provider list is the provider's answer and is returned as `non_blocking_findings` with no findings and no claims key. When STATUS has no such key (an older provider, another state), none of these keys is returned. A malformed set (a disposition outside the three values, a missing claim, an extra key, an empty statement, `findings` that is not an array, a non-string severity) fails the strict STATUS decode like any unknown key: the facade's STATUS fails and the run ends `blocked`, with none of these keys. The run drops the keys and keeps its outcome in one case only: a set the decoder accepts but whose `statement`, `id`, `severity`, `lens` or `location` is whitespace-only. The decoder requires only a non-empty string; the run requires a non-blank one.
28
+
29
+ A provider older than the opt-in refuses the unknown flag (`invalid_request`, not started, cause exactly `flag provided but not defined: -non-blocking-findings`). The same STATUS is then repeated once without the flag, and that provider binary (path and sha256) is not sent the flag again in the same process. Any other STATUS failure is handled as before. The flag is never added to a provider-issued intended-untracked submission, and the run never reads the provider's storage.
16
30
 
17
31
  ## Validation and rollout
18
32
 
19
33
  ```sh
20
- node --experimental-strip-types --test tests/review-coordinator.test.ts tests/review-coordinator-runtime.test.ts tests/review-last-event-closure.test.ts tests/rdd-off-native-refusal.test.ts
34
+ node --experimental-strip-types --test tests/review-coordinator.test.ts tests/review-coordinator-runtime.test.ts tests/review-one-call.test.ts tests/review-one-call-followups.test.ts tests/review-last-event-closure.test.ts
21
35
  ```
22
36
 
23
37
  Unit and registered-runtime tests cover opaque binding order, authored input, native stop, state/reason independence, consent, cancellation, mode/session changes, failed or repeated captures, identity drift and terminal ACK without follow-up queries. Runtime fixtures are in-memory authority simulations; they do not claim real native approval.
@@ -28,6 +42,12 @@ SDK event accounting sees the outer coordinator call. Its returned metrics.steps
28
42
 
29
43
  When the relay supplies execution evidence, the final reviewer_runs array retains snapshots of the resolved reviewer model, phase, durations and available reported usage/cost. Groups include all prepared runs, even when submission later stops; legacy submitted-only diagnostics are not counted again. Missing usage stays unknown. This is not a billing ledger: sibling runs can remain unreported when group preparation fails before returning its results, and thrown/cancelled calls retain their existing behavior. The coordinator computes no cost total and emits no additional SDK accounting events.
30
44
 
31
- Reviewer authentication and completion share a host deadline. Cancellation or an expired deadline prevents further dispatch, and late results are not admitted. A provider that ignores cancellation may continue consuming resources after the host stops waiting.
45
+ Reviewer authentication and completion share a host deadline. Cancellation or an expired deadline prevents further dispatch, and late results are not admitted. Once a capture has returned an admitted closure with `advisory_findings`, a cancellation at any later point before the acknowledgement completes (right after that capture, while the next STATUS is in flight, or when STATUS or the acknowledgement rejects because of it) makes the run return `cancelled` with that capture's envelope without its `status` and `state` (and the closure without its `state`), since the review is approved but neither closed nor acknowledged, together with the findings, their claims and marks and the `lineage_id`, and dispatches nothing more; resuming with `lineageId` reaches the acknowledgement without them. An acknowledgement that already completed returns `closed`; a failure other than the cancellation (anything but an `AbortError` or the signal's own reason) is reported as before, even when the signal has also been aborted. Without such a closure the call is cancelled as before. A provider that ignores cancellation may continue consuming resources after the host stops waiting.
46
+
47
+ Related delivery: [issue #2881](https://github.com/Gentleman-Programming/gentle-shell/issues/2881); default registration: [odd/tasks/review-one-call.md](../odd/tasks/review-one-call.md) (gentle-ai#6062).
48
+
49
+ ## Non-blocking statement budget
50
+
51
+ The host-returned `non_blocking_findings.statement` shares the 1,024 UTF-8-byte per-claim limit. It preserves a whole-codepoint prefix and adds nested `statement_truncated: true` only when cut; otherwise the statement and absence of that marker stay unchanged. This also applies to an empty findings list. Consumers must disclose the marker rather than present the prefix as the complete provider statement.
32
52
 
33
- Related delivery: [issue #2881](https://github.com/Gentleman-Programming/gentle-shell/issues/2881). Keep the feature default-off until independent security/reliability review and an opt-in real-use pilot complete.
53
+ This is derived host output, not a new field in the incoming provider schema. The 16 KiB findings-list bound, separate claim bounds, provider order, outcome and authority remain unchanged.