gentle-pi 4.7.0 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +115 -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 +14 -13
- 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 +476 -0
- package/assets/design-canvas/canvas-boot.js +219 -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 +397 -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 +219 -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 +351 -0
- package/assets/design-canvas/canvas-sizes.js +524 -0
- package/assets/design-canvas/canvas-store.js +167 -0
- package/assets/design-canvas/canvas-theme.js +69 -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 +773 -17
- package/assets/design-canvas/canvas.js +2 -1506
- package/assets/design-canvas/index.html +120 -36
- package/assets/design-canvas/inspector.js +574 -21
- package/assets/design-canvas/theme-early.js +10 -0
- package/assets/install-wizard/wizard.js +5 -1
- package/assets/migrations/agent-body-history.json +30 -0
- package/assets/orchestrator-delegation-reference.md +8 -14
- package/assets/orchestrator-delegation.md +5 -9
- package/assets/orchestrator-full-delegation-card.md +11 -16
- package/assets/orchestrator-full-delegation.md +9 -9
- package/assets/orchestrator-memory.md +4 -4
- package/assets/orchestrator-prompts.md +3 -31
- package/assets/orchestrator-quota-recovery.md +5 -0
- package/assets/orchestrator-skills.md +13 -12
- package/assets/orchestrator-tracking.md +13 -17
- package/assets/orchestrator-verification.md +12 -10
- package/assets/orchestrator-writer.md +13 -13
- package/assets/orchestrator.md +20 -24
- package/bin/gentle-shell.mjs +205 -10
- package/contracts/review-provider-contract-mirror/provider-contract.lock.json +8 -9
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.6.0}/bundle/manifest.json +3 -3
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.6.0}/bundle/orchestration/pi.md +2 -1
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.6.0}/bundle/routing/pi.md +16 -16
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.6.0}/generated/provider-capabilities.baseline.json +3 -3
- package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.6.0}/generated/provider-roles.baseline.json +1 -1
- package/docs/assets/brand/sponsor-banner.svg +60 -0
- package/docs/assets/features/gentle-tower.png +0 -0
- package/docs/auto-permission-answers.md +1 -1
- package/docs/bundled-install.md +14 -6
- package/docs/delegated-verification.md +23 -5
- package/docs/desktop-feed.md +303 -0
- package/docs/desktop-rpc.md +1931 -0
- package/docs/fast-mode.md +2 -2
- package/docs/gentle-agents-activity.md +26 -0
- package/docs/gentle-shell-desktop.md +465 -0
- package/docs/gentle-shell.md +102 -17
- package/docs/images/desktop/chat.png +0 -0
- package/docs/images/desktop/palette.png +0 -0
- package/docs/images/desktop/todo.png +0 -0
- 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 +113 -32
- package/docs/review-coordinator.md +29 -9
- package/docs/review-delivery-preflight.md +22 -0
- package/docs/work-continuity.md +19 -6
- package/extensions/ask-user-choice.ts +36 -18
- package/extensions/ask-user-question.ts +48 -9
- package/extensions/child-context.ts +21 -7
- package/extensions/gentle-agents.ts +436 -66
- package/extensions/gentle-ai.ts +809 -158
- package/extensions/gentle-design.ts +69 -3
- package/extensions/gentle-desktop-feed.ts +778 -0
- package/extensions/gentle-desktop-rpc.ts +276 -0
- package/extensions/gentle-guide.ts +3 -0
- package/extensions/gentle-herdr-desktop-status.ts +275 -0
- package/extensions/gentle-shell.ts +174 -59
- package/extensions/gentle-stats.ts +30 -1
- package/extensions/gentle-todo.ts +48 -25
- package/extensions/gentle-tower.ts +305 -0
- package/extensions/skill-registry.ts +260 -225
- package/herdr/RECIPE.md +157 -0
- package/herdr/keys.json +14 -0
- package/herdr/layouts/gentle-shell.json +202 -0
- package/herdr/mods/gentle-agents/icons/kind-herdr.svg +1 -0
- package/herdr/mods/gentle-agents/icons/kind-remote.svg +1 -0
- package/herdr/mods/gentle-agents/icons/kind-tui.svg +1 -0
- package/herdr/mods/gentle-agents/main.js +190 -0
- package/herdr/mods/gentle-agents/mod.json +1 -0
- package/herdr/mods/gentle-agents/snapshot.js +469 -0
- package/herdr/mods/gentle-agents/tokens.js +273 -0
- package/herdr/mods/gentle-chat/MINIMAL.md +69 -0
- package/herdr/mods/gentle-chat/actions.js +180 -0
- package/herdr/mods/gentle-chat/feed.js +321 -0
- package/herdr/mods/gentle-chat/icons/branch.svg +1 -0
- package/herdr/mods/gentle-chat/icons/chat.svg +1 -0
- package/herdr/mods/gentle-chat/icons/check.svg +1 -0
- package/herdr/mods/gentle-chat/icons/chev.svg +1 -0
- package/herdr/mods/gentle-chat/icons/clip.svg +1 -0
- package/herdr/mods/gentle-chat/icons/down.svg +1 -0
- package/herdr/mods/gentle-chat/icons/folder.svg +1 -0
- package/herdr/mods/gentle-chat/icons/kind-herdr.svg +1 -0
- package/herdr/mods/gentle-chat/icons/kind-remote.svg +1 -0
- package/herdr/mods/gentle-chat/icons/kind-tui.svg +1 -0
- package/herdr/mods/gentle-chat/icons/mark.svg +1 -0
- package/herdr/mods/gentle-chat/icons/send.svg +1 -0
- package/herdr/mods/gentle-chat/icons/shield.svg +1 -0
- package/herdr/mods/gentle-chat/icons/stop.svg +1 -0
- package/herdr/mods/gentle-chat/icons/term.svg +1 -0
- package/herdr/mods/gentle-chat/icons/user.svg +1 -0
- package/herdr/mods/gentle-chat/icons/x.svg +1 -0
- package/herdr/mods/gentle-chat/main.js +968 -0
- package/herdr/mods/gentle-chat/mod.json +1 -0
- package/herdr/mods/gentle-chat/session.js +212 -0
- package/herdr/mods/gentle-chat/snapshot.js +469 -0
- package/herdr/mods/gentle-chat/tokens.js +137 -0
- package/herdr/mods/gentle-chat/ui.js +883 -0
- package/herdr/mods/gentle-confirm/main.js +60 -0
- package/herdr/mods/gentle-confirm/mod.json +1 -0
- package/herdr/mods/gentle-inspector/actions.js +180 -0
- package/herdr/mods/gentle-inspector/icons/bolt.svg +1 -0
- package/herdr/mods/gentle-inspector/icons/bot.svg +1 -0
- package/herdr/mods/gentle-inspector/icons/check.svg +1 -0
- package/herdr/mods/gentle-inspector/icons/db.svg +1 -0
- package/herdr/mods/gentle-inspector/icons/diff.svg +1 -0
- package/herdr/mods/gentle-inspector/icons/jobs.svg +1 -0
- package/herdr/mods/gentle-inspector/icons/plug.svg +1 -0
- package/herdr/mods/gentle-inspector/icons/review.svg +1 -0
- package/herdr/mods/gentle-inspector/icons/stats.svg +1 -0
- package/herdr/mods/gentle-inspector/icons/stop.svg +1 -0
- package/herdr/mods/gentle-inspector/icons/todo.svg +1 -0
- package/herdr/mods/gentle-inspector/main.js +500 -0
- package/herdr/mods/gentle-inspector/mod.json +1 -0
- package/herdr/mods/gentle-inspector/snapshot.js +469 -0
- package/herdr/mods/gentle-inspector/tokens.js +273 -0
- package/herdr/mods/gentle-palette/actions.js +180 -0
- package/herdr/mods/gentle-palette/icons/bolt.svg +1 -0
- package/herdr/mods/gentle-palette/icons/bot.svg +1 -0
- package/herdr/mods/gentle-palette/icons/chat.svg +1 -0
- package/herdr/mods/gentle-palette/icons/check.svg +1 -0
- package/herdr/mods/gentle-palette/icons/cmd.svg +1 -0
- package/herdr/mods/gentle-palette/icons/diff.svg +1 -0
- package/herdr/mods/gentle-palette/icons/jobs.svg +1 -0
- package/herdr/mods/gentle-palette/icons/plus.svg +1 -0
- package/herdr/mods/gentle-palette/icons/review.svg +1 -0
- package/herdr/mods/gentle-palette/icons/search.svg +1 -0
- package/herdr/mods/gentle-palette/icons/shield.svg +1 -0
- package/herdr/mods/gentle-palette/icons/stats.svg +1 -0
- package/herdr/mods/gentle-palette/icons/stop.svg +1 -0
- package/herdr/mods/gentle-palette/icons/term.svg +1 -0
- package/herdr/mods/gentle-palette/icons/todo.svg +1 -0
- package/herdr/mods/gentle-palette/main.js +333 -0
- package/herdr/mods/gentle-palette/mod.json +1 -0
- package/herdr/mods/gentle-palette/snapshot.js +469 -0
- package/herdr/mods/gentle-palette/tokens.js +273 -0
- package/herdr/mods/gentle-pane/icons/chat.svg +1 -0
- package/herdr/mods/gentle-pane/icons/close.svg +1 -0
- package/herdr/mods/gentle-pane/icons/kind-herdr.svg +1 -0
- package/herdr/mods/gentle-pane/icons/kind-remote.svg +1 -0
- package/herdr/mods/gentle-pane/icons/kind-tui.svg +1 -0
- package/herdr/mods/gentle-pane/icons/split-down.svg +1 -0
- package/herdr/mods/gentle-pane/icons/split-right.svg +1 -0
- package/herdr/mods/gentle-pane/icons/term.svg +1 -0
- package/herdr/mods/gentle-pane/icons/unzoom.svg +1 -0
- package/herdr/mods/gentle-pane/icons/zoom.svg +1 -0
- package/herdr/mods/gentle-pane/main.js +91 -0
- package/herdr/mods/gentle-pane/mod.json +1 -0
- package/herdr/mods/gentle-pane/snapshot.js +469 -0
- package/herdr/mods/gentle-pane/tokens.js +273 -0
- package/herdr/mods/gentle-sidebar/actions.js +180 -0
- package/herdr/mods/gentle-sidebar/icons/gear.svg +1 -0
- package/herdr/mods/gentle-sidebar/icons/mark.svg +1 -0
- package/herdr/mods/gentle-sidebar/icons/refresh.svg +1 -0
- package/herdr/mods/gentle-sidebar/icons/server-plus.svg +1 -0
- package/herdr/mods/gentle-sidebar/main.js +171 -0
- package/herdr/mods/gentle-sidebar/mod.json +1 -0
- package/herdr/mods/gentle-sidebar/snapshot.js +469 -0
- package/herdr/mods/gentle-sidebar/tokens.js +273 -0
- package/herdr/mods/gentle-spaces/icons/kind-herdr.svg +1 -0
- package/herdr/mods/gentle-spaces/icons/kind-remote.svg +1 -0
- package/herdr/mods/gentle-spaces/icons/kind-tui.svg +1 -0
- package/herdr/mods/gentle-spaces/icons/monitor.svg +1 -0
- package/herdr/mods/gentle-spaces/icons/plus.svg +1 -0
- package/herdr/mods/gentle-spaces/icons/server.svg +1 -0
- package/herdr/mods/gentle-spaces/machines.js +31 -0
- package/herdr/mods/gentle-spaces/main.js +299 -0
- package/herdr/mods/gentle-spaces/mod.json +1 -0
- package/herdr/mods/gentle-spaces/snapshot.js +469 -0
- package/herdr/mods/gentle-spaces/tokens.js +273 -0
- package/herdr/mods/gentle-status/actions.js +180 -0
- package/herdr/mods/gentle-status/main.js +192 -0
- package/herdr/mods/gentle-status/mod.json +1 -0
- package/herdr/mods/gentle-status/snapshot.js +469 -0
- package/herdr/mods/gentle-status/tokens.js +273 -0
- package/herdr/mods/gentle-tabs/icons/close.svg +1 -0
- package/herdr/mods/gentle-tabs/icons/kind-herdr.svg +1 -0
- package/herdr/mods/gentle-tabs/icons/kind-remote.svg +1 -0
- package/herdr/mods/gentle-tabs/icons/kind-tui.svg +1 -0
- package/herdr/mods/gentle-tabs/icons/plus.svg +1 -0
- package/herdr/mods/gentle-tabs/icons/win-close.svg +1 -0
- package/herdr/mods/gentle-tabs/icons/win-max.svg +1 -0
- package/herdr/mods/gentle-tabs/icons/win-min.svg +1 -0
- package/herdr/mods/gentle-tabs/icons/win-restore.svg +1 -0
- package/herdr/mods/gentle-tabs/main.js +171 -0
- package/herdr/mods/gentle-tabs/mod.json +1 -0
- package/herdr/mods/gentle-tabs/snapshot.js +469 -0
- package/herdr/mods/gentle-tabs/tokens.js +273 -0
- package/herdr/mods/gentle-tokens/main.js +20 -0
- package/herdr/mods/gentle-tokens/mod.json +1 -0
- package/herdr/mods/gentle-tokens/snapshot.js +469 -0
- package/herdr/mods/gentle-tokens/tokens.js +273 -0
- package/herdr/preview.png +0 -0
- package/herdr/themes/gentle-shell-dark.json +33 -0
- package/herdr/themes/gentle-shell-light.json +34 -0
- 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 +17 -0
- package/lib/agents-report-cap.ts +115 -0
- package/lib/agents-rpc-publisher.ts +39 -12
- package/lib/agents-runner.ts +92 -6
- package/lib/agents-session-transport.ts +17 -1
- package/lib/auto-permission-answers.ts +2 -1
- package/lib/background-jobs-tools.ts +9 -4
- package/lib/background-jobs.ts +22 -2
- package/lib/bounded-writer-admission.ts +184 -31
- package/lib/change-diff.ts +104 -0
- package/lib/child-context-files.ts +21 -6
- package/lib/codemode-renderer.ts +1 -0
- package/lib/commit-slice-signal.ts +1 -1
- package/lib/delivery-conflict-markers.ts +349 -0
- package/lib/design-canvas-assets.ts +38 -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 +315 -0
- package/lib/desktop-changes-service.ts +171 -0
- package/lib/desktop-design-service.ts +233 -0
- package/lib/desktop-feed-actions.ts +804 -0
- package/lib/desktop-feed-answers.ts +129 -0
- package/lib/desktop-feed-sources.ts +184 -0
- package/lib/desktop-feed-stats.ts +98 -0
- package/lib/desktop-feed-store.ts +124 -0
- package/lib/desktop-feed.ts +788 -0
- package/lib/desktop-jobs-service.ts +290 -0
- package/lib/desktop-review-service.ts +187 -0
- package/lib/desktop-rpc-agents.ts +403 -0
- package/lib/desktop-rpc-changes.ts +223 -0
- package/lib/desktop-rpc-config-watch.ts +285 -0
- package/lib/desktop-rpc-config.ts +885 -0
- package/lib/desktop-rpc-design.ts +138 -0
- package/lib/desktop-rpc-jobs.ts +290 -0
- package/lib/desktop-rpc-permissions.ts +328 -0
- package/lib/desktop-rpc-profiles.ts +196 -0
- package/lib/desktop-rpc-review.ts +180 -0
- package/lib/desktop-rpc-session.ts +203 -0
- package/lib/desktop-rpc-sessions.ts +250 -0
- package/lib/desktop-rpc-stats.ts +187 -0
- package/lib/desktop-rpc-updates.ts +143 -0
- package/lib/desktop-rpc-usage.ts +229 -0
- package/lib/desktop-rpc.ts +336 -0
- package/lib/desktop-session-service.ts +223 -0
- package/lib/desktop-sessions-service.ts +249 -0
- package/lib/desktop-stats-service.ts +142 -0
- package/lib/desktop-updates-service.ts +268 -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/gentle-shell-desktop.ts +1370 -0
- package/lib/gentle-shell-launcher.ts +45 -3
- package/lib/herdr-desktop-events.ts +40 -0
- package/lib/herdr-desktop-status.ts +229 -0
- package/lib/hidden-tools.ts +35 -0
- package/lib/inprocess-reviewer.ts +96 -12
- package/lib/jobs-sidebar-state.ts +5 -0
- 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 +86 -4
- package/lib/openai-fast-tier.ts +1 -0
- 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/session-profile-freeze.ts +13 -5
- package/lib/shell-prompt.ts +16 -3
- package/lib/shell-usage.ts +10 -0
- package/lib/stats-collector.ts +56 -27
- package/lib/tower-actions.ts +100 -0
- package/lib/tower-hub.ts +73 -0
- package/lib/tower-launch.ts +111 -0
- package/lib/tower-open.ts +99 -0
- package/lib/tower-presence.ts +70 -0
- package/lib/tower-server.ts +234 -0
- package/lib/tower-snapshot.ts +298 -0
- package/lib/update-status.ts +238 -0
- package/lib/verifier-settle-reminder.ts +1 -1
- 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 +14 -5
- package/prompts/skill-creation.md +1 -10
- package/runtime/design-canvas-assets.mjs +39 -0
- package/runtime/gentle-shell-bundled.mjs +100 -9
- package/runtime/gentle-shell-desktop.mjs +1371 -0
- package/runtime/gentle-shell-launcher.mjs +44 -2
- package/runtime/native-review-cli.mjs +86 -4
- package/runtime/review-integration-v2.mjs +56 -3
- package/runtime/tower-actions.mjs +101 -0
- package/runtime/tower-hub.mjs +74 -0
- package/runtime/tower-launch.mjs +112 -0
- package/runtime/tower-open.mjs +100 -0
- package/runtime/tower-presence.mjs +71 -0
- package/runtime/tower-server.mjs +234 -0
- package/runtime/tower-snapshot.mjs +299 -0
- package/scripts/bootstrap.cmd +2 -2
- package/scripts/bootstrap.sh +41 -4
- package/scripts/build-full-delegation-card.mjs +5 -21
- package/scripts/build-runtime-modules.mjs +10 -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 +61 -20
- 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/provider-defect-report/SKILL.md +61 -0
- 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 +26 -7
- package/tests/approved-text-leftovers-contract.test.ts +136 -0
- package/tests/artifact-language.test.ts +1 -1
- package/tests/ask-user-choice.test.ts +78 -21
- package/tests/ask-user-question.test.ts +61 -6
- package/tests/audit-leftovers-contract.test.ts +51 -0
- package/tests/auto-permission-answers.test.ts +12 -1
- package/tests/background-jobs.test.ts +12 -0
- package/tests/bounded-stop-contract.test.ts +148 -27
- package/tests/branch-pr-skill.test.ts +10 -1
- package/tests/bundled-install.test.ts +1 -1
- package/tests/change-diff.test.ts +75 -0
- 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/commit-slice-signal.test.ts +3 -2
- package/tests/decision-routing-contract.test.ts +390 -0
- package/tests/delegate-for-reason-contract.test.ts +30 -8
- package/tests/delegated-key-learnings-contract.test.ts +21 -28
- package/tests/delivery-b-rendered-surfaces.test.ts +32 -0
- 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 +528 -0
- package/tests/design-canvas-inspector.test.ts +1004 -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 +91 -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 +189 -0
- package/tests/design-canvas-theme.test.ts +198 -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-feed-actions-guards.test.ts +595 -0
- package/tests/desktop-feed-actions.test.ts +761 -0
- package/tests/desktop-feed-live-work.test.ts +209 -0
- package/tests/desktop-feed-performance.test.ts +369 -0
- package/tests/desktop-feed-plan-profiles.test.ts +509 -0
- package/tests/desktop-feed-send-prompt.test.ts +303 -0
- package/tests/desktop-feed-tool-summaries.test.ts +69 -0
- package/tests/desktop-feed.test.ts +615 -0
- package/tests/desktop-rpc-agents.test.ts +1319 -0
- package/tests/desktop-rpc-changes.test.ts +608 -0
- package/tests/desktop-rpc-config-watch.test.ts +1159 -0
- package/tests/desktop-rpc-config.test.ts +1462 -0
- package/tests/desktop-rpc-design.test.ts +672 -0
- package/tests/desktop-rpc-jobs.test.ts +1193 -0
- package/tests/desktop-rpc-permissions.test.ts +321 -0
- package/tests/desktop-rpc-profiles.test.ts +140 -0
- package/tests/desktop-rpc-review.test.ts +678 -0
- package/tests/desktop-rpc-safety.test.ts +119 -0
- package/tests/desktop-rpc-session.test.ts +642 -0
- package/tests/desktop-rpc-sessions.test.ts +647 -0
- package/tests/desktop-rpc-stats.test.ts +431 -0
- package/tests/desktop-rpc-updates.test.ts +525 -0
- package/tests/desktop-rpc-usage.test.ts +707 -0
- package/tests/desktop-rpc.test.ts +293 -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 +30 -41
- package/tests/fixtures/refusal-identity.probe.mjs +139 -0
- package/tests/fixtures/session-profile-v1/replay.ts +4 -1
- package/tests/full-delegation-closure.test.ts +48 -0
- package/tests/gentle-agents.test.ts +848 -8
- 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 +195 -21
- package/tests/gentle-design.test.ts +365 -1
- package/tests/gentle-fast.test.ts +15 -0
- package/tests/gentle-herdr-desktop-status.test.ts +595 -0
- package/tests/gentle-shell-bundled.test.ts +91 -5
- package/tests/gentle-shell-desktop-bin.test.ts +125 -0
- package/tests/gentle-shell-desktop.test.ts +927 -0
- package/tests/gentle-shell-launcher-tower.test.ts +104 -0
- package/tests/gentle-shell-launcher.test.ts +1 -1
- package/tests/gentle-shell.test.ts +121 -87
- package/tests/gentle-todo.test.ts +32 -9
- package/tests/gentle-tower.test.ts +578 -0
- package/tests/herdr-desktop-status.test.ts +285 -0
- package/tests/hidden-tools.test.ts +188 -0
- package/tests/independent-recovery-delivery.test.ts +35 -9
- 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 +181 -0
- package/tests/maintainer/desktop-rpc.maintest.ts +907 -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 +19 -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 +33 -15
- package/tests/odd-integration.test.ts +11 -3
- package/tests/odd-routing-canonical-ratchet.test.ts +10 -0
- package/tests/odd-routing-contract.test.ts +99 -31
- package/tests/orchestrator-budget.test.ts +32 -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 +12 -2
- package/tests/orchestrator-prompt-diet-contract.test.ts +249 -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 +15 -14
- 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-routing-measured-values.test.ts +24 -0
- 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/primary-session-prompt.test.ts +25 -0
- package/tests/profile-fast-tier.test.ts +66 -1
- package/tests/provider-defect-handoff.test.ts +124 -99
- 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 +2 -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 +27 -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/sensitive-path-tools.test.ts +138 -4
- package/tests/session-profile-extension.test.ts +312 -18
- package/tests/session-profile-freeze.test.ts +26 -0
- package/tests/session-profile-v1-compat.test.ts +20 -0
- package/tests/shell-prompt.test.ts +17 -0
- package/tests/shell-usage.test.ts +59 -10
- package/tests/skill-collision-prefixes.test.ts +1 -0
- package/tests/skill-contradictions-contract.test.ts +124 -0
- package/tests/skill-registry-watcher.test.ts +216 -2
- package/tests/skill-registry.test.ts +983 -306
- package/tests/stats-collector.test.ts +109 -2
- package/tests/support/design-canvas-dom.ts +386 -0
- package/tests/support/review-coordinator-runtime.ts +212 -17
- package/tests/task-size-routing-contract.test.ts +49 -14
- 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/tower-actions.test.ts +247 -0
- package/tests/tower-artifacts.test.ts +114 -0
- package/tests/tower-open.test.ts +97 -0
- package/tests/tower-presence.test.ts +175 -0
- package/tests/tower-server.test.ts +122 -0
- package/tests/tower-snapshot.test.ts +236 -0
- package/tests/tower-web-echo.test.ts +125 -0
- package/tests/tower-web-hover.test.ts +251 -0
- package/tests/update-agent-body-history.test.ts +138 -0
- package/tests/verification-scoped-stop-contract.test.ts +32 -0
- package/tests/verification-tiers-contract.test.ts +229 -0
- package/tests/verifier-preparation.test.ts +229 -0
- package/tests/verifier-settle-reminder.test.ts +2 -2
- package/tests/verify-agent-contract.test.ts +20 -2
- package/tests/verify-first-launch-contract.test.ts +88 -12
- package/tests/vim-editor-adapter.test.ts +2 -2
- package/tests/work-continuity-contract.test.ts +136 -27
- 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/writer-rejection-next-step.test.ts +55 -0
- package/tests/writer-surface-authority-contract.test.ts +158 -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.6.0}/bundle/README.md +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.6.0}/bundle/schemas/lens.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.6.0}/bundle/schemas/refuter.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.6.0}/bundle/schemas/targeted-validator.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.6.0}/bundle/vectors/lens.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.6.0}/bundle/vectors/refuter.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.4.0 → v1.6.0}/bundle/vectors/targeted-validator.json +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// The canvas theme, before the first frame: a classic script loaded synchronously in index.html's <head>
|
|
2
|
+
// (the canvas CSP allows no inline script), so a saved Gentleman never shows Neutral for a frame on reload.
|
|
3
|
+
// The same rule as canvas-theme.js's storedTheme(): only an exact "gentleman" under gentle-design:theme sets
|
|
4
|
+
// data-theme; anything else, or any error, leaves :root's Neutral. canvas-theme.js (startTheme) then applies
|
|
5
|
+
// the saved theme again and keeps it in the store: it stays the source of truth.
|
|
6
|
+
try {
|
|
7
|
+
if (localStorage.getItem("gentle-design:theme") === "gentleman") document.documentElement.setAttribute("data-theme", "gentleman");
|
|
8
|
+
} catch {
|
|
9
|
+
// Storage blocked or unavailable: Neutral.
|
|
10
|
+
}
|
|
@@ -201,6 +201,7 @@ export function planModel(view) {
|
|
|
201
201
|
kind,
|
|
202
202
|
actions,
|
|
203
203
|
blockers,
|
|
204
|
+
...(persistence.replacesNode === true ? { replacesNode: true } : {}),
|
|
204
205
|
// S6: reused tools in folders another account can change; a notice, never a blocker.
|
|
205
206
|
notice: typeof view?.sharedFolders?.description === "string" ? text(view.sharedFolders.description) : null,
|
|
206
207
|
// A missing Git: noted before consent, never a blocker.
|
|
@@ -218,7 +219,8 @@ export function planModel(view) {
|
|
|
218
219
|
id: "persistence",
|
|
219
220
|
title: kind === "bundled" ? "Gentle Shell's own runtimes" : "Runtimes under PNPM_HOME",
|
|
220
221
|
changes: tools.length > 0,
|
|
221
|
-
state: kind === "bundled" ? `Uses its own ${tools.join(", ")}` : tools.length > 0
|
|
222
|
+
state: kind === "bundled" ? `Uses its own ${tools.join(", ")}` : tools.length > 0
|
|
223
|
+
? `Will ${persistence.replacesNode === true ? "install" : "add"} ${tools.join(", ")}` : "No change",
|
|
222
224
|
text: text(persistence.description),
|
|
223
225
|
detail: typeof persistence.pnpmHome === "string" ? persistence.pnpmHome : null,
|
|
224
226
|
},
|
|
@@ -529,6 +531,8 @@ export function renderPlan(doc, model, handlers) {
|
|
|
529
531
|
? "The installer runs only the steps listed above and updates only Pi, never to an older version."
|
|
530
532
|
: installingPi
|
|
531
533
|
? "The installer runs only the steps listed above and adds only Pi. Existing installations are not replaced."
|
|
534
|
+
: model.replacesNode
|
|
535
|
+
? "The installer runs only the steps listed above."
|
|
532
536
|
: piUpdate
|
|
533
537
|
? "The installer runs only the steps listed above. Existing installations are not replaced, except the older Pi it updates."
|
|
534
538
|
: "The installer runs only the steps listed above. Existing installations are not replaced."))),
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"bodies": {
|
|
4
4
|
"agents/gentle-ai-explore.md": [
|
|
5
5
|
"1436a9d11151b23a3b78ca42fe94658d7f074af38136b471cd4c015aa0dfff26",
|
|
6
|
+
"329659acf78df0dbcb1d6dbd386ee40e816bcb2ad433193628c20f12bdb31cb2",
|
|
6
7
|
"389c74cc4d949acaad20f21a13606755f46a73e74f07325851d44c445b1b689b",
|
|
8
|
+
"46fcf933245b9a9920839919e1501a264a9dca94298b9af7a25b6bb6c07f4fcd",
|
|
7
9
|
"956418197652f430b1a4339c2912f11f3df64374751667759bdc84346f2508a0",
|
|
8
10
|
"a37cf617e8819e9ddc33c385f55520d70522c5bce77592dd997fe73fe0c36a00",
|
|
9
11
|
"ab0510e040ae7c2293ecf334153b1d91482a3ec79ea4bda6db97027db08a0144",
|
|
@@ -14,18 +16,27 @@
|
|
|
14
16
|
"f2edcf189dacb0f3294f0c0c2039374ce612543182b78c4a410687bc61e6375f"
|
|
15
17
|
],
|
|
16
18
|
"agents/gentle-ai-verify.md": [
|
|
19
|
+
"03f16dd23cde5c340ff04759d04672724d1debdde45448d5440cc7ce9a0cfc0c",
|
|
17
20
|
"0c8df3faa0ed131fc621f716b13d3fcd9eae7763412a479e696cecf751d653b4",
|
|
18
21
|
"0ddacbfbe1d61d6ef984b9b621ca36b745ff3841e9ca16ac5983706d3a081cd7",
|
|
19
22
|
"0eaaa30d4ca6f32a7281929beddb7769645534c6089bf3a6b88ada61fd8d4ec5",
|
|
20
23
|
"106ffe40e2a7cd5a81200ee2c333c72672baa24d28d2808b8d0179913c462c14",
|
|
24
|
+
"1a3dad973d61938532d2035a56cf8257c7055ab42e8f2c003fe23203beed8a90",
|
|
21
25
|
"24eb8897439b63eee8d03e8292ea337c15438cd2d647fbb38e19e7caf613bc78",
|
|
26
|
+
"2934d0363b2f9a59ed976ee67f13d0bd722c1b0f1e433a26b64b1dcd20727358",
|
|
27
|
+
"2a20c972405953c9b0b16ceb0203240fcf3b0385dde238f009471fc9809b3537",
|
|
22
28
|
"2d77c1ddd78c3402381f8d8e336e261e7354e6a5a482f3cf2d3d988c0a59a7eb",
|
|
23
29
|
"375a4c092c2a52e1d7ddd2ef68d9c374d90ae62b85c0096ce0e3374f6eb05402",
|
|
24
30
|
"45d4c9c8960a4975e0ae8406fcfb8e925f4bccdbc459cc111e538be9d621b091",
|
|
31
|
+
"539a7b18cf72fd6873addb50765412e36eb6582b0981accd4d5968d500acae59",
|
|
32
|
+
"5e6b5a44ae0c0ea6cf2ddfa4ecf5f6b906bcad4dccb0d975358589ec2428778f",
|
|
25
33
|
"62b61daf53459b21dca599667e49e66a87c8e25894eb02ddff5d334fa1bd159a",
|
|
26
34
|
"642de8acfc92b3d3351cc0eef70d96b2c0d836b37ba322c8426f76ae6d44f8b6",
|
|
27
35
|
"655a3089deb63c94de24e741e5a50d4bcf9435a7ecefe2ca1bc9d3b5de994383",
|
|
36
|
+
"74cf537c069cc9a37e1f9168686ea69be75a5afa8e942a1d73f0dce2ee5fdf08",
|
|
28
37
|
"7c93729f53c733c92acb37af89344c5b9446658c9bf110ad7276569937e28352",
|
|
38
|
+
"8731842efe9cc996100d3e45be51461cb18507af87ea9fbe6c6321175d273529",
|
|
39
|
+
"8826a25092c69b1870cf70505a05ec1ab95645dd6c302c6a4cdefe620b86f7a4",
|
|
29
40
|
"8b5828c1631392ea3f7e34927279d942af7886203623ef6cdc5e612e60edc690",
|
|
30
41
|
"8cfa5a7b20e16b7577823204205824c79b4658b9f664fdc0ff03915bd39476d4",
|
|
31
42
|
"92aa296e777badc756a5d2f1a527ac6b2db6b17bdce738f100ed4f0ae1a1dc75",
|
|
@@ -33,23 +44,31 @@
|
|
|
33
44
|
"a1a7913bf7efa76bfc667be281b0f3ce7e2ca32338377cc340d809020730e63f",
|
|
34
45
|
"b958fa5e29675034280a18b556b9b7ea90d5a5ffdcc7207abdcb24c62ff555e1",
|
|
35
46
|
"c47a862f31ad1833e3cf2f540079db32caae1b00ddb8a617deddc00059317bf5",
|
|
47
|
+
"ce5040df85726c47a7755d71ab3822430c40451661f22ad0ceabb046fe76ebb8",
|
|
36
48
|
"dc5712ef3fcc30de3fbef08805769e00903206d22f8feef0faee5e73d209ebba",
|
|
49
|
+
"e508f1e15fb3e95478b3b3f6ba1be39eb03d3b327f90e3b1ab8a786c04dbbf98",
|
|
37
50
|
"e791567f661f06017c6ed6d7bfc8357029516eb40525da39eb00a0525587ebf3",
|
|
38
51
|
"e85f2da2bb4fc40e0662e37b5afcb050ba00704fbcb32eaec58b32ab95a47fe5",
|
|
52
|
+
"e9fc684f908df5fb2e889d6b2ae9e3abfc08b6e3373fe07c0ffd64ce0a2d7d09",
|
|
39
53
|
"ea9b01f6f97a12ed37471b86d338f3d4d6a1decba806464b085817ae0057961d",
|
|
40
54
|
"ece25e172a3f3c4614040da00cdeaf4fad2c3d8c62cfe02ca9c184f46d01c752",
|
|
55
|
+
"f1614b54c5121ee510bc86cfcfcd24958a7340ec64927620e25cc2f284edcd3e",
|
|
56
|
+
"f71ff8564ec1732c9e627cadd02c75b3ec613265bd0aaffc4981ba9eee254025",
|
|
41
57
|
"fd074e7cf5ecc25ec334d2c8db7d0507bb14061074157158199a90ac0af0a3d0"
|
|
42
58
|
],
|
|
43
59
|
"agents/gentle-ai-worker.md": [
|
|
44
60
|
"0000cf664ae3d7186f861a65a0635eb738afa0c59b492906af5cb4c4e666c418",
|
|
45
61
|
"0cddd8508e4f0ce34ecd06e48cfd4037e9ec5bb0fdc3d77ff40537b110b931d1",
|
|
46
62
|
"1178dcf29e31ebdf81c8667c89da604f186f1056a629aa1993424fa25d90b111",
|
|
63
|
+
"1ac78ef187a1ce21b27f6a656eea0307eaeec0e581d633e8ddb4106fa838dc5e",
|
|
47
64
|
"1bbe61ae83655f349a2a813f8a59f7ddde15f9d730d706e5b23b1d72a24eba78",
|
|
48
65
|
"26feb5e62e54494799b388cbb959c8ec4f94e9530555ddde9a64dac2fbb04938",
|
|
49
66
|
"42e39b8659926d6509dc42dac8beb2d1a8876e1a9507cb3f93f417e041566230",
|
|
50
67
|
"4caf5a849e40aea3fdaa060a0ae1aecccf510d1440a01de1a3e356c391420b21",
|
|
68
|
+
"4d481fe886e76bb2c98fc163e0048eac54b5b0ee0147ff55308921d7eddd03d9",
|
|
51
69
|
"5864fda40e03b74748cb3de4815440bba22a0d28bc39eff129c1fd6097ee8808",
|
|
52
70
|
"6010bc8878d509ce606b48dd11ef1655565dcdeb58e54f15fceaf45a5d6d3d5b",
|
|
71
|
+
"62ca04031f71b5b5defe4c2a08c51a61b8e42ae34c8988a40045c05ac587c0ee",
|
|
53
72
|
"62db7da32efc8481c229d88203d302b6c35a608d04d3c827ed23f8ae3f233dbb",
|
|
54
73
|
"67c05b8230edb04e32b6e4170a1a1e4aea32d1f06654f32c25c7bb036711c260",
|
|
55
74
|
"6b0f46ae30ae40c3c02ef6e59f4d8e24d79e9c99142f5d98d431e44d4f7b6afd",
|
|
@@ -57,6 +76,7 @@
|
|
|
57
76
|
"844d72d6158e7b7727ec6e26454bfe684e704e8f705f19487a689db0de441f41",
|
|
58
77
|
"86063adefe9a61b8c4a9ae13a96f03704a7fd6dcf814650d5cb945fb9edc4363",
|
|
59
78
|
"891abb5122bf7df043393739a3b27a197dd5c04aa82f92a4807beb878571c627",
|
|
79
|
+
"8d28996b00391b3f10afc617f34d241949b5f41ef41e45bbcb2496950651ab9b",
|
|
60
80
|
"92547d91843f2e9642305c6607b03c90063962237ff9e11c46d3f2ff4604ebe4",
|
|
61
81
|
"9c02d247e11d89fbde5975d13cb3fd8d74ded6c6b8777c91db7c083d7db0f26b",
|
|
62
82
|
"9c1646f893904d1fe6da24c592b90ae214ef8e7429de840225066b2a1b204081",
|
|
@@ -66,6 +86,8 @@
|
|
|
66
86
|
"b96f8e062ec534c13510bfefee46bb31cf9ca65f437fbb601b322461ef8fbbf9",
|
|
67
87
|
"c08804e7674aa1908baf7992c006ae641bd9ccea155506f5304f3e782a02703d",
|
|
68
88
|
"c317b419b95e33b25809575a1f9508068dddd95fd7a49faa6e767f58f0cff136",
|
|
89
|
+
"cd29ec67703a5b61350f247db3659c1cba3e3b42875bb0f3af43601c3a724f3e",
|
|
90
|
+
"d3c3ad1031d73edea785c7c915a1ed9e7fea8434c29f50c7ccbd76efaaa7753a",
|
|
69
91
|
"e3751bc757d3f2d5a809d08791778e689a606ac8662614995401d0a7a2f5f227",
|
|
70
92
|
"e4e19c666892c5fdc789a5555485873d7a2a644064dfec9771fcfb224dd34040",
|
|
71
93
|
"e9d2a7babaef1fb3fb62133cd122914fc38c1e6b7015b307cb1542278311b121",
|
|
@@ -87,7 +109,9 @@
|
|
|
87
109
|
"5bb9343e6dc99740cfe0c0b45b04949eca67a0364c3263379fc7129089ad0ec7",
|
|
88
110
|
"674c17dc7ed52aa7e5d6022c1d0bb5e1a38c5d25af4f190db00dc56ac2567b64",
|
|
89
111
|
"7c933641029fbe84dd64d37f8fc568d5ab2b7c1d27d1a583386e56443303b9a7",
|
|
112
|
+
"8b82e0c9c824e91c4faba1156d0ebb653678d194a9b9a3b7c89e57c51fbbde85",
|
|
90
113
|
"af630de5152efa988193b4a4674a262dd7cf808bc342cad4db7b3068f36d258d",
|
|
114
|
+
"c46290a008a46c7411739c9ebfde01d42b8bc38fb6b2c426591f31d1af00685f",
|
|
91
115
|
"d3c28748de9cc21d83d9797ae2b97d2f08b28fa1f32d0910b9f519953f20beed",
|
|
92
116
|
"f186dc18019fefbe151573fd391a43c19063aaf4b45ee4f98aef961c6d44bd9f",
|
|
93
117
|
"f4226a3ca47c89462b389cf257efeefd7eec5f97237d95284aaecf7787e1bd5b",
|
|
@@ -95,8 +119,10 @@
|
|
|
95
119
|
],
|
|
96
120
|
"agents/jd-judge-b.md": [
|
|
97
121
|
"182106d3ba2cf66a316db57dd9991d1d3f19fbde7eeda4961d44a6919e87a498",
|
|
122
|
+
"3af8fe29624b6d9700555c68b67a6cb3cebafb380dd7b4925f2f405ff2980a58",
|
|
98
123
|
"6c6e4952e3ba84cdd144d417d63ec46c1b1eec04400614f7a66009f12619318b",
|
|
99
124
|
"78c99b242a24fb91de234c7604d45cc02b79862176add92ab888ee66c98905e0",
|
|
125
|
+
"79bd4b8834f00e24f1affd0c49da5cbf973d54ab9dc8f310bb3308204eed574a",
|
|
100
126
|
"79e91ccd3b9e8b27206f97e88bfe7aec95430cf3adec10a1a289620b9f0f0e8b",
|
|
101
127
|
"7cefac81c3fde087215aeb8788334f9096533332afa4a6b553b0d508de26151b",
|
|
102
128
|
"9475e2f73dad908eaaaaca62cb36e6294d99895b0894270cad8cb78a92273e1f",
|
|
@@ -112,6 +138,7 @@
|
|
|
112
138
|
"302382c7f6d2d4932adcfc86a7ef5e91ca2cca1e2611b41aa40e73fda782d406",
|
|
113
139
|
"77e511fa51a8b3a6f07b678da04ad21e3e1f70ad13c90c09816e299f2471ebc5",
|
|
114
140
|
"824562d9f29632938104a79e9605ab1f967a2b925f389cf06a2ffd59a1299906",
|
|
141
|
+
"9c884edc136c336370b37c8a04083bd71b88186b9520266e1698f8b2ee0a626e",
|
|
115
142
|
"a8b7329d022767bbd3f3abdf3854f5160ada9c34f41dd2191515a69b56b6baca",
|
|
116
143
|
"ca1a6a2db4eac5d694acccace5b934fe33f5233f967a0e035c8ba0af1bb8c890",
|
|
117
144
|
"d1a11e867d569e1400603415576ffb42c06bef8eb7818d30659734b1eae9b120",
|
|
@@ -129,6 +156,7 @@
|
|
|
129
156
|
"90999eed8fab6a66f9f25e77e4e82e21c15ec2ea7b25f9513c80017763c27fe1",
|
|
130
157
|
"99fb57b165d61e9aec15f6ec8dfa529b62c651a435a80e393d497468ad5f9222",
|
|
131
158
|
"a77e00377caef02167e70ef58297809cae55d3f264103cf4b452f0abc1d3ce47",
|
|
159
|
+
"b33042bdc6eac946ab69aadb1eec71844ddf6be6f28bd4751620de2b45734253",
|
|
132
160
|
"bba81b607ff7e43b1c73a5b956fed2047b3585aba7e3d515cd4258c531eb25fd",
|
|
133
161
|
"f82e05ad287f9eb7d1d97a111c2fa2b83a2c05f61720e89188fe847f8895860e"
|
|
134
162
|
],
|
|
@@ -140,6 +168,7 @@
|
|
|
140
168
|
"38cf7b46f70bff0832320ca0f2befbc5ceb9d31f61bcdcef60864738b93031f2",
|
|
141
169
|
"54ad6cb64decfe063b8d6d42d16ba54e0cdc020e3515ab4a118157da2c0eef41",
|
|
142
170
|
"8cb2b41594f02c624e802c28f05dfa34b25129fd20cf45c425fa3e9485df65c9",
|
|
171
|
+
"96e1dc863e5e1205381429131911b0371e25f3456b0e7b27eae041b5e916c9d5",
|
|
143
172
|
"cb611a4dff480468c7fb56cc4a1d54b4ea5f1f94a31ee51a49839e2c9c66a513",
|
|
144
173
|
"d244046cdf0255610505548751a73c06064e4c8cbc10976800674ff7712cfe81",
|
|
145
174
|
"d28ff69aff5a75d9ea529c535a47c270b326e76096cd279c8d2d83fe3d3bd703",
|
|
@@ -152,6 +181,7 @@
|
|
|
152
181
|
"75af4c02b5408affdfbdc1b5675cdd15a8f3c5688ed72b9284705d9d8448bc4f",
|
|
153
182
|
"86ec32259ce97a77e61947b06d4fbcad713a389f39e989e2842fc1e193fa2288",
|
|
154
183
|
"965a4af892e8f3d5e2b1512b0af360d0df8d95c915db5da8a7b5bf1ec06e9e41",
|
|
184
|
+
"9781dc3bfcb3398408ebca302d807c441ab8255f8955666161fa545bfb941621",
|
|
155
185
|
"9f9d172cc55e28c5abaa753ee4cd3088d9e8821afb895a3e2a8e8ab5f8cde1ec",
|
|
156
186
|
"ab0b80cce8d55a5c415e3af8c87f0c1b6b58c26aa928adf30cc40459b611c017",
|
|
157
187
|
"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:
|
|
@@ -17,17 +17,17 @@ Before delegating, declare a subject via `orchestrator_session_id` (reference).
|
|
|
17
17
|
|
|
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
|
-
1. **Ask:**
|
|
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
|
|
20
|
+
1. **Ask:** open product or design decision, routed by ODD step 3; 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 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,10 +41,6 @@ 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
|
-
|
|
48
|
-
#### Key Learnings closing block
|
|
49
|
-
|
|
50
|
-
Generic Explore/general worker prompts (`gentle-ai-explore`, `gentle-ai-worker`, `gentle-ai-verify`, or their native `Agent` fallback) end with: after the normal result, close the final response text with a `## Key Learnings` block of 1–5 numbered items, each a standalone factual sentence of at least 20 characters and at least 4 words; omit it when there is genuinely no reusable learning. It layers on after the Return contract without changing its fields and applies to final response text only. Engram automatically extracts and persists the items; the worker does not parse the block or call passive-capture tools; this is separate from explicit `mem_save`. Agents that must return strict JSON never receive it.
|
|
@@ -17,32 +17,31 @@ 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
|
|
31
|
+
The writer refuses to write outside its exact surfaces and stops with `interaction_required` without them. 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, and never end the turn on one: take the next step it names.
|
|
33
32
|
|
|
34
|
-
Before launching
|
|
33
|
+
Before launching any bounded writer, even the native `Agent` fallback, derive its surface from the task (files the change touches, plus directories where it authorizes new files) and pass it under `## Allowed edit surfaces`:
|
|
35
34
|
|
|
36
|
-
- exact repository-relative paths or narrow globs, one per line; never `.` and never a bare repository root;
|
|
37
|
-
- the section ends
|
|
38
|
-
- pre-existing untracked targets
|
|
39
|
-
- nothing beyond the
|
|
35
|
+
- exact repository-relative paths or narrow globs, one per line; never `.` and never a bare repository root; whitespace needs whole-entry backticks (``- `My Dir/a.md` ``), not just a list marker;
|
|
36
|
+
- the section ends at the next heading of any level (0-3 leading ASCII spaces, 1-6 `#`, an ASCII space); every non-empty line before it must be an entry; prose goes under a later heading;
|
|
37
|
+
- pre-existing untracked targets it may write, listed explicitly;
|
|
38
|
+
- nothing beyond the task; wider is the same defect as none.
|
|
40
39
|
|
|
41
|
-
Test scratch stays outside the worktree (`mktemp -d`), never in the repository (nor caches or `TMPDIR`); state
|
|
40
|
+
Test scratch stays outside the worktree (`mktemp -d`), never in the repository (nor caches or `TMPDIR`); inside state 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
|
|
42
|
+
If the surface cannot be derived, do not launch or make the human author paths: offer the derived exact paths as an approve/decline choice (Lossless Blocking Prompts, `orchestrator-prompts.md`). Investigate technical route doubt; it is not a human question.
|
|
44
43
|
|
|
45
|
-
|
|
44
|
+
A writer never widens its surface; it reports exact candidate paths with reasons and awaits your replacement. Add a necessary path (test, helper) yourself, without the human, only in the authorized objective and repository, after checking ownership, existing work, risk, and concurrent writers and units; a cosmetic refactor never qualifies; an unresolved ownership or overlap conflict blocks it. New objective or scope, unapproved repository, private material, destructive or prohibited operation, missing consent, denial, or exhausted limit go to the human under existing protocols. Continue the same writer with a replacement, not a union: every still-needed path plus a concise reason, never repository-wide, no budget reset. A surface grants no repository authority or prohibited operation.
|
|
46
45
|
|
|
47
46
|
<!-- gentle-pi:background-subagents -->
|
|
48
47
|
#### Background Subagent Policy
|
|
@@ -59,7 +58,3 @@ When the policy is on and `subagent_run` is available:
|
|
|
59
58
|
- Launch as many independent tasks as the work has; the runner queues beyond `max_concurrency`. Do not duplicate launches or work, and do not overlap files or topics.
|
|
60
59
|
- Finished tasks persist across restarts; running ones are stopped when pi exits and must be relaunched, never claimed as recovered.
|
|
61
60
|
<!-- /gentle-pi:background-subagents -->
|
|
62
|
-
|
|
63
|
-
#### Key Learnings closing block
|
|
64
|
-
|
|
65
|
-
Generic Explore/general worker prompts (`gentle-ai-explore`, `gentle-ai-worker`, `gentle-ai-verify`, or their native `Agent` fallback) end with: after the normal result, close the final response text with a `## Key Learnings` block of 1–5 numbered items, each a standalone factual sentence of at least 20 characters and at least 4 words; omit it when there is genuinely no reusable learning. It layers on after the Return contract without changing its fields and applies to final response text only. Engram automatically extracts and persists the items; the worker does not parse the block or call passive-capture tools; this is separate from explicit `mem_save`. Agents that must return strict JSON never receive it.
|
|
@@ -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. In-limit fixes continue the 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
|
-
1. **Ask** — open product or design decision
|
|
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.
|
|
29
|
+
1. **Ask** — open product or design decision, routed by ODD step 3; stop and wait.
|
|
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.
|
|
@@ -4,7 +4,7 @@ Bind this to the parent Pi session only, on organic progress/recovery. Not alway
|
|
|
4
4
|
|
|
5
5
|
### Organic feature continuity
|
|
6
6
|
|
|
7
|
-
For large authorized implementation (Task Size in the always-on core), the parent maintains `odd/tasks/<feature-name>.md` and an Engram recovery copy under topic `odd/<feature-name>/tasks`, scoped to the current project. Use a descriptive filename-safe feature name, reuse the same identity, and never overwrite another feature. Keep one feature document, not a separate plan file or topic. It is the specification subagents read by reference, so keep this fixed order, stable content first and the growing log last:
|
|
7
|
+
For large authorized implementation (Task Size in the always-on core), the parent maintains `odd/tasks/<feature-name>.md` and an Engram recovery copy under topic `odd/<feature-name>/tasks`, scoped to the current project. The feature document is canonical; the Engram mirror and `todo` are projections refreshed at task transitions. Use a descriptive filename-safe feature name, reuse the same identity, and never overwrite another feature. Keep one feature document, not a separate plan file or topic. It is the specification subagents read by reference, so keep this fixed order, stable content first and the growing log last:
|
|
8
8
|
|
|
9
9
|
1. A header of two or three lines: objective, branch, delivery strategy, and test runner.
|
|
10
10
|
2. `## Specs`: numbered `S1`..`Sn` requirements, constraints, and acceptance criteria with their checks. Quote the user's exact strings, error messages, commands, and examples verbatim, in the user's language; you may number and order them, but never summarize or reword those fragments. Do not add requirements the user never asked for; mark assumptions as assumptions.
|
|
@@ -15,13 +15,13 @@ 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
|
-
The
|
|
24
|
+
The visible `todo` list is required 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
|
|
|
26
26
|
Memory lifecycle rule (when Engram exposes lifecycle metadata/tooling):
|
|
27
27
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Orchestrator — Delegation Prompts and Provider Defects (lazy-loaded)
|
|
2
2
|
|
|
3
|
-
Bind this to the parent Pi session only. Load it for source handoffs or
|
|
3
|
+
Bind this to the parent Pi session only. Load it for source handoffs, a user-facing blocking prompt or menu from a tool or subagent, a decision needing Pi's ask interfaces, or a Gentle AI provider defect.
|
|
4
4
|
|
|
5
5
|
### Online Sources
|
|
6
6
|
|
|
@@ -11,38 +11,10 @@ Delegate web retrieval to the explorer's installed tools and existing permission
|
|
|
11
11
|
When a sub-agent or tool returns a user-facing blocking prompt or menu, preserve its complete user-facing choice envelope: why input is required; every group and question in original order, including every group header; every option label and description; the selection mode; and the exact allowed-answer domain. Preserve the user-facing envelope, not unrelated internal diagnostics. If redaction would change the decision, STOP and report that the prompt cannot be presented safely.
|
|
12
12
|
|
|
13
13
|
- Never summarize, abbreviate, reorder, relabel, merge, or omit choices. Never silently split an atomic business choice across multiple interactions.
|
|
14
|
-
- Native route: For every strictly closed single-select envelope, use `ask_user_choice` only when it is available in the current interactive TUI and the complete envelope is exactly representable as one question with 2-4 ordered options. It
|
|
14
|
+
- Native route: For every strictly closed single-select envelope, use `ask_user_choice` only when it is available in the current interactive TUI and the complete envelope is exactly representable as one question with 2-4 ordered options. It shows a "Type your answer" free-text entry unless closed: pass `allowCustomResponse: false` for every such envelope, including provider-owned consent prompts, maintenance authorizations, and any exact opaque-token decision. Pass each closed-envelope option's user-facing label and description plus its envelope-owned canonical option token as opaque `value`. A closed selection returns exactly one `value` as an opaque token; map it to the envelope-owned choice once, then select any envelope-owned continuation or invocation once where present. A custom selection returns free text through `customResponse`; never pass it through opaque-token mapping. Do not re-parse a closed selection's label or ordinal. `ask_user_question` is the externally owned open/free-text questionnaire: use it only for an open/free-text envelope it can represent, never for a closed domain. Otherwise fall through to the Fallback clause below. For an unresolved `gentle-ai.review-integration.consent/v3`, the selected continuation remains the exact captured provider-owned choice invocation; never synthesize it. The eligible Pi runtime may instead consume that envelope before it reaches the model through a three-action UI whose first two actions are the unchanged provider choices and whose third action is host-owned session permission. Never append that host action to the decoded or relayed provider envelope. If the runtime returns the envelope unresolved, the original two-choice fallback above applies unchanged.
|
|
15
15
|
- Fallback: If a native UI is unavailable, denied, the runtime is noninteractive, or the complete envelope is oversized or otherwise unrepresentable because of question-count, option-count, or text-length limits, emit the COMPLETE choice envelope as a plain chat or terminal response. Include the required answer syntax and why the input blocks progress. Then STOP. Do not choose, default, infer, launch dependent work, or continue. Native-tool-only wording elsewhere never disables this fallback.
|
|
16
16
|
- Answer validation: Accept an answer only when each response belongs to the exact allowed-answer domain presented for its group. Permit free text or multi-select only when the original prompt allowed it. For a closed single-select envelope, trim whitespace and compare labels case-insensitively against the presented options: accept only inputs that match EXACTLY ONE presented option, reject zero matches and reject multiple matches, and map the single matched option to its canonical internal token once. Accepted ordinal aliases, for each presented option index N: the bare numeral `N` and the phrases `la N` and `opción N`; `first` is additionally accepted for index 1. Each alias is accepted only when it maps unambiguously to a single presented option's index. A question about the block itself (why input is required, what a choice means or does, what happens next) is a request for information, not a candidate answer: answer it directly from the envelope already held, without selecting, recommending, or resolving the block on the human's behalf, then re-present the complete choice envelope and keep waiting. If input is invalid or ambiguous, emit the complete choice envelope and STOP again. Return a valid answer to the same blocked actor exactly once.
|
|
17
17
|
|
|
18
18
|
#### Gentle AI Provider Defect Handoff (MANDATORY)
|
|
19
19
|
|
|
20
|
-
Before losslessly relaying any blocking choice envelope, classify its semantic admissibility. **The test is what produced the failure, not what the work was doing when it happened.**
|
|
21
|
-
|
|
22
|
-
When anything else produced it, there is no report and no handoff. That includes the model provider (context limits reached, rate limits, a refusal to process an input), the client runtime (a session that must be restarted, a crashed or empty sub-agent result, a dispatcher that never dispatched), the environment, and the user's own repository state. Do not name the component you believe is responsible, do not suggest where else to file it, and do not ask. Say plainly what blocked the work in the ordinary conversation, then continue or stop as the workflow dictates. A report system that files other projects' defects stops meaning anything when it files ours.
|
|
23
|
-
|
|
24
|
-
Pending consent has no response deadline. `consent-binding-already-consumed` is a local lifecycle outcome, not a Gentle AI provider defect. An unknown consent binding is reportable only when independent evidence proves a fresh, same-session, unconsumed binding was lost. Never infer that evidence from the old combined stale-binding message.
|
|
25
|
-
|
|
26
|
-
When it is ours, never offer to switch to, inspect, modify, or directly repair the Gentle AI repository from that workflow. If an upstream envelope offers direct repair, do not silently mutate it: reject it as semantically inadmissible and issue this separate orchestrator-owned handoff envelope.
|
|
27
|
-
|
|
28
|
-
- Ask the user first, in the active orchestrator conversation language, for explicit consent to report the apparent defect. Present one single-select blocking envelope with exactly three semantic choices in this order. Its exact internal answer tokens are `report_and_continue`, `continue_without_reporting`, `stop_here`. Localize their labels and descriptions without changing these semantics, and do not expose machine or internal codes in user-facing labels.
|
|
29
|
-
- On a consented report path, prepare or reuse privacy-scrubbed diagnostics. Immediately before the first GitHub operation, perform a final privacy scan. This scan precedes the definitive lookup, report creation, and occurrence comment. Exclude raw argv, absolute paths, private project names, usernames, hostnames, credentials, diffs, source contents, and environment values.
|
|
30
|
-
1. **Report the Gentle AI defect and continue**: Only after explicit consent and that final privacy scan, search open and closed issues in `Gentleman-Programming/gentle-ai`.
|
|
31
|
-
- First, complete a definitive lookup across open and closed issues for an equivalent defect or canonical tracker. Equivalent means the same observable defect and affected contract, backed by concrete evidence rather than title similarity alone; a canonical tracker owns the causal class. A definitive lookup is a completed open+closed lookup with a classifiable result; incomplete, error, or unknown is not definitive.
|
|
32
|
-
- Only a definitive lookup may branch to GitHub mutation. If no equivalent exists, create a new automated provider-defect report.
|
|
33
|
-
- First establish that the equivalent has an identified fix verifiably contained by a published release. Then determine the installed build and derive its evidence channel only from its build string: the contract's recognized prerelease tags are `-rc.` and `-main.`; every other build is stable. That release is a relevant published fix only when it is in the installed build's evidence channel. A main-only commit, local/source build, unmerged PR, or unsupported assertion is not published-fix evidence, including for prerelease or main builds.
|
|
34
|
-
- If the equivalent has no verifiable relevant published fix, add exactly one occurrence comment with observed evidence only on that exact canonical/equivalent issue; do not add, remove, or change any labels on it.
|
|
35
|
-
- A fix published only to the other evidence channel is not a relevant published fix for this occurrence: add exactly one occurrence comment with observed evidence only on that exact canonical/equivalent issue and note where the fix is published. Do not recommend switching channels; channel choice is the user's. Do not add, remove, or change any labels on that issue.
|
|
36
|
-
- If the installed build predates that release, recommend installing the published fix and reproducing; do not create or comment for that occurrence yet. If the installed build demonstrably contains the fix and still reproduces, treat it as a possible regression: reproduction on a build proven to contain that fix; comment on a suitable canonical tracker, or create a linked regression issue when that tracker is unsuitable. Never reopen automatically.
|
|
37
|
-
- If search, comment, or creation fails, is ambiguous, incomplete, times out, lacks permission, or has an unknown outcome, perform no further GitHub mutation and no blind retry; preserve all consumer state, then execute the exact captured provider-owned decline invocation exactly once, validate it, re-enter native negotiated STATUS, and resume the already-held consumer continuation.
|
|
38
|
-
- Confirmed creation requires the GitHub create operation to confirm a newly-created issue identity/URL. Never infer creation from output text alone. If creation fails, is ambiguous, incomplete, times out, lacks permission, or has an unknown outcome, preserve all consumer state; do not search, comment, update, or retry creation until the exact created issue identity is resolved, then use the uncertainty continuation below.
|
|
39
|
-
- After a definitive successful report outcome, or any report-side uncertainty after stopping further GitHub mutation, execute the shared candidate-scoped continuation below.
|
|
40
|
-
2. **Continue without reporting**: Perform no GitHub search, write, comment, or label, and no report-side privacy scan is required. Execute the shared candidate-scoped continuation below.
|
|
41
|
-
3. **Stop here**: Perform no GitHub operation and no decline invocation; preserve all consumer state and STOP.
|
|
42
|
-
- Both continue choices execute that exact captured decline invocation exactly once: use only the exact captured provider-owned `choices[answer="declined"].invocation` from the `gentle-ai.review-integration.consent/v3` envelope. Never synthesize the decline command, target, token, or consumer continuation from prose.
|
|
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
|
-
- 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
|
-
- The result carries no lineage or receipt; ordinary delivery is unmanaged by the candidate choice, and the next candidate asks again.
|
|
46
|
-
- Do not invoke `gentle-ai review mode disable` at clone or global scope within this handoff. Do not turn RDD off or on within this handoff.
|
|
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
|
-
- 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.
|
|
20
|
+
Before losslessly relaying any blocking choice envelope, classify its semantic admissibility. **The test is what produced the failure, not what the work was doing when it happened.** When anything other than a Gentle AI invocation (its non-zero exit, typed envelope, refusal, or documented contract refusing) produced it, there is no report and no handoff: do not name the component you believe is responsible, suggest where else to file it, or ask; say plainly what blocked the work, then continue or stop as the workflow dictates. When a Gentle AI invocation produced it, load the `gentle-ai-provider-defect-report` skill by registry name and follow it before any report, consent prompt, or GitHub operation. If that skill is unavailable, file no report, open no consent prompt, and run no GitHub operation; tell the user the defect-report skill is not available and keep the evidence.
|
|
@@ -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:
|