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.
- package/README.md +55 -44
- package/assets/agents/gentle-ai-explore.md +3 -3
- package/assets/agents/gentle-ai-verify.md +20 -6
- package/assets/agents/gentle-ai-worker.md +6 -6
- package/assets/agents/jd-judge-a.md +1 -3
- package/assets/agents/jd-judge-b.md +1 -3
- package/assets/agents/review-readability.md +1 -5
- package/assets/agents/review-reliability.md +1 -5
- package/assets/agents/review-resilience.md +1 -5
- package/assets/agents/review-risk.md +1 -5
- package/assets/design-canvas/canvas-api.js +45 -0
- package/assets/design-canvas/canvas-boards.js +456 -0
- package/assets/design-canvas/canvas-boot.js +217 -0
- package/assets/design-canvas/canvas-checks.js +491 -0
- package/assets/design-canvas/canvas-comments.js +315 -0
- package/assets/design-canvas/canvas-compare.js +159 -0
- package/assets/design-canvas/canvas-events.js +75 -0
- package/assets/design-canvas/canvas-export.js +393 -0
- package/assets/design-canvas/canvas-focus.js +203 -0
- package/assets/design-canvas/canvas-handoffs.js +150 -0
- package/assets/design-canvas/canvas-i18n-es.js +392 -0
- package/assets/design-canvas/canvas-i18n.js +108 -0
- package/assets/design-canvas/canvas-layout.js +526 -0
- package/assets/design-canvas/canvas-menu.js +213 -0
- package/assets/design-canvas/canvas-messages.js +86 -0
- package/assets/design-canvas/canvas-minimap.js +163 -0
- package/assets/design-canvas/canvas-parts.js +401 -0
- package/assets/design-canvas/canvas-popover.js +234 -0
- package/assets/design-canvas/canvas-rail.js +348 -0
- package/assets/design-canvas/canvas-sizes.js +524 -0
- package/assets/design-canvas/canvas-store.js +164 -0
- package/assets/design-canvas/canvas-tokens.js +674 -0
- package/assets/design-canvas/canvas-ui.js +24 -0
- package/assets/design-canvas/canvas-view.js +184 -0
- package/assets/design-canvas/canvas.css +746 -15
- package/assets/design-canvas/canvas.js +2 -1506
- package/assets/design-canvas/index.html +117 -36
- package/assets/design-canvas/inspector.js +546 -16
- package/assets/install-wizard/wizard.js +5 -1
- package/assets/migrations/agent-body-history.json +24 -0
- package/assets/orchestrator-delegation-reference.md +8 -14
- package/assets/orchestrator-delegation.md +4 -4
- package/assets/orchestrator-full-delegation-card.md +4 -5
- package/assets/orchestrator-full-delegation.md +8 -8
- package/assets/orchestrator-memory.md +2 -2
- package/assets/orchestrator-prompts.md +1 -1
- package/assets/orchestrator-quota-recovery.md +5 -0
- package/assets/orchestrator-skills.md +13 -12
- package/assets/orchestrator-tracking.md +10 -14
- package/assets/orchestrator-verification.md +10 -8
- package/assets/orchestrator-writer.md +4 -4
- package/assets/orchestrator.md +18 -22
- package/bin/gentle-shell.mjs +128 -9
- package/contracts/review-provider-contract-mirror/provider-contract.lock.json +8 -9
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/manifest.json +3 -3
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/orchestration/pi.md +1 -0
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/routing/pi.md +6 -6
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/generated/provider-capabilities.baseline.json +3 -3
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/generated/provider-roles.baseline.json +1 -1
- package/docs/assets/brand/sponsor-banner.svg +60 -0
- package/docs/bundled-install.md +14 -6
- package/docs/delegated-verification.md +18 -2
- package/docs/desktop-rpc.md +1253 -0
- package/docs/gentle-agents-activity.md +26 -0
- package/docs/gentle-shell.md +39 -16
- package/docs/install-wizard.md +30 -21
- package/docs/odd-preparation-continuity.md +24 -0
- package/docs/permission-modes.md +9 -1
- package/docs/prompt-budget.md +12 -0
- package/docs/rdd-odd-friction-triage-2026-11-07.md +57 -0
- package/docs/readme-reference.md +76 -24
- package/docs/review-coordinator.md +29 -9
- package/docs/review-delivery-preflight.md +22 -0
- package/docs/work-continuity.md +11 -1
- package/extensions/ask-user-question.ts +2 -2
- package/extensions/child-context.ts +21 -7
- package/extensions/gentle-agents.ts +234 -33
- package/extensions/gentle-ai.ts +576 -135
- package/extensions/gentle-design.ts +69 -3
- package/extensions/gentle-desktop-rpc.ts +143 -0
- package/extensions/gentle-guide.ts +3 -0
- package/extensions/gentle-shell.ts +105 -52
- package/extensions/gentle-todo.ts +48 -25
- package/extensions/skill-registry.ts +248 -223
- package/lib/agent-assets.ts +30 -6
- package/lib/agent-tool-overlay.ts +117 -0
- package/lib/agents-config.ts +47 -6
- package/lib/agents-message-delivery.ts +17 -0
- package/lib/agents-messaging.ts +8 -2
- package/lib/agents-protocol.ts +15 -0
- package/lib/agents-report-cap.ts +115 -0
- package/lib/agents-runner.ts +91 -6
- package/lib/agents-session-transport.ts +17 -1
- package/lib/background-jobs-tools.ts +9 -4
- package/lib/bounded-writer-admission.ts +184 -31
- package/lib/child-context-files.ts +21 -6
- package/lib/codemode-renderer.ts +1 -0
- package/lib/delivery-conflict-markers.ts +349 -0
- package/lib/design-canvas-assets.ts +36 -0
- package/lib/design-canvas-server.ts +241 -23
- package/lib/design-comments.ts +94 -4
- package/lib/design-handoffs.ts +2 -1
- package/lib/design-layout.ts +125 -0
- package/lib/design-parts.ts +281 -0
- package/lib/design-system-tokens.ts +111 -0
- package/lib/desktop-agents-service.ts +294 -0
- package/lib/desktop-design-service.ts +233 -0
- package/lib/desktop-jobs-service.ts +263 -0
- package/lib/desktop-rpc-agents.ts +294 -0
- package/lib/desktop-rpc-config.ts +731 -0
- package/lib/desktop-rpc-design.ts +138 -0
- package/lib/desktop-rpc-jobs.ts +181 -0
- package/lib/desktop-rpc-permissions.ts +177 -0
- package/lib/desktop-rpc-profiles.ts +196 -0
- package/lib/desktop-rpc-usage.ts +229 -0
- package/lib/desktop-rpc.ts +225 -0
- package/lib/desktop-usage-service.ts +310 -0
- package/lib/destructive-command-guard.ts +188 -13
- package/lib/gentle-ai-renderer.ts +13 -1
- package/lib/gentle-design.ts +201 -14
- package/lib/gentle-shell-bundled.ts +100 -9
- package/lib/hidden-tools.ts +35 -0
- package/lib/inprocess-reviewer.ts +96 -12
- package/lib/model-fallback-policy.ts +9 -0
- package/lib/model-routing-authority.ts +9 -0
- package/lib/nan-provider.ts +42 -28
- package/lib/native-review-cli.ts +79 -4
- package/lib/orchestrator-discovery.ts +39 -2
- package/lib/reply-language-anchor.ts +27 -2
- package/lib/request-context-placement.ts +53 -0
- package/lib/review-candidate-view.ts +11 -1
- package/lib/review-continuation-registry.ts +17 -0
- package/lib/review-coordinator.ts +252 -8
- package/lib/review-delivery-preflight.ts +85 -0
- package/lib/review-host-relay.ts +5 -1
- package/lib/review-integration-v2.ts +56 -3
- package/lib/reviewer-stream.ts +87 -0
- package/lib/shell-prompt.ts +16 -3
- package/lib/shell-usage.ts +10 -0
- package/lib/vim-editor-adapter.ts +9 -2
- package/lib/writer-batch-admission.ts +55 -0
- package/lib/yolo-session-policy.ts +6 -1
- package/package.json +2 -2
- package/prompts/skill-creation.md +1 -10
- package/runtime/design-canvas-assets.mjs +37 -0
- package/runtime/gentle-shell-bundled.mjs +100 -9
- package/runtime/native-review-cli.mjs +79 -4
- package/runtime/review-integration-v2.mjs +56 -3
- package/scripts/bootstrap.cmd +2 -2
- package/scripts/bootstrap.sh +41 -4
- package/scripts/build-full-delegation-card.mjs +4 -0
- package/scripts/build-runtime-modules.mjs +1 -0
- package/scripts/gentle-ai-installer.mjs +10 -10
- package/scripts/gentle-ai-proxy.mjs +1 -1
- package/scripts/installer-downloads.mjs +34 -8
- package/scripts/installer-preflight.mjs +28 -17
- package/scripts/installer-probes.mjs +25 -5
- package/scripts/installer-server.mjs +38 -9
- package/scripts/installer-windows.mjs +2 -2
- package/scripts/pi-update.mjs +166 -27
- package/scripts/prepare-verifier.mjs +107 -0
- package/scripts/update-agent-body-history.mjs +55 -8
- package/scripts/verify-package-files.mjs +40 -19
- package/skills/branch-pr/SKILL.md +16 -16
- package/skills/comment-writer/SKILL.md +1 -1
- package/skills/design/SKILL.md +6 -6
- package/skills/gentle-ai/SKILL.md +5 -5
- package/skills/judgment-day/SKILL.md +2 -2
- package/skills/judgment-day/references/prompts-and-formats.md +1 -1
- package/skills/rdd-defect-workflow/SKILL.md +6 -6
- package/skills/skill-improver/SKILL.md +2 -2
- package/skills/skill-registry/SKILL.md +11 -13
- package/skills/tui-design/SKILL.md +1 -1
- package/skills/work-unit-commits/SKILL.md +5 -5
- package/tests/agent-prompt-diet-contract.test.ts +101 -0
- package/tests/agent-tool-overlay-acceptance.test.ts +158 -0
- package/tests/agent-tool-overlay.test.ts +89 -0
- package/tests/agents-config.test.ts +10 -1
- package/tests/agents-message-delivery.test.ts +36 -0
- package/tests/agents-queries.test.ts +144 -4
- package/tests/agents-report-cap.test.ts +126 -0
- package/tests/agents-runner.test.ts +37 -1
- package/tests/agents-session-transport.test.ts +34 -0
- package/tests/always-on-prompt-verdicts-contract.test.ts +188 -0
- package/tests/append-system-prompt-route.test.ts +10 -2
- package/tests/approved-text-leftovers-contract.test.ts +136 -0
- package/tests/artifact-language.test.ts +1 -1
- package/tests/ask-user-question.test.ts +2 -1
- package/tests/audit-leftovers-contract.test.ts +51 -0
- package/tests/bounded-stop-contract.test.ts +9 -1
- package/tests/branch-pr-skill.test.ts +10 -1
- package/tests/bundled-install.test.ts +1 -1
- package/tests/child-context-files.test.ts +64 -8
- package/tests/child-skills-catalog.test.ts +56 -0
- package/tests/codemode-rendering.test.ts +4 -1
- package/tests/delegate-for-reason-contract.test.ts +30 -8
- package/tests/delivery-conflict-markers.test.ts +348 -0
- package/tests/design-canvas-all-sizes.test.ts +631 -0
- package/tests/design-canvas-allowlist.test.ts +32 -0
- package/tests/design-canvas-assets.test.ts +11 -878
- package/tests/design-canvas-boards.test.ts +77 -0
- package/tests/design-canvas-checks.test.ts +655 -0
- package/tests/design-canvas-compare.test.ts +79 -0
- package/tests/design-canvas-events.test.ts +59 -0
- package/tests/design-canvas-export.test.ts +1168 -0
- package/tests/design-canvas-focus.test.ts +113 -0
- package/tests/design-canvas-handoffs.test.ts +59 -0
- package/tests/design-canvas-i18n-review.test.ts +513 -0
- package/tests/design-canvas-i18n-views.test.ts +259 -0
- package/tests/design-canvas-i18n.test.ts +526 -0
- package/tests/design-canvas-inspector.test.ts +937 -0
- package/tests/design-canvas-layout.test.ts +1222 -0
- package/tests/design-canvas-minimap.test.ts +413 -0
- package/tests/design-canvas-modules.test.ts +90 -0
- package/tests/design-canvas-parts.test.ts +721 -0
- package/tests/design-canvas-rail.test.ts +799 -0
- package/tests/design-canvas-server.test.ts +855 -17
- package/tests/design-canvas-sizes.test.ts +548 -0
- package/tests/design-canvas-store.test.ts +180 -0
- package/tests/design-canvas-tokens.test.ts +965 -0
- package/tests/design-canvas-view.test.ts +299 -0
- package/tests/design-comments.test.ts +201 -1
- package/tests/design-handoffs.test.ts +20 -0
- package/tests/design-layout.test.ts +100 -0
- package/tests/design-parts.test.ts +260 -0
- package/tests/design-system-tokens.test.ts +215 -0
- package/tests/desktop-rpc-agents.test.ts +893 -0
- package/tests/desktop-rpc-config.test.ts +1452 -0
- package/tests/desktop-rpc-design.test.ts +662 -0
- package/tests/desktop-rpc-jobs.test.ts +796 -0
- package/tests/desktop-rpc-permissions.test.ts +311 -0
- package/tests/desktop-rpc-profiles.test.ts +140 -0
- package/tests/desktop-rpc-safety.test.ts +119 -0
- package/tests/desktop-rpc-usage.test.ts +697 -0
- package/tests/desktop-rpc.test.ts +252 -0
- package/tests/devbinary/pi-host-relay.devtest.ts +149 -80
- package/tests/devbinary/review-session-consent.devtest.ts +84 -0
- package/tests/engram-safety.test.ts +111 -0
- package/tests/fixtures/devbinary/status-v9-escalated-non-blocking.captured.json +92 -0
- package/tests/fixtures/devbinary/status-v9-escalated-non-blocking.provenance.md +3 -0
- package/tests/fixtures/primary-session-prompt/gentleman.golden.md +20 -29
- package/tests/fixtures/refusal-identity.probe.mjs +139 -0
- package/tests/full-delegation-closure.test.ts +29 -0
- package/tests/gentle-agents.test.ts +329 -4
- package/tests/gentle-ai-binary.test.ts +1 -1
- package/tests/gentle-ai-child-guards.test.ts +1 -0
- package/tests/gentle-ai-installer.test.ts +52 -51
- package/tests/gentle-ai-renderer.test.ts +36 -2
- package/tests/gentle-ai.test.ts +121 -6
- package/tests/gentle-design.test.ts +365 -1
- package/tests/gentle-shell-bundled.test.ts +91 -5
- package/tests/gentle-shell-launcher.test.ts +1 -1
- package/tests/gentle-shell.test.ts +118 -87
- package/tests/gentle-todo.test.ts +32 -9
- package/tests/hidden-tools.test.ts +188 -0
- package/tests/independent-recovery-delivery.test.ts +19 -5
- package/tests/inprocess-reviewer.test.ts +73 -0
- package/tests/install-wizard.test.ts +27 -1
- package/tests/installer-downloads.test.ts +30 -1
- package/tests/installer-posix-bootstrap.test.ts +114 -13
- package/tests/installer-preflight.test.ts +49 -1
- package/tests/installer-probes.test.ts +146 -0
- package/tests/installer-server.test.ts +203 -4
- package/tests/installer-windows-bootstrap.test.ts +19 -1
- package/tests/judgment-day-severity-admission.test.ts +46 -0
- package/tests/lazy-module-contradictions-contract.test.ts +158 -0
- package/tests/maintainer/desktop-rpc.maintest.ts +632 -0
- package/tests/maintainer/pi-update-source.maintest.ts +48 -18
- package/tests/model-fallback-policy.test.ts +26 -7
- package/tests/nan-provider-runtime.test.ts +17 -3
- package/tests/nan-provider.test.ts +111 -56
- package/tests/native-review-capability-contract.test.ts +11 -1
- package/tests/native-review-cli-nonblocking-findings.test.ts +165 -0
- package/tests/native-review-parity.test.ts +24 -5
- package/tests/native-review-refusal-identity.test.ts +25 -0
- package/tests/no-self-pause-contract.test.ts +11 -3
- package/tests/odd-integration.test.ts +11 -3
- package/tests/odd-routing-contract.test.ts +80 -28
- package/tests/orchestrator-budget.test.ts +30 -5
- package/tests/orchestrator-consultation-sdk.test.ts +32 -6
- package/tests/orchestrator-delegation-mode.test.ts +2 -1
- package/tests/orchestrator-discovery.test.ts +28 -0
- package/tests/orchestrator-prompt-budget.test.ts +11 -2
- package/tests/orchestrator-prompt-diet-contract.test.ts +221 -0
- package/tests/orchestrator-rdd-ownership.test.ts +2 -1
- package/tests/orchestrator-work-search.test.ts +4 -2
- package/tests/package-files.test.ts +25 -1
- package/tests/package-manifest.test.ts +11 -10
- package/tests/parallel-reason-contract.test.ts +6 -3
- package/tests/permission-allowlist.test.ts +200 -30
- package/tests/persona-neutral-voseo.test.ts +4 -4
- package/tests/persona-reply-language.test.ts +1 -1
- package/tests/persona-single-channel.test.ts +13 -5
- package/tests/pi-update-launcher.test.ts +17 -7
- package/tests/pi-update-source.test.ts +113 -6
- package/tests/pi-update.test.ts +294 -19
- package/tests/pnpm-workspace-policy.test.ts +47 -0
- package/tests/primary-context-files.test.ts +233 -0
- package/tests/primary-context-three-files.test.ts +174 -0
- package/tests/provider-defect-handoff.test.ts +9 -2
- package/tests/rdd-aware-verification-contract.test.ts +1 -1
- package/tests/rdd-status-line.test.ts +94 -1
- package/tests/reply-language-anchor-placement.test.ts +184 -0
- package/tests/reply-language-anchor.test.ts +17 -1
- package/tests/request-context-append-only.test.ts +218 -0
- package/tests/request-context-placement.test.ts +148 -0
- package/tests/review-agent-end-preflight.test.ts +79 -1
- package/tests/review-candidate-view.test.ts +65 -0
- package/tests/review-continuation-registry.test.ts +31 -0
- package/tests/review-contract-prompt.test.ts +1 -1
- package/tests/review-controller.test.ts +2 -1
- package/tests/review-coordinator-correction-gate.test.ts +105 -0
- package/tests/review-coordinator-findings.test.ts +206 -0
- package/tests/review-coordinator-nonblocking-scope.test.ts +169 -0
- package/tests/review-coordinator.test.ts +271 -4
- package/tests/review-delivery-preflight.test.ts +462 -0
- package/tests/review-due-compaction.test.ts +31 -0
- package/tests/review-due-public-boundary.test.ts +26 -0
- package/tests/review-integration-nonblocking-findings.test.ts +108 -0
- package/tests/review-json-arguments.test.ts +41 -2
- package/tests/review-ledger-contract.test.ts +19 -40
- package/tests/review-loadout-rdd-off-sdk.test.ts +30 -1
- package/tests/review-one-call-findings.test.ts +131 -0
- package/tests/review-one-call-followups.test.ts +308 -0
- package/tests/review-one-call-reviewer-requests.test.ts +207 -0
- package/tests/review-one-call.test.ts +452 -0
- package/tests/review-relay-transport-agent.test.ts +28 -1
- package/tests/review-reviewer-evidence.test.ts +41 -1
- package/tests/review-risk-assessment.test.ts +52 -5
- package/tests/review-run-statement-guidance-independent.test.ts +54 -0
- package/tests/review-session-standing-permission-controller.test.ts +32 -2
- package/tests/review-tool-prose-budget.test.ts +1 -0
- package/tests/reviewer-stream.test.ts +149 -0
- package/tests/session-profile-extension.test.ts +2 -2
- package/tests/shell-prompt.test.ts +17 -0
- package/tests/shell-usage.test.ts +59 -10
- package/tests/skill-contradictions-contract.test.ts +122 -0
- package/tests/skill-registry-watcher.test.ts +216 -2
- package/tests/skill-registry.test.ts +929 -306
- package/tests/support/design-canvas-dom.ts +369 -0
- package/tests/support/review-coordinator-runtime.ts +212 -17
- package/tests/task-size-routing-contract.test.ts +42 -11
- package/tests/test-strength-contract.test.ts +2 -1
- package/tests/todo-request-append-only.test.ts +214 -0
- package/tests/tool-batching-contract.test.ts +3 -1
- package/tests/update-agent-body-history.test.ts +138 -0
- package/tests/verification-tiers-contract.test.ts +229 -0
- package/tests/verifier-preparation.test.ts +229 -0
- package/tests/verify-agent-contract.test.ts +20 -2
- package/tests/verify-first-launch-contract.test.ts +87 -11
- package/tests/vim-editor-adapter.test.ts +2 -2
- package/tests/work-continuity-contract.test.ts +54 -11
- package/tests/writer-admission-messages.test.ts +232 -0
- package/tests/writer-batch-admission.test.ts +66 -0
- package/tests/writer-edit-surface-scope.test.ts +52 -20
- package/tests/writer-feature-document-admission.test.ts +184 -0
- package/tests/yolo-mode.test.ts +39 -0
- package/skills/_shared/review-ledger-contract.md +0 -106
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/README.md +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/schemas/lens.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/schemas/refuter.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/schemas/targeted-validator.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/vectors/lens.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/vectors/refuter.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.5.0}/bundle/vectors/targeted-validator.json +0 -0
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"agents/gentle-ai-explore.md": [
|
|
5
5
|
"1436a9d11151b23a3b78ca42fe94658d7f074af38136b471cd4c015aa0dfff26",
|
|
6
6
|
"389c74cc4d949acaad20f21a13606755f46a73e74f07325851d44c445b1b689b",
|
|
7
|
+
"46fcf933245b9a9920839919e1501a264a9dca94298b9af7a25b6bb6c07f4fcd",
|
|
7
8
|
"956418197652f430b1a4339c2912f11f3df64374751667759bdc84346f2508a0",
|
|
8
9
|
"a37cf617e8819e9ddc33c385f55520d70522c5bce77592dd997fe73fe0c36a00",
|
|
9
10
|
"ab0510e040ae7c2293ecf334153b1d91482a3ec79ea4bda6db97027db08a0144",
|
|
@@ -14,18 +15,26 @@
|
|
|
14
15
|
"f2edcf189dacb0f3294f0c0c2039374ce612543182b78c4a410687bc61e6375f"
|
|
15
16
|
],
|
|
16
17
|
"agents/gentle-ai-verify.md": [
|
|
18
|
+
"03f16dd23cde5c340ff04759d04672724d1debdde45448d5440cc7ce9a0cfc0c",
|
|
17
19
|
"0c8df3faa0ed131fc621f716b13d3fcd9eae7763412a479e696cecf751d653b4",
|
|
18
20
|
"0ddacbfbe1d61d6ef984b9b621ca36b745ff3841e9ca16ac5983706d3a081cd7",
|
|
19
21
|
"0eaaa30d4ca6f32a7281929beddb7769645534c6089bf3a6b88ada61fd8d4ec5",
|
|
20
22
|
"106ffe40e2a7cd5a81200ee2c333c72672baa24d28d2808b8d0179913c462c14",
|
|
23
|
+
"1a3dad973d61938532d2035a56cf8257c7055ab42e8f2c003fe23203beed8a90",
|
|
21
24
|
"24eb8897439b63eee8d03e8292ea337c15438cd2d647fbb38e19e7caf613bc78",
|
|
25
|
+
"2934d0363b2f9a59ed976ee67f13d0bd722c1b0f1e433a26b64b1dcd20727358",
|
|
26
|
+
"2a20c972405953c9b0b16ceb0203240fcf3b0385dde238f009471fc9809b3537",
|
|
22
27
|
"2d77c1ddd78c3402381f8d8e336e261e7354e6a5a482f3cf2d3d988c0a59a7eb",
|
|
23
28
|
"375a4c092c2a52e1d7ddd2ef68d9c374d90ae62b85c0096ce0e3374f6eb05402",
|
|
24
29
|
"45d4c9c8960a4975e0ae8406fcfb8e925f4bccdbc459cc111e538be9d621b091",
|
|
30
|
+
"539a7b18cf72fd6873addb50765412e36eb6582b0981accd4d5968d500acae59",
|
|
25
31
|
"62b61daf53459b21dca599667e49e66a87c8e25894eb02ddff5d334fa1bd159a",
|
|
26
32
|
"642de8acfc92b3d3351cc0eef70d96b2c0d836b37ba322c8426f76ae6d44f8b6",
|
|
27
33
|
"655a3089deb63c94de24e741e5a50d4bcf9435a7ecefe2ca1bc9d3b5de994383",
|
|
34
|
+
"74cf537c069cc9a37e1f9168686ea69be75a5afa8e942a1d73f0dce2ee5fdf08",
|
|
28
35
|
"7c93729f53c733c92acb37af89344c5b9446658c9bf110ad7276569937e28352",
|
|
36
|
+
"8731842efe9cc996100d3e45be51461cb18507af87ea9fbe6c6321175d273529",
|
|
37
|
+
"8826a25092c69b1870cf70505a05ec1ab95645dd6c302c6a4cdefe620b86f7a4",
|
|
29
38
|
"8b5828c1631392ea3f7e34927279d942af7886203623ef6cdc5e612e60edc690",
|
|
30
39
|
"8cfa5a7b20e16b7577823204205824c79b4658b9f664fdc0ff03915bd39476d4",
|
|
31
40
|
"92aa296e777badc756a5d2f1a527ac6b2db6b17bdce738f100ed4f0ae1a1dc75",
|
|
@@ -33,11 +42,16 @@
|
|
|
33
42
|
"a1a7913bf7efa76bfc667be281b0f3ce7e2ca32338377cc340d809020730e63f",
|
|
34
43
|
"b958fa5e29675034280a18b556b9b7ea90d5a5ffdcc7207abdcb24c62ff555e1",
|
|
35
44
|
"c47a862f31ad1833e3cf2f540079db32caae1b00ddb8a617deddc00059317bf5",
|
|
45
|
+
"ce5040df85726c47a7755d71ab3822430c40451661f22ad0ceabb046fe76ebb8",
|
|
36
46
|
"dc5712ef3fcc30de3fbef08805769e00903206d22f8feef0faee5e73d209ebba",
|
|
47
|
+
"e508f1e15fb3e95478b3b3f6ba1be39eb03d3b327f90e3b1ab8a786c04dbbf98",
|
|
37
48
|
"e791567f661f06017c6ed6d7bfc8357029516eb40525da39eb00a0525587ebf3",
|
|
38
49
|
"e85f2da2bb4fc40e0662e37b5afcb050ba00704fbcb32eaec58b32ab95a47fe5",
|
|
50
|
+
"e9fc684f908df5fb2e889d6b2ae9e3abfc08b6e3373fe07c0ffd64ce0a2d7d09",
|
|
39
51
|
"ea9b01f6f97a12ed37471b86d338f3d4d6a1decba806464b085817ae0057961d",
|
|
40
52
|
"ece25e172a3f3c4614040da00cdeaf4fad2c3d8c62cfe02ca9c184f46d01c752",
|
|
53
|
+
"f1614b54c5121ee510bc86cfcfcd24958a7340ec64927620e25cc2f284edcd3e",
|
|
54
|
+
"f71ff8564ec1732c9e627cadd02c75b3ec613265bd0aaffc4981ba9eee254025",
|
|
41
55
|
"fd074e7cf5ecc25ec334d2c8db7d0507bb14061074157158199a90ac0af0a3d0"
|
|
42
56
|
],
|
|
43
57
|
"agents/gentle-ai-worker.md": [
|
|
@@ -50,6 +64,7 @@
|
|
|
50
64
|
"4caf5a849e40aea3fdaa060a0ae1aecccf510d1440a01de1a3e356c391420b21",
|
|
51
65
|
"5864fda40e03b74748cb3de4815440bba22a0d28bc39eff129c1fd6097ee8808",
|
|
52
66
|
"6010bc8878d509ce606b48dd11ef1655565dcdeb58e54f15fceaf45a5d6d3d5b",
|
|
67
|
+
"62ca04031f71b5b5defe4c2a08c51a61b8e42ae34c8988a40045c05ac587c0ee",
|
|
53
68
|
"62db7da32efc8481c229d88203d302b6c35a608d04d3c827ed23f8ae3f233dbb",
|
|
54
69
|
"67c05b8230edb04e32b6e4170a1a1e4aea32d1f06654f32c25c7bb036711c260",
|
|
55
70
|
"6b0f46ae30ae40c3c02ef6e59f4d8e24d79e9c99142f5d98d431e44d4f7b6afd",
|
|
@@ -66,6 +81,7 @@
|
|
|
66
81
|
"b96f8e062ec534c13510bfefee46bb31cf9ca65f437fbb601b322461ef8fbbf9",
|
|
67
82
|
"c08804e7674aa1908baf7992c006ae641bd9ccea155506f5304f3e782a02703d",
|
|
68
83
|
"c317b419b95e33b25809575a1f9508068dddd95fd7a49faa6e767f58f0cff136",
|
|
84
|
+
"cd29ec67703a5b61350f247db3659c1cba3e3b42875bb0f3af43601c3a724f3e",
|
|
69
85
|
"e3751bc757d3f2d5a809d08791778e689a606ac8662614995401d0a7a2f5f227",
|
|
70
86
|
"e4e19c666892c5fdc789a5555485873d7a2a644064dfec9771fcfb224dd34040",
|
|
71
87
|
"e9d2a7babaef1fb3fb62133cd122914fc38c1e6b7015b307cb1542278311b121",
|
|
@@ -87,7 +103,9 @@
|
|
|
87
103
|
"5bb9343e6dc99740cfe0c0b45b04949eca67a0364c3263379fc7129089ad0ec7",
|
|
88
104
|
"674c17dc7ed52aa7e5d6022c1d0bb5e1a38c5d25af4f190db00dc56ac2567b64",
|
|
89
105
|
"7c933641029fbe84dd64d37f8fc568d5ab2b7c1d27d1a583386e56443303b9a7",
|
|
106
|
+
"8b82e0c9c824e91c4faba1156d0ebb653678d194a9b9a3b7c89e57c51fbbde85",
|
|
90
107
|
"af630de5152efa988193b4a4674a262dd7cf808bc342cad4db7b3068f36d258d",
|
|
108
|
+
"c46290a008a46c7411739c9ebfde01d42b8bc38fb6b2c426591f31d1af00685f",
|
|
91
109
|
"d3c28748de9cc21d83d9797ae2b97d2f08b28fa1f32d0910b9f519953f20beed",
|
|
92
110
|
"f186dc18019fefbe151573fd391a43c19063aaf4b45ee4f98aef961c6d44bd9f",
|
|
93
111
|
"f4226a3ca47c89462b389cf257efeefd7eec5f97237d95284aaecf7787e1bd5b",
|
|
@@ -95,8 +113,10 @@
|
|
|
95
113
|
],
|
|
96
114
|
"agents/jd-judge-b.md": [
|
|
97
115
|
"182106d3ba2cf66a316db57dd9991d1d3f19fbde7eeda4961d44a6919e87a498",
|
|
116
|
+
"3af8fe29624b6d9700555c68b67a6cb3cebafb380dd7b4925f2f405ff2980a58",
|
|
98
117
|
"6c6e4952e3ba84cdd144d417d63ec46c1b1eec04400614f7a66009f12619318b",
|
|
99
118
|
"78c99b242a24fb91de234c7604d45cc02b79862176add92ab888ee66c98905e0",
|
|
119
|
+
"79bd4b8834f00e24f1affd0c49da5cbf973d54ab9dc8f310bb3308204eed574a",
|
|
100
120
|
"79e91ccd3b9e8b27206f97e88bfe7aec95430cf3adec10a1a289620b9f0f0e8b",
|
|
101
121
|
"7cefac81c3fde087215aeb8788334f9096533332afa4a6b553b0d508de26151b",
|
|
102
122
|
"9475e2f73dad908eaaaaca62cb36e6294d99895b0894270cad8cb78a92273e1f",
|
|
@@ -112,6 +132,7 @@
|
|
|
112
132
|
"302382c7f6d2d4932adcfc86a7ef5e91ca2cca1e2611b41aa40e73fda782d406",
|
|
113
133
|
"77e511fa51a8b3a6f07b678da04ad21e3e1f70ad13c90c09816e299f2471ebc5",
|
|
114
134
|
"824562d9f29632938104a79e9605ab1f967a2b925f389cf06a2ffd59a1299906",
|
|
135
|
+
"9c884edc136c336370b37c8a04083bd71b88186b9520266e1698f8b2ee0a626e",
|
|
115
136
|
"a8b7329d022767bbd3f3abdf3854f5160ada9c34f41dd2191515a69b56b6baca",
|
|
116
137
|
"ca1a6a2db4eac5d694acccace5b934fe33f5233f967a0e035c8ba0af1bb8c890",
|
|
117
138
|
"d1a11e867d569e1400603415576ffb42c06bef8eb7818d30659734b1eae9b120",
|
|
@@ -129,6 +150,7 @@
|
|
|
129
150
|
"90999eed8fab6a66f9f25e77e4e82e21c15ec2ea7b25f9513c80017763c27fe1",
|
|
130
151
|
"99fb57b165d61e9aec15f6ec8dfa529b62c651a435a80e393d497468ad5f9222",
|
|
131
152
|
"a77e00377caef02167e70ef58297809cae55d3f264103cf4b452f0abc1d3ce47",
|
|
153
|
+
"b33042bdc6eac946ab69aadb1eec71844ddf6be6f28bd4751620de2b45734253",
|
|
132
154
|
"bba81b607ff7e43b1c73a5b956fed2047b3585aba7e3d515cd4258c531eb25fd",
|
|
133
155
|
"f82e05ad287f9eb7d1d97a111c2fa2b83a2c05f61720e89188fe847f8895860e"
|
|
134
156
|
],
|
|
@@ -140,6 +162,7 @@
|
|
|
140
162
|
"38cf7b46f70bff0832320ca0f2befbc5ceb9d31f61bcdcef60864738b93031f2",
|
|
141
163
|
"54ad6cb64decfe063b8d6d42d16ba54e0cdc020e3515ab4a118157da2c0eef41",
|
|
142
164
|
"8cb2b41594f02c624e802c28f05dfa34b25129fd20cf45c425fa3e9485df65c9",
|
|
165
|
+
"96e1dc863e5e1205381429131911b0371e25f3456b0e7b27eae041b5e916c9d5",
|
|
143
166
|
"cb611a4dff480468c7fb56cc4a1d54b4ea5f1f94a31ee51a49839e2c9c66a513",
|
|
144
167
|
"d244046cdf0255610505548751a73c06064e4c8cbc10976800674ff7712cfe81",
|
|
145
168
|
"d28ff69aff5a75d9ea529c535a47c270b326e76096cd279c8d2d83fe3d3bd703",
|
|
@@ -152,6 +175,7 @@
|
|
|
152
175
|
"75af4c02b5408affdfbdc1b5675cdd15a8f3c5688ed72b9284705d9d8448bc4f",
|
|
153
176
|
"86ec32259ce97a77e61947b06d4fbcad713a389f39e989e2842fc1e193fa2288",
|
|
154
177
|
"965a4af892e8f3d5e2b1512b0af360d0df8d95c915db5da8a7b5bf1ec06e9e41",
|
|
178
|
+
"9781dc3bfcb3398408ebca302d807c441ab8255f8955666161fa545bfb941621",
|
|
155
179
|
"9f9d172cc55e28c5abaa753ee4cd3088d9e8821afb895a3e2a8e8ab5f8cde1ec",
|
|
156
180
|
"ab0b80cce8d55a5c415e3af8c87f0c1b6b58c26aa928adf30cc40459b611c017",
|
|
157
181
|
"ee69cd46c1fbb6fcca26cf83e87a9482297ffa7e0d97ce658455b24d0f4f13f5",
|
|
@@ -53,7 +53,9 @@ Progress is published automatically from the todo list: never call `orchestrator
|
|
|
53
53
|
| Write a unit with a Writer rule reason | — | ✅ one bounded writer per unit |
|
|
54
54
|
| Bash for state (`git`, `gh`) | ✅ | — |
|
|
55
55
|
| Focused test and suite of the change being made | ✅ in one command | — |
|
|
56
|
-
| Named high-risk item (assess `escalate` when RDD is on or unknown)
|
|
56
|
+
| Named high-risk item (assess `escalate` when RDD is on or unknown) | — | ✅ independent `gentle-ai-verify` |
|
|
57
|
+
|
|
58
|
+
Check duration alone never triggers a verifier.
|
|
57
59
|
|
|
58
60
|
Use the platform's native bounded worker for delegated-direct work.
|
|
59
61
|
|
|
@@ -65,7 +67,7 @@ Once a trigger fires, the parent MUST delegate through the best available subage
|
|
|
65
67
|
|
|
66
68
|
The canonical Writer rule under Delegation Triggers overrides this general runtime preference.
|
|
67
69
|
|
|
68
|
-
1. **Evidence-budget rule**: when the reading exceeds the evidence budget, launch
|
|
70
|
+
1. **Evidence-budget rule**: when the reading exceeds the evidence budget, launch the closest read-only mapping subagent with fresh context and a narrow mapping task that returns a handoff of at most ~2k tokens with `path:line` evidence. Route generic exploration first to the installed package-owned `gentle-ai-explore`; if missing or unusable, use native `Agent` with the same read-only mapping task and report the fallback.
|
|
69
71
|
2. **Writer rule**: follow the canonical Writer rule under Delegation Triggers.
|
|
70
72
|
3. **Incident rule**: after wrong `cwd`, accidental repository/worktree mutation, failed merge recovery, confusing test command, or environment workaround, stop and diagnose the incident separately before resuming.
|
|
71
73
|
4. **Context backstop**: when the runtime signals the context backstop, pause and delegate the next unit that needs several steps instead of silently continuing monolithically; single small edits stay inline.
|
|
@@ -109,13 +111,13 @@ For generic mapping, follow the Evidence-budget rule in the delegation card.
|
|
|
109
111
|
|
|
110
112
|
The canonical Writer rule under Delegation Triggers overrides the general runtime preference above.
|
|
111
113
|
|
|
112
|
-
Delegate generic verification that executes or delegates commands per the RDD-aware Verification rule (trigger 3 under Delegation Triggers, gentle-pi#661) -- the normative on/off/unknown routing lives in `orchestrator-verification.md`, not here: the bounded writer always self-verifies via `## Verification`; a named high-risk item also requires `gentle-ai-verify` (or the native `Agent` fallback, with the same read-only verification constraints, exact parent-authorized commands, and fallback reporting). When RDD is on or unknown, use the `gentle_review` `assess` plan and named `escalate` item; validated off does not require assessment (gentle-pi#662). `## Known environmental failures
|
|
114
|
+
Delegate generic verification that executes or delegates commands per the RDD-aware Verification rule (trigger 3 under Delegation Triggers, gentle-pi#661) -- the normative on/off/unknown routing lives in `orchestrator-verification.md`, not here: the bounded writer always self-verifies via `## Verification`; a named high-risk item also requires `gentle-ai-verify` (or the native `Agent` fallback, with the same read-only verification constraints, exact parent-authorized commands, and fallback reporting). When RDD is on or unknown, use the `gentle_review` `assess` plan and named `escalate` item; validated off does not require assessment (gentle-pi#662). `## Known environmental failures`: `gentle-ai-worker`'s Verification contract. The change's own focused test and suite run inline. Separate exploration stays reserved for when the parent needs the map to decide or route; reading that prepares a write belongs with the writer making the change, consistent with the Delegation Rules table above.
|
|
113
115
|
|
|
114
116
|
For delegation other than a large task's bounded writes, use the generic fallback: if `subagent_*` tools are unavailable, fall back to Pi's native `Agent` tool in the current runtime; never fall back to an external pane, terminal, session, window, or remote worker. The delegation trigger remains mandatory. If no delegation mechanism is available, stop the complex work and tell the user instead of silently continuing inline.
|
|
115
117
|
|
|
116
118
|
#### Pi Subagent Model Routing
|
|
117
119
|
|
|
118
|
-
For generic Pi subagents
|
|
120
|
+
For generic Pi subagents, do not pass the `model` parameter by default. Let `pi-subagents` resolve model and thinking from `.pi/settings.json`, `.pi/subagents.json`, global subagent config, and runtime defaults.
|
|
119
121
|
|
|
120
122
|
Only pass `model` for generic subagents when the user explicitly requests a model override for that launch.
|
|
121
123
|
|
|
@@ -125,7 +127,7 @@ Small task pattern:
|
|
|
125
127
|
parent clarifies and checks git → parent edits inline → focused test and suite inline → parent reports
|
|
126
128
|
```
|
|
127
129
|
|
|
128
|
-
Large task pattern (
|
|
130
|
+
Large task pattern (no Writer rule reason; with one, one bounded worker per unit writes instead):
|
|
129
131
|
|
|
130
132
|
```text
|
|
131
133
|
parent clarifies and checks git → parent edits inline following the logbook → focused test and suite inline → parent reports
|
|
@@ -133,20 +135,12 @@ parent clarifies and checks git → parent edits inline following the logbook
|
|
|
133
135
|
|
|
134
136
|
Add agents only where a mechanism's own trigger fires.
|
|
135
137
|
|
|
136
|
-
## Pi Delegation Bindings
|
|
137
|
-
|
|
138
|
-
Prefer delegation when fresh context improves correctness more than token savings:
|
|
139
|
-
|
|
140
|
-
- Use `scout`/`context-builder` to compress broad repository exploration into a short handoff instead of loading many files into the parent.
|
|
141
|
-
- Use one `worker` per writer thread; parallel writers only with disjoint Allowed edit surfaces (runtime-enforced) or isolated worktrees.
|
|
142
|
-
- Use `outputMode: "file-only"` for large child reports and summarize only decisions, blockers, and paths in the parent thread.
|
|
143
|
-
|
|
144
138
|
### Canonical Lightweight Workflows
|
|
145
139
|
|
|
146
140
|
Bugfix with unfamiliar flow (understanding exceeds the evidence budget):
|
|
147
141
|
|
|
148
142
|
```text
|
|
149
|
-
parent git/status + clarify →
|
|
143
|
+
parent git/status + clarify → explorer maps flow/files → worker implements authorized fixes + tests → focused verification → parent reports
|
|
150
144
|
```
|
|
151
145
|
|
|
152
146
|
Conflict or dependency-marker cleanup:
|
|
@@ -18,16 +18,16 @@ Before delegating, declare a subject via `orchestrator_session_id` (reference).
|
|
|
18
18
|
These boundaries do not authorize children to orchestrate. Each trigger holds only when its condition truly holds; none holds by default. Inline stays within the evidence budget. When one fires, stop and delegate through the runtime's subagent mechanism before continuing; executing past a fired trigger inline is a routing defect even if the work succeeds.
|
|
19
19
|
|
|
20
20
|
1. **Ask:** an open product or design decision gets one focused user question; stop and wait.
|
|
21
|
-
2. **Mapping trigger (Evidence-budget rule):** read inline only when the evidence fits one parallel batch of at most 3 calls totaling ~10k tokens. Reassess cumulative discovery after each batch; never reset it. When understanding needs more or over
|
|
21
|
+
2. **Mapping trigger (Evidence-budget rule):** read inline only when the evidence fits one parallel batch of at most 3 calls totaling ~10k tokens. Reassess cumulative discovery after each batch; never reset it. When understanding needs more or over 3 lookups, delegate one explorer returning a handoff of at most ~2k tokens with `path:line` evidence; the trigger overrides initial size, including for read-only work. Re-evaluate size after. Preparation for an already understood inline write stays inline, not further discovery.
|
|
22
22
|
3. **Verification rule** (gentle-pi#661/#662, RDD-aware): only a change whose Risk line names a high-risk item (Task Size, assess `escalate` when RDD is on or unknown) gets an independent `gentle-ai-verify` run after the change's own checks, as rarely as possible; otherwise whoever made the change runs its focused test and suite inline, small tasks included. Routing: `orchestrator-verification.md`.
|
|
23
23
|
4. **Track:** a large task gets the feature document, Engram mirror, `todo`, and work-unit commits (`orchestrator-memory.md`).
|
|
24
|
-
5. **Writer trigger (Writer rule):** a large task alone never delegates, and file count never fires this trigger. Delegate one bounded writer per unit only for a named reason: (a) parallelism — 2+ independent units of behavior with disjoint edit surfaces, each needing several minutes of work (several files or ~100+ changed lines; a subagent spends 1-2 minutes reading before it writes), launched together; (b) context — the Context backstop below. A unit is one independent piece of behavior with its code, tests, and docs together: never split one behavior into test, docs, and code writers; a delivery that depends on another is not independent; several small independent changes run inline, one after another. Units of about 100 changed lines or less always run inline: writing them costs less than starting workers. The runtime admits writers only for a feature-document task
|
|
24
|
+
5. **Writer trigger (Writer rule):** a large task alone never delegates, and file count never fires this trigger. Delegate one bounded writer per unit only for a named reason: (a) parallelism — 2+ independent units of behavior with disjoint edit surfaces, each needing several minutes of work (several files or ~100+ changed lines; a subagent spends 1-2 minutes reading before it writes), launched together; (b) context — the Context backstop below. A unit is one independent piece of behavior with its code, tests, and docs together: never split one behavior into test, docs, and code writers; a delivery that depends on another is not independent; several small independent changes run inline, one after another. Units of about 100 changed lines or less always run inline: writing them costs less than starting workers. The runtime admits writers only for a feature-document task, at the measured context backstop, or as 2+ disjoint writers alone in one message. Never for a price ratio. Without a reason, the parent works inline, following the logbook (feature document, mirror, `todo`, work-unit commits).
|
|
25
25
|
6. **Incident rule:** after a wrong `cwd`, accidental repository/worktree mutation, failed merge recovery, or environment workaround, stop and diagnose it separately before resuming.
|
|
26
26
|
7. **Context backstop:** when the runtime signals it, pause and delegate the next bounded unit of work that needs several steps.
|
|
27
27
|
|
|
28
28
|
**Invariants:** whoever writes, inline or delegated, reuses the existing function for shared state and keeps its invariants (ordering, uniqueness, validation, normalization); writer prompts name those helpers (`orchestrator-writer.md`).
|
|
29
29
|
|
|
30
|
-
**Differential check (PRESERVE):** forward the
|
|
30
|
+
**Differential check (PRESERVE):** forward the test-first differential check to writers.
|
|
31
31
|
|
|
32
32
|
**Preparation trigger:** reading that prepares a delegated write goes with the writer; inline writes read inline. When delegating, read only what decides the route, never the files the worker will read; pass paths, the spec reference, and what to change, not file contents.
|
|
33
33
|
|
|
@@ -41,7 +41,7 @@ For a large task's bounded writes, prefer the installed package-owned `gentle-ai
|
|
|
41
41
|
|
|
42
42
|
- Derive nonempty `## Allowed edit surfaces` before launching a writer (`orchestrator-writer.md`). Parallel writers only with disjoint Allowed edit surfaces (runtime-enforced) or isolated worktrees.
|
|
43
43
|
- Pass the session's resolved skill paths under `## Skills to load before work`; children read them first (`orchestrator-skills.md`).
|
|
44
|
-
- A child must be able to do the task it is given. Check the agent's declared `tools` in `subagent_list_agents` before launching: never give a read-only explorer shell
|
|
44
|
+
- A child must be able to do the task it is given. Check the agent's declared `tools` in `subagent_list_agents` before launching: never give a read-only explorer shell work, and never assume your own tools transfer to the child. With no qualified agent, report the capability gap; a fired trigger is never replaced by inline work.
|
|
45
45
|
- Background (policy on, `subagent_run` present): omit `mode`; it returns a task id at once. End the turn and resume on its `gentle-agents.result` completion message; never sleep or poll `subagent_status`. Otherwise run in the foreground. Detail: reference.
|
|
46
46
|
- Do not pass `model` to generic subagents unless the user asks.
|
|
47
47
|
|
|
@@ -17,19 +17,18 @@ Before delegating, declare a subject via `orchestrator_session_id`.
|
|
|
17
17
|
|
|
18
18
|
**Invariants:** the writer reuses the existing function for shared state and keeps its invariants (ordering, uniqueness, validation, normalization); writer prompts name those helpers.
|
|
19
19
|
|
|
20
|
-
**Differential check (PRESERVE):** forward the
|
|
20
|
+
**Differential check (PRESERVE):** forward the test-first differential check to writers.
|
|
21
21
|
|
|
22
22
|
## Launch
|
|
23
23
|
|
|
24
|
-
- Derive nonempty `## Allowed edit surfaces` before launching a writer (below). Parallel writers only with disjoint Allowed edit surfaces (runtime-enforced) or isolated worktrees.
|
|
25
24
|
- Pass the session's resolved skill paths under `## Skills to load before work`; children read them first (`orchestrator-skills.md`).
|
|
26
|
-
- A child must be able to do the task it is given. Check the agent's declared `tools` in `subagent_list_agents` before launching: never give a read-only explorer shell
|
|
25
|
+
- A child must be able to do the task it is given. Check the agent's declared `tools` in `subagent_list_agents` before launching: never give a read-only explorer shell work, and never assume your own tools transfer to the child. With no qualified agent, report the capability gap; never do the work yourself instead.
|
|
27
26
|
- Background (policy on, `subagent_run` present): omit `mode`; it returns a task id at once. End the turn and resume on its `gentle-agents.result` completion message; never sleep or poll `subagent_status`. Otherwise run in the foreground. Detail: below.
|
|
28
27
|
- Do not pass `model` to generic subagents unless the user asks.
|
|
29
28
|
|
|
30
29
|
#### Allowed edit surfaces (MANDATORY)
|
|
31
30
|
|
|
32
|
-
The bounded writer refuses to write outside the exact allowed edit surfaces and stops with `status: interaction_required` when they are missing.
|
|
31
|
+
The bounded writer refuses to write outside the exact allowed edit surfaces and stops with `status: interaction_required` when they are missing. Every new writer launch carries the section (a continuation inherits it); after an admission rejection, repair what it names once, never relaunch the same prompt unchanged.
|
|
33
32
|
|
|
34
33
|
Before launching a bounded writer (`gentle-ai-worker`, a user-configured `worker`, or the native `Agent` fallback), derive the allowed edit surface from the delegated task — files the change must touch, plus directories where it authorizes new files — and pass it in the prompt under an `## Allowed edit surfaces` heading, in the exact-path form of `## Skills to load before work`:
|
|
35
34
|
|
|
@@ -40,7 +39,7 @@ Before launching a bounded writer (`gentle-ai-worker`, a user-configured `worker
|
|
|
40
39
|
|
|
41
40
|
Test scratch stays outside the worktree (`mktemp -d`), never in the repository (nor caches or `TMPDIR`); state needed inside uses an excluded path the test removes. The runtime owns session scratch; `/gentle:scratch` lists or cleans recorded clones and worktrees.
|
|
42
41
|
|
|
43
|
-
If the surface genuinely cannot be derived, do not launch the writer or ask the human to author paths. Derive a candidate set first — the exact paths this task would touch — and present that enumerated list as an approve/decline choice under the Lossless Blocking Prompts rules in `orchestrator-prompts.md`.
|
|
42
|
+
If the surface genuinely cannot be derived, do not launch the writer or ask the human to author paths. Derive a candidate set first — the exact paths this task would touch — and present that enumerated list as an approve/decline choice under the Lossless Blocking Prompts rules in `orchestrator-prompts.md`.
|
|
44
43
|
|
|
45
44
|
Relay a writer's `interaction_required` payload about edit surfaces the same way: present its derived candidate paths as the choice, and add or drop paths only on the human's explicit instruction.
|
|
46
45
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
You are a COORDINATOR in full delegation mode: you never implement. Every authorized mutation
|
|
1
|
+
You are a COORDINATOR in full delegation mode: you never implement. Every authorized mutation of repository content of any kind (source, tests, docs, fixtures, configuration) goes to a bounded writer (`gentle-ai-worker`; role missing or unusable: a native `Agent` with the same bounded instructions, reporting the fallback), whatever its size. If no writer can run, report that blocker; never edit a file yourself.
|
|
2
2
|
|
|
3
|
-
This mode belongs to the session's active profile
|
|
3
|
+
This mode belongs to the session's active profile; the human switches it in `/gentle:profiles` (`w` toggles the shown profile's mode, then **Save** or **Use in this session**), from the next turn, no new session.
|
|
4
4
|
|
|
5
|
-
Keep synthesis short
|
|
5
|
+
Keep synthesis short (decision, outcome, next action); expand only when the user asks or the situation needs it.
|
|
6
6
|
|
|
7
7
|
Batch independent tool calls in one turn (parallel calls or one multi-file command). Never spend a turn only on a `todo` or status update.
|
|
8
8
|
|
|
9
9
|
## What stays yours
|
|
10
10
|
|
|
11
|
-
Authorize, explore for routing, decide, ask, track, commit, verify, report. Reads, `git` state checks, and
|
|
11
|
+
Authorize, explore for routing, decide, ask, track, commit, verify, report. Reads, `git` state checks, and the spot check (Verify) are yours.
|
|
12
12
|
|
|
13
13
|
## Task Size
|
|
14
14
|
|
|
@@ -20,15 +20,15 @@ Task size decides tracking and risk, never who writes. A task is **small** when
|
|
|
20
20
|
|
|
21
21
|
## Delegation Rules
|
|
22
22
|
|
|
23
|
-
One writer per unit of behavior: its code, tests and docs together, never split across writers, and never
|
|
23
|
+
One writer per unit of behavior: its code, tests and docs together, never split across writers, and never launched while a unit it depends on still runs. Handoff, launch, edit-surface and background rules: `orchestrator-full-delegation-card.md`; tracked work: `orchestrator-tracking.md`.
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
Independent units with disjoint surfaces launch together: all their `subagent_run` calls in the same assistant message or one `codemode` script, never one launch per message nor beside a sequential `todo`, `ask_user_*`, `codegraph` or `gentle_review*` (it serializes them); units needing the same file run one at a time. Fixes to one unit continue its worker (`subagent_continue`), never a new worker per fix. You own git: writers never commit, push, or run repository-wide formatters and installs.
|
|
26
26
|
|
|
27
27
|
## Mechanisms
|
|
28
28
|
|
|
29
29
|
1. **Ask** — open product or design decision → one focused question; stop and wait.
|
|
30
|
-
2. **Explore** — mapping beyond one bounded read batch (3 calls, ~10k tokens) or more than
|
|
31
|
-
3. **Verify** — the writer runs the authorized checks and reports `<command>: <observed result>`, observing RED before it writes; you re-run one reported command as a spot check, and add one independent `gentle-ai-verify` only when the Risk line names a high-risk item.
|
|
30
|
+
2. **Explore** — mapping beyond one bounded read batch (3 calls, ~10k tokens) or more than 3 lookups → one `gentle-ai-explore`, handoff at most ~2k tokens with `path:line` evidence, then one spot check. Reading that prepares a writer belongs in that writer's prompt.
|
|
31
|
+
3. **Verify** — the writer runs the authorized checks and reports `<command>: <observed result>`, observing RED before it writes; you re-run one reported command as a spot check, and add one independent `gentle-ai-verify` only when the Risk line names a high-risk item; verification, handoffs, verifier setup failure: `orchestrator-verification.md` (`## Verifier preparation failure`).
|
|
32
32
|
4. **Track** — by Task Size above.
|
|
33
33
|
5. **Incident** — diagnose a wrong cwd, worktree, git or tooling incident separately before resuming.
|
|
34
34
|
6. **Context backstop** — when the runtime signals it, delegate the next unit instead of absorbing it.
|
|
@@ -15,11 +15,11 @@ Mirror the full current document and repository-relative file locator, not only
|
|
|
15
15
|
|
|
16
16
|
Accepted user, review, or verification changes automatically update affected intent and TODOs, unlike a process that regenerates every artifact: a requirement change appends its verbatim `## Log` entry, rewrites only the affected `S#`, and reopens only its linked task; preserve valid completed and unrelated work; add genuinely new tasks or reopen invalidated items with a reason, and revise their checks. Findings alone never authorize scope expansion or automatic acceptance. New business scope still requires user authorization. Check off only observed outcomes with applicable proof; record failed, unavailable, skipped, or pending checks honestly. The parent merges bounded worker results rather than replacing the entire feature with one worker's partial view.
|
|
17
17
|
|
|
18
|
-
Persist local progress first, then mirror through the existing injected Engram save tool.
|
|
18
|
+
Persist local progress first, then mirror through the existing injected Engram save tool. Refresh the Engram mirror once per task transition (a task starts, finishes, is blocked, reopened, or dropped) or material plan change, and at close; `## Log` entries and evidence added between those points go to the file only and reach the mirror at the next one. After a successful local update and an explicit, complete save acknowledgement, inspect the changed local task/log lines as needed; do not routinely reread both full copies. These writes are not atomic; never author comparison or reconciliation scripts or gates for them. A missing, partial, truncated, failed, or uncertain acknowledgement requires checking which writes already applied before any retry; never replay an applied write. If the tool reports a payload it cannot preserve, keep the file and mark its mirror pending rather than repeatedly resending the same payload. The file is the source: a mirror that differs from the file just written is refreshed from the file, never a blocker. If Engram is unavailable, preserve local progress and explicitly mark the mirror pending; do not claim persistence succeeded or block unrelated safe work. Resynchronize when available. If a file write is unsafe or unavailable, preserve existing state and report the limitation. Preserve both versions on irreconcilable edits and ask only about the real conflict; never silently prefer a newer timestamp.
|
|
19
19
|
|
|
20
20
|
On resume, use `mem_context`, then project/feature-scoped `mem_search`, and `mem_get_observation` for the full saved document; read the actual task file. Do not infer active work from the newest global memory. Reconcile current requirements, code, and proof before continuing the next unfinished task. Preserve pending mirrors and conflicting edits; a missing copy is not permission to overwrite surviving progress. Use the injected equivalents of these existing memory tools, never invent availability.
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
At initial implementation or recovery after interruption or context loss, the parent reads both the actual file and full observation, reconciles them, and passes the locator, task IDs, and linked `S#`; workers read the document until `## Log` before edits. Within an intact continuation, reuse the established specs, next task, route, and applicable proof instead of restarting discovery or rebuilding the plan at every task. A progress question does not restart preparation: answer briefly with the concrete change, pending check or blocker, then continue the authorized task. New scope, external edits, stale proof, or missing context require inspecting the affected state before editing. Small work without a document still receives its authorized scope and checks.
|
|
23
23
|
|
|
24
24
|
The existing `todo` tool is the required session/UI projection for large ODD, not a third authority. After reconciling and writing the durable file and Engram copy, create or rebuild the visible `todo` list from the same feature tasks before the first source write; after every task transition and material plan change, update both durable copies and the visible projection in the same turn; its replay or completed-list clearing must not delete or replace the durable file or Engram copy. If the projection is unavailable, record that limitation without pretending it is synchronized. When a change of direction makes tasks obsolete, mark them `dropped` in `## Tasks`, append the reason to `## Log`, and project them as `dropped` in the same turn; never mark them `done` or leave them `pending`. A dropped task never satisfies the tasks that depended on it: rework, reorder, or drop those too. When a task waits on something outside the list (a person, another team, an authorization), mark it `blocked` with a note naming what it waits for and the observable condition that unblocks it; return it to `pending` or `in_progress` once that holds, or `dropped` if abandoned. A prerequisite inside the list is ordering, not blocking: add it as a task and keep the dependent one `pending`. Small/read-only work does not acquire an ODD artifact or todo list merely because the UI can display tasks.
|
|
25
25
|
|
|
@@ -43,6 +43,6 @@ When it is ours, never offer to switch to, inspect, modify, or directly repair t
|
|
|
43
43
|
- If the captured exact v3 decline invocation, exact target identity, or consumer continuation context is unavailable or ambiguous, fail closed with all consumer state preserved and do not run a substitute command.
|
|
44
44
|
- On a successful exact decline, validate `action: "declined"`, `consent: "declined_this_candidate"`, and the exact target identity match; then re-enter through native negotiated STATUS, then resume the already-held consumer continuation.
|
|
45
45
|
- The result carries no lineage or receipt; ordinary delivery is unmanaged by the candidate choice, and the next candidate asks again.
|
|
46
|
-
-
|
|
46
|
+
- Unless the user explicitly asks, do not invoke `gentle-ai review mode disable` at clone or global scope or turn RDD off or on within this handoff.
|
|
47
47
|
- Report observed evidence, not an unconfirmed root cause. Include or reuse sanitized version/build, OS/architecture/client, the operation shape without secrets, bounded attempts and outcomes, failure envelopes, mutation outcome, expected and actual behavior, a minimal reproduction, safe opaque reason/revision identifiers, and preserved-state evidence.
|
|
48
48
|
- Resume after an installed published fix or an explicit maintainer-authorized, documented native recovery or reset that the runtime contract supports; then re-enter through native status. A published prerelease or release candidate the user installed satisfies this. Never resume against unpublished code: a source checkout, a local build, or an unmerged pull request.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Temporary verifier quota recovery
|
|
2
|
+
|
|
3
|
+
Parent only: load after an identified verifier quota failure when the human explicitly requests the missing verification.
|
|
4
|
+
|
|
5
|
+
A temporary verifier quota failure with no verdict still ends the automatic cycle. After the human reports restored availability and explicitly requests the missing verification, allow one new bounded attempt for the same candidate. Preserve the failed attempt and still-valid passed checks; do not replay passed suites. Confirm no child is active or uncertain. This is not an automatic retry, provider/model fallback, or reset of correction/native budgets. Consent, denials, explicit one-run/no-retry limits and terminal native outcomes remain binding; failure never counts as approval.
|
|
@@ -4,17 +4,18 @@ Bind this to the parent Pi session only, on skill resolution/discovery. Not alwa
|
|
|
4
4
|
|
|
5
5
|
## Skill Registry Protocol
|
|
6
6
|
|
|
7
|
-
The
|
|
7
|
+
The effective view is `<available_skills>` plus the on-disk rows of the `Effective session skills` system-prompt block: on each enabled primary-session agent start, that block lists the skills found in project and other agents' skill directories that Pi did not load (every skill when Pi renders no `<available_skills>`), and is absent when there are none. A block row whose name is also in `<available_skills>` won precedence (a project copy outranks a user or package copy); use the block's row. In `<available_skills>` the `Trigger / description` is `<description>` and the `Path` is `<location>`. Use this view to select skills and delegate:
|
|
8
8
|
|
|
9
|
-
1.
|
|
10
|
-
2. Match task
|
|
11
|
-
3.
|
|
12
|
-
4.
|
|
13
|
-
5. If the registry is absent, continue but mention that project-specific skill paths were unavailable.
|
|
9
|
+
1. Match task context and target files against the effective view's `Trigger / description` column.
|
|
10
|
+
2. Pass only matching exact `Path` values to subagents under `## Skills to load before work`. Match the delegated task's own files and actions, never a fixed set: a child that will not commit gets no commit skill, and one that writes no docs gets no docs skill.
|
|
11
|
+
3. Tell subagents to read those exact `SKILL.md` files before reading, writing, reviewing, testing, or creating artifacts.
|
|
12
|
+
4. If no skill matches, continue without project skill injection and report `skill_resolution: none`.
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
The shared `.atl/skill-registry.md` indexes disk only and is never the full effective view. The view is unavailable only when neither `<available_skills>` nor the block is present: then say so; a disk-only fallback may omit runtime-only skills. Disk changes appear in the view at the next agent start, not mid-run.
|
|
16
15
|
|
|
17
|
-
Subagents
|
|
16
|
+
Subagents receive exact indexed paths and never rediscover the registry or other project/user `SKILL.md` files during normal runtime.
|
|
17
|
+
|
|
18
|
+
Among package subagents only `gentle-ai-worker` reports `skill_resolution`, as `paths-injected`, `paths-invalid` (blocked; the unreadable path is in `risks`), or `none`; the fallback values below come from non-package agents.
|
|
18
19
|
|
|
19
20
|
If a subagent reports `skill_resolution`, interpret it as project/user skill resolution:
|
|
20
21
|
|
|
@@ -31,10 +32,10 @@ For skill-shaped requests, do not treat injected `<available_skills>` as complet
|
|
|
31
32
|
|
|
32
33
|
Discovery order:
|
|
33
34
|
|
|
34
|
-
1.
|
|
35
|
-
2.
|
|
36
|
-
3. If the
|
|
37
|
-
4. Prefer the most specific project skill over a global skill with the same intent.
|
|
35
|
+
1. Consult `<available_skills>` and the `Effective session skills` block, when present, before acting or delegating.
|
|
36
|
+
2. Read the matching exact `SKILL.md` path when acting; pass it to the subagent when delegating.
|
|
37
|
+
3. If the view is unavailable, disclose the limitation; `.atl/skill-registry.md` is a disk-only fallback, not a complete Pi view.
|
|
38
|
+
4. If an expected workflow is absent, search configured skill roots only as a fallback. Prefer the most specific project skill over a global skill with the same intent.
|
|
38
39
|
5. If no matching skill exists, continue with the smallest safe fallback and say which expected skill was unavailable.
|
|
39
40
|
|
|
40
41
|
Common intent hints, not hard routing:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Orchestrator — ODD Tracking (lazy-loaded)
|
|
2
2
|
|
|
3
|
-
Bind this to the parent Pi session only. Load it when a task is large (its resume test fails)
|
|
3
|
+
Bind this to the parent Pi session only. Load it when a task is large (its resume test fails); a requested session task list alone needs no durable ODD document or memory mirror (see the always-on Task Size section).
|
|
4
4
|
|
|
5
5
|
### Organic Driven Development (ODD)
|
|
6
6
|
|
|
@@ -10,33 +10,33 @@ These instructions apply to all development work. Preserve the existing direct/d
|
|
|
10
10
|
|
|
11
11
|
Investigation, explanation, review, comparison, and proposal-only requests remain read-only: no writer, apply, or implementation artifacts. Ambiguous or conditional change intent (unclear whether a change is authorized at all) requires one clarification; stop and wait. Hedged delivery wording (the user may stop you, review commits one at a time, or pick the work up later) asks for resumable notes and separate commits, not a stop; complete every authorized task in the current turn unless the user explicitly says to wait. Research findings and automatic execution pace never authorize mutations.
|
|
12
12
|
|
|
13
|
-
Size every task by the always-on Task Size section
|
|
13
|
+
Size every task by the always-on Task Size section; small work creates no durable task artifacts, and counts of files, commands, tests, fixes, or lines never make it large. For large authorized implementation, automatically create the feature document after exploration, without a task or storage permission prompt. Follow `orchestrator-memory.md` for the file and full Engram recovery copy, automatic updates, truthful checkoffs, and resume. Keep the parent responsible for reconciliation; bounded workers receive the document locator, task IDs, linked `S#`, authorized scope and checks, not authority over unrelated tasks; they read the document until `## Log` before edits and report which `S#` they covered. A rejected or resumed handoff is repaired and resent with the same content, never shortened. Reproduce a user-reported failure by running the reported example before deciding it already works; reading code is not reproduction. Close gate: before the final answer, if any tracked task in the feature document or `todo` is still pending, continue it or quote the exact user sentence that orders the stop. One **Needs your decision** result naming the open blockers or missing proof is also a valid stop.
|
|
14
14
|
|
|
15
|
-
Use about 400 authored changed lines per ODD task only as a planning heuristic, counting additions plus deletions. Keep the smallest coherent behavior with its tests and docs. This is not a task acceptance criterion, hard cap, counter-trigger, automatic stop, forced split, or RDD trigger. If the correct clear solution naturally exceeds it, briefly explain why and continue without size-only rework loops. Never delete spaces, blank lines, or comments for cosmetic line savings; never omit tests, minify, add gratuitous abstractions, or split artificially to fit the heuristic. Forward this same advisory-only instruction when delegating tasks to subagents. The delivery budget below reads the accumulated branch, not this per-task heuristic. Existing PR size gates remain unchanged; follow repository policy.
|
|
15
|
+
Use about 400 authored changed lines per ODD task only as a planning heuristic, counting additions plus deletions. Keep the smallest coherent behavior with its tests and docs. This is not a task acceptance criterion, hard cap, counter-trigger, automatic stop, forced split, or RDD trigger. If the correct clear solution naturally exceeds it, briefly explain why and continue without size-only rework loops. Never delete spaces, blank lines, or comments for cosmetic line savings; never omit tests, minify, add gratuitous abstractions, or split artificially to fit the heuristic. Forward this same advisory-only instruction when delegating tasks to subagents. The delivery budget below reads the accumulated branch, not this per-task heuristic. Existing PR size gates remain unchanged; follow repository policy. A user's line limit is a ceiling, never an exact-count gate; never invent acceptance gates the user did not ask for.
|
|
16
16
|
|
|
17
17
|
#### Research depth without a new phase
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Step 3 decides when to research, ask, or challenge. Establish the problem, intended outcome, constraints, and current evidence; inspect relevant code. Adapt depth to uncertainty and consequence: no fixed questionnaire or mandatory rounds. The parent owns product decisions; workers return gaps to the parent rather than assuming choices.
|
|
20
20
|
|
|
21
21
|
When the question needs external evidence, use available authorized documentation/web tools and prefer primary sources. Attribute material claims to URLs or code locations; distinguish verified facts, assumptions, contradictions, freshness, and gaps. If tools are unavailable, disclose limitations without inventing access or evidence. If research is declined, continue within authorized scope only where safe without the missing evidence; pause only unsafe decisions dependent on it.
|
|
22
22
|
|
|
23
|
-
Return concise findings, recommendation, tradeoffs, open questions, and implementation implications. Offer a concise proposal only when a real scope or product decision needs it.
|
|
23
|
+
Return concise findings, recommendation, tradeoffs, open questions, and implementation implications. Offer a concise proposal only when a real scope or product decision needs it. Forward these research instructions to an existing fresh general exploration/research worker through the existing delegation mechanism; do not create a specialized agent or create a new workflow. Research remains read-only and requires no new persistence or readiness machinery.
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
The step 3 assumption challenge is independent and allowed even in a small security-critical change. Name the premise, evidence, and consequence; do not start a debate loop. Deterministic failures need fixes, not model debate. The native RDD refuter owns native review claims; never duplicate or bypass it with this challenge.
|
|
26
26
|
|
|
27
|
-
Before building, validate any consequential premise whose failure would invalidate the approach. Reuse relevant findings from sibling investigations instead of repeating the same exploration; verify only what is stale or materially different. During iteration, run focused checks for the behavior being changed, then run the applicable full suite at closure.
|
|
27
|
+
Before building, validate any consequential premise whose failure would invalidate the approach. Reuse relevant findings from sibling investigations instead of repeating the same exploration; verify only what is stale or materially different. During iteration, run focused checks for the behavior being changed, then run the applicable full suite at closure.
|
|
28
28
|
|
|
29
29
|
#### Checks and candidate consent
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
Test-first is the always-on harness principle (test or framework presence alone does not establish applicability); forward this policy, the applicable exact runner and commands (when available), and any exception rationale on every implementation delegation, refresh it on resume, and record observed evidence or the reason for fallback in the feature document.
|
|
32
32
|
|
|
33
33
|
Run applicable functional checks per task; a TODO checkbox never triggers a review cycle. The native review candidate is a work-unit commit or a PR slice, never a TODO checkbox and never the accumulated feature branch, and native review runs at that work-unit commit or PR slice boundary, not every task update. Checklists grant no approval or receipt and never skip an existing delivery gate.
|
|
34
34
|
|
|
35
35
|
#### Signaling the ODD phase to the Gentle prompt
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Cadence and use: the always-on Phase reporting line. Call `gentle_odd_phase` with `clear` only to leave the current phase before its turn ends.
|
|
38
38
|
|
|
39
|
-
When RDD is enabled,
|
|
39
|
+
When RDD is enabled, the injected Gentle AI contract governs native review start, execution and consent; this module adds only assessment and commit boundaries. After each work-unit commit, assess it with `gentle_review` `{"operation":"assess"}` and `{"baseRef":"<last reviewed boundary>","committedOnly":true}`; start at the branch point; each reviewed boundary is the next base. A not-due `passive` commit needs no review and the boundary advances; `under_budget` stays pending in the slice until a later commit reaches the budget. Before a high-risk unit, assess any pending `under_budget` slice. Review the pending slice only when `reviewDue` is true or the user explicitly asks; otherwise preserve the pending boundary and proceed without review. A task boundary neither authorizes review nor advances a reviewed boundary. If assessment fails or is unavailable, report missing assessment proof; never infer `reviewDue`, construct a preflight transition, lower the tier or infer low risk. Record each commit's assessed tier, outcome (not due, granted, declined, unavailable) and `reviewDueReason`. Never replace assessment with model judgment, task size or defect severity. Raise known high-risk candidates with the assess `escalate` field (`orchestrator-verification.md`); never lower one. When RDD is disabled, do not start or prompt for RDD; ordinary checks remain. A checklist or assumption challenge never enables RDD, replaces its refuter, or answers consent.
|
|
40
40
|
|
|
41
41
|
Delivery follows work units. At feature-document creation, forecast authored changed lines (additions plus deletions, generated files excluded) from the task list, and keep a running count from work-unit commits. Choose one delivery strategy per feature: `ask-on-risk` (default), `auto-chain`, `single-pr`, or `exception-ok`. When the forecast or the running count exceeds about 400 authored changed lines, apply the chosen strategy before the next commit: `ask-on-risk` asks once using the ordered oversized-delivery menu; `auto-chain` asks only for a missing chain strategy and slices automatically with a cached choice. When a choice is needed on either chaining path, offer exactly these three semantic outcomes in order:
|
|
42
42
|
|
|
@@ -47,7 +47,3 @@ Delivery follows work units. At feature-document creation, forecast authored cha
|
|
|
47
47
|
Generate the complete user-facing question and every option label, description, and recommendation marker in the active user's conversation language (English for an English user, Spanish for a Spanish user, etc.). Machine strategy tokens remain unchanged and untranslated. These English examples are illustrative and localizable, not mandatory copy.
|
|
48
48
|
|
|
49
49
|
The third choice overrides the pending chaining path: clear the chain choice as inapplicable and suppress later chain prompts. `single-pr` is not a `chain_strategy` token; do not automatically select `exception-ok`. Explain that an oversized single PR increases reviewer load, delays feedback, and couples rollback; least recommended applies only to this oversized menu, not focused ≤400-line single PRs. Follow the destination repository's documented contribution/size policy: `size:exception` is a Gentle-owned repository policy, not a universal label requirement. Never request or add it for generic users unless their destination policy uses it; preserve required maintainer acceptance and protected-label authorization. A single PR needs no tracker, child dependency diagram, or Chain Context. Shape selection does not authorize push, PR creation, merge, or review-mode/consent changes. Cache both choices, and record slice boundaries, which commits each pull request holds, in the feature document when chaining; for single PR, record the whole-PR scope instead. Resolve the `work-unit-commits` and `chained-pr` skills by registry name, never hardcode their paths.
|
|
50
|
-
|
|
51
|
-
## Delivery strategy
|
|
52
|
-
|
|
53
|
-
Use the ODD delivery strategy and work-unit boundaries under Checks and candidate consent above. Push, PR creation, and merge remain human decisions.
|
|
@@ -4,7 +4,7 @@ Parent only: load when Verification fires or a delegated writer returns; not for
|
|
|
4
4
|
|
|
5
5
|
## Verification rule (normative)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**Verification rule** (gentle-pi#661/#662): The bounded writer always runs the exact parent-authorized commands under the delegated task's `## Verification` heading, synchronously and in the foreground, and reports each as `<command>: <observed result>` -- see `gentle-ai-worker`'s Verification contract, including how `## Known environmental failures` (exact pre-existing base failures) differs from any other failing required command, which still forces `status: partial`. After the writer returns, when RDD is validated off, do not require `assess`: the writer's self-verification stands and a named Task Size high-risk item still requires an independent verifier. When RDD is on or unknown, call `gentle_review` with `{"operation":"assess"}` over the writer's diff and follow the returned plan. When the line reads `on`, the native review is an additional outside view of the change; it never replaces or skips the tier's verification, and the tier's verifier runs before review. Pass a known `nativeReviewOutcome`; ASSESS derives `closed` only from the native `candidate.consumed` fact for this exact candidate (gentle-pi#1175), so a caller-supplied `closed` is not authority and, without that fact, resolves to `unknown`; the outcome only explains the plan, never lowers it. The tier table:
|
|
8
8
|
|
|
9
9
|
| Tier | Verification (any RDD state) |
|
|
10
10
|
|---|---|
|
|
@@ -13,9 +13,9 @@ Parent only: load when Verification fires or a delegated writer returns; not for
|
|
|
13
13
|
| high | only through `escalate` naming a Task Size high-risk item: writer self-verification plus one separate `gentle-ai-verify` run |
|
|
14
14
|
| native high, unknown, or assess failed | informs only: writer self-verification stands; escalate when a named high-risk item applies |
|
|
15
15
|
|
|
16
|
-
Validated off skips
|
|
16
|
+
Validated off skips native assessment: its fallback is unassessable/medium, never a fabricated passive result. A direct plan request stays read-only, skipping native assess and target status.
|
|
17
17
|
|
|
18
|
-
The independent verifier runs only when the change touches a named Task Size high-risk item (runtime admits its launch on a `Risk: item N` line or sentence, a feature-document task line, or past the context backstop); never for size, a native tier alone, a failed assessment, or the model or effort that wrote the change. An unknown `Receipt-driven development:` line does not waive named-risk verification. The parent spot check (re-running one reported command before delivery) stays required in every tier. ASSESS takes the writer profile from the runtime-recorded model and effort of the pending mutations for the root; caller `writerModelId`/`writerEffort` are only a fallback when no runtime evidence exists; the writer profile is reported but never adds a verifier. When native reports them, ASSESS also projects `reviewDue`, `reviewDueReason`, `candidate.consumed`, and the native continuation verbatim; relay
|
|
18
|
+
The independent verifier runs only when the change touches a named Task Size high-risk item (runtime admits its launch on a `Risk: item N` line or sentence, a feature-document task line, or past the context backstop); never for size, a native tier alone, a failed assessment, or the model or effort that wrote the change. An unknown `Receipt-driven development:` line does not waive named-risk verification. The parent spot check (re-running one reported command before delivery) stays required in every tier. A passive change that reports no command needs only its readback. ASSESS takes the writer profile from the runtime-recorded model and effort of the pending mutations for the root; caller `writerModelId`/`writerEffort` are only a fallback when no runtime evidence exists; the writer profile is reported but never adds a verifier. When native reports them, ASSESS also projects `reviewDue`, `reviewDueReason`, `candidate.consumed`, and the native continuation verbatim; relay it unchanged; never rebuild it. A native code review is not a substitute for applicable functional checks: tests, builds, and functional verification such as browser checks for UI changes still run, and review outcomes never authorize delivery. The change's own focused test and suite run in the session that made the change.
|
|
19
19
|
|
|
20
20
|
## Agent escalation (gentle-shell#1494)
|
|
21
21
|
|
|
@@ -23,7 +23,9 @@ For Task Size high-risk work when RDD is on or unknown, assess with `"escalate":
|
|
|
23
23
|
|
|
24
24
|
## Verifier preparation failure
|
|
25
25
|
|
|
26
|
-
If setup fails, stop
|
|
26
|
+
A failed verifier setup is a preparation failure, not an unavailable verifier capability. A verifier's self-fix of its own setup error (one correction in the same verification) needs no decision; if it made none, relaunch once with the corrected command, unasked. If setup still fails or lacks prerequisites, stop: one **Needs your decision** naming the blocker and exact unrun checks as unverified; never repair helpers more or auto-relaunch for it. If setup fails before probes, preserve the failed attempt and report zero tests run; the checks remain unverified. Setup/infrastructure failures aren't code findings; tooling defects keep the correction bound. After a setup prerequisite is repaired, the human may explicitly request one new bounded verification attempt. This is a new request, not an automatic retry; it does not reset the prior attempt or unrelated budgets. Before proceeding, confirm no child is active or has an uncertain status. Never bypass consent, a denial, explicit one-run or no-retry limits, terminal native outcomes, or exhausted native budgets; on a relaunch, never blindly repeat an oversized copy. Follow **Authorized work continuity** for setup and worker recovery; scratch: `gentle-ai-verify`.
|
|
27
|
+
|
|
28
|
+
When required proof is unobtainable, one terminal disposition closes a stopped verification: name the missing proof and resume authorized in-scope work at `status: partial` -- never PASS, never silently dropped (gentle-shell#3082).
|
|
27
29
|
|
|
28
30
|
## Verification proportionality
|
|
29
31
|
|
|
@@ -34,7 +36,7 @@ On overengineering warnings, remove or collapse optional artifacts and checks. S
|
|
|
34
36
|
## Parallel review protocol (gentle-shell#1731)
|
|
35
37
|
|
|
36
38
|
1. **Self-review**, required by each writer prompt, in its own session before returning: spec sections by reference (#1713), the request's authorized examples, tests, and typecheck; it fixes and continues (one correction per failing check, a second only if the same check still fails, then `partial`), reporting requirement by requirement. Low and medium risk need nothing else.
|
|
37
|
-
2. **Independent verify per unit**, once, after its final self-review (never per worker cycle or retry), in parallel when several finish together, only when that unit is high risk: its Risk line, or, when RDD is on or unknown, `assess` over its actual diff or the worker's own `escalate` (high-risk list in Task Size), never inferred from the worker's summary alone. When on or unknown, assess via its work-unit commit (`{"baseRef":"<previous>","committedOnly":true}`) or its own isolated worktree.
|
|
38
|
-
3. **Seam check**: after parallel units finish, one
|
|
39
|
-
4. **Verify handoff**: the whole feature document, the assigned unit and its linked `S#` plus affected interactions, the baseline commit, and the probe command forms (tests, CLI, typecheck) for probes on isolated state in a fresh `mktemp -d` scratch copy, never just "read-only"; the runtime removes each subagent's own TMPDIR, which holds that copy; `gentle-ai-verify` holds the checklist. Future or unrelated requirements are out of scope, not unmet; final feature verification covers every `S#`. Resolve every in-scope unmet item before closing the unit; the writer
|
|
40
|
-
5. **One correction**: verify blockers get one correction batch that fixes every reported blocker, then one re-verify limited to those blockers, never a new full sweep.
|
|
39
|
+
2. **Independent verify per unit**, once, after its final self-review (never per worker cycle or retry), in parallel when several finish together, only when that unit is high risk: its Risk line, or, when RDD is on or unknown, `assess` over its actual diff or the worker's own `escalate` (high-risk list in Task Size), never inferred from the worker's summary alone. When on or unknown, assess via its work-unit commit (`{"baseRef":"<previous>","committedOnly":true}`) or its own isolated worktree. Parent-written code over several deliveries of one feature: one verify at the feature's end.
|
|
40
|
+
3. **Seam check**: after parallel units finish, one full-suite command run by the parent (the parent spot check) catches seams between units.
|
|
41
|
+
4. **Verify handoff**: the whole feature document, the assigned unit and its linked `S#` plus affected interactions, the baseline commit, and the probe command forms (tests, CLI, typecheck) for probes on isolated state in a fresh `mktemp -d` scratch copy, never just "read-only"; the runtime removes each subagent's own TMPDIR, which holds that copy; `gentle-ai-verify` holds the checklist. Name the change kind (external tool or environment, prompt or contract text, user-reported failure); for the last, pass verbatim its exact failing command, error text, tool versions and configuration. Run yourself any real-case check the verifier leaves unverified before calling the change verified. Future or unrelated requirements are out of scope, not unmet; final feature verification covers every `S#`. Resolve every in-scope unmet item before closing the unit; the writer adds its probes as regression tests; the parent commits when a commit is authorized.
|
|
42
|
+
5. **One correction**: verify blockers get one correction batch that fixes every reported blocker, then one re-verify limited to those blockers, never a new full sweep. Advisories never start a correction. A second correction runs automatically only when the recheck shows the same blocker still failing; a new finding never earns one. Blockers still open after that stop as one **Needs your decision**. A `partial` or `blocked` writer report gets only this correction, never an extra verify run beyond the risk tier's verifier; partial, blocked, unavailable, or exhausted proof left after it becomes that one **Needs your decision**.
|