gentle-pi 4.9.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/assets/agents/gentle-ai-explore.md +3 -6
- package/assets/agents/gentle-ai-verify.md +2 -2
- package/assets/agents/gentle-ai-worker.md +9 -9
- package/assets/agents/jd-fix-agent.md +2 -2
- package/assets/agents/jd-judge-a.md +0 -1
- package/assets/agents/jd-judge-b.md +0 -1
- package/assets/migrations/agent-body-history.json +9 -0
- package/assets/orchestrator-delegation.md +1 -1
- package/assets/orchestrator-full-delegation.md +1 -1
- package/assets/orchestrator-maintenance.md +11 -0
- package/assets/orchestrator-quota-recovery.md +1 -1
- package/assets/orchestrator-skills.md +10 -0
- package/assets/orchestrator-tracking.md +2 -2
- package/assets/orchestrator-verification.md +10 -8
- package/assets/orchestrator.md +2 -2
- package/bin/gentle-shell.mjs +69 -17
- package/contracts/review-provider-contract-mirror/provider-contract.lock.json +11 -10
- package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/manifest.json +5 -5
- package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/orchestration/pi.md +5 -3
- package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/routing/pi.md +2 -2
- package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/schemas/lens.schema.json +3 -3
- package/contracts/review-provider-contract-mirror/v1.7.0/bundle/vectors/lens.json +1 -0
- package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/generated/provider-capabilities.baseline.json +3 -3
- package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/generated/provider-roles.baseline.json +3 -3
- package/docs/bundled-install.md +2 -2
- package/docs/delegated-verification.md +10 -6
- package/docs/desktop-feed.md +15 -6
- package/docs/desktop-rpc.md +298 -30
- package/docs/gentle-shell-desktop.md +10 -3
- package/docs/gentle-shell.md +25 -19
- package/docs/install-wizard.md +7 -5
- package/docs/native-authority-architecture.md +3 -3
- package/docs/odd-preparation-continuity.md +2 -2
- package/docs/permission-modes.md +10 -2
- package/docs/readme-reference.md +53 -24
- package/docs/review-coordinator.md +4 -2
- package/docs/session-profile-format.md +33 -7
- package/docs/sound-notifications.md +1 -1
- package/docs/work-continuity.md +7 -7
- package/docs/yolo-mode.md +1 -1
- package/extensions/ask-user-choice.ts +2 -2
- package/extensions/ask-user-question.ts +1 -1
- package/extensions/child-context.ts +2 -11
- package/extensions/gentle-agents.ts +86 -30
- package/extensions/gentle-ai.ts +918 -632
- package/extensions/gentle-desktop-feed.ts +13 -3
- package/extensions/gentle-desktop-rpc.ts +51 -2
- package/extensions/gentle-fast.ts +9 -2
- package/extensions/gentle-music.ts +2 -0
- package/extensions/gentle-notifications.ts +12 -4
- package/extensions/gentle-shell.ts +157 -62
- package/extensions/gentle-star-prompt.ts +3 -0
- package/extensions/gentle-tps.ts +7 -0
- package/extensions/history/index.ts +1 -1
- package/extensions/quiet-tools.ts +13 -22
- package/extensions/skill-registry.ts +9 -1
- package/extensions/startup-banner.ts +8 -13
- package/herdr/mods/gentle-agents/snapshot.js +30 -23
- package/herdr/mods/gentle-chat/feed.js +6 -0
- package/herdr/mods/gentle-chat/main.js +76 -16
- package/herdr/mods/gentle-chat/session.js +13 -5
- package/herdr/mods/gentle-chat/snapshot.js +30 -23
- package/herdr/mods/gentle-chat/ui.js +7 -1
- package/herdr/mods/gentle-inspector/main.js +2 -0
- package/herdr/mods/gentle-inspector/snapshot.js +30 -23
- package/herdr/mods/gentle-palette/main.js +1 -1
- package/herdr/mods/gentle-palette/snapshot.js +30 -23
- package/herdr/mods/gentle-pane/snapshot.js +30 -23
- package/herdr/mods/gentle-sidebar/snapshot.js +30 -23
- package/herdr/mods/gentle-spaces/snapshot.js +30 -23
- package/herdr/mods/gentle-status/snapshot.js +30 -23
- package/herdr/mods/gentle-tabs/main.js +3 -2
- package/herdr/mods/gentle-tabs/new-tab.js +9 -0
- package/herdr/mods/gentle-tabs/snapshot.js +30 -23
- package/herdr/mods/gentle-tokens/snapshot.js +30 -23
- package/lib/agent-profiles.ts +50 -10
- package/lib/agents-config.ts +69 -5
- package/lib/agents-runner.ts +34 -1
- package/lib/auto-permission-runtime.ts +2 -1
- package/lib/background-jobs-tools.ts +24 -16
- package/lib/banner-config.ts +69 -0
- package/lib/child-session.ts +6 -0
- package/lib/claude-bridge-config.ts +41 -0
- package/lib/codex-turn-continuation.ts +40 -0
- package/lib/compaction-threshold.ts +46 -0
- package/lib/context-threshold.ts +5 -5
- package/lib/desktop-agent-definitions-service.ts +93 -0
- package/lib/desktop-auth-service.ts +102 -0
- package/lib/desktop-background-subagents-service.ts +155 -0
- package/lib/desktop-command-rpc.ts +71 -0
- package/lib/desktop-feed-sources.ts +44 -1
- package/lib/desktop-feed.ts +41 -29
- package/lib/desktop-rpc-agent-definitions.ts +119 -0
- package/lib/desktop-rpc-agents.ts +44 -3
- package/lib/desktop-rpc-auth.ts +103 -0
- package/lib/desktop-rpc-background-subagents.ts +126 -0
- package/lib/desktop-rpc-changes.ts +13 -4
- package/lib/desktop-rpc-config.ts +287 -13
- package/lib/desktop-rpc-profile-binding.ts +212 -0
- package/lib/desktop-rpc-profiles.ts +2 -0
- package/lib/desktop-rpc-stats.ts +16 -4
- package/lib/desktop-rpc-status.ts +103 -0
- package/lib/desktop-status-service.ts +86 -0
- package/lib/destructive-command-guard.ts +9 -185
- package/lib/exploration-budget.ts +3 -7
- package/lib/gentle-design.ts +23 -4
- package/lib/gentle-shell-desktop.ts +85 -0
- package/lib/gentle-shell-launcher.ts +120 -8
- package/lib/mcp-config.ts +214 -0
- package/lib/native-choice-list.ts +1 -1
- package/lib/native-fullscreen-interaction.ts +3 -0
- package/lib/native-pointer-region.ts +1 -1
- package/lib/native-review-cli.ts +213 -397
- package/lib/odd-phase-inference.ts +1 -1
- package/lib/orchestrator-mode-policy.ts +25 -12
- package/lib/path-consent-fence.ts +113 -0
- package/lib/persona-config.ts +77 -0
- package/lib/pi-settings.ts +157 -0
- package/lib/questionnaire/questionnaire-view.ts +1 -1
- package/lib/review-continuation-registry.ts +9 -26
- package/lib/review-coordinator.ts +13 -2
- package/lib/review-host-relay.ts +2 -35
- package/lib/review-integration-v2.ts +129 -180
- package/lib/review-object-store.ts +0 -57
- package/lib/review-repository.ts +0 -44
- package/lib/review-risk-assessment.ts +11 -36
- package/lib/review-start-context.ts +2 -1
- package/lib/review-transaction.ts +6 -6
- package/lib/sensitive-paths.ts +45 -0
- package/lib/session-profile-binding.ts +29 -0
- package/lib/session-profile-freeze.ts +11 -4
- package/lib/session-worktree-registry.ts +11 -5
- package/lib/shell-bar.ts +41 -18
- package/lib/shell-card.ts +27 -1
- package/lib/shell-changes-view.ts +6 -2
- package/lib/shell-changes.ts +94 -37
- package/lib/shell-git-worker.ts +158 -0
- package/lib/shell-idle-changes.ts +88 -0
- package/lib/shell-untracked-cache.ts +142 -0
- package/lib/shell-untracked-lines.ts +178 -0
- package/lib/stats-collector.ts +24 -0
- package/lib/tower-open.ts +8 -1
- package/lib/tps-policy.ts +85 -0
- package/lib/vim-editor-adapter.ts +9 -2
- package/lib/voice-artifacts.ts +8 -1
- package/lib/voice-install.ts +7 -3
- package/lib/yolo-session-policy.ts +2 -2
- package/package.json +1 -1
- package/runtime/gentle-shell-desktop.mjs +85 -0
- package/runtime/gentle-shell-launcher.mjs +120 -8
- package/runtime/native-review-cli.mjs +206 -390
- package/runtime/review-integration-v2.mjs +129 -180
- package/runtime/review-risk-assessment.mjs +11 -36
- package/runtime/sensitive-paths.mjs +46 -0
- package/runtime/tower-open.mjs +8 -1
- package/scripts/build-runtime-modules.mjs +2 -0
- package/scripts/gentle-ai-installer.mjs +13 -14
- package/scripts/installer-preflight.mjs +1 -1
- package/scripts/main-channel.mjs +47 -11
- package/scripts/pi-update.mjs +10 -4
- package/scripts/prepare-verifier.mjs +14 -4
- package/scripts/verify-package-files.mjs +45 -13
- package/skills/judgment-day/SKILL.md +1 -1
- package/skills/judgment-day/references/prompts-and-formats.md +1 -1
- package/skills/provider-defect-report/SKILL.md +1 -1
- package/skills/rdd-defect-workflow/SKILL.md +2 -2
- package/skills/skill-creator/SKILL.md +4 -4
- package/skills/skill-improver/SKILL.md +4 -4
- package/skills/skill-registry/SKILL.md +2 -2
- package/tests/agent-profiles-workflow.test.ts +102 -0
- package/tests/agent-risk-escalation.test.ts +15 -0
- package/tests/agents-config.test.ts +22 -2
- package/tests/agents-protocol.test.ts +1 -1
- package/tests/agents-runner.test.ts +94 -2
- package/tests/append-system-prompt-route.test.ts +16 -11
- package/tests/ask-user-choice.test.ts +19 -0
- package/tests/ask-user-question.test.ts +23 -4
- package/tests/auto-permission-runtime.test.ts +4 -4
- package/tests/bounded-stop-contract.test.ts +50 -62
- package/tests/built-web-guard.test.ts +32 -0
- package/tests/child-context-files.test.ts +6 -6
- package/tests/child-ui-extensions.test.ts +125 -0
- package/tests/child-web-package.test.ts +1 -1
- package/tests/codex-turn-continuation.test.ts +183 -0
- package/tests/committed-range-untracked-exclusion.test.ts +18 -0
- package/tests/controlled-engineering-editor.test.ts +192 -0
- package/tests/controlled-engineering-launch.test.ts +136 -0
- package/tests/controlled-engineering.test.ts +244 -0
- package/tests/delegate-for-reason-contract.test.ts +1 -1
- package/tests/delivery-b-rendered-surfaces.test.ts +1 -1
- package/tests/delivery-conflict-markers.test.ts +2 -3
- package/tests/desktop-feed-tool-summaries.test.ts +1 -1
- package/tests/desktop-feed-transcript.test.ts +17 -0
- package/tests/desktop-feed.test.ts +141 -7
- package/tests/desktop-liveness.test.ts +125 -0
- package/tests/desktop-persona.test.ts +17 -0
- package/tests/desktop-rpc-agent-definitions.test.ts +219 -0
- package/tests/desktop-rpc-agents.test.ts +113 -3
- package/tests/desktop-rpc-auth.test.ts +278 -0
- package/tests/desktop-rpc-background-subagents.test.ts +186 -0
- package/tests/desktop-rpc-changes.test.ts +81 -4
- package/tests/desktop-rpc-config-mcp-fidelity.test.ts +106 -0
- package/tests/desktop-rpc-config-readonly-stores.test.ts +458 -0
- package/tests/desktop-rpc-config-settings.test.ts +234 -0
- package/tests/desktop-rpc-config.test.ts +17 -3
- package/tests/desktop-rpc-design.test.ts +30 -1
- package/tests/desktop-rpc-jobs.test.ts +9 -1
- package/tests/desktop-rpc-permissions.test.ts +9 -1
- package/tests/desktop-rpc-profile-binding.test.ts +195 -0
- package/tests/desktop-rpc-review.test.ts +1 -1
- package/tests/desktop-rpc-session-snapshot-commands.test.ts +50 -0
- package/tests/desktop-rpc-session.test.ts +2 -2
- package/tests/desktop-rpc-stats.test.ts +42 -11
- package/tests/desktop-rpc-status.test.ts +195 -0
- package/tests/desktop-rpc-updates.test.ts +1 -1
- package/tests/desktop-rpc-usage.test.ts +9 -1
- package/tests/desktop-rpc.test.ts +2 -2
- package/tests/desktop-session-switch.test.ts +237 -0
- package/tests/desktop-target-session.test.ts +104 -0
- package/tests/destructive-command-guard.test.ts +187 -0
- package/tests/devbinary/pi-host-relay.devtest.ts +73 -9
- package/tests/exploration-budget.test.ts +2 -26
- package/tests/fixtures/primary-session-prompt/gentleman.golden.md +15 -11
- package/tests/full-delegation-closure.test.ts +19 -9
- package/tests/generic-agent-tools.test.ts +3 -3
- package/tests/gentle-agents.test.ts +215 -10
- package/tests/gentle-ai-binary.test.ts +3 -3
- package/tests/gentle-ai-exploration-budget.test.ts +3 -2
- package/tests/gentle-ai-installer.test.ts +60 -59
- package/tests/gentle-ai.test.ts +30 -59
- package/tests/gentle-chat-read-failure.test.ts +74 -0
- package/tests/gentle-chat-session-read.test.ts +127 -0
- package/tests/gentle-design.test.ts +39 -0
- package/tests/gentle-notifications.test.ts +43 -5
- package/tests/gentle-shell-desktop.test.ts +108 -0
- package/tests/gentle-shell-launcher-auto-provision.test.ts +152 -0
- package/tests/gentle-shell-launcher-machine-output.test.ts +356 -0
- package/tests/gentle-shell-launcher-tower.test.ts +7 -1
- package/tests/gentle-shell.test.ts +163 -15
- package/tests/gentle-tps.test.ts +57 -0
- package/tests/independent-recovery-delivery.test.ts +15 -13
- package/tests/installer-preflight.test.ts +3 -2
- package/tests/installer-server.test.ts +3 -2
- package/tests/installer-windows-bootstrap.test.ts +6 -0
- package/tests/job-turn-end-texts.test.ts +57 -0
- package/tests/judgment-day-dispatch-diagnostics.test.ts +87 -0
- package/tests/lazy-module-contradictions-contract.test.ts +2 -3
- package/tests/main-channel-upgrade.test.ts +14 -7
- package/tests/main-channel.test.ts +78 -23
- package/tests/maintainer/desktop-rpc.maintest.ts +4 -4
- package/tests/native-fullscreen-interaction.test.ts +37 -1
- package/tests/native-review-capability-contract.test.ts +13 -1
- package/tests/native-review-cli-nonblocking-findings.test.ts +9 -84
- package/tests/native-review-cli.test.ts +199 -21
- package/tests/native-review-consent.test.ts +20 -3
- package/tests/native-review-start-escalation-real-binary.test.ts +42 -0
- package/tests/no-self-pause-contract.test.ts +8 -7
- package/tests/odd-phase-inference.test.ts +2 -2
- package/tests/odd-routing-canonical-ratchet.test.ts +1 -1
- package/tests/odd-routing-contract.test.ts +2 -2
- package/tests/orchestrator-budget.test.ts +7 -2
- package/tests/orchestrator-prompt-diet-contract.test.ts +5 -5
- package/tests/orchestrator-skills-inline-contract.test.ts +26 -0
- package/tests/package-manifest.test.ts +11 -16
- package/tests/packaged-agent-codemode.test.ts +79 -0
- package/tests/path-consent-fence.test.ts +326 -0
- package/tests/persona-config.test.ts +42 -0
- package/tests/pi-update-launcher.test.ts +1 -1
- package/tests/pi-update-source.test.ts +48 -2
- package/tests/primary-session-prompt.test.ts +9 -7
- package/tests/profile-fast-tier.test.ts +79 -4
- package/tests/progress-rule-contract.test.ts +54 -0
- package/tests/rdd-delivery-warning.test.ts +109 -0
- package/tests/review-actor-tool-deny.test.ts +1 -2
- package/tests/review-agent-end-preflight.test.ts +3 -1
- package/tests/review-assess-escalation-forwarding.test.ts +99 -0
- package/tests/review-authority-recovery-docs.test.ts +9 -12
- package/tests/review-continuation-registry.test.ts +24 -25
- package/tests/review-controller-native-recovery.test.ts +165 -178
- package/tests/review-controller-native-routing.test.ts +352 -27
- package/tests/review-coordinator-correction-gate.test.ts +5 -9
- package/tests/review-coordinator-runtime.test.ts +3 -2
- package/tests/review-coordinator.test.ts +14 -0
- package/tests/review-due-compaction.test.ts +1 -1
- package/tests/review-failure-facts.test.ts +2 -2
- package/tests/review-host-relay-restart-parity.test.ts +2 -52
- package/tests/review-host-relay-routing.test.ts +59 -298
- package/tests/review-host-relay.test.ts +0 -46
- package/tests/review-integration-nonblocking-findings.test.ts +3 -6
- package/tests/review-integration-v2-forward.test.ts +114 -234
- package/tests/review-integration-v2.test.ts +85 -39
- package/tests/review-json-arguments.test.ts +30 -9
- package/tests/review-legacy-check.test.ts +38 -0
- package/tests/review-object-store.test.ts +2 -57
- package/tests/review-one-call-findings.test.ts +1 -0
- package/tests/review-one-call.test.ts +56 -0
- package/tests/review-risk-assessment.test.ts +14 -43
- package/tests/review-run-escalate-forwarding.test.ts +59 -0
- package/tests/review-sidebar-state.test.ts +2 -1
- package/tests/review-untracked-inventory-replay.test.ts +181 -0
- package/tests/runtime-harness.mjs +30 -4
- package/tests/sensitive-path-tools.test.ts +210 -5
- package/tests/session-profile-binding-observers.test.ts +47 -0
- package/tests/session-profile-extension.test.ts +109 -11
- package/tests/session-profile-freeze.test.ts +49 -2
- package/tests/session-profile-v1-compat.test.ts +11 -3
- package/tests/session-worktree-registry.test.ts +23 -0
- package/tests/shell-bar.test.ts +21 -3
- package/tests/shell-changes-idle-start.test.ts +510 -0
- package/tests/shell-changes-untracked-bound.test.ts +230 -0
- package/tests/shell-changes-view.test.ts +8 -2
- package/tests/shell-changes.test.ts +134 -0
- package/tests/shell-git-runner-stall.test.ts +74 -0
- package/tests/shell-git-worker-fallback.test.ts +140 -0
- package/tests/shell-git-worker-lifetime.test.ts +91 -0
- package/tests/shell-render-cache-runtime.test.ts +256 -3
- package/tests/shell-sidebar-layout.test.ts +1 -1
- package/tests/shell-sidebar-scroll-benchmark.test.ts +14 -5
- package/tests/shell-untracked-cache.test.ts +213 -0
- package/tests/short-check-routing-contract.test.ts +11 -7
- package/tests/skill-references.test.ts +39 -0
- package/tests/skill-registry.test.ts +4 -4
- package/tests/startup-banner.test.ts +2 -1
- package/tests/status-timing-diagnostics.test.ts +2 -1
- package/tests/support/capabilities-v26.ts +22 -0
- package/tests/support/chat-ui.ts +39 -0
- package/tests/support/review-coordinator-runtime.ts +11 -2
- package/tests/support/status-v9.ts +8 -0
- package/tests/t7-recovery-preservation.test.ts +68 -0
- package/tests/tower-open.test.ts +24 -0
- package/tests/tower-pack.test.ts +48 -0
- package/tests/tps-policy.test.ts +96 -0
- package/tests/turn-end-rule-contract.test.ts +155 -0
- package/tests/turn-end-scope.test.ts +39 -0
- package/tests/verification-proportionality.test.ts +1 -1
- package/tests/verification-scoped-stop-contract.test.ts +1 -1
- package/tests/verification-tiers-contract.test.ts +4 -3
- package/tests/verifier-admission.test.ts +1 -1
- package/tests/verifier-preparation.test.ts +94 -1
- package/tests/verifier-settle-reminder.test.ts +1 -1
- package/tests/verify-first-launch-contract.test.ts +19 -7
- package/tests/vim-editor-adapter.test.ts +12 -2
- package/tests/voice-install.test.ts +97 -11
- package/tests/windows-hidden-processes.test.ts +11 -44
- package/tests/work-continuity-contract.test.ts +48 -55
- package/tests/yolo-session-policy.test.ts +2 -0
- package/web/tower/dist/assets/BatchableSprite-BJ_TQxjN.js +217 -0
- package/web/tower/dist/assets/BufferResource-DeJpHuO6.js +139 -0
- package/web/tower/dist/assets/CanvasPool-cwc03T_x.js +23 -0
- package/web/tower/dist/assets/CanvasRenderer-DO84oP5R.js +1 -0
- package/web/tower/dist/assets/Filter-BKhT9lO8.js +1 -0
- package/web/tower/dist/assets/GlUniformGroupSystem-DluI7cqd.js +130 -0
- package/web/tower/dist/assets/GpuUboSystem-CM4Dys0F.js +17 -0
- package/web/tower/dist/assets/Graphics-3OyUtCzC.js +1 -0
- package/web/tower/dist/assets/RenderTargetSystem-X-9GAQ1C.js +184 -0
- package/web/tower/dist/assets/WebGLRenderer-I0fqIX1w.js +20 -0
- package/web/tower/dist/assets/WebGPURenderer-BRWSXotK.js +79 -0
- package/web/tower/dist/assets/_commonjsHelpers-CqkleIqs.js +1 -0
- package/web/tower/dist/assets/abnfDiagram-VCTEODGH-C4iBBhTL.js +1 -0
- package/web/tower/dist/assets/architectureDiagram-5GKGNRK7-Ih-qvfTu.js +36 -0
- package/web/tower/dist/assets/blockDiagram-I7D4REHJ-I9z_u3wb.js +129 -0
- package/web/tower/dist/assets/browserAll-gmBFNIA4.js +14 -0
- package/web/tower/dist/assets/c4Diagram-7LVT6UL2-DOyk2rEJ.js +38 -0
- package/web/tower/dist/assets/canvasUtils-DTaMcbkN.js +1 -0
- package/web/tower/dist/assets/channel-wuxBkGGz.js +1 -0
- package/web/tower/dist/assets/chunk-2Q5K7J3B-BaJ-OrJ_.js +1 -0
- package/web/tower/dist/assets/chunk-5VM5RSS4-wICrhvyw.js +15 -0
- package/web/tower/dist/assets/chunk-F27PBJKO-DUQ_JqvZ.js +1 -0
- package/web/tower/dist/assets/chunk-IMKFNOWR-DKfgQrGM.js +231 -0
- package/web/tower/dist/assets/chunk-JWPE2WC7-1k1LW87d.js +1 -0
- package/web/tower/dist/assets/chunk-POPQ4Y6H-Df8cN2w9.js +1 -0
- package/web/tower/dist/assets/chunk-SVP7TREG-CxU5LDj8.js +88 -0
- package/web/tower/dist/assets/chunk-TICWLB2K-CEuHEBi0.js +206 -0
- package/web/tower/dist/assets/chunk-XXDRQBXY-CbSAjj9l.js +1 -0
- package/web/tower/dist/assets/classDiagram-ZZMXUADV-DbRmVQRX.js +1 -0
- package/web/tower/dist/assets/classDiagram-v2-VYDZK3BY-DbRmVQRX.js +1 -0
- package/web/tower/dist/assets/cose-bilkent-JH36ORCC-8xZLSHER.js +1 -0
- package/web/tower/dist/assets/cynefin-OW5HDTMX-Cw4XG9Zj.js +166 -0
- package/web/tower/dist/assets/cynefinDiagram-5FMLGOSQ-CcQdokUv.js +62 -0
- package/web/tower/dist/assets/cytoscape.esm-BHa1VTXv.js +321 -0
- package/web/tower/dist/assets/d3-scale-4DPf7zan.js +1 -0
- package/web/tower/dist/assets/dagre-GXQ25YYZ-D-Xv7L9X.js +4 -0
- package/web/tower/dist/assets/diagram-S7CK7UJ4-Bqy2eT2c.js +30 -0
- package/web/tower/dist/assets/diagram-UQ7AKVKN-B2wK2GHj.js +41 -0
- package/web/tower/dist/assets/diagram-VSXAHHWV-CIZqh7BH.js +3 -0
- package/web/tower/dist/assets/diagram-VX7I27RA-BGX4HBj2.js +24 -0
- package/web/tower/dist/assets/diagram-Z3DM3KII-DYpsfaJW.js +24 -0
- package/web/tower/dist/assets/ebnfDiagram-PWID7BFC-BNnwCZNv.js +1 -0
- package/web/tower/dist/assets/erDiagram-RLTQ6QDP-_MN9W-1E.js +99 -0
- package/web/tower/dist/assets/flowDiagram-HODETNUW-D_ndx1UC.js +168 -0
- package/web/tower/dist/assets/ganttDiagram-EL5Y4UJY-C8chdEiZ.js +292 -0
- package/web/tower/dist/assets/getPo2TextureFromSource-CqJsdi0J.js +1 -0
- package/web/tower/dist/assets/getTexelRangeRects-DN3N5aFp.js +57 -0
- package/web/tower/dist/assets/getTextureBatchBindGroup-RNSiAVH3.js +1 -0
- package/web/tower/dist/assets/gitGraphDiagram-WWUBYQGX-B5ijv7LI.js +106 -0
- package/web/tower/dist/assets/index-B1Ho-Igs.css +1 -0
- package/web/tower/dist/assets/index-CfNjH1Wr.js +45 -0
- package/web/tower/dist/assets/infoDiagram-27XIBGKW-AYbp5ElT.js +2 -0
- package/web/tower/dist/assets/ishikawaDiagram-5VMMS53U-DnmwARuR.js +70 -0
- package/web/tower/dist/assets/journeyDiagram-3NMN7TZE-CK737kko.js +139 -0
- package/web/tower/dist/assets/kanban-definition-UXKFOSKX-0AhM3axC.js +89 -0
- package/web/tower/dist/assets/katex-HP8lGamR.js +257 -0
- package/web/tower/dist/assets/layout-wOIeK9c_.js +1 -0
- package/web/tower/dist/assets/mermaid.core-CGYyw6G7.js +310 -0
- package/web/tower/dist/assets/mindmap-definition-YA3MSWOX-CkZ_JOdx.js +96 -0
- package/web/tower/dist/assets/pegDiagram-XKGWAZYB-CHAPspih.js +1 -0
- package/web/tower/dist/assets/pieDiagram-E7YTZNPT-LwCcZl5o.js +39 -0
- package/web/tower/dist/assets/preload-helper-PPVm8Dsz.js +1 -0
- package/web/tower/dist/assets/quadrantDiagram-AXDQQJYC-Cm4uijV2.js +7 -0
- package/web/tower/dist/assets/railroadDiagram-O6MQD6OU-BPQHZ2b5.js +1 -0
- package/web/tower/dist/assets/requirementDiagram-BXWQKSXE-JLtSUDfS.js +84 -0
- package/web/tower/dist/assets/sankeyDiagram-P5KCCOFB-DJsYv9ii.js +40 -0
- package/web/tower/dist/assets/sequenceDiagram-WJ2MYXX4-Ca8T8sT0.js +162 -0
- package/web/tower/dist/assets/sizeCapture-INFHLROL-Ch4i2dS-.js +1 -0
- package/web/tower/dist/assets/stateDiagram-D77RDMKH-DDSkncYm.js +1 -0
- package/web/tower/dist/assets/stateDiagram-v2-MP3YSRHH-BkO_9mIH.js +1 -0
- package/web/tower/dist/assets/swimlanes-42K2YHIH-Bns5iI3y.js +1 -0
- package/web/tower/dist/assets/swimlanesDiagram-VR7AAH4N--LEBb1ti.js +8 -0
- package/web/tower/dist/assets/timeline-definition-24CTP7MA-QJDuVTb3.js +120 -0
- package/web/tower/dist/assets/vennDiagram-4TSXK5OY-pBNxKxOV.js +34 -0
- package/web/tower/dist/assets/wardleyDiagram-VM6X3IG4-1PEarjN1.js +78 -0
- package/web/tower/dist/assets/webworkerAll-D_Np003p.js +83 -0
- package/web/tower/dist/assets/xychartDiagram-S5SC5T6Z-CLwsvOg7.js +7 -0
- package/web/tower/dist/index.html +41 -0
- package/contracts/review-provider-contract-mirror/v1.6.0/bundle/vectors/lens.json +0 -1
- package/docs/review-delivery-preflight.md +0 -22
- package/extensions/codegraph-tools.ts +0 -437
- package/lib/native-review-authority-quarantine.ts +0 -2
- package/lib/review-delivery-preflight.ts +0 -85
- package/lib/review-legacy-detector.ts +0 -81
- package/tests/child-codegraph-bootstrap.test.ts +0 -74
- package/tests/codegraph-tools.test.ts +0 -554
- package/tests/fixtures/devbinary/capabilities-v2.1.derived.json +0 -331
- package/tests/fixtures/refusal-identity.probe.mjs +0 -139
- package/tests/native-review-authority-quarantine.test.ts +0 -10
- package/tests/native-review-refusal-identity.test.ts +0 -25
- package/tests/review-delivery-preflight.test.ts +0 -462
- /package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/README.md +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/schemas/refuter.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/schemas/targeted-validator.schema.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/vectors/refuter.json +0 -0
- /package/contracts/review-provider-contract-mirror/{v1.6.0 → v1.7.0}/bundle/vectors/targeted-validator.json +0 -0
package/docs/readme-reference.md
CHANGED
|
@@ -187,7 +187,7 @@ otherwise `herdr` from `PATH`, without a shell.
|
|
|
187
187
|
| **Skill creation workflow** | Provides the `gentle-ai-skill-creator`/`gentle-ai-skill-improver` skills, `/skill-creation` prompt, and packaged style guide for LLM-first skills. |
|
|
188
188
|
| **Delivery skills** | Includes issue-first PRs, chained PRs, work-unit commits, cognitive docs, comment writing, and Judgment Day review. |
|
|
189
189
|
| **Bounded native review** | Freezes one candidate, dispatches only controller-selected lenses, and records native authority. Review outcomes are informational; delivery follows ordinary repository policy. |
|
|
190
|
-
| **Verified native runtime** | The current source checkout provisions the exact package-local Gentle AI
|
|
190
|
+
| **Verified native runtime** | The current source checkout provisions the exact package-local Gentle AI v5.1.0 runtime: signed, SHA-256-pinned release archives on Darwin/Linux and a Go SumDB-verified source build on Windows x64/arm64. It validates package-local integrity and rejects PATH, global, sibling, symlink, and mode fallbacks. |
|
|
191
191
|
| **Runtime safety** | Blocks destructive shell commands, asks for confirmation for sensitive operations, and blocks direct read/write/edit/grep/find/ls access to sensitive paths (the guard checks the tool's `path` input, so a search scoped to a directory still reads whatever that directory contains, and bash is not covered). Blocks writing a test file that reads git history at a literal commit or points `TMPDIR` inside the working directory (including a relative path such as `.tmp`, `./.tmp`, or `tmp/x`), in the primary session and in subagents. Refuses native review tools (`gentle_review*`) called from inside another tool, such as a codemode script: they run only as direct tool calls. |
|
|
192
192
|
|
|
193
193
|
## TPS notifications
|
|
@@ -198,6 +198,8 @@ The notification sums the reported usage of assistant messages in that run. TPS
|
|
|
198
198
|
|
|
199
199
|
An old manually installed `tps.ts` (for example, `.pi/extensions/tps.ts`) may produce duplicate notifications alongside the bundled extension. Disable or remove that manual copy yourself if you do not want both; Gentle Shell does not delete it.
|
|
200
200
|
|
|
201
|
+
The notification can be turned off in `/gentle:customize` under **Notifications**, with the `TPS usage notification` rows: the preference persists in the gentle-pi config home as `tps.json` (schema `gentle-pi.tps/v1`, `enabled` boolean, default enabled) and applies from the next agent run without a reload. A missing, malformed or unreadable file keeps notifying, and an explicit toggle in the card replaces a malformed file.
|
|
202
|
+
|
|
201
203
|
## Audio notifications
|
|
202
204
|
|
|
203
205
|
Audio is off by default. `/gentle:customize` → **Notifications** shows audio controls directly in the same customization modal, separate from visual settings and profiles: global enable/disable, three independent type groups (**Success**, **Error**, **Attention**) that each own a builtin tone or a validated absolute local WAV, per-event exceptions folded behind **Advanced**, explicit preview, and process mute/resume. Enter cycles a type/event sound; `f` edits its local WAV path inline and `p` previews it. Preview does not enable or save automatic audio. Invalid/unreadable configuration requires fresh explicit replacement confirmation. RPC (including interactive hosts) and children remain silent. Linux/macOS listening and manual lifecycle verification are pending; Windows audio is unavailable. See [sound notifications](sound-notifications.md) for the complete schema, defaults, file security, retention costs and manual matrix.
|
|
@@ -256,11 +258,11 @@ This installs the current npm release from the `latest` dist-tag. For a reproduc
|
|
|
256
258
|
|
|
257
259
|
### Source checkout
|
|
258
260
|
|
|
259
|
-
This checkout declares
|
|
261
|
+
This checkout declares `gentle-pi` `5.1.0` in [`package.json`](../package.json), with a package-local Gentle AI `v5.1.0` pin. Checkout metadata alone is not proof of npm publication; verify the registry version and its release workflow.
|
|
260
262
|
|
|
261
263
|
### Pi compatibility
|
|
262
264
|
|
|
263
|
-
The current package requires Pi 1.2.0 or newer and Node `^22.19.0 || >=23.6.0` (22.19.0 or a later 22.x release, or 23.6.0 or newer; Node 23.0–23.5 are not supported). Development tests resolve Pi through the open `>=1.0.0` development range. The private Vim editor adapter admits only the audited Pi `0.99.1`, `0.99.2`, `1.0.0`, `1.1.0`, `1.2.0`, `1.3.0`, `1.4.0`, `1.5.0`, `1.5.1`,
|
|
265
|
+
The current package requires Pi 1.2.0 or newer and Node `^22.19.0 || >=23.6.0` (22.19.0 or a later 22.x release, or 23.6.0 or newer; Node 23.0–23.5 are not supported). Development tests resolve Pi through the open `>=1.0.0` development range. The private Vim editor adapter admits only the audited Pi `0.99.1`, `0.99.2`, `1.0.0`, `1.1.0`, `1.2.0`, `1.3.0`, `1.4.0`, `1.5.0`, `1.5.1`, `1.5.2`, `1.6.0`, and `1.6.1` releases; any other release keeps ordinary prompt editing until its editor is audited. Use the latest Pi release; gentle-pi does not update your installed Pi automatically. Children, including any `GENTLE_PI_AGENTS_PI` override, must emit `agent_settled`: `agent_end` records a run's output but is not completion because retries or queued continuations may follow.
|
|
264
266
|
|
|
265
267
|
The [`v2.6.0` release](https://github.com/Gentleman-Programming/gentle-shell/releases/tag/v2.6.0) added persistent registered worktrees and grouped `/gentle:changes` views; fuller workspace interaction details are in the [Gentle Shell reference](gentle-shell.md). It also adds named atomic `/gentle:profiles`, native review intended-untracked selection and provider continuations, and opt-in custom ask responses. Pi recognizes its global Git-managed package path; subsystems install with explicit recovery guidance when npm lifecycle work was skipped. Windows keeps child consoles hidden and fixes ownership mode; Gentle Todo keeps the next pending task visible when collapsed.
|
|
266
268
|
|
|
@@ -280,7 +282,7 @@ Native RDD was introduced in `gentle-pi` `v0.15.0` on 2026-07-10 with bounded re
|
|
|
280
282
|
|
|
281
283
|
RDD is optional and on by default (since Gentle AI v4.0.0). Open `/gentle:rdd` to inspect the effective mode and deciding source, then explicitly select a repository or machine-wide action. The RDD entry in `/gentle:customize` shows the state checked when the card opened; explicitly applying it closes Customize and opens the same selector with fresh status. Highlighting the entry does not change RDD. Cancelling leaves both unchanged. Repository enable clears a clone-local off but cannot override machine-wide off; machine-wide enable does not clear a clone-local off. `/gentle:review-mode status|enable|disable` retains its existing clone-local behavior. These controls neither grant provider review consent nor change permission modes. The `.git/gentle-ai/candidate-views` parent must sit on a filesystem that honors private POSIX modes (or equivalent Windows ACLs); WSL DrvFS mounts without metadata can reject START before lineage creation.
|
|
282
284
|
|
|
283
|
-
The source checkout's RDD integration installs Gentle AI only into its private `.gentle-ai/` directory. Darwin and Linux use pinned release assets with asset and executable SHA-256 verification (signed archives for source pin `
|
|
285
|
+
The source checkout's RDD integration installs Gentle AI only into its private `.gentle-ai/` directory. Darwin and Linux use pinned release assets with asset and executable SHA-256 verification (signed archives for source pin `v5.1.0`; raw prerelease binaries only under a prerelease pin). Windows x64 and arm64 build the exact `v5.1.0` source tag from the `/v5` Go module with a local Go 1.25.10+ toolchain, a sealed Go environment, `GOTOOLCHAIN=local`, and `GOSUMDB=sum.golang.org`; it does not download Go automatically (the [installation wizard](install-wizard.md#pinned-go) can put its own pinned Go first on PATH for that build). Go runs in a short private directory under the system temp directory, never inside the package, because a deep pnpm store path pushes Go's working directories past MAX_PATH; a failed build prints its whole cause chain with the failing command's output tail. Windows provenance is Go-toolchain plus SumDB evidence and postinstall tamper detection, **not** Authenticode or protection against a malicious joint binary-and-manifest replacement. Package-private locks coordinate cooperative concurrent or crashed installers; their tombstones fail closed. A malicious same-user process with write access to package-private `node_modules` is outside that protocol because it can already replace package code, binary, or manifest, and portable Node has no pathname-delete CAS. It never uses `PATH` or a global `gentle-ai` installation. For development or offline installs only, set `GENTLE_PI_SKIP_GENTLE_AI_INSTALL=1`; native review operations then fail closed with an actionable `package-local-binary-missing` error. To recover explicitly, if `GENTLE_PI_SKIP_GENTLE_AI_INSTALL` is set, remove or unset it before changing to the installed `gentle-pi` package directory. Then run `node scripts/install-gentle-ai.mjs`. This invokes the package-owned installer without relying on a global binary or npm configuration change. A missing binary can result from skipped lifecycle scripts, but does not prove that lifecycle scripts were disabled.
|
|
284
286
|
|
|
285
287
|
Recommended companion packages, into the standalone `gentle-shell` home:
|
|
286
288
|
|
|
@@ -354,6 +356,7 @@ gentle-shell desktop [--yes] [--no-open] | --status | --uninstall
|
|
|
354
356
|
| `--package-root <dir>` | Force this directory as the gentle-pi package to load, taking over from any conflicting package the target `settings.json` already declares (see "Loading the package" below). |
|
|
355
357
|
| `--help`, `-h` | Print usage (flags, commands, env vars) and exit 0. |
|
|
356
358
|
| `--version` | Print `gentle-shell <version>`, `pi <version>`, and `home <mode> <dir>`, then exit 0. |
|
|
359
|
+
| `--version --json` | Print the same facts as one JSON line for programs, then exit 0: `{"schema":"gentle-shell.version/v1","gentleShell":"<version>","pi":"<version>"\|null,"home":{"mode":"link"\|"isolated"\|"path","dir":"<dir>"}}`. `pi` is `null` when Pi is installed but its version could not be read; with no Pi installed at all, it fails like `--version`, with the missing-Pi message on stderr and exit 1. `--json` belongs to the launcher only together with `--version` and no other Pi argument; anywhere else (including after `--`) it is forwarded to Pi. |
|
|
357
360
|
| `--` | Everything after is forwarded to pi verbatim, even text that looks like a `gentle-shell` flag. |
|
|
358
361
|
|
|
359
362
|
`--link`, `--isolated`, and `--home` are mutually exclusive; combining two is a usage error, as is `--home` or `--home=` with an empty value. Effective-home precedence: an explicit flag wins, then the persisted `home` subcommand choice, then the `--isolated` default. Every argument gentle-shell does not recognize — `--mode rpc`, `-p "..."`, etc. — is forwarded to pi unchanged.
|
|
@@ -417,7 +420,7 @@ Tradeoff: `--link` shares one credential store with pi; `import-pi` duplicates i
|
|
|
417
420
|
|
|
418
421
|
`gentle-shell update` updates the selected Pi through its verified npm or pnpm global owner, avoiding Pi's self-update refusal for pnpm v11 linked stores. Ownership requires successful global listing JSON, an exact canonical listed package-root/CLI match, and binding to the selected runtime. An adjacent peer (the launcher's `bundled` runtime) is supplied by the exact listed `gentle-pi` package: that Shell package is reinstalled at its current version so the manager re-resolves the peer (a main-channel `<version>-main.<sha12>` Shell, which is never published, from the tarball `gentle-shell upgrade --channel main` packed under `<config home>/main/packages/` (an absolute `GENTLE_PI_CONFIG_HOME`, else `~/.pi/gentle-ai`; a relative override is refused), refusing without installation when it is missing and naming `gentle-shell upgrade --channel release` then `--channel main` as the rebuild path), and a separate global Pi is never the target, because updating it leaves the peer a Shell install runs unchanged. A `PATH` or `GENTLE_SHELL_PI` runtime is supplied only by its own listed global Pi package; when that executable is a package-manager shim (pnpm's POSIX shim, a `.cmd`), Shell follows the single `dist/bundle/cli.js` it names, relative to the shim's directory, and refuses shims naming none or several. Pi and Shell are never installed together in a comma group, and unrelated packages are never reinstalled. Merely residing under `PNPM_HOME` proves nothing. Adjacent peers resolve where the package manager places them: nested under the Shell package (npm), beside it in pnpm's linked store, or in the global group's own `node_modules`. Linked Pi entries remain rejected. A source-linked Shell instead updates its exact checkout's local Pi, without replacing its global link: single-project Git roots only, an npm/pnpm `packageManager` declaration (pnpm at least that version; npm exact) and matching available version, a direct registry Pi range, and one matching lockfile are required. Multi-project/ancestor workspaces and conflicting lockfiles refuse before installation. Root-only pnpm configuration is retained after read-only manager queries prove a sole root project; updates do not ignore or rewrite its security policy. The named update disables lifecycle scripts and range changes, but may update Pi's transitive lockfile graph. pnpm updates additionally require that the actual old global group contains only the target top-level package: aggregated listings may contain other, separate groups, but shared groups are rejected because pnpm can remove the whole old group. Unknown, malformed, failed, or ambiguous ownership refuses before installation; update unsupported layouts with their supplying package manager.
|
|
419
422
|
|
|
420
|
-
Before installing, Shell resolves Pi's `latest` registry tag and rejects anything other than an exact stable version. For a pnpm update it reads that version's published `dependencies`, and those of each `@earendil-works/*` package it pins to an exact stable version, transitively (at most 32 packages). It temporarily adds only Pi and those exactly pinned packages to the effective `minimumReleaseAgeExclude` list: they are published with Pi, so pnpm's strict release-age mode could not otherwise approve them under `--no-save`. Because pnpm applies only the first exclusion naming a package, a new version joins that package's existing entry as one union (`name@1.0.0 || 1.5.2`); a bare name already covers every version. Other existing exclusions pass through unchanged, and the age policy stays in force for other packages, including ranged or third-party dependencies. If a manifest cannot be verified, the closure exceeds its bound, or an existing entry for one of those packages is not an exact-version union, nothing is installed. It does not change configuration files. A source update may select a Pi outside the declared range without changing the manifest; a later ordinary install can restore that range. npm's source `--no-save` update also leaves its lockfile unchanged.
|
|
423
|
+
Before installing, Shell resolves Pi's `latest` registry tag and rejects anything other than an exact stable version. A source update also moves the Shell's directly declared `@earendil-works` packages (such as `pi-ai` and `pi-tui`) to the exact versions the selected Pi pins, for pnpm and npm (npm also reads the published manifests), without changing manifest ranges. For a pnpm update it reads that version's published `dependencies`, and those of each `@earendil-works/*` package it pins to an exact stable version, transitively (at most 32 packages). It temporarily adds only Pi and those exactly pinned packages to the effective `minimumReleaseAgeExclude` list: they are published with Pi, so pnpm's strict release-age mode could not otherwise approve them under `--no-save`. Because pnpm applies only the first exclusion naming a package, a new version joins that package's existing entry as one union (`name@1.0.0 || 1.5.2`); a bare name already covers every version. Other existing exclusions pass through unchanged, and the age policy stays in force for other packages, including ranged or third-party dependencies. If a manifest cannot be verified, the closure exceeds its bound, or an existing entry for one of those packages is not an exact-version union, nothing is installed. It does not change configuration files. A source update may select a Pi outside the declared range without changing the manifest; a later ordinary install can restore that range. npm's source `--no-save` update also leaves its lockfile unchanged.
|
|
421
424
|
|
|
422
425
|
After installing, Shell reads the supplied Pi version back, naming the previous version when it changed; a different readable version is reported as an error instead of being called latest. Global listings, manager version probes and global installations run from the system temporary directory, so a project's `packageManager` pin in the current directory never changes which pnpm answers. A verified source update runs from the checkout and rechecks the Shell link, unchanged manifest, pnpm configuration and adjacent Pi there instead of reading a separate global Pi. When the version cannot be read back, the output says so and points at `gentle-shell --version`.
|
|
423
426
|
|
|
@@ -443,8 +446,22 @@ Requires the package-local gentle-ai pin at v3.6.0 or newer — the pin that add
|
|
|
443
446
|
|
|
444
447
|
`setup` runs gentle-ai with `GENTLE_AI_PI_EXCLUDE_PACKAGES=npm:gentle-pi` (merged with any value you already set), so a Gentle AI that supports package exclusion (gentle-ai #5503) never installs the launcher-owned `npm:gentle-pi` at all. An older Gentle AI ignores the variable and its managed Pi stack declares `npm:gentle-pi` itself in the home's `settings.json` as part of that install. Once gentle-ai exits 0, `setup` removes any such declaration again immediately: this launcher always loads its own gentle-pi (its own package root, or a take-over — see "Loading the package" below), never the one gentle-ai's stack just installed, so leaving that declaration in place would let the home drift onto whatever gentle-pi npm last installed — or, for a developer running from a source checkout, onto the published npm package — instead of the running launcher's own copy. `setup` also removes `npm:@juicesharp/rpiv-ask-user-question` the same way, if gentle-ai declared it: that package conflicts with gentle-pi's own first-party `ask_user_question` tool, and Pi refuses to load two providers for the same tool name (tracked upstream as gentle-ai #4820). `--dry-run` only reports both pending removals instead of running them. A home only ever keeps a `npm:gentle-pi` declaration — and so only ever stops getting the launcher's own injection (see "Loading the package" below) — when something puts it back after `setup` runs: a hand-edited `settings.json`, or `gentle-shell install npm:gentle-pi` run manually; in that case the home behaves like a regular Pi agent home with gentle-pi installed, and `gentle-shell update npm:gentle-pi` updates it like any other package.
|
|
445
448
|
|
|
449
|
+
**Checking whether a home needs setup**: `gentle-shell [home selectors] setup --check` reports whether the resolved home needs `setup` and why, from the same `~/.gentle-shell/config.json` provisioning record, gentle-ai pin and gentle-pi version that automatic first-run setup compares. It only reads: it runs before the home bootstrap, the startup update check and Pi resolution, so it creates no home, writes no config, downloads nothing and needs no Pi. It accepts only `--json`; any other argument exits 2. It exits 0 when the home is set up and 1 when it needs setup, printing one line (`gentle-shell: <dir> is set up`, or ``gentle-shell: <dir> needs setup (<reasons>); run `gentle-shell [selectors] setup` ``). With `--json` it prints one JSON line in both cases instead, without the home directory:
|
|
450
|
+
|
|
451
|
+
```json
|
|
452
|
+
{"schema":"gentle-shell.setup-check/v1","needsSetup":true,"home":{"mode":"isolated"},"reasons":["never-provisioned"],"foreign":false}
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
`reasons` is empty when set up, `["never-provisioned"]` when the home has no record, and otherwise names `"gentle-ai-changed"` and/or `"gentle-pi-changed"` (a record from before gentle-pi tracking counts as `"gentle-pi-changed"`). `foreign` is `true` for a home automatic setup never touches: every `--link` home, and a `--home` that is Pi's own default agent home or a directory with content Gentle Shell did not create; only a manual `setup` provisions it. A `--link` home is also never recorded, even after a manual `setup`, so it always reports `never-provisioned`; treat a foreign home as managed by the user. A client should parse the JSON line rather than rely on exit 1 alone: exit 1 only says setup is needed, while `reasons` and `foreign` say why and whether automatic setup will ever do it.
|
|
456
|
+
|
|
457
|
+
When the launcher config or the home cannot be read (for example `config.json` is unreadable or is a directory), `setup --check` exits 3 and reports why without any path: with `--json`, one line `{"schema":"gentle-shell.setup-check/v1","error":"could not read the launcher config or home (EISDIR)"}` on stdout; otherwise `gentle-shell setup --check: <message>` on stderr. A `config.json` that is not valid JSON is not an error: like every launch, the check treats it as having no record.
|
|
458
|
+
|
|
459
|
+
The check compares the running copy's gentle-ai pin and gentle-pi version, the same ones automatic setup in that copy compares. In a bundled install a launch only continues in another copy after you accept an update at the interactive startup prompt (which never appears for a command such as `setup --check`); that new copy then compares its own pin and version on its first launch, so a check run before such an update describes the copy you had.
|
|
460
|
+
|
|
446
461
|
**Configuring MCP servers**: `gentle-shell mcp <command>` runs Pi's own `mcp` command against the resolved home, so a standalone install configures MCP without a separate `pi` command. For example, `gentle-shell mcp add <name> -- <command> [args...]` adds a stdio server, `gentle-shell mcp add <name> --url <url>` adds a remote one, and `gentle-shell mcp list` shows what the home's `mcp.json` defines. Restart Gentle Shell to load new servers.
|
|
447
462
|
|
|
463
|
+
`gentle-shell mcp list --json` is forwarded to Pi unchanged and prints Pi's own JSON listing, not a Gentle Shell format. It includes each server's transport details (its URL, or its command and arguments) and its config source path, and it connects to every enabled server to report its state, exiting 1 when one fails. A desktop client that only needs names, transports and enabled state should prefer the in-session `mcp` store over this command.
|
|
464
|
+
|
|
448
465
|
**MCP connection status for extensions**: [Observe native MCP status](mcp-status.md) documents the sanitized snapshot/event API, feature detection on older Pi builds, and the isolated maintainer integration check. Configured counts and registered tools are not connectivity evidence.
|
|
449
466
|
|
|
450
467
|
**MCP migration**: Pi >= 0.99.0 provides built-in MCP; gentle-ai retires `pi-mcp-adapter` instead of installing it. After successful setup and package cleanup, Gentle Shell warns on stderr if `settings.json` still contains `"-builtin:mcp"`, `mcp.json` defines servers, and no active adapter remains. The warning names both files and the entry to remove. Setup never removes that entry or edits `mcp.json`: disabling MCP may be intentional. To enable those servers, remove only `"-builtin:mcp"` from `extensions` in the named `settings.json`, preserve other entries, and restart Pi. A declaration with `autoload: false` and no enabling extension patterns, an empty `extensions` list, or an ordinary `extensions: ["!**"]` filter without force-includes is inactive. Other nonempty filters require matching actual package resources, so setup reports uncertain adapter activity instead of silently treating the adapter as active. This read-only check also runs after automatic provisioning, but not during `--dry-run`. Errors encountered by the diagnostic produce an inspection warning without changing a successful setup's exit code; existing install and cleanup failures still propagate normally.
|
|
@@ -773,12 +790,12 @@ Text outside managed markers, other managed blocks, and kept blocks nested insid
|
|
|
773
790
|
| --------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
|
774
791
|
| Understanding needs more than the evidence budget (one parallel batch of at most 3 calls, ~10k tokens) or more than 3 lookups | Launch the package-owned `gentle-ai-explore` (if missing or unusable, native `Agent` with the same read-only mapping task, reporting the fallback); it returns a handoff of at most ~2k tokens with `path:line` evidence. Never force delegation for a small targeted question. |
|
|
775
792
|
| A large (tracked) task | Track it in the logbook; delegate a writer only for a reason (parallel units or context), never for size, file count, or a price ratio. A parallel unit is one independent piece of behavior (its code, tests, and docs together) that needs several minutes of work; smaller or dependent changes stay inline. Each writer prompt names the existing helpers and invariants its unit must reuse. |
|
|
776
|
-
| A change that touches a named high-risk item (assess `escalate`) | Run an independent verifier after the change's own checks; otherwise the focused test and suite run inline. A native high tier, a failed assessment, or the writer's model never adds one by itself. |
|
|
793
|
+
| A change that touches a named high-risk item (assess `escalate`) | Run an independent verifier after the change's own checks; otherwise the focused test and suite run inline. A native high tier, a failed assessment, or the writer's model never adds one by itself. With RDD on, the escalation also makes native review due; the verifier never replaces it. |
|
|
777
794
|
| Commit, push, or PR after code changes | Follow the loaded native instruction, or ordinary repository policy when none is supplied. |
|
|
778
795
|
| Wrong cwd, worktree/git accident, merge recovery, confusing test/env issue | Stop, preserve the affected scope, and investigate separately before resuming. |
|
|
779
796
|
| The runtime signals the context backstop | Pause and delegate the next bounded unit that needs several steps (its reads, edits, and checks), or stop and explain the exact blocker. Single small edits and state checks stay inline; keep command output bounded; a small task still runs its focused test and suite inline. |
|
|
780
797
|
|
|
781
|
-
The primary session also receives a one-shot, nonblocking `Exploration budget:` notice when successful tracked discovery in one request exceeds three lookups or 40,000 UTF-8 output text bytes. Bytes are an approximate evidence-budget signal, not a token count. The covered tools are `read`, `grep`, `find`, `ls`, `mem_search`, `mem_get_observation`, `mem_context`,
|
|
798
|
+
The primary session also receives a one-shot, nonblocking `Exploration budget:` notice when successful tracked discovery in one request exceeds three lookups or 40,000 UTF-8 output text bytes. Bytes are an approximate evidence-budget signal, not a token count. The covered tools are `read`, `grep`, `find`, `ls`, `mem_search`, `mem_get_observation`, `mem_context`, and the optional MCP tools `mcp__codegraph__codegraph_query` and `mcp__codegraph__codegraph_explore`. If selected, gentle-ai installs CodeGraph and exposes it to Pi through `~/.pi/agent/mcp.json`. Bash and PowerShell commands count only when the existing pure phase inference classifies them as `exploring`; commands classified as checking or unknown are excluded. This is an accounting heuristic, never permission to execute a command. Other memory tool names or aliases are not counted. Nested discovery counts only under a direct `codemode` or `mcp` call, not inside review, mutation, or verification tools. Counters span tool turns and automatic retries and reset at the next primary request; child and failed results are excluded. Direct and nested results remain untouched; the notice is a separate context message steered into an already-active run before its next model step. It is never sent while idle and never starts a new agent run. It is guidance, not a gate, a delegation guarantee, or permission to bypass mutation guards. Preparation for an already understood authorized inline write remains exempt.
|
|
782
799
|
|
|
783
800
|
The intended balanced loop for a bounded bugfix is:
|
|
784
801
|
|
|
@@ -818,15 +835,9 @@ The names are short because Unix socket paths created under `TMPDIR` are limited
|
|
|
818
835
|
|
|
819
836
|
### Review authority recovery and reset safety
|
|
820
837
|
|
|
821
|
-
Legacy pre-graph authority is
|
|
822
|
-
|
|
823
|
-
`gentle_review abandon`, `quarantine-legacy`, and `reconcile-authority` remain explicit v2.1.11 maintenance routes. For `abandon` the caller supplies only lineage, actor, and reason (`operator_disposition` or `retired_schema`). Free-text reasons are rejected locally with both accepted values before any inventory read, approval prompt, or native launch. For a valid reason, Pi freshly reads the native authority inventory, locates the single eligible compact-v2 entry for that lineage, derives its revision, snapshot identity, and discarded-work summary, and displays the exact eight-line `gentle-ai.review-abandon-authorization/v2` binding for fresh interactive approval; inventory-derived fields supplied by the caller are rejected, and the native CLI re-derives non-terminal compact-v2 eligibility and the exact discarded work before accepting it. Legacy quarantine accepts only `historical findings freeze changed unrelated transaction state` with disposition `quarantine-malformed-freeze-event` and uses its exact eight-line binding. Both require fresh interactive approval and fail closed headlessly.
|
|
838
|
+
Legacy pre-graph authority is not supported: its directories must be removed by hand, as the refusal names them. After fresh interactive authorization, RESET routes to the audited native `gentle-ai review reclaim` operation (lineage, actor, reason) and RECOVER routes to native `gentle-ai review recover`, so every destructive transition is executed and audited by the native authority store. Native inputs the request did not carry return a `native-input-required` envelope instead of being invented. Existing graph-v1 ordinary lineages remain readable and gate-validatable but are read-only; Judgment Day remains mutable on graph-v1.
|
|
824
839
|
|
|
825
|
-
`gentle_review
|
|
826
|
-
|
|
827
|
-
Reconciliation is intentionally narrow: native code may quarantine only the bound invalid compact-v2 recovery successor and persists the returned audit record; the predecessor stays untouched. Pi never recreates the retired `prepare-supersession`/`supersede` authority writer and never falls back to RESET or RECOVER.
|
|
828
|
-
|
|
829
|
-
`gentle_review repair-legacy-alias` is the sole v2.1.11 route for `unsupported historical v1 operation alias`. The model supplies only lineage, actor, and reason. Pi freshly reads the native inventory, derives the canonical repository, exact legacy revision, fixed diagnostic, and fixed `quarantine-approved-historical-alias` disposition, displays the LF-only eight-line binding, and requires a new interactive approval. Native re-derives eligibility and quarantines rather than rewriting or validating the historical chain.
|
|
840
|
+
`gentle_review abandon` remains an explicit maintenance route. For `abandon` the caller supplies only lineage, actor, and reason (`operator_disposition` or `retired_schema`). Free-text reasons are rejected locally with both accepted values before any inventory read, approval prompt, or native launch. For a valid reason, Pi freshly reads the native authority inventory, locates the single eligible compact-v2 entry for that lineage, derives its revision, snapshot identity, and discarded-work summary, and displays the exact eight-line `gentle-ai.review-abandon-authorization/v2` binding for fresh interactive approval; inventory-derived fields supplied by the caller are rejected, and the native CLI re-derives non-terminal compact-v2 eligibility and the exact discarded work before accepting it. It requires fresh interactive approval and fails closed headlessly.
|
|
830
841
|
|
|
831
842
|
`review dispose-result` is deliberately unsupported by Pi pending a separate design; it has no controller operation or fallback. All maintenance routes fail closed headlessly and never auto-run against legacy history.
|
|
832
843
|
|
|
@@ -885,7 +896,7 @@ flowchart TD
|
|
|
885
896
|
|
|
886
897
|
VALIDATE is informational. Commit, push, PR, and release commands follow ordinary repository policy; RDD never authorizes, rewrites, consumes review state for, or blocks them. Dangerous-command safety and destructive-review consent remain independent.
|
|
887
898
|
|
|
888
|
-
For the source checkout, native contract pairing is exact: this adapter resolves only the integrity-verified package-local Gentle AI
|
|
899
|
+
For the source checkout, native contract pairing is exact: this adapter resolves only the integrity-verified package-local Gentle AI v5.1.0 executable, independently hashes it, then negotiates `gentle-ai.review-integration/v2` outside the repository. Capabilities are cached by that executable digest. Every START, target status, FINALIZE, and validate request passes the same contract identifier. Negotiated envelopes decode exactly against the vendored schemas; `recover` routes only the provider-selected `action_disposition`, and optional additions require a future compatible schema/minor that the provider explicitly advertises and the consumer negotiates.
|
|
889
900
|
|
|
890
901
|
Contract `/v2` replaces the Base64 `candidate_diff` reviewer transport of `/v1` with immutable `base_tree`/`candidate_tree` plus an ordered `changed_path_manifest` and never an inline patch. `gentle-pi` negotiates `/v2` only, with no dual-lane fallback; the cutover landed as one atomic commit against gentle-ai v2.2.2 (tracked by the `migrate-review-integration-v2` change), and the `/v1` schemas stay packaged because the `/v2` schemas `$ref` into their fragments. This provider contract version is unrelated to Pi's own internal "compact-v2" review-authority naming used below — the shared digit is coincidental, not a version pairing.
|
|
891
902
|
|
|
@@ -897,7 +908,7 @@ Windows skips automatic candidate-owner sweeping during startup and candidate ma
|
|
|
897
908
|
|
|
898
909
|
On POSIX, if START rejects a group- or world-accessible `.git/gentle-ai/candidate-views` parent, Pi reports `candidate-owner-parent-privacy` before native START. When a sanitized probe shows the filesystem cannot represent private POSIX modes (for example WSL DrvFS mounts without `metadata`), Pi instead reports `candidate-owner-parent-chmod-ineffective` with guidance to move the Git common directory to a POSIX-metadata filesystem or enable metadata support. Inspect that parent's ownership and permissions and correct them out of band before retrying; Pi does not change them automatically. Other owner-preparation failures retain a generic diagnostic rather than exposing filesystem errors. `inspect` runs the same read-only privacy assert before advertising a ready `review.start` and withholds the advertisement with the identical typed diagnostic under `candidate-view-preflight-blocked`, so STATUS and START stop disagreeing about a candidate whose view cannot materialize (gentle-ai#2196).
|
|
899
910
|
|
|
900
|
-
Once the source checkout's pinned gentle-ai runtime (currently
|
|
911
|
+
Once the source checkout's pinned gentle-ai runtime (currently v5.1.0) has written review authority, rollback MUST preserve every native store and receipt and MUST NOT run a downgraded binary against that repository. Disable the Pi route or roll forward to a compatible authority-aware release instead; deleting authority data or reinstalling an older binary is not a rollback path.
|
|
901
912
|
|
|
902
913
|
### FINALIZE wrapper input
|
|
903
914
|
|
|
@@ -943,7 +954,7 @@ Compact ordinary has five states: `reviewing`, `correction_required`, `validatin
|
|
|
943
954
|
|
|
944
955
|
The validator cannot change claims, add findings, request fixes, launch actors, or request another attempt. A failed correction escalates instead of opening another review budget.
|
|
945
956
|
|
|
946
|
-
Compact authority uses content-derived CAS under the Git common directory. Exact retries are idempotent; stale/semantic retries, terminal mutation
|
|
957
|
+
Compact authority uses content-derived CAS under the Git common directory. Exact retries are idempotent; stale/semantic retries, and terminal mutation fail closed.
|
|
947
958
|
|
|
948
959
|
Trust boundary: The local orchestrator and same-user process are trusted to execute selected actors and submit their exact outputs. Native code owns scope, risk, IDs, canonicalization, state, receipts, and gates, and rejects malformed or inconsistent results structurally and causally. Malicious same-user host/process authenticity is a non-goal because that actor can replace the extension or mutate local authority; externally trusted attestation would require a separately privileged signer/service and is not claimed.
|
|
949
960
|
|
|
@@ -965,9 +976,9 @@ When RDD is on and an agent loop ends with an unreviewed candidate that the nati
|
|
|
965
976
|
|
|
966
977
|
While RDD is not off, the parent runs an ordinary native review with `gentle_review_run`: one call follows the provider-issued transitions from assess to the acknowledged approval. It returns `closed` after the verified acknowledgement, or stops with `not-due`, `assessment-unavailable`, `request-context-requires-fresh-review`, `consent-required`, `input-required` (a correction plan; with its findings and the review's non-blocking findings when the provider reports the non-blocking ones), `selection-required` (an intended-untracked selection; resume with `resume_input`), `stopped` (an escalated review: with its non-blocking findings), `handoff` (maintenance or another unsupported operation), `repeated-capture`, `forecast` (not displayed), `binding-drift` (lineage or target drift), `transition-limit`, `cancelled` (after an approved closure, with its findings) or `blocked` (an error). Single review operations remain for what its result hands back, for a review the user explicitly asks for after `not-due`, and for ASSESS after a delegated writer. `GENTLE_PI_EXPERIMENTAL_REVIEW_COORDINATOR=0` opts out; see [ordinary review in one call](review-coordinator.md).
|
|
967
978
|
|
|
968
|
-
An ordinary `gentle_review` START input may carry the agent lens selection: `{"mode":"ordinary","lenses":["risk","reliability"],"lensesReason":"<what you touched and how>"}`. The agent names every 4R lens pertinent to what it touched and how (`risk`, `resilience`, `readability`, `reliability`), with one single-line reason of at most 500 bytes; both fields or neither, never with `focus`. Pi forwards the selection through the native STATUS preflight (`--lenses`, `--lenses-reason`) so the provider-issued START freezes exactly those lenses.
|
|
979
|
+
An ordinary `gentle_review` START input may carry the agent lens selection: `{"mode":"ordinary","lenses":["risk","reliability"],"lensesReason":"<what you touched and how>"}`. The agent names every 4R lens pertinent to what it touched and how (`risk`, `resilience`, `readability`, `reliability`), with one single-line reason of at most 500 bytes; both fields or neither, never with `focus`. Pi forwards the selection through the native STATUS preflight (`--lenses`, `--lenses-reason`) so the provider-issued START freezes exactly those lenses. gentle-ai v4.6.0, the minimum supported provider, always understands the flags; a refusal of them is an ordinary STATUS failure and is not retried without the selection.
|
|
969
980
|
|
|
970
|
-
Review outcomes never authorize delivery; commit, push, pull-request and release actions follow ordinary repository policy.
|
|
981
|
+
Review outcomes never authorize delivery; commit, push, pull-request and release actions follow ordinary repository policy. RDD never denies a delivery command; with RDD on, a `git push`, `gh pr create` or `gh pr merge` call shows one non-blocking notice when the native STATUS reports an unreviewed candidate. Review it before delivering.
|
|
971
982
|
|
|
972
983
|
When grouped review capture returns `native-status-failed`, a decoded native failure is preserved as `native_failure`, including its phase, code, retry policy, and optional cause/context. `replayability` and `next_action` expose the provider's guidance; they do not trigger a retry. Group progress and mutation reporting still describe reviewers already prepared/submitted. Untyped errors retain their message-only behavior; raw process stdout/stderr and arbitrary error fields are not exposed.
|
|
973
984
|
|
|
@@ -1280,7 +1291,7 @@ Every profile also carries an orchestrator workflow mode: `organic` or `full-del
|
|
|
1280
1291
|
|
|
1281
1292
|
On the models screen, `w` toggles the shown profile's mode and `s` saves it together with that profile's routing. The Orchestrator row shows the mode beside the tier indicator, both modes with the same weight and differenced only by glyph and label, and its description line states what each mode does.
|
|
1282
1293
|
|
|
1283
|
-
The mode travels with the profile and is resolved on every prompt build, so switching profiles changes the orchestrator's rules on the next turn in both directions, with no restart. It is stored beside the profiles in `profiles.json`, under `workflow` keyed by profile name: `organic` needs no entry, so a profile that never opted in serializes exactly as before, and only a `full-delegation` mode is written. `GENTLE_PI_ORCHESTRATOR_MODE=organic|full-delegation` overrides the profile for the process, which is meant for CI and headless runs.
|
|
1294
|
+
The mode travels with the profile and is resolved on every prompt build, so switching profiles changes the orchestrator's rules on the next turn in both directions, with no restart. It is stored beside the profiles in `profiles.json`, under `workflow` keyed by profile name: `organic` needs no entry, so a profile that never opted in serializes exactly as before, and only a `full-delegation` mode is written (or the mode beside [Controlled Engineering](#controlled-engineering) when that option is on). `GENTLE_PI_ORCHESTRATOR_MODE=organic|full-delegation` overrides the profile for the process, which is meant for CI and headless runs.
|
|
1284
1295
|
|
|
1285
1296
|
Full delegation is a deliberate trade-off for an expensive orchestrator paired with light workers, for example DeepSeek Flash or a local model: every authorized change goes to a worker, small ones included, so expect a few times the wall time of organic on small tasks. In the #1494 three-fix fixture (2026-11-10, n=3 sequential runs per arm, bare Pi median 45.5 s and about $0.036 per run, Pi catalog cost estimates), organic took about 1.2x the wall time at about $0.10 per run. With the orchestrator held at `openai-codex/gpt-6-astra` at `medium`, full delegation took about 3.9x and about $0.66 per run with `openai/gpt-6.1-terra` at `max` workers (orchestrator $0.59, workers $0.05), and about 3.4x and at least $0.58 per run with `nan/deepseek-v4-flash` workers (NaN models are unpriced, so that is a floor). The orchestrator is about 90% of the cost because it carries the always-on prompt for 9-13 turns, so lighter workers save some time (about 24 s here) but little money, and on small tasks only organic stayed within 1.5x of bare Pi. See the [measurement report](../odd/tasks/1494-overhead-measurement.md). For full delegation, give the worker roles lighter models and effort than the orchestrator; prefer organic, on the profile or for one run with `GENTLE_PI_ORCHESTRATOR_MODE=organic`, when small-task latency or cost matters. The profile's `orchestrator` entry moves the live session when you select the profile in `/gentle:profiles`, and **Make default** writes it to `settings.json` for new sessions. A repo profile pin routes roles only, so under a pin the orchestrator stays the session model from `settings.json`, and `--model` (for example in a `-p` run) overrides it for that run.
|
|
1286
1297
|
|
|
@@ -1292,6 +1303,22 @@ The mode changes the runtime as well as the prompt, so the two never disagree:
|
|
|
1292
1303
|
|
|
1293
1304
|
`assets/orchestrator-full-delegation-card.md` is generated: it projects the rules both modes share out of `orchestrator-delegation.md`, `orchestrator-writer.md` and `orchestrator-delegation-reference.md`, which stay their single source. After editing any of them, run `node scripts/build-full-delegation-card.mjs --write`; `tests/full-delegation-closure.test.ts` fails while the card is out of date, and also fails if a full delegation session could reach an organic routing rule through any asset it names.
|
|
1294
1305
|
|
|
1306
|
+
### Controlled Engineering
|
|
1307
|
+
|
|
1308
|
+
Every profile can also turn on **Controlled Engineering**, off by default. It adds one `## Controlled Engineering` section to the system prompt with authoring rules against unrequested machinery. The section comes in two forms that share a common part (work the way the project already works: use the commands, environment and data setup its AGENTS.md, README, scripts or CI document, run a documented command as written, and report a failing one instead of building a replacement):
|
|
1309
|
+
|
|
1310
|
+
- the **writer section** adds the rules for building: name the evidence for each thing you build, start from the smallest change at the root, leave out new states, options, retries, wrappers, copies or compatibility paths no requirement names, verify in proportion (the project's tests for what changed plus the test of each changed rule are enough; anything beyond needs a reason stated in one line first), keep validation, data-loss handling, security checks and the test of each changed rule, and close with an `Additions:` line;
|
|
1311
|
+
- the **verifier section** adds only the rules for verifying: run the project's documented commands for what changed in your own copy of the repository, never create a container, database, toolchain or environment of your own (report the check as not verified instead), and say in one line why before doing anything beyond that. It decides how a verifier verifies at every risk level; how much to verify and review consent stay as the broader guidance says.
|
|
1312
|
+
|
|
1313
|
+
On the models screen, `c` toggles the shown profile's option and `s` saves it together with that profile's routing and orchestrator mode; **Use in this session** saves a changed option first, like the mode. While it is on, the Orchestrator row shows `· controlled` after the mode chip.
|
|
1314
|
+
|
|
1315
|
+
The section reaches only sessions that write or verify code:
|
|
1316
|
+
|
|
1317
|
+
- the primary session gets the writer section, when its profile has the option on and its orchestrator mode is `organic` (a full delegation orchestrator does not write); the mode that counts is the session's effective mode, so `GENTLE_PI_ORCHESTRATOR_MODE` decides it when set;
|
|
1318
|
+
- `gentle-ai-worker` and `jd-fix-agent` children get the writer section, and `gentle-ai-verify` children get the verifier section, when the launching session's profile has the option on, whatever its mode. The launcher passes this in `GENTLE_PI_CONTROLLED_ENGINEERING` as `writer` or `verify`; any other value gives no section.
|
|
1319
|
+
|
|
1320
|
+
Explore, review and every other agent never receive it. A child launched by hand with only the curated child extensions (without the Gentle Shell package) does not receive the section either; the normal Gentle Shell launch does. The option is read on every prompt build and every launch, so a profile switch applies on the next turn. It is stored in the same `workflow` entry as the mode, as `"controlledEngineering": true` beside `orchestratorMode`; off is never written, so a profile that does not enable it serializes exactly as before and gets exactly today's prompt. Only exactly `true` turns it on; any other value reads as off and drops nothing, so the entry keeps its orchestrator mode.
|
|
1321
|
+
|
|
1295
1322
|
### Model fallback chains
|
|
1296
1323
|
|
|
1297
1324
|
Each profile can give every agent an ordered list of fallback models, kept in `profile-fallbacks.json` next to `profiles.json` (older versions keep reading `profiles.json` and simply never fall back):
|
|
@@ -1380,6 +1407,8 @@ Every parent session uses one profile for its subagent launches, the footer and
|
|
|
1380
1407
|
|
|
1381
1408
|
A session that never selected a profile resolves the shared defaults once, at startup: the local pin (`p`), then the repository declaration (`P`), then the globally active profile in `profiles.json`. It keeps that profile's name, routing, and origin (`local`, `repo`, or `global`). Changing a pin, the repository declaration, the active profile, or the profile's content afterwards affects new sessions only, the same way Pi's "set as default" for the orchestrator model leaves open sessions alone. Outside a Git worktree the repository declaration is still read, as non-Git writer admission does.
|
|
1382
1409
|
|
|
1410
|
+
**Startup record.** At that same own start the session appends its startup state to the session file: the profile with its origin and full definition, orchestrator included, or a clear marked as started with no profile. Resume, fork, reload and subagent children write no record, because none of them is a session's start, and a session from before the record was introduced writes nothing. `follow` mode never writes one and ignores a recorded startup state when reading, while an explicit choice still wins; the Fast tier follows the same rule. On resume the record feeds reviewers and the Fast tier, and the live model is not switched again: Pi restores the session's own model from its `model_change` entries.
|
|
1411
|
+
|
|
1383
1412
|
**Live orchestrator at own start.** A new parent session that starts on a profile also switches its live orchestrator to that profile's `orchestrator` entry, resolved through the `p → P → G` layers of its own directory. Pi's persisted default remains only when no profile resolves or the entry is missing or unavailable (model not found or credentials missing); a failed switch keeps the current model and notifies you. This never writes `settings.json`. Follow mode and subagent children do not switch.
|
|
1384
1413
|
|
|
1385
1414
|
**Behavior change for unpinned sessions.** Without a pin or declaration, launches now use the globally active profile from `profiles.json`, replacing the materialized `subagents.json` routing wholesale like a pin does. Before, an unpinned launch read the materialized stores. When nothing is pinned and no profile is active, the session freezes "no profile" and keeps routing through the materialized stores, as before; a pin added later does not change it.
|
|
@@ -1400,7 +1429,7 @@ The notice appears once per distinct change: further launches stay quiet until t
|
|
|
1400
1429
|
|
|
1401
1430
|
**Task card layer token.** Every agents task card shows which layer supplied the launch's model, right after the model itself (for example `nan/glm5.3 · binding`): `binding` (selected in this session), `frozen:local` / `frozen:repo` / `frozen:global` (the startup snapshot and its origin), `pin:local` / `pin:repo` (a repository pin won), `declaration` (a non-Git repository declaration won), `profile` (the globally active profile routing), `definition` (the agent's own frontmatter), or `default` (Pi's default model). This makes staleness visible: a launch through a frozen session keeps showing its frozen token even after the editable layers below it change on disk.
|
|
1402
1431
|
|
|
1403
|
-
**Current limits.** The frozen profile is kept in memory for the life of the Pi process, so `/reload` keeps it. A session
|
|
1432
|
+
**Current limits.** The frozen profile is kept in memory for the life of the Pi process, so `/reload` keeps it. A session's own start records its startup state in the session file, so a session resumed in a new process (`--resume`, `--continue`, `--session`) keeps the profile it started with, origin and definition included. A session from before that record existed has none and freezes again from the defaults current at resume; `/fork` writes no record either, so it freezes from the defaults current at that moment and the drift notice memory starts empty, announcing a pending change once more. A profile chosen with **Use in this session** is not affected: it is restored from the current branch of the session file, and it records the startup state when the session knows it, so a later clear can return there. The record never switches the live model again: reviewers and the Fast tier read its orchestrator, and Pi restores the session's own model from its `model_change` entries.
|
|
1404
1433
|
|
|
1405
1434
|
## Commands
|
|
1406
1435
|
|
|
@@ -1532,7 +1561,7 @@ The frame labels INSERT, NORMAL, VISUAL (characterwise), or VISUAL LINE (linewis
|
|
|
1532
1561
|
|
|
1533
1562
|
**Deliberate `/` divergence from Claude Code:** NORMAL `/` hands off to **Pi's native slash commands and skills**, enters INSERT, and inserts `/` at the existing cursor. Pi offers slash completion only at the start of the first line; elsewhere it inserts a literal slash without moving or replacing the draft. There is **no reverse prompt-history search**. Pi's explicit history shortcuts still work, transferring to INSERT first. Unknown NORMAL printable input, encoded text and bracketed paste do not silently insert; application shortcuts can transfer to INSERT before acting.
|
|
1534
1563
|
|
|
1535
|
-
This is a bounded command subset, not full Claude Code/Vim parity. The private editor adapter supports only the audited Pi coding-agent/TUI `0.99.1`, `0.99.2`, `1.0.0`, `1.1.0`, `1.2.0`, `1.3.0`, `1.4.0`, `1.5.0`, `1.5.1`,
|
|
1564
|
+
This is a bounded command subset, not full Claude Code/Vim parity. The private editor adapter supports only the audited Pi coding-agent/TUI `0.99.1`, `0.99.2`, `1.0.0`, `1.1.0`, `1.2.0`, `1.3.0`, `1.4.0`, `1.5.0`, `1.5.1`, `1.5.2`, `1.6.0`, and `1.6.1` package pairs. The two 0.99 releases have byte-identical editor and undo-stack sources. Pi 1.0.0, 1.1.0 and 1.2.0 are separately audited against the touched state, paste/history, cursor/layout, autocomplete and undo-snapshot contracts. Pi 1.2.0's paired APC fake-cursor markers remain intact so the host can suppress software cursors when hardware cursors are visible; selection inversion and empty-prompt hints support both these markers and legacy SGR cursors. Pi 1.5.0 keeps undo-stack.js and editor-component.js byte-identical to 1.2.0; its editor.js adds a read-only `capturesViewportInput` getter and autocomplete pageUp/pageDown matching, and its keys.js adds Kitty F1-F12 mappings plus the functional PUA filter — all additive to input handling, leaving the audited state, paste, layout and autocomplete contracts unchanged. Pi 1.5.1 keeps undo-stack.js, keys.js and both custom-editor sources byte-identical to 1.5.0; its editor.js stops appending "undefined" to renumbered paste markers that have no size suffix, and its TUI strips every cursor marker from terminal output rather than only the first. Pi 1.5.2 ships the same pi-tui files as 1.5.1. Pi 1.6.0 keeps undo-stack.js, keys.js, editor-component.js and both custom-editor sources byte-identical to 1.5.2; its editor.js only narrows when autocomplete Enter submits a slash command (command-name menus only) and its utils.js adds a faster grapheme path, so the audited state, paste, layout and undo contracts are unchanged. Current bundled and unbundled 1.2.0 tests prove identity, edit/undo, paste, selection, wrapping/scroll and autocomplete behavior, not old/new byte identity. Fabricated metadata tests preserve exact-version admission coverage for the older audited releases. Version metadata must come from a canonical candidate host package root whose actual `CustomEditor` and `Editor` classes match the loaded classes, never from the extension's local metadata or CLI path alone. Unknown versions, mismatched prototypes, or invalid layouts fail closed: a single compatibility warning is shown and the prompt continues with ordinary editing instead of silently entering inert NORMAL mode. Operations that would cross a registered collapsed paste marker, or encounter duplicate occurrences of a registered marker ID, are rejected without editing it. Visual highlighting relies on Pi's render layout and may be omitted if its geometry cannot be validated. No live-terminal proof of every layout or complete parity is claimed.
|
|
1536
1565
|
|
|
1537
1566
|
Startup banner settings remain global in `banner.json` under `GENTLE_PI_CONFIG_HOME` (default `~/.pi/gentle-ai`). Existing `showRose` and `showTextLogo` opt-outs independently control the main startup artwork; both default to enabled. Changes apply on the next session or `/reload`. Color presets are `pink` (default), `cyan`, `yellow`, and `green`. The static sidebar heading is independent of these preferences and follows the active theme.
|
|
1538
1567
|
|
|
@@ -1604,13 +1633,13 @@ To opt out:
|
|
|
1604
1633
|
| `contracts/review-integration/v2/` | Byte-identical provider schemas and conformance fixtures for contract `review-integration/v2` (immutable `base_tree`/`candidate_tree`, ordered `changed_path_manifest`, no inline candidate diff), hash-checked before packaging. |
|
|
1605
1634
|
| `extensions/startup-banner.ts` | Shows and configures the startup intro, color presets, and compact runtime panel. |
|
|
1606
1635
|
| `extensions/skill-registry.ts` | Maintains `.atl/skill-registry.md` from project/user skills and closes file watchers on shutdown. |
|
|
1607
|
-
| `extensions/codegraph-tools.ts` | Runs workspace-scoped CodeGraph init/query/explore and keeps `.codegraph/` out of git through the worktree's local `info/exclude` (never a tracked file). |
|
|
1608
1636
|
| `contracts/review-provider-contract-mirror/` | Verified mirror of the Gentle AI provider contract bundle: the `orchestration/pi.md` review execution contract and the `routing/pi.md` ODD steps. Refresh it only with `node scripts/mirror-provider-contract.mjs --bundle <local archive or tree>`; `pnpm run check:provider-contract` checks it offline against its lock. |
|
|
1609
1637
|
| `assets/orchestrator.md` | Parent-session orchestration contract (always-on core). |
|
|
1610
1638
|
| `assets/orchestrator-delegation.md` | Lazy-loaded delegation card read when the parent delegates: the mirrored gentle-ai triggers, handoff, and launch rules. |
|
|
1611
1639
|
| `assets/orchestrator-delegation-reference.md` | Lazy-loaded delegation reference read only when named: per-action table, Work Routing Ladder, background policy, runtime bindings, canonical workflows. |
|
|
1612
1640
|
| `assets/orchestrator-tracking.md` | Lazy-loaded large-task ODD tracking: authorization, research, checks and consent, phase signaling, RDD assess, delivery. |
|
|
1613
1641
|
| `assets/orchestrator-verification.md` | Lazy-loaded Verification rule, native risk tiers, and writer verification contract. |
|
|
1642
|
+
| `assets/orchestrator-maintenance.md` | Lazy-loaded parent-only prerequisites for worker-prohibited maintenance or rollback. |
|
|
1614
1643
|
| `assets/orchestrator-writer.md` | Lazy-loaded allowed edit surfaces and Judgment Day fix dispatch. |
|
|
1615
1644
|
| `assets/orchestrator-prompts.md` | Lazy-loaded lossless blocking-prompt relays and the provider-defect classification stub; the report workflow loads from the `gentle-ai-provider-defect-report` skill. |
|
|
1616
1645
|
| `assets/orchestrator-memory.md` | Lazy-loaded ODD feature continuity and memory lifecycle rules. |
|
|
@@ -24,9 +24,9 @@ The non-blocking findings of a review that stopped come from the provider's STAT
|
|
|
24
24
|
|
|
25
25
|
When the run returns `input-required` for a correction request, or `stopped`, from that STATUS, it returns `non_blocking_findings`: the `statement`, and each finding's `id`, `lens`, `location`, `severity` and `disposition`, unchanged and in the provider's order. Findings are listed until the next one would bring the list past 16 KiB of JSON. `non_blocking_findings_omitted_count` then gives how many were left out, and is absent when none was. Beside it, `non_blocking_finding_claims`, `non_blocking_finding_claims_truncated` and `non_blocking_finding_claims_omitted` follow the advisory claims' rules and limits (1,024 and 8,192 UTF-8 bytes) over the listed findings only. Claims are cut at bytes only; control characters such as ANSI escapes pass through unchanged, as on the other claim paths. An empty claim is a claim. These top-level keys are the only copy. The relayed provider record (`result.result`) leaves out `non_blocking_findings`, and only that key; everything else in it is unchanged. With 300 findings of about 1.2 KB each, the run's result text is about 29 KB.
|
|
26
26
|
|
|
27
|
-
An empty provider list is the provider's answer and is returned as `non_blocking_findings` with no findings and no claims key. When STATUS has no such key (
|
|
27
|
+
An empty provider list is the provider's answer and is returned as `non_blocking_findings` with no findings and no claims key. When STATUS has no such key (another state), none of these keys is returned. A malformed set (a disposition outside the three values, a missing claim, an extra key, an empty statement, `findings` that is not an array, a non-string severity) fails the strict STATUS decode like any unknown key: the facade's STATUS fails and the run ends `blocked`, with none of these keys. The run drops the keys and keeps its outcome in one case only: a set the decoder accepts but whose `statement`, `id`, `severity`, `lens` or `location` is whitespace-only. The decoder requires only a non-empty string; the run requires a non-blank one.
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
gentle-ai v4.6.0, the minimum supported provider, always understands the opt-in, so a refusal of it is an ordinary STATUS failure: it is not retried without the flag. The flag is never added to a provider-issued intended-untracked submission, and the run never reads the provider's storage.
|
|
30
30
|
|
|
31
31
|
## Validation and rollout
|
|
32
32
|
|
|
@@ -51,3 +51,5 @@ Related delivery: [issue #2881](https://github.com/Gentleman-Programming/gentle-
|
|
|
51
51
|
The host-returned `non_blocking_findings.statement` shares the 1,024 UTF-8-byte per-claim limit. It preserves a whole-codepoint prefix and adds nested `statement_truncated: true` only when cut; otherwise the statement and absence of that marker stay unchanged. This also applies to an empty findings list. Consumers must disclose the marker rather than present the prefix as the complete provider statement.
|
|
52
52
|
|
|
53
53
|
This is derived host output, not a new field in the incoming provider schema. The 16 KiB findings-list bound, separate claim bounds, provider order, outcome and authority remain unchanged.
|
|
54
|
+
|
|
55
|
+
The run accepts an optional `escalate` ({"item":1-6,"reason":"<one line, non-empty, at most 500 UTF-8 bytes>"}, decoded by `decodeAgentRiskEscalation`; an invalid value is rejected before any native call). A fresh run forwards it to its internal `gentle_review assess` (native `--escalate-item/--escalate-reason`), so an escalated medium candidate is due instead of `not-due`, and to its `gentle_review start`, so the frozen tier and the consent envelope read high. The reason must be one line (no line breaks). The provider accepts the escalation on a STATUS only to preflight a fresh START, so Pi never sends it to inspect or to any other STATUS: the START step repeats its STATUS once with the escalation and executes the provider-issued START tokens unmodified. Pass the same `escalate` you named on assess. It is ignored on resume with `lineageId`, where assess is skipped.
|
|
@@ -27,13 +27,39 @@ The decoder accepts the closed origin set `user`, `local`, `repo`, and `global`.
|
|
|
27
27
|
A malformed `startup` field is dropped, so the record keeps the routing a v1
|
|
28
28
|
reader gives it, and a `startup` on a clear other than `"none"` reads as a
|
|
29
29
|
legacy clear. A v1 reader ignores `startup`, reads a startup record as an
|
|
30
|
-
explicit choice and a clear with `startup: "none"` as a clear
|
|
31
|
-
is the same except in the
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
explicit choice and a clear with `startup: "none"` as a clear. Launch routing
|
|
31
|
+
is the same except in the documented divergences:
|
|
32
|
+
|
|
33
|
+
| Case | Current version | A v1 reader |
|
|
34
|
+
| --- | --- | --- |
|
|
35
|
+
| No profile at start, a default appeared since (gentle-shell#2742 section 2) | Keeps no session profile | Routes the default that appeared |
|
|
36
|
+
| `follow` mode on a recorded startup bind (gentle-shell#1064 A3) | Ignores the startup bind and resolves the current defaults; an explicit choice still wins | Routes the recorded bind |
|
|
37
|
+
| A session recorded at its own start, resumed (gentle-shell#1064 A3) | Resumes on the recorded startup state, origin and full definition included | Reads the same record as an explicit choice and routes it |
|
|
38
|
+
|
|
39
|
+
A bound empty snapshot is not a clear. Snapshots are detached, known invalid
|
|
40
|
+
fields reject the whole binding, and unknown extra fields carry no routing
|
|
41
|
+
meaning. Existing route normalization supports legacy model strings and
|
|
42
|
+
`effort`; valid `thinking` takes precedence.
|
|
43
|
+
|
|
44
|
+
## Startup record
|
|
45
|
+
|
|
46
|
+
A session records its startup state at its own start, at the same moment it
|
|
47
|
+
freezes it in memory: the startup bind with its origin and full normalized
|
|
48
|
+
definition, orchestrator included, or the `clear` marked `startup: "none"` when
|
|
49
|
+
no profile resolves in any layer. Nothing else is a session's start, so a
|
|
50
|
+
resume, fork, reload or child session writes no record. A session from before
|
|
51
|
+
this record was introduced writes nothing and keeps its previous behavior: it
|
|
52
|
+
freezes on resume, and clear appends a legacy clear. A session with no session
|
|
53
|
+
file has nothing to append, so only the in-memory freeze carries its state.
|
|
54
|
+
|
|
55
|
+
A `follow` session never writes a startup record and, when reading, ignores a
|
|
56
|
+
startup bind and resolves the current defaults; an explicit choice still wins.
|
|
57
|
+
The Fast tier follows the same rule, so a `follow` session reads the default
|
|
58
|
+
tier of its own start rather than a recorded startup orchestrator.
|
|
59
|
+
|
|
60
|
+
On resume the record supplies the startup state reviewers and the Fast tier
|
|
61
|
+
read, orchestrator included. The live model is not switched again: Pi restores
|
|
62
|
+
the session's model from its own `model_change` entries.
|
|
37
63
|
|
|
38
64
|
## Replay
|
|
39
65
|
|
|
@@ -11,7 +11,7 @@ Audio is **off by default**. In a primary Pi terminal, open `/gentle:customize`
|
|
|
11
11
|
- **Success / Error / Attention** are the three basic types. Each shows its human selection — `success tone` / `error tone` / `attention tone`, `silence`, a local WAV basename, or `Custom (varies)` when the type's events diverge. **Enter** cycles that type between `silence → builtin:success → builtin:error → builtin:attention → silence`; on a mixed type Enter applies the recommended tone for that type. **`f`** opens an inline field to assign a literal absolute local WAV to that type, independently of the other types; the field is prefilled with the current path when the type already owns a file. **`p`** explicitly previews the type's selected sound, never an arbitrary one.
|
|
12
12
|
- **Advanced: show/hide per-event exceptions** reveals the per-event rows (`agent.completed`, `context.high`, …) for one-off overrides. They start folded; expanding or collapsing only changes the card view and never writes configuration or reproduces sound. Each per-event row cycles and assigns its own WAV like a type row. **`f`** and **`p`** on any type or per-event row stay inside the same card; in Notifications `p` never opens the visual profiles pane.
|
|
13
13
|
|
|
14
|
-
**Context warning.**
|
|
14
|
+
**Context warning.** Gentle warns once per high episode when estimated usage reaches the active model's auto-compaction threshold (context window minus Pi's effective reserve). Pi's threshold check still triggers only when usage exceeds that threshold. If auto-compaction is off or the threshold is unknown, Gentle still warns at **90%** of the model's context window. The sound is the `context.high` event: turn **Audio notifications** on, expand **Advanced**, and select its sound. A file saved before `context.high` existed stays silent for it, so select a sound on that Advanced row to hear it; its recommended tone is `builtin:attention`. The visual warning is fully independent: the **Sections → Section contextWarning** row in `/gentle:customize` (shown by default) toggles it, and neither toggle changes the other. The episode rearms when usage drops below the warning threshold, after a successful compaction, or in a new session; a canceled or failed compaction does not rearm, and the unknown reading right after a successful compaction never repeats the warning.
|
|
15
15
|
|
|
16
16
|
The inline field and the recovery confirmation render inside the same card. Long input prompts and values wrap across the available preview lines (up to three when the card has at least 11 rows), and Enter submits the exact value only when it is fully visible. If the input still cannot fit, `Needs N columns for one line · Esc cancel` gives a sufficient terminal width; shorten the value, enlarge the terminal, or cancel. **Escape** cancels the field or confirmation; a second Escape closes the card. If the field, value or `y yes` cannot be shown in full (a resize or a very small terminal), Enter or `y` is refused instead of acting on something invisible. Invalid/unreadable configuration disables automatic audio: saving in that state requires a fresh explicit inline confirmation to replace it, cancel preserves the file and settings, and a failed write does not grant consent to the next attempt. Diagnostics are generic local UI notices, not conversation messages, tools, model context or agent state.
|
|
17
17
|
|
package/docs/work-continuity.md
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Scope and delivered guidance
|
|
4
4
|
|
|
5
|
-
This is a Shell prompt-guidance improvement, not an incident closure for #2211 or #1669. The provider-owned canonical Close now owns the authorized-work boundary: authorized steps
|
|
5
|
+
This is a Shell prompt-guidance improvement, not an incident closure for #2211 or #1669. The provider-owned canonical Close now owns the authorized-work boundary: run authorized steps; wait for a pending child whose completion will resume the turn without asking the human. A real human decision, an explicit user stop, a denial, missing consent, or an exhausted limit stops only the work it applies to. If a failure has no permitted route left, report the affected work as incomplete rather than waiting for a decision nobody needs to make. Continue independent authorized work. Pi's always-on continuity keeps its unique guard, budget, worker-continuation, and maintenance clauses without restating that boundary or licensing a generic **Needs your decision** stop. The parent-only maintenance route remains guidance for an explicitly authorized operation a worker cannot perform. The worker's progress rule does not grant permission, change explicit limits, or implement a backup or rollback operation.
|
|
6
6
|
|
|
7
7
|
| Situation | Guidance delivered to the parent |
|
|
8
8
|
| --- | --- |
|
|
9
|
-
| A test or harness check fails,
|
|
10
|
-
| The human specified one run, no retries, or diagnostic only | Honor
|
|
11
|
-
| Proof is missing, partial, unavailable, or declined; consent is required; an action is denied; or
|
|
12
|
-
|
|
|
9
|
+
| A test or harness check fails, and correction remains in scope | A failed check is an obstacle. Keep correcting while each attempt names a cause from the output and changes something to address it. Never repeat the same change or stop because of an attempt count. |
|
|
10
|
+
| The human specified one run, no retries, or diagnostic only | Honor the explicit limit only for the work it names. Do not reset or bypass it. |
|
|
11
|
+
| Proof is missing, partial, unavailable, or declined; consent is required; an action is denied; or an explicit limit is exhausted | Missing proof forbids claiming completion of the affected work, never an independently authorized next step. Keep running required authorized checks that any applicable limit still allows. Denial, missing consent, and exhaustion stop only the work they apply to. Terminal outcomes and native review budgets remain binding; an unavailable verifier is not retried automatically. The narrow human-requested quota recovery below is a separate attempt. |
|
|
12
|
+
| The same cause fails again after a real fix with no new hypothesis; passing would require weakening, skipping or rewriting the check; or correction would cross allowed edit surfaces or an explicit limit | The worker returns `status: partial` with evidence. The worker's cycle ends, not the unit. On any such partial handoff, even after the first failure, the parent acts on the diagnosis without asking the user, within user scope and native authority: organic mode may fix inline when small and understood; full delegation launches a new bounded writer carrying the diagnosis and new evidence with a changed scope or hypothesis. The parent never repeats the same attempt or bypasses a limit. With no permitted new approach, it reports only that work as incomplete and continues independent work. Only a genuinely human decision goes to the user. See `docs/delegated-verification.md`. |
|
|
13
13
|
| A worker cannot perform an upgrade | Only the parent may act after explicit authorization of the operation, exact scope and ownership, preservation, permitted tools, applicable fresh consent and guards, a validated backup, applicable artifact/migration validation, and a recovery path are established. |
|
|
14
14
|
| An authorized rollback mixes task changes and unrelated changes, even in one file | Preserve unrelated edits; remove only proven task-created helpers. Never blanket restore, reset, or clean. Ambiguous ownership or denial stops the operation. |
|
|
15
15
|
|
|
@@ -29,7 +29,7 @@ This guidance changes no runtime quota detection, provider selection, or native
|
|
|
29
29
|
|
|
30
30
|
## Current bounded checks
|
|
31
31
|
|
|
32
|
-
On the earlier Windows workspace, with existing dependencies and no installation, network, provider, or model calls, the bounded verification run recorded these results against the then-current contract 1.4.0 mirror. The current field-test mirror is contract 1.
|
|
32
|
+
On the earlier Windows workspace, with existing dependencies and no installation, network, provider, or model calls, the bounded verification run recorded these results against the then-current contract 1.4.0 mirror. The current field-test mirror is contract 1.7.0 and `node scripts/check-provider-contract.mjs` validates its bytes:
|
|
33
33
|
|
|
34
34
|
| Command | Result |
|
|
35
35
|
| --- | --- |
|
|
@@ -54,6 +54,6 @@ Those four selected cases are bounded Windows evidence only. They do not attribu
|
|
|
54
54
|
|
|
55
55
|
## Ownership and review limits
|
|
56
56
|
|
|
57
|
-
The continuity clarification is Shell-owned and defers to the provider-owned Close contract for the authorized-work boundary. This delivery consumes the contract 1.
|
|
57
|
+
The continuity clarification is Shell-owned and defers to the provider-owned Close contract for the authorized-work boundary. This delivery consumes the contract 1.7.0 field-test mirror generated from the finished canonical source through `scripts/mirror-provider-contract.mjs`; Pi never hand-edits bundle bytes or the manifest digest, and the released installer pin and capability rows remain unchanged. A released provider, installer, RDD-switch, native-guard, question-tool, or surface-policy change requires separate authority.
|
|
58
58
|
|
|
59
59
|
Global RDD was on. An earlier preflight stopped with `immutable_review_transport_unsupported`; no review authority was started, no receipt exists, and review or mode was not retried. That unavailable review transport does not itself authorize or prohibit ordinary delivery; any delivery decision must use its applicable authority and evidence. Earlier wording advisories concerned the diagnostic-only sentence, now removed with the generic terminal license, and the maintenance sentence, which remains guidance without new authority. No GitHub issue status was consulted, and this document does not claim publishing, delivery approval, or issue closure.
|
package/docs/yolo-mode.md
CHANGED
|
@@ -23,7 +23,7 @@ While it is active:
|
|
|
23
23
|
|
|
24
24
|
- Every shell-guard confirmation is waived, data loss included: recursive `rm`, SQL drops, ordinary pushes, rebases, forced branch deletion, `npm publish` and configured guardrail `confirm`/`block` rules all run without dialogs. Code-level hard denies stay blocked (`git reset --hard`, forced clean, force push); see below.
|
|
25
25
|
- The Auto classifier does not run.
|
|
26
|
-
- The **sensitive-path guard stays
|
|
26
|
+
- The **sensitive-path guard stays on**: the `read`, `grep`, `find`, `ls`, `write` and `edit` tools refuse `.env` files, `.ssh`, keychains, `*.pem/*.key/*.p12/*.pfx`, `auth.json`, `secrets/` directories and cloud credential files in every mode, Super Yolo included. A shell command is judged as a whole line, and a sensitive path in it is blocked when the line contains a command that shows, copies, sends, opens, deletes or prints the environment (`cat`, `grep`, `cp`, `tar`, `scp`, `curl`, `git`, `vim`, `rm`, `printenv`, `env`, `xargs` and similar), `cd`/`pushd`, or `.`/`source` (env files excepted); when the path is under `.ssh` and the line contains a program that creates files there (`install`, `touch`, `mkdir`, `ssh-keygen`, `ssh-copy-id`); or when the path is a script rather than a path (`bash -c "true;cat key"`), the first word of a command, or a redirection target (`< .env`, `> .env`). Any other command may hand the file to a program, as in `docker compose --env-file .env.local up` or `ssh -i ~/.ssh/id_ed25519 host`, but a line that uses a secret file and also holds a reader (`docker compose --env-file .env.local logs app | tail -50`) is blocked as a whole: run the parts separately. The identity word of `ssh -i key host …` is exempt from the `.ssh` writer rule only, so `ssh -i key host npm install` passes. `printenv` and `env` are blocked, but not every way of printing the environment is: `export -p`, `declare`, `set` and `echo "$VAR"` after sourcing an env file pass. Other limits: the guard does not see a program not on the list that prints or sends a file, a write into `.ssh` through `docker run -v` or an unlisted program, a reader whose name is assembled at run time (`x=cat; $x .env`), an interpreter that receives the key as an argument, or what a program prints.
|
|
27
27
|
- Code-level catastrophic denies remain: `rm -rf /`, `rm -rf ~`, `--no-preserve-root`, `git reset --hard`, forced clean and force push are blocked without a dialog.
|
|
28
28
|
- `ask_user` tools, provider consent, maintenance/recovery authorization and opaque-token decisions are never automatically answered.
|
|
29
29
|
- `/gentle:yolo status` identifies Super Yolo while it is active, and `/gentle:yolo disable` returns to Normal. Children never inherit Super Yolo; their bounded delegation and child guards are unchanged.
|
|
@@ -154,7 +154,7 @@ class ChoiceModeView extends Container {
|
|
|
154
154
|
return this.editing ? undefined : this.list.handleMouse(event);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
override render(width: number): string[] {
|
|
157
|
+
override render(width: number): readonly string[] {
|
|
158
158
|
return (this.editing ? this.editor : this.list).render(width);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
@@ -319,7 +319,7 @@ export default function askUserChoice(pi: ExtensionAPI): void {
|
|
|
319
319
|
container.addChild(new Text(theme.fg("dim", "↑↓ navigate • Enter select • Esc cancel"), 1, 0));
|
|
320
320
|
container.addChild(new DynamicBorder((text: string) => theme.fg("accent", text)));
|
|
321
321
|
return container;
|
|
322
|
-
});
|
|
322
|
+
}, { blocked: { kind: "question", message: "Choice awaiting input" } });
|
|
323
323
|
} finally {
|
|
324
324
|
pi.events.emit(ASK_USER_CHOICE_BLOCKED_EVENT, { active: false });
|
|
325
325
|
}
|
|
@@ -340,7 +340,7 @@ export default function askUserQuestion(pi: ExtensionAPI): void {
|
|
|
340
340
|
container.addChild(view);
|
|
341
341
|
container.addChild(new DynamicBorder((text: string) => theme.fg("accent", text)));
|
|
342
342
|
return container;
|
|
343
|
-
});
|
|
343
|
+
}, { blocked: { kind: "question", message: "Questionnaire awaiting input" } });
|
|
344
344
|
}
|
|
345
345
|
finally {
|
|
346
346
|
pi.events.emit(ASK_USER_QUESTION_BLOCKED_EVENT, { active: false });
|
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
2
2
|
import { filterChildSessionContextFiles, type ContextFileOptions } from "../lib/child-context-files.ts";
|
|
3
|
-
import { CHILD_SKILLS_CATALOG_ENV
|
|
4
|
-
import { registerCodeGraphTool } from "./codegraph-tools.ts";
|
|
3
|
+
import { CHILD_SKILLS_CATALOG_ENV } from "../lib/agents-runner.ts";
|
|
5
4
|
|
|
6
5
|
// gentle-shell#1587: delegated children drop the orchestrator-only gentle-ai
|
|
7
6
|
// managed blocks and the engram-protocol memory block from their context files
|
|
8
7
|
// and keep everything else. Gentle Agents passes this file to every child with
|
|
9
8
|
// --extension because children do not load the gentle-pi package in the
|
|
10
|
-
// isolated Gentle Shell home.
|
|
11
|
-
// CodeGraph implementation only when explicitly requested and absent (the full
|
|
12
|
-
// package already registers it). Outside a child session it is inert.
|
|
9
|
+
// isolated Gentle Shell home. Outside a child session it is inert.
|
|
13
10
|
export function createChildContextExtension(env: NodeJS.ProcessEnv = process.env): (pi: ExtensionAPI) => void {
|
|
14
11
|
return (pi) => {
|
|
15
|
-
const requested = (env[REQUESTED_TOOLS_ENV] ?? "").split(",").map(name => name.trim());
|
|
16
|
-
if (env.GENTLE_PI_AGENTS_CHILD === "1" && requested.includes("codegraph")) {
|
|
17
|
-
pi.on("session_start", () => {
|
|
18
|
-
if (!pi.getAllTools().some(tool => tool.name === "codegraph")) registerCodeGraphTool(pi);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
12
|
pi.on("before_agent_start", (event) => {
|
|
22
13
|
if (env.GENTLE_PI_AGENTS_CHILD !== "1") return undefined;
|
|
23
14
|
// The filtered copies replace contextFiles on the same options object
|