@caupulican/pi-adaptative 0.81.38 → 0.81.40
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/CHANGELOG.md +131 -0
- package/README.md +2 -0
- package/dist/bundled-resources/extensions/tmux-agent-manager/README.md +18 -1
- package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.d.ts +133 -0
- package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.d.ts.map +1 -0
- package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.js +198 -0
- package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.js.map +1 -0
- package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.ts +311 -0
- package/dist/bundled-resources/extensions/tmux-agent-manager/index.d.ts +31 -2
- package/dist/bundled-resources/extensions/tmux-agent-manager/index.d.ts.map +1 -1
- package/dist/bundled-resources/extensions/tmux-agent-manager/index.js +823 -79
- package/dist/bundled-resources/extensions/tmux-agent-manager/index.js.map +1 -1
- package/dist/bundled-resources/extensions/tmux-agent-manager/index.ts +1043 -86
- package/dist/bundled-resources/runtimes/pi-shell-engine/commands/__init__.py +43 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/commands/fs.py +270 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/commands/search.py +252 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/commands/strings.py +399 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/commands/text.py +575 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/context.py +52 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/errors.py +49 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/exec.py +734 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/expand.py +238 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/main.py +132 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/nodes.py +116 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/parser.py +287 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/proc.py +137 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/state.py +100 -0
- package/dist/bundled-resources/runtimes/pi-shell-engine/tokens.py +579 -0
- package/dist/bundled-resources/skills/tool-call-repair/SKILL.md +19 -9
- package/dist/bundled-resources/skills/tool-call-repair/references/failure-grammar.md +22 -5
- package/dist/bundled-resources/skills/tool-call-repair/references/repair-catalogue.md +7 -7
- package/dist/bundled-resources/skills/tool-call-repair/references/text-protocol-grammar.md +28 -7
- package/dist/cli/args.d.ts +5 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +24 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/core/agent-directory-layout.d.ts +15 -0
- package/dist/core/agent-directory-layout.d.ts.map +1 -0
- package/dist/core/agent-directory-layout.js +72 -0
- package/dist/core/agent-directory-layout.js.map +1 -0
- package/dist/core/agent-paths.d.ts +66 -0
- package/dist/core/agent-paths.d.ts.map +1 -0
- package/dist/core/agent-paths.js +170 -0
- package/dist/core/agent-paths.js.map +1 -0
- package/dist/core/agent-session-runtime.d.ts +52 -8
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +397 -79
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-services.d.ts +1 -0
- package/dist/core/agent-session-services.d.ts.map +1 -1
- package/dist/core/agent-session-services.js +4 -3
- package/dist/core/agent-session-services.js.map +1 -1
- package/dist/core/agent-session.d.ts +255 -103
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +754 -1173
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/autonomy/approval-gate.d.ts +3 -2
- package/dist/core/autonomy/approval-gate.d.ts.map +1 -1
- package/dist/core/autonomy/approval-gate.js +6 -28
- package/dist/core/autonomy/approval-gate.js.map +1 -1
- package/dist/core/autonomy/bounded-completion.d.ts +1 -1
- package/dist/core/autonomy/bounded-completion.d.ts.map +1 -1
- package/dist/core/autonomy/bounded-completion.js +1 -1
- package/dist/core/autonomy/bounded-completion.js.map +1 -1
- package/dist/core/autonomy/contracts.d.ts +26 -9
- package/dist/core/autonomy/contracts.d.ts.map +1 -1
- package/dist/core/autonomy/contracts.js.map +1 -1
- package/dist/core/autonomy/foreground-envelope.d.ts +8 -2
- package/dist/core/autonomy/foreground-envelope.d.ts.map +1 -1
- package/dist/core/autonomy/foreground-envelope.js +8 -25
- package/dist/core/autonomy/foreground-envelope.js.map +1 -1
- package/dist/core/autonomy/gates.d.ts.map +1 -1
- package/dist/core/autonomy/gates.js +8 -10
- package/dist/core/autonomy/gates.js.map +1 -1
- package/dist/core/autonomy/lane-private-paths.d.ts +2 -0
- package/dist/core/autonomy/lane-private-paths.d.ts.map +1 -0
- package/dist/core/autonomy/lane-private-paths.js +16 -0
- package/dist/core/autonomy/lane-private-paths.js.map +1 -0
- package/dist/core/autonomy/lane-tool-surface.d.ts +10 -0
- package/dist/core/autonomy/lane-tool-surface.d.ts.map +1 -1
- package/dist/core/autonomy/lane-tool-surface.js +46 -8
- package/dist/core/autonomy/lane-tool-surface.js.map +1 -1
- package/dist/core/autonomy/lane-tracker.d.ts +24 -1
- package/dist/core/autonomy/lane-tracker.d.ts.map +1 -1
- package/dist/core/autonomy/lane-tracker.js +43 -1
- package/dist/core/autonomy/lane-tracker.js.map +1 -1
- package/dist/core/autonomy/risk-assessment.d.ts +1 -2
- package/dist/core/autonomy/risk-assessment.d.ts.map +1 -1
- package/dist/core/autonomy/risk-assessment.js +1 -123
- package/dist/core/autonomy/risk-assessment.js.map +1 -1
- package/dist/core/autonomy/session-lane-record.d.ts +4 -4
- package/dist/core/autonomy/session-lane-record.d.ts.map +1 -1
- package/dist/core/autonomy/session-lane-record.js +16 -29
- package/dist/core/autonomy/session-lane-record.js.map +1 -1
- package/dist/core/autonomy/telemetry-events.d.ts +1 -1
- package/dist/core/autonomy/telemetry-events.d.ts.map +1 -1
- package/dist/core/autonomy/telemetry-events.js +1 -1
- package/dist/core/autonomy/telemetry-events.js.map +1 -1
- package/dist/core/autonomy-telemetry.d.ts +7 -7
- package/dist/core/autonomy-telemetry.d.ts.map +1 -1
- package/dist/core/autonomy-telemetry.js +9 -9
- package/dist/core/autonomy-telemetry.js.map +1 -1
- package/dist/core/background-lane-controller.d.ts +90 -156
- package/dist/core/background-lane-controller.d.ts.map +1 -1
- package/dist/core/background-lane-controller.js +192 -968
- package/dist/core/background-lane-controller.js.map +1 -1
- package/dist/core/bash-execution-controller.d.ts +4 -0
- package/dist/core/bash-execution-controller.d.ts.map +1 -1
- package/dist/core/bash-execution-controller.js +7 -1
- package/dist/core/bash-execution-controller.js.map +1 -1
- package/dist/core/capability-contract.d.ts +4 -0
- package/dist/core/capability-contract.d.ts.map +1 -0
- package/dist/core/capability-contract.js +28 -0
- package/dist/core/capability-contract.js.map +1 -0
- package/dist/core/compaction-controller.d.ts +90 -0
- package/dist/core/compaction-controller.d.ts.map +1 -0
- package/dist/core/compaction-controller.js +452 -0
- package/dist/core/compaction-controller.js.map +1 -0
- package/dist/core/compaction-support.d.ts +24 -13
- package/dist/core/compaction-support.d.ts.map +1 -1
- package/dist/core/compaction-support.js +43 -7
- package/dist/core/compaction-support.js.map +1 -1
- package/dist/core/context/context-artifacts.d.ts +6 -2
- package/dist/core/context/context-artifacts.d.ts.map +1 -1
- package/dist/core/context/context-artifacts.js +34 -2
- package/dist/core/context/context-artifacts.js.map +1 -1
- package/dist/core/context/context-audit.d.ts +33 -1
- package/dist/core/context/context-audit.d.ts.map +1 -1
- package/dist/core/context/context-audit.js +31 -5
- package/dist/core/context/context-audit.js.map +1 -1
- package/dist/core/context/context-store-retention.d.ts +8 -2
- package/dist/core/context/context-store-retention.d.ts.map +1 -1
- package/dist/core/context/context-store-retention.js +158 -35
- package/dist/core/context/context-store-retention.js.map +1 -1
- package/dist/core/context/okf-memory.d.ts.map +1 -1
- package/dist/core/context/okf-memory.js +9 -11
- package/dist/core/context/okf-memory.js.map +1 -1
- package/dist/core/context/sqlite-runtime-index.d.ts.map +1 -1
- package/dist/core/context/sqlite-runtime-index.js +6 -8
- package/dist/core/context/sqlite-runtime-index.js.map +1 -1
- package/dist/core/context-gc.d.ts +3 -0
- package/dist/core/context-gc.d.ts.map +1 -1
- package/dist/core/context-gc.js +26 -6
- package/dist/core/context-gc.js.map +1 -1
- package/dist/core/context-pipeline.d.ts +26 -4
- package/dist/core/context-pipeline.d.ts.map +1 -1
- package/dist/core/context-pipeline.js +146 -18
- package/dist/core/context-pipeline.js.map +1 -1
- package/dist/core/cost-guard.d.ts +19 -3
- package/dist/core/cost-guard.d.ts.map +1 -1
- package/dist/core/cost-guard.js +18 -3
- package/dist/core/cost-guard.js.map +1 -1
- package/dist/core/default-tool-surface.d.ts.map +1 -1
- package/dist/core/default-tool-surface.js +1 -0
- package/dist/core/default-tool-surface.js.map +1 -1
- package/dist/core/delegation/managed-lane-controller.d.ts +34 -0
- package/dist/core/delegation/managed-lane-controller.d.ts.map +1 -0
- package/dist/core/delegation/managed-lane-controller.js +217 -0
- package/dist/core/delegation/managed-lane-controller.js.map +1 -0
- package/dist/core/delegation/session-worker-claim.d.ts +44 -0
- package/dist/core/delegation/session-worker-claim.d.ts.map +1 -0
- package/dist/core/delegation/session-worker-claim.js +98 -0
- package/dist/core/delegation/session-worker-claim.js.map +1 -0
- package/dist/core/delegation/worker-actions.d.ts +7 -5
- package/dist/core/delegation/worker-actions.d.ts.map +1 -1
- package/dist/core/delegation/worker-actions.js +20 -4
- package/dist/core/delegation/worker-actions.js.map +1 -1
- package/dist/core/delegation/worker-claim.d.ts +56 -0
- package/dist/core/delegation/worker-claim.d.ts.map +1 -0
- package/dist/core/delegation/worker-claim.js +239 -0
- package/dist/core/delegation/worker-claim.js.map +1 -0
- package/dist/core/delegation/worker-delegation-controller.d.ts +110 -0
- package/dist/core/delegation/worker-delegation-controller.d.ts.map +1 -0
- package/dist/core/delegation/worker-delegation-controller.js +861 -0
- package/dist/core/delegation/worker-delegation-controller.js.map +1 -0
- package/dist/core/delegation/worker-delegation-request.d.ts +11 -0
- package/dist/core/delegation/worker-delegation-request.d.ts.map +1 -0
- package/dist/core/delegation/worker-delegation-request.js +2 -0
- package/dist/core/delegation/worker-delegation-request.js.map +1 -0
- package/dist/core/delegation/worker-dispatch-scheduler.d.ts +40 -0
- package/dist/core/delegation/worker-dispatch-scheduler.d.ts.map +1 -0
- package/dist/core/delegation/worker-dispatch-scheduler.js +93 -0
- package/dist/core/delegation/worker-dispatch-scheduler.js.map +1 -0
- package/dist/core/delegation/worker-execution-policy.d.ts +62 -0
- package/dist/core/delegation/worker-execution-policy.d.ts.map +1 -0
- package/dist/core/delegation/worker-execution-policy.js +160 -0
- package/dist/core/delegation/worker-execution-policy.js.map +1 -0
- package/dist/core/delegation/worker-lane-projection.d.ts +14 -0
- package/dist/core/delegation/worker-lane-projection.d.ts.map +1 -0
- package/dist/core/delegation/worker-lane-projection.js +100 -0
- package/dist/core/delegation/worker-lane-projection.js.map +1 -0
- package/dist/core/delegation/worker-lifecycle.d.ts +97 -0
- package/dist/core/delegation/worker-lifecycle.d.ts.map +1 -0
- package/dist/core/delegation/worker-lifecycle.js +339 -0
- package/dist/core/delegation/worker-lifecycle.js.map +1 -0
- package/dist/core/delegation/worker-notification-coordinator.d.ts +36 -0
- package/dist/core/delegation/worker-notification-coordinator.d.ts.map +1 -0
- package/dist/core/delegation/worker-notification-coordinator.js +90 -0
- package/dist/core/delegation/worker-notification-coordinator.js.map +1 -0
- package/dist/core/delegation/worker-profile-resolver.d.ts +55 -0
- package/dist/core/delegation/worker-profile-resolver.d.ts.map +1 -0
- package/dist/core/delegation/worker-profile-resolver.js +113 -0
- package/dist/core/delegation/worker-profile-resolver.js.map +1 -0
- package/dist/core/delegation/worker-runner.d.ts +25 -14
- package/dist/core/delegation/worker-runner.d.ts.map +1 -1
- package/dist/core/delegation/worker-runner.js +122 -53
- package/dist/core/delegation/worker-runner.js.map +1 -1
- package/dist/core/delegation/worker-task-label.d.ts +3 -0
- package/dist/core/delegation/worker-task-label.d.ts.map +1 -0
- package/dist/core/delegation/worker-task-label.js +11 -0
- package/dist/core/delegation/worker-task-label.js.map +1 -0
- package/dist/core/doctor.d.ts +8 -0
- package/dist/core/doctor.d.ts.map +1 -1
- package/dist/core/doctor.js +32 -1
- package/dist/core/doctor.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader.d.ts +5 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +68 -13
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +7 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/storage.d.ts +8 -0
- package/dist/core/extensions/storage.d.ts.map +1 -0
- package/dist/core/extensions/storage.js +28 -0
- package/dist/core/extensions/storage.js.map +1 -0
- package/dist/core/extensions/types.d.ts +101 -1
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/failure-corpus.d.ts +1 -15
- package/dist/core/failure-corpus.d.ts.map +1 -1
- package/dist/core/failure-corpus.js +9 -37
- package/dist/core/failure-corpus.js.map +1 -1
- package/dist/core/foreground-recovery-controller.d.ts +52 -0
- package/dist/core/foreground-recovery-controller.d.ts.map +1 -0
- package/dist/core/foreground-recovery-controller.js +111 -0
- package/dist/core/foreground-recovery-controller.js.map +1 -0
- package/dist/core/gateways/channel-provider.d.ts +3 -0
- package/dist/core/gateways/channel-provider.d.ts.map +1 -1
- package/dist/core/gateways/channel-provider.js +31 -6
- package/dist/core/gateways/channel-provider.js.map +1 -1
- package/dist/core/goal-loop-controller.d.ts +17 -1
- package/dist/core/goal-loop-controller.d.ts.map +1 -1
- package/dist/core/goal-loop-controller.js +79 -11
- package/dist/core/goal-loop-controller.js.map +1 -1
- package/dist/core/goals/goal-acceptance.d.ts +11 -0
- package/dist/core/goals/goal-acceptance.d.ts.map +1 -0
- package/dist/core/goals/goal-acceptance.js +25 -0
- package/dist/core/goals/goal-acceptance.js.map +1 -0
- package/dist/core/goals/goal-auto-continue-controller.d.ts +27 -0
- package/dist/core/goals/goal-auto-continue-controller.d.ts.map +1 -0
- package/dist/core/goals/goal-auto-continue-controller.js +93 -0
- package/dist/core/goals/goal-auto-continue-controller.js.map +1 -0
- package/dist/core/goals/goal-continuation-controller.d.ts +48 -2
- package/dist/core/goals/goal-continuation-controller.d.ts.map +1 -1
- package/dist/core/goals/goal-continuation-controller.js +87 -0
- package/dist/core/goals/goal-continuation-controller.js.map +1 -1
- package/dist/core/goals/goal-continuation-defaults.d.ts +39 -0
- package/dist/core/goals/goal-continuation-defaults.d.ts.map +1 -1
- package/dist/core/goals/goal-continuation-defaults.js +42 -0
- package/dist/core/goals/goal-continuation-defaults.js.map +1 -1
- package/dist/core/goals/goal-continuation-prompt.d.ts +5 -1
- package/dist/core/goals/goal-continuation-prompt.d.ts.map +1 -1
- package/dist/core/goals/goal-continuation-prompt.js +56 -15
- package/dist/core/goals/goal-continuation-prompt.js.map +1 -1
- package/dist/core/goals/goal-lifecycle.d.ts +20 -0
- package/dist/core/goals/goal-lifecycle.d.ts.map +1 -0
- package/dist/core/goals/goal-lifecycle.js +17 -0
- package/dist/core/goals/goal-lifecycle.js.map +1 -0
- package/dist/core/goals/goal-runtime-snapshot.d.ts +105 -4
- package/dist/core/goals/goal-runtime-snapshot.d.ts.map +1 -1
- package/dist/core/goals/goal-runtime-snapshot.js +91 -6
- package/dist/core/goals/goal-runtime-snapshot.js.map +1 -1
- package/dist/core/goals/goal-state.d.ts +90 -1
- package/dist/core/goals/goal-state.d.ts.map +1 -1
- package/dist/core/goals/goal-state.js +78 -15
- package/dist/core/goals/goal-state.js.map +1 -1
- package/dist/core/goals/goal-tool-core.d.ts +58 -2
- package/dist/core/goals/goal-tool-core.d.ts.map +1 -1
- package/dist/core/goals/goal-tool-core.js +82 -6
- package/dist/core/goals/goal-tool-core.js.map +1 -1
- package/dist/core/goals/session-goal-state.d.ts +13 -6
- package/dist/core/goals/session-goal-state.d.ts.map +1 -1
- package/dist/core/goals/session-goal-state.js +20 -28
- package/dist/core/goals/session-goal-state.js.map +1 -1
- package/dist/core/human-input.d.ts +100 -0
- package/dist/core/human-input.d.ts.map +1 -0
- package/dist/core/human-input.js +362 -0
- package/dist/core/human-input.js.map +1 -0
- package/dist/core/index.d.ts +9 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +9 -1
- package/dist/core/index.js.map +1 -1
- package/dist/core/{telemetry.d.ts → install-telemetry.d.ts} +1 -1
- package/dist/core/install-telemetry.d.ts.map +1 -0
- package/dist/core/{telemetry.js → install-telemetry.js} +1 -1
- package/dist/core/install-telemetry.js.map +1 -0
- package/dist/core/keybindings.d.ts +27 -1
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +34 -8
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/learning/learning-audit.d.ts +2 -4
- package/dist/core/learning/learning-audit.d.ts.map +1 -1
- package/dist/core/learning/learning-audit.js +9 -29
- package/dist/core/learning/learning-audit.js.map +1 -1
- package/dist/core/learning/learning-gate.d.ts.map +1 -1
- package/dist/core/learning/learning-gate.js +1 -6
- package/dist/core/learning/learning-gate.js.map +1 -1
- package/dist/core/learning/observation-store.d.ts +12 -3
- package/dist/core/learning/observation-store.d.ts.map +1 -1
- package/dist/core/learning/observation-store.js +30 -15
- package/dist/core/learning/observation-store.js.map +1 -1
- package/dist/core/learning/session-learning-decision.d.ts +2 -4
- package/dist/core/learning/session-learning-decision.d.ts.map +1 -1
- package/dist/core/learning/session-learning-decision.js +9 -29
- package/dist/core/learning/session-learning-decision.js.map +1 -1
- package/dist/core/learning/skill-curator.d.ts +5 -1
- package/dist/core/learning/skill-curator.d.ts.map +1 -1
- package/dist/core/learning/skill-curator.js +21 -19
- package/dist/core/learning/skill-curator.js.map +1 -1
- package/dist/core/local-runtime-controller.d.ts +65 -3
- package/dist/core/local-runtime-controller.d.ts.map +1 -1
- package/dist/core/local-runtime-controller.js +186 -26
- package/dist/core/local-runtime-controller.js.map +1 -1
- package/dist/core/memory/providers/file-store.d.ts +1 -1
- package/dist/core/memory/providers/file-store.d.ts.map +1 -1
- package/dist/core/memory/providers/file-store.js +6 -6
- package/dist/core/memory/providers/file-store.js.map +1 -1
- package/dist/core/memory-controller.d.ts.map +1 -1
- package/dist/core/memory-controller.js +4 -4
- package/dist/core/memory-controller.js.map +1 -1
- package/dist/core/model-capability.d.ts +34 -0
- package/dist/core/model-capability.d.ts.map +1 -1
- package/dist/core/model-capability.js +43 -1
- package/dist/core/model-capability.js.map +1 -1
- package/dist/core/model-resolver.d.ts +1 -1
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +6 -9
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-router/intent-classifier.d.ts +1 -4
- package/dist/core/model-router/intent-classifier.d.ts.map +1 -1
- package/dist/core/model-router/intent-classifier.js +1 -156
- package/dist/core/model-router/intent-classifier.js.map +1 -1
- package/dist/core/model-router/tool-escalation.d.ts +15 -0
- package/dist/core/model-router/tool-escalation.d.ts.map +1 -1
- package/dist/core/model-router/tool-escalation.js +23 -1
- package/dist/core/model-router/tool-escalation.js.map +1 -1
- package/dist/core/model-router-controller.d.ts +34 -7
- package/dist/core/model-router-controller.d.ts.map +1 -1
- package/dist/core/model-router-controller.js +95 -16
- package/dist/core/model-router-controller.js.map +1 -1
- package/dist/core/model-selection-controller.d.ts +4 -4
- package/dist/core/model-selection-controller.d.ts.map +1 -1
- package/dist/core/model-selection-controller.js.map +1 -1
- package/dist/core/model-tool-protocol.d.ts +23 -0
- package/dist/core/model-tool-protocol.d.ts.map +1 -0
- package/dist/core/model-tool-protocol.js +43 -0
- package/dist/core/model-tool-protocol.js.map +1 -0
- package/dist/core/models/adaptation-store.d.ts +10 -5
- package/dist/core/models/adaptation-store.d.ts.map +1 -1
- package/dist/core/models/adaptation-store.js +129 -81
- package/dist/core/models/adaptation-store.js.map +1 -1
- package/dist/core/models/default-model-suggestions.d.ts.map +1 -1
- package/dist/core/models/default-model-suggestions.js +17 -0
- package/dist/core/models/default-model-suggestions.js.map +1 -1
- package/dist/core/models/fitness-store.d.ts +4 -11
- package/dist/core/models/fitness-store.d.ts.map +1 -1
- package/dist/core/models/fitness-store.js +87 -51
- package/dist/core/models/fitness-store.js.map +1 -1
- package/dist/core/models/host-state-store.d.ts +34 -0
- package/dist/core/models/host-state-store.d.ts.map +1 -0
- package/dist/core/models/host-state-store.js +86 -0
- package/dist/core/models/host-state-store.js.map +1 -0
- package/dist/core/models/llamacpp-runtime.d.ts +180 -0
- package/dist/core/models/llamacpp-runtime.d.ts.map +1 -0
- package/dist/core/models/llamacpp-runtime.js +475 -0
- package/dist/core/models/llamacpp-runtime.js.map +1 -0
- package/dist/core/models/local-registration.d.ts +40 -0
- package/dist/core/models/local-registration.d.ts.map +1 -1
- package/dist/core/models/local-registration.js +94 -5
- package/dist/core/models/local-registration.js.map +1 -1
- package/dist/core/models/local-runtime.d.ts.map +1 -1
- package/dist/core/models/local-runtime.js +6 -5
- package/dist/core/models/local-runtime.js.map +1 -1
- package/dist/core/models/model-ref.d.ts +7 -0
- package/dist/core/models/model-ref.d.ts.map +1 -1
- package/dist/core/models/model-ref.js +26 -0
- package/dist/core/models/model-ref.js.map +1 -1
- package/dist/core/models/needle-runtime.d.ts +257 -0
- package/dist/core/models/needle-runtime.d.ts.map +1 -0
- package/dist/core/models/needle-runtime.js +519 -0
- package/dist/core/models/needle-runtime.js.map +1 -0
- package/dist/core/models/prism-llamacpp-lifecycle.d.ts +89 -0
- package/dist/core/models/prism-llamacpp-lifecycle.d.ts.map +1 -0
- package/dist/core/models/prism-llamacpp-lifecycle.js +121 -0
- package/dist/core/models/prism-llamacpp-lifecycle.js.map +1 -0
- package/dist/core/orchestration/agent-resume.d.ts +24 -0
- package/dist/core/orchestration/agent-resume.d.ts.map +1 -0
- package/dist/core/orchestration/agent-resume.js +90 -0
- package/dist/core/orchestration/agent-resume.js.map +1 -0
- package/dist/core/orchestration/capability-gateway.d.ts +61 -0
- package/dist/core/orchestration/capability-gateway.d.ts.map +1 -0
- package/dist/core/orchestration/capability-gateway.js +152 -0
- package/dist/core/orchestration/capability-gateway.js.map +1 -0
- package/dist/core/orchestration/contracts.d.ts +343 -0
- package/dist/core/orchestration/contracts.d.ts.map +1 -0
- package/dist/core/orchestration/contracts.js +135 -0
- package/dist/core/orchestration/contracts.js.map +1 -0
- package/dist/core/orchestration/delegation-ledger.d.ts +56 -0
- package/dist/core/orchestration/delegation-ledger.d.ts.map +1 -0
- package/dist/core/orchestration/delegation-ledger.js +197 -0
- package/dist/core/orchestration/delegation-ledger.js.map +1 -0
- package/dist/core/orchestration/event-store.d.ts +83 -0
- package/dist/core/orchestration/event-store.d.ts.map +1 -0
- package/dist/core/orchestration/event-store.js +560 -0
- package/dist/core/orchestration/event-store.js.map +1 -0
- package/dist/core/orchestration/lane-tool-manifests.d.ts +9 -0
- package/dist/core/orchestration/lane-tool-manifests.d.ts.map +1 -0
- package/dist/core/orchestration/lane-tool-manifests.js +37 -0
- package/dist/core/orchestration/lane-tool-manifests.js.map +1 -0
- package/dist/core/orchestration/model-binding.d.ts +15 -0
- package/dist/core/orchestration/model-binding.d.ts.map +1 -0
- package/dist/core/orchestration/model-binding.js +29 -0
- package/dist/core/orchestration/model-binding.js.map +1 -0
- package/dist/core/orchestration/policy-compiler.d.ts +49 -0
- package/dist/core/orchestration/policy-compiler.d.ts.map +1 -0
- package/dist/core/orchestration/policy-compiler.js +191 -0
- package/dist/core/orchestration/policy-compiler.js.map +1 -0
- package/dist/core/orchestration/policy-gate.d.ts +18 -0
- package/dist/core/orchestration/policy-gate.d.ts.map +1 -0
- package/dist/core/orchestration/policy-gate.js +24 -0
- package/dist/core/orchestration/policy-gate.js.map +1 -0
- package/dist/core/orchestration/profile-registry.d.ts +51 -0
- package/dist/core/orchestration/profile-registry.d.ts.map +1 -0
- package/dist/core/orchestration/profile-registry.js +393 -0
- package/dist/core/orchestration/profile-registry.js.map +1 -0
- package/dist/core/orchestration/profile-store.d.ts +31 -0
- package/dist/core/orchestration/profile-store.d.ts.map +1 -0
- package/dist/core/orchestration/profile-store.js +136 -0
- package/dist/core/orchestration/profile-store.js.map +1 -0
- package/dist/core/orchestration/risk-budget.d.ts +9 -0
- package/dist/core/orchestration/risk-budget.d.ts.map +1 -0
- package/dist/core/orchestration/risk-budget.js +48 -0
- package/dist/core/orchestration/risk-budget.js.map +1 -0
- package/dist/core/orchestration/task-runtime.d.ts +168 -0
- package/dist/core/orchestration/task-runtime.d.ts.map +1 -0
- package/dist/core/orchestration/task-runtime.js +1600 -0
- package/dist/core/orchestration/task-runtime.js.map +1 -0
- package/dist/core/orchestration/work-state-projection.d.ts +32 -0
- package/dist/core/orchestration/work-state-projection.d.ts.map +1 -0
- package/dist/core/orchestration/work-state-projection.js +116 -0
- package/dist/core/orchestration/work-state-projection.js.map +1 -0
- package/dist/core/orchestration/worker-execution-contract.d.ts +21 -0
- package/dist/core/orchestration/worker-execution-contract.d.ts.map +1 -0
- package/dist/core/orchestration/worker-execution-contract.js +179 -0
- package/dist/core/orchestration/worker-execution-contract.js.map +1 -0
- package/dist/core/orchestration/worker-result-adapter.d.ts +21 -0
- package/dist/core/orchestration/worker-result-adapter.d.ts.map +1 -0
- package/dist/core/orchestration/worker-result-adapter.js +109 -0
- package/dist/core/orchestration/worker-result-adapter.js.map +1 -0
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +11 -10
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/process-identity.d.ts +11 -0
- package/dist/core/process-identity.d.ts.map +1 -0
- package/dist/core/process-identity.js +26 -0
- package/dist/core/process-identity.js.map +1 -0
- package/dist/core/process-matrix/codes.d.ts +83 -0
- package/dist/core/process-matrix/codes.d.ts.map +1 -0
- package/dist/core/process-matrix/codes.js +15 -0
- package/dist/core/process-matrix/codes.js.map +1 -0
- package/dist/core/process-matrix/resume-launcher.d.ts +26 -0
- package/dist/core/process-matrix/resume-launcher.d.ts.map +1 -0
- package/dist/core/process-matrix/resume-launcher.js +62 -0
- package/dist/core/process-matrix/resume-launcher.js.map +1 -0
- package/dist/core/process-matrix/runtime.d.ts +78 -0
- package/dist/core/process-matrix/runtime.d.ts.map +1 -0
- package/dist/core/process-matrix/runtime.js +633 -0
- package/dist/core/process-matrix/runtime.js.map +1 -0
- package/dist/core/process-matrix/store.d.ts +25 -0
- package/dist/core/process-matrix/store.d.ts.map +1 -0
- package/dist/core/process-matrix/store.js +189 -0
- package/dist/core/process-matrix/store.js.map +1 -0
- package/dist/core/process-matrix/supervisor.d.ts +75 -0
- package/dist/core/process-matrix/supervisor.d.ts.map +1 -0
- package/dist/core/process-matrix/supervisor.js +161 -0
- package/dist/core/process-matrix/supervisor.js.map +1 -0
- package/dist/core/profile-registry.d.ts +7 -0
- package/dist/core/profile-registry.d.ts.map +1 -1
- package/dist/core/profile-registry.js +25 -7
- package/dist/core/profile-registry.js.map +1 -1
- package/dist/core/python-runtime.d.ts.map +1 -1
- package/dist/core/python-runtime.js +3 -3
- package/dist/core/python-runtime.js.map +1 -1
- package/dist/core/reflection-controller.d.ts +33 -9
- package/dist/core/reflection-controller.d.ts.map +1 -1
- package/dist/core/reflection-controller.js +217 -127
- package/dist/core/reflection-controller.js.map +1 -1
- package/dist/core/reload-blockers.d.ts +36 -0
- package/dist/core/reload-blockers.d.ts.map +1 -1
- package/dist/core/reload-blockers.js +50 -8
- package/dist/core/reload-blockers.js.map +1 -1
- package/dist/core/research/evidence-bundle.d.ts.map +1 -1
- package/dist/core/research/evidence-bundle.js +1 -6
- package/dist/core/research/evidence-bundle.js.map +1 -1
- package/dist/core/research/lane-model-resolver.d.ts +33 -0
- package/dist/core/research/lane-model-resolver.d.ts.map +1 -0
- package/dist/core/research/lane-model-resolver.js +65 -0
- package/dist/core/research/lane-model-resolver.js.map +1 -0
- package/dist/core/research/model-fitness-controller.d.ts +38 -0
- package/dist/core/research/model-fitness-controller.d.ts.map +1 -0
- package/dist/core/research/model-fitness-controller.js +106 -0
- package/dist/core/research/model-fitness-controller.js.map +1 -0
- package/dist/core/research/model-fitness.d.ts +1 -1
- package/dist/core/research/model-fitness.d.ts.map +1 -1
- package/dist/core/research/model-fitness.js +4 -4
- package/dist/core/research/model-fitness.js.map +1 -1
- package/dist/core/research/research-gate.d.ts.map +1 -1
- package/dist/core/research/research-gate.js +7 -7
- package/dist/core/research/research-gate.js.map +1 -1
- package/dist/core/research/research-lane-controller.d.ts +62 -0
- package/dist/core/research/research-lane-controller.d.ts.map +1 -0
- package/dist/core/research/research-lane-controller.js +292 -0
- package/dist/core/research/research-lane-controller.js.map +1 -0
- package/dist/core/research/session-evidence-bundle.d.ts +2 -4
- package/dist/core/research/session-evidence-bundle.d.ts.map +1 -1
- package/dist/core/research/session-evidence-bundle.js +10 -46
- package/dist/core/research/session-evidence-bundle.js.map +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +15 -9
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/risk-classifier.d.ts +6 -0
- package/dist/core/risk-classifier.d.ts.map +1 -0
- package/dist/core/risk-classifier.js +225 -0
- package/dist/core/risk-classifier.js.map +1 -0
- package/dist/core/runtime-builder.d.ts +76 -17
- package/dist/core/runtime-builder.d.ts.map +1 -1
- package/dist/core/runtime-builder.js +367 -124
- package/dist/core/runtime-builder.js.map +1 -1
- package/dist/core/scout-controller.d.ts +6 -0
- package/dist/core/scout-controller.d.ts.map +1 -1
- package/dist/core/scout-controller.js +66 -52
- package/dist/core/scout-controller.js.map +1 -1
- package/dist/core/sdk.d.ts +6 -3
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +64 -27
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-analytics.d.ts.map +1 -1
- package/dist/core/session-analytics.js +28 -1
- package/dist/core/session-analytics.js.map +1 -1
- package/dist/core/session-image-store.d.ts +33 -0
- package/dist/core/session-image-store.d.ts.map +1 -0
- package/dist/core/session-image-store.js +283 -0
- package/dist/core/session-image-store.js.map +1 -0
- package/dist/core/session-role.d.ts +33 -0
- package/dist/core/session-role.d.ts.map +1 -0
- package/dist/core/session-role.js +58 -0
- package/dist/core/session-role.js.map +1 -0
- package/dist/core/session-snapshot.d.ts +34 -0
- package/dist/core/session-snapshot.d.ts.map +1 -0
- package/dist/core/session-snapshot.js +68 -0
- package/dist/core/session-snapshot.js.map +1 -0
- package/dist/core/session-supervision-runtime.d.ts +31 -0
- package/dist/core/session-supervision-runtime.d.ts.map +1 -0
- package/dist/core/session-supervision-runtime.js +97 -0
- package/dist/core/session-supervision-runtime.js.map +1 -0
- package/dist/core/settings-manager.d.ts +51 -7
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +168 -82
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/system-prompt-builder.d.ts +12 -0
- package/dist/core/system-prompt-builder.d.ts.map +1 -1
- package/dist/core/system-prompt-builder.js +6 -0
- package/dist/core/system-prompt-builder.js.map +1 -1
- package/dist/core/system-prompt.d.ts +14 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +20 -3
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tasks/session-task-state.d.ts +13 -6
- package/dist/core/tasks/session-task-state.d.ts.map +1 -1
- package/dist/core/tasks/session-task-state.js +20 -22
- package/dist/core/tasks/session-task-state.js.map +1 -1
- package/dist/core/tasks/task-contract-monitor.d.ts +45 -0
- package/dist/core/tasks/task-contract-monitor.d.ts.map +1 -0
- package/dist/core/tasks/task-contract-monitor.js +56 -0
- package/dist/core/tasks/task-contract-monitor.js.map +1 -0
- package/dist/core/tasks/task-projection.d.ts +20 -0
- package/dist/core/tasks/task-projection.d.ts.map +1 -0
- package/dist/core/tasks/task-projection.js +47 -0
- package/dist/core/tasks/task-projection.js.map +1 -0
- package/dist/core/tasks/task-state.d.ts +12 -0
- package/dist/core/tasks/task-state.d.ts.map +1 -1
- package/dist/core/tasks/task-state.js +56 -12
- package/dist/core/tasks/task-state.js.map +1 -1
- package/dist/core/tool-capability-policy.d.ts +13 -0
- package/dist/core/tool-capability-policy.d.ts.map +1 -0
- package/dist/core/tool-capability-policy.js +85 -0
- package/dist/core/tool-capability-policy.js.map +1 -0
- package/dist/core/tool-gate-controller.d.ts.map +1 -1
- package/dist/core/tool-gate-controller.js +5 -0
- package/dist/core/tool-gate-controller.js.map +1 -1
- package/dist/core/tool-protocol-controller.d.ts +91 -0
- package/dist/core/tool-protocol-controller.d.ts.map +1 -0
- package/dist/core/tool-protocol-controller.js +512 -0
- package/dist/core/tool-protocol-controller.js.map +1 -0
- package/dist/core/tool-recovery-log-records.d.ts +6 -0
- package/dist/core/tool-recovery-log-records.d.ts.map +1 -1
- package/dist/core/tool-recovery-log-records.js +13 -31
- package/dist/core/tool-recovery-log-records.js.map +1 -1
- package/dist/core/tool-selection/promotion.d.ts +54 -0
- package/dist/core/tool-selection/promotion.d.ts.map +1 -0
- package/dist/core/tool-selection/promotion.js +81 -0
- package/dist/core/tool-selection/promotion.js.map +1 -0
- package/dist/core/tool-selection/tool-performance-store.d.ts +39 -6
- package/dist/core/tool-selection/tool-performance-store.d.ts.map +1 -1
- package/dist/core/tool-selection/tool-performance-store.js +153 -110
- package/dist/core/tool-selection/tool-performance-store.js.map +1 -1
- package/dist/core/tool-selection/tool-selection-controller.d.ts +45 -0
- package/dist/core/tool-selection/tool-selection-controller.d.ts.map +1 -1
- package/dist/core/tool-selection/tool-selection-controller.js +96 -0
- package/dist/core/tool-selection/tool-selection-controller.js.map +1 -1
- package/dist/core/tools/ask-question.d.ts +124 -0
- package/dist/core/tools/ask-question.d.ts.map +1 -0
- package/dist/core/tools/ask-question.js +693 -0
- package/dist/core/tools/ask-question.js.map +1 -0
- package/dist/core/tools/bash.d.ts +18 -0
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +95 -16
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/delegate-status.d.ts +44 -2
- package/dist/core/tools/delegate-status.d.ts.map +1 -1
- package/dist/core/tools/delegate-status.js +214 -19
- package/dist/core/tools/delegate-status.js.map +1 -1
- package/dist/core/tools/delegate.d.ts +15 -13
- package/dist/core/tools/delegate.d.ts.map +1 -1
- package/dist/core/tools/delegate.js +124 -22
- package/dist/core/tools/delegate.js.map +1 -1
- package/dist/core/tools/extensionify.d.ts.map +1 -1
- package/dist/core/tools/extensionify.js +1 -0
- package/dist/core/tools/extensionify.js.map +1 -1
- package/dist/core/tools/goal.d.ts +94 -3
- package/dist/core/tools/goal.d.ts.map +1 -1
- package/dist/core/tools/goal.js +165 -15
- package/dist/core/tools/goal.js.map +1 -1
- package/dist/core/tools/model-fitness.d.ts +7 -0
- package/dist/core/tools/model-fitness.d.ts.map +1 -1
- package/dist/core/tools/model-fitness.js +4 -4
- package/dist/core/tools/model-fitness.js.map +1 -1
- package/dist/core/tools/orchestration-panel.d.ts +43 -0
- package/dist/core/tools/orchestration-panel.d.ts.map +1 -0
- package/dist/core/tools/orchestration-panel.js +168 -0
- package/dist/core/tools/orchestration-panel.js.map +1 -0
- package/dist/core/tools/run-process.d.ts +26 -0
- package/dist/core/tools/run-process.d.ts.map +1 -0
- package/dist/core/tools/run-process.js +138 -0
- package/dist/core/tools/run-process.js.map +1 -0
- package/dist/core/tools/shell-contract-router.d.ts +6 -1
- package/dist/core/tools/shell-contract-router.d.ts.map +1 -1
- package/dist/core/tools/shell-contract-router.js +23 -2
- package/dist/core/tools/shell-contract-router.js.map +1 -1
- package/dist/core/tools/shell-session.d.ts +89 -0
- package/dist/core/tools/shell-session.d.ts.map +1 -0
- package/dist/core/tools/shell-session.js +432 -0
- package/dist/core/tools/shell-session.js.map +1 -0
- package/dist/core/tools/task-steps.d.ts +6 -0
- package/dist/core/tools/task-steps.d.ts.map +1 -1
- package/dist/core/tools/task-steps.js +165 -8
- package/dist/core/tools/task-steps.js.map +1 -1
- package/dist/core/tools/tmux-dispatch.d.ts +84 -0
- package/dist/core/tools/tmux-dispatch.d.ts.map +1 -0
- package/dist/core/tools/tmux-dispatch.js +91 -0
- package/dist/core/tools/tmux-dispatch.js.map +1 -0
- package/dist/core/tools/windows-shell-engine.d.ts +42 -0
- package/dist/core/tools/windows-shell-engine.d.ts.map +1 -0
- package/dist/core/tools/windows-shell-engine.js +151 -0
- package/dist/core/tools/windows-shell-engine.js.map +1 -0
- package/dist/core/tools/windows-shell-state.d.ts +40 -0
- package/dist/core/tools/windows-shell-state.d.ts.map +1 -0
- package/dist/core/tools/windows-shell-state.js +59 -0
- package/dist/core/tools/windows-shell-state.js.map +1 -0
- package/dist/core/tools/worktree-sync.d.ts +24 -0
- package/dist/core/tools/worktree-sync.d.ts.map +1 -0
- package/dist/core/tools/worktree-sync.js +338 -0
- package/dist/core/tools/worktree-sync.js.map +1 -0
- package/dist/core/trust-manager.d.ts +4 -1
- package/dist/core/trust-manager.d.ts.map +1 -1
- package/dist/core/trust-manager.js +20 -2
- package/dist/core/trust-manager.js.map +1 -1
- package/dist/core/util/atomic-file.d.ts +55 -0
- package/dist/core/util/atomic-file.d.ts.map +1 -0
- package/dist/core/util/atomic-file.js +255 -0
- package/dist/core/util/atomic-file.js.map +1 -0
- package/dist/core/util/bounded-jsonl.d.ts +10 -0
- package/dist/core/util/bounded-jsonl.d.ts.map +1 -0
- package/dist/core/util/bounded-jsonl.js +75 -0
- package/dist/core/util/bounded-jsonl.js.map +1 -0
- package/dist/core/util/minimatch-cache.d.ts +33 -0
- package/dist/core/util/minimatch-cache.d.ts.map +1 -0
- package/dist/core/util/minimatch-cache.js +0 -0
- package/dist/core/util/minimatch-cache.js.map +1 -0
- package/dist/core/util/value-guards.d.ts +5 -0
- package/dist/core/util/value-guards.d.ts.map +1 -0
- package/dist/core/util/value-guards.js +12 -0
- package/dist/core/util/value-guards.js.map +1 -0
- package/dist/core/worktree-sync/codes.d.ts +227 -0
- package/dist/core/worktree-sync/codes.d.ts.map +1 -0
- package/dist/core/worktree-sync/codes.js +14 -0
- package/dist/core/worktree-sync/codes.js.map +1 -0
- package/dist/core/worktree-sync/git-engine.d.ts +156 -0
- package/dist/core/worktree-sync/git-engine.d.ts.map +1 -0
- package/dist/core/worktree-sync/git-engine.js +1191 -0
- package/dist/core/worktree-sync/git-engine.js.map +1 -0
- package/dist/core/worktree-sync/lane-gate.d.ts +75 -0
- package/dist/core/worktree-sync/lane-gate.d.ts.map +1 -0
- package/dist/core/worktree-sync/lane-gate.js +360 -0
- package/dist/core/worktree-sync/lane-gate.js.map +1 -0
- package/dist/core/worktree-sync/runtime.d.ts +47 -0
- package/dist/core/worktree-sync/runtime.d.ts.map +1 -0
- package/dist/core/worktree-sync/runtime.js +96 -0
- package/dist/core/worktree-sync/runtime.js.map +1 -0
- package/dist/core/worktree-sync/store.d.ts +69 -0
- package/dist/core/worktree-sync/store.d.ts.map +1 -0
- package/dist/core/worktree-sync/store.js +252 -0
- package/dist/core/worktree-sync/store.js.map +1 -0
- package/dist/core/worktree-sync/watcher.d.ts +29 -0
- package/dist/core/worktree-sync/watcher.d.ts.map +1 -0
- package/dist/core/worktree-sync/watcher.js +93 -0
- package/dist/core/worktree-sync/watcher.js.map +1 -0
- package/dist/index.d.ts +13 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +179 -1
- package/dist/main.js.map +1 -1
- package/dist/migrations.d.ts +7 -0
- package/dist/migrations.d.ts.map +1 -1
- package/dist/migrations.js +197 -1
- package/dist/migrations.js.map +1 -1
- package/dist/modes/interactive/auto-learn-controller.d.ts +16 -1
- package/dist/modes/interactive/auto-learn-controller.d.ts.map +1 -1
- package/dist/modes/interactive/auto-learn-controller.js +50 -8
- package/dist/modes/interactive/auto-learn-controller.js.map +1 -1
- package/dist/modes/interactive/clipboard-input.d.ts +7 -1
- package/dist/modes/interactive/clipboard-input.d.ts.map +1 -1
- package/dist/modes/interactive/clipboard-input.js +44 -6
- package/dist/modes/interactive/clipboard-input.js.map +1 -1
- package/dist/modes/interactive/components/profile-resource-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/profile-resource-editor.js +23 -1
- package/dist/modes/interactive/components/profile-resource-editor.js.map +1 -1
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/settings-selector.js +2 -2
- package/dist/modes/interactive/components/settings-selector.js.map +1 -1
- package/dist/modes/interactive/config-backup.d.ts.map +1 -1
- package/dist/modes/interactive/config-backup.js +5 -4
- package/dist/modes/interactive/config-backup.js.map +1 -1
- package/dist/modes/interactive/extension-ui-host.d.ts +14 -0
- package/dist/modes/interactive/extension-ui-host.d.ts.map +1 -1
- package/dist/modes/interactive/extension-ui-host.js +76 -15
- package/dist/modes/interactive/extension-ui-host.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +4 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +67 -1
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/key-handlers.d.ts.map +1 -1
- package/dist/modes/interactive/key-handlers.js +1 -1
- package/dist/modes/interactive/key-handlers.js.map +1 -1
- package/dist/modes/interactive/local-model-commands.d.ts +43 -0
- package/dist/modes/interactive/local-model-commands.d.ts.map +1 -1
- package/dist/modes/interactive/local-model-commands.js +290 -3
- package/dist/modes/interactive/local-model-commands.js.map +1 -1
- package/dist/modes/interactive/profile-menu-controller.d.ts.map +1 -1
- package/dist/modes/interactive/profile-menu-controller.js +7 -7
- package/dist/modes/interactive/profile-menu-controller.js.map +1 -1
- package/dist/modes/interactive/report-commands.d.ts.map +1 -1
- package/dist/modes/interactive/report-commands.js +21 -0
- package/dist/modes/interactive/report-commands.js.map +1 -1
- package/dist/modes/interactive/session-flow-commands.d.ts +17 -2
- package/dist/modes/interactive/session-flow-commands.d.ts.map +1 -1
- package/dist/modes/interactive/session-flow-commands.js +74 -21
- package/dist/modes/interactive/session-flow-commands.js.map +1 -1
- package/dist/modes/interactive/session-io-commands.d.ts.map +1 -1
- package/dist/modes/interactive/session-io-commands.js +16 -6
- package/dist/modes/interactive/session-io-commands.js.map +1 -1
- package/dist/modes/interactive/session-replacement-errors.d.ts +7 -0
- package/dist/modes/interactive/session-replacement-errors.d.ts.map +1 -0
- package/dist/modes/interactive/session-replacement-errors.js +15 -0
- package/dist/modes/interactive/session-replacement-errors.js.map +1 -0
- package/dist/modes/interactive/startup-checks.d.ts.map +1 -1
- package/dist/modes/interactive/startup-checks.js +1 -1
- package/dist/modes/interactive/startup-checks.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +82 -23
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +15 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js +138 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/utils/clipboard-image.d.ts.map +1 -1
- package/dist/utils/clipboard-image.js +2 -13
- package/dist/utils/clipboard-image.js.map +1 -1
- package/dist/utils/clipboard-native.d.ts +1 -0
- package/dist/utils/clipboard-native.d.ts.map +1 -1
- package/dist/utils/clipboard-native.js.map +1 -1
- package/dist/utils/clipboard.d.ts +1 -0
- package/dist/utils/clipboard.d.ts.map +1 -1
- package/dist/utils/clipboard.js +52 -1
- package/dist/utils/clipboard.js.map +1 -1
- package/dist/utils/fs-watch.d.ts +11 -0
- package/dist/utils/fs-watch.d.ts.map +1 -1
- package/dist/utils/fs-watch.js +20 -2
- package/dist/utils/fs-watch.js.map +1 -1
- package/dist/utils/highlight-js-languages.d.ts +4 -0
- package/dist/utils/highlight-js-languages.d.ts.map +1 -0
- package/dist/utils/highlight-js-languages.js +573 -0
- package/dist/utils/highlight-js-languages.js.map +1 -0
- package/dist/utils/platform.d.ts +3 -0
- package/dist/utils/platform.d.ts.map +1 -0
- package/dist/utils/platform.js +8 -0
- package/dist/utils/platform.js.map +1 -0
- package/dist/utils/shell.d.ts +7 -1
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +21 -6
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +53 -5
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +112 -1
- package/dist/utils/tools-manager.js.map +1 -1
- package/dist/utils/work-directory.d.ts +11 -0
- package/dist/utils/work-directory.d.ts.map +1 -1
- package/dist/utils/work-directory.js +30 -9
- package/dist/utils/work-directory.js.map +1 -1
- package/docs/UI_POLISH_ORCHESTRATION.md +44 -0
- package/docs/UI_QUALITY_ORCHESTRATION.md +30 -0
- package/docs/docs.json +4 -0
- package/docs/extensions.md +62 -2
- package/docs/harness-architecture.md +156 -0
- package/docs/keybindings.md +11 -1
- package/docs/process-matrix.md +153 -0
- package/docs/rpc.md +45 -2
- package/docs/sessions.md +15 -0
- package/docs/settings.md +128 -11
- package/docs/task-steps.md +8 -0
- package/docs/telemetry.md +19 -0
- package/docs/tmux-agent-manager.md +92 -2
- package/docs/ui-reference/README.md +9 -0
- package/docs/ui-reference/orchestration-after.txt +7 -0
- package/docs/ui-reference/orchestration-before.txt +7 -0
- package/docs/ui-reference/orchestration-reference.txt +6 -0
- package/docs/usage.md +14 -2
- package/docs/windows.md +52 -3
- package/docs/work-directory.md +42 -2
- package/docs/worktree-sync.md +250 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/question.ts +34 -245
- package/examples/extensions/questionnaire.ts +41 -407
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/npm-shrinkwrap.json +12 -12
- package/package.json +10 -4
- package/dist/core/delegation/session-worker-result.d.ts +0 -16
- package/dist/core/delegation/session-worker-result.d.ts.map +0 -1
- package/dist/core/delegation/session-worker-result.js +0 -53
- package/dist/core/delegation/session-worker-result.js.map +0 -1
- package/dist/core/delegation/worker-result.d.ts +0 -15
- package/dist/core/delegation/worker-result.d.ts.map +0 -1
- package/dist/core/delegation/worker-result.js +0 -161
- package/dist/core/delegation/worker-result.js.map +0 -1
- package/dist/core/telemetry.d.ts.map +0 -1
- package/dist/core/telemetry.js.map +0 -1
- package/docs/integration-sweep-builder-blueprint-2026-07-09.md +0 -365
- package/docs/integration-sweep-resume-2026-07-09.md +0 -407
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
# Integration Sweep — Builder Blueprint (2026-07-09)
|
|
2
|
-
|
|
3
|
-
**Purpose.** Finish the host-side integration sweep without changing Pi extensions. The invariant is:
|
|
4
|
-
**foreground work stays correct and responsive; all optional/local/background behavior is bounded,
|
|
5
|
-
capability-gated, observable, and never leaves an unresolvable artifact or silent mutation.**
|
|
6
|
-
|
|
7
|
-
This is a handoff specification for an implementation agent. It supersedes the implementation portion
|
|
8
|
-
of `packages/coding-agent/docs/integration-sweep-resume-2026-07-09.md`; retain that note as the
|
|
9
|
-
historical work log.
|
|
10
|
-
|
|
11
|
-
## Current handoff state
|
|
12
|
-
|
|
13
|
-
**Confirmed working-tree state:** all changes are uncommitted. Do not discard unrelated work. In
|
|
14
|
-
particular, `packages/coding-agent/docs/bug-ledger.md` predates this sweep and must remain untouched.
|
|
15
|
-
Pi extensions are out of scope, including `/home/caudev/__pi/agent/extensions`.
|
|
16
|
-
|
|
17
|
-
The latest focused run passed 9 test files and 89 tests; the newly added
|
|
18
|
-
`test/context-pipeline-artifact-release.test.ts` then passed separately (1 test). The combined final
|
|
19
|
-
command below has **not** been run as one command. `npm run check` must be rerun after the final
|
|
20
|
-
implementation; it is **not confirmed** for the final handoff state.
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
cd packages/coding-agent
|
|
24
|
-
node ../../node_modules/vitest/dist/cli.js --run \
|
|
25
|
-
test/agent-session-local-runtime.test.ts \
|
|
26
|
-
test/runtime-arbiter.test.ts \
|
|
27
|
-
test/model-perf-profile.test.ts \
|
|
28
|
-
test/isolated-child-loop.test.ts \
|
|
29
|
-
test/context-pipeline-local-priority.test.ts \
|
|
30
|
-
test/context-pipeline-token-budget.test.ts \
|
|
31
|
-
test/context-pipeline-artifact-release.test.ts \
|
|
32
|
-
test/brain-curator.test.ts \
|
|
33
|
-
test/run-toolkit-script.test.ts \
|
|
34
|
-
test/suite/agent-session-tool-artifacts.test.ts
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
**Important scope correction:** `packages/coding-agent/src/core/tool-selection/` is an untracked,
|
|
38
|
-
incomplete draft created immediately before the task was redirected to planning-only. It is not an
|
|
39
|
-
accepted implementation or source of truth. Do not extend or stage it without first reconciling it
|
|
40
|
-
against this blueprint; deletion requires the human's approval because it is a worktree change.
|
|
41
|
-
|
|
42
|
-
## Fixed placement and constraints
|
|
43
|
-
|
|
44
|
-
- Repository/package: `packages/coding-agent`.
|
|
45
|
-
- Language: erasable TypeScript only; top-level imports; no `any`.
|
|
46
|
-
- No new third-party dependency.
|
|
47
|
-
- Do not run `npm test` or `npm run build`. Run focused Vitest files and then `npm run check`.
|
|
48
|
-
- Do not commit, push, publish, alter settings authority, or modify extension files.
|
|
49
|
-
- Preserve the existing default tool surface and capability/path gates. Observe-only selection must
|
|
50
|
-
not hide tools, mutate prompts, or execute tools on the model's behalf.
|
|
51
|
-
|
|
52
|
-
## Work unit 1 — reconcile and finish local-runtime foreground behavior
|
|
53
|
-
|
|
54
|
-
### Confirmed source baseline
|
|
55
|
-
|
|
56
|
-
- `OllamaRuntime.detect()` obtains live tags through `_serverModels()` and exposes them as
|
|
57
|
-
`LocalRuntimeStatus.serverModels` (`src/core/models/local-runtime.ts:54-69`, `:370-438`).
|
|
58
|
-
- Local readiness checks the configured server's reported model names before accepting it and returns
|
|
59
|
-
`model_missing_on_server` when the requested model is absent
|
|
60
|
-
(`src/core/local-runtime-controller.ts:319-331`).
|
|
61
|
-
- Residency admission uses `loadModel: false`, leaving cold loading to the real stream
|
|
62
|
-
(`src/core/local-runtime-controller.ts:189-191`, `:216-218`).
|
|
63
|
-
- `RuntimeResidencyArbiter` owns adapter-aware residency planning
|
|
64
|
-
(`src/core/models/runtime-arbiter.ts:24-84`).
|
|
65
|
-
|
|
66
|
-
### Behavior contract
|
|
67
|
-
|
|
68
|
-
1. A cold Ollama readiness pass makes one `/api/tags` request for reachability/model presence and one
|
|
69
|
-
`/api/ps` request for residency accounting. It must not issue empty `/api/generate` preloads.
|
|
70
|
-
2. After a successful readiness pass, the matching `_confirmedUp` key is the steady-state fast path:
|
|
71
|
-
no readiness HTTP call until a matching local assistant error invalidates it.
|
|
72
|
-
3. A manually managed configured server is usable iff it exposes the requested model, including only
|
|
73
|
-
the bare-name/`:latest` equivalence. It retains its own binary/backend/store/cache. A reachable
|
|
74
|
-
server missing the model returns `model_missing_on_server`, never a later opaque provider error.
|
|
75
|
-
4. Pi starts a managed server only when the configured endpoint is down and a usable binary exists.
|
|
76
|
-
5. Residency identity is `(adapterId, model)`, not just `model`. Identical model names on different
|
|
77
|
-
Ollama URLs or a Transformers runtime must not suppress loads, pins, evictions, or anti-thrash
|
|
78
|
-
checks for each other.
|
|
79
|
-
6. Admission can evict according to the existing arbiter plan, but does not synchronously load a cold
|
|
80
|
-
Ollama model. The real adaptive stream owns load/prefill timing.
|
|
81
|
-
|
|
82
|
-
### Required tests
|
|
83
|
-
|
|
84
|
-
- Preserve/extend `test/agent-session-local-runtime.test.ts` to count `/api/tags`, `/api/ps`, and
|
|
85
|
-
`/api/generate`; assert the first two exactly once on cold readiness and the third zero times.
|
|
86
|
-
- Assert a second healthy request has no readiness HTTP calls.
|
|
87
|
-
- Assert configured manual-server acceptance, exact/bare/`:latest` matching, and visible absence.
|
|
88
|
-
- Preserve the cross-adapter same-name test in `test/runtime-arbiter.test.ts`.
|
|
89
|
-
- Run the focused command in **Current handoff state**.
|
|
90
|
-
|
|
91
|
-
## Work unit 2 — retain curator work while prioritizing a managed-local foreground
|
|
92
|
-
|
|
93
|
-
### Confirmed source baseline
|
|
94
|
-
|
|
95
|
-
`ContextPipeline.maybeDrainBrainCuration()` defers work when both the foreground and curator model
|
|
96
|
-
are managed-local and records `curation_deferred_for_local_foreground`
|
|
97
|
-
(`src/core/context-pipeline.ts:384-397`). The current regression is
|
|
98
|
-
`test/context-pipeline-local-priority.test.ts`.
|
|
99
|
-
|
|
100
|
-
### Behavior contract
|
|
101
|
-
|
|
102
|
-
1. If the foreground model and curator model are both managed-local, do not start a curator completion.
|
|
103
|
-
2. Deferral retains all queued jobs; it must not mark a job completed or failed.
|
|
104
|
-
3. On a later cloud foreground (or absent local foreground), the same queued job drains normally.
|
|
105
|
-
4. Cloud foreground plus a local curator remains allowed. Do not introduce a broad CPU-pressure
|
|
106
|
-
heuristic in this slice.
|
|
107
|
-
|
|
108
|
-
### Required tests
|
|
109
|
-
|
|
110
|
-
- Assert the initial local/local call does not invoke `runIsolatedCompletion`, leaves `queued: 1`, and
|
|
111
|
-
reports the exact skip reason.
|
|
112
|
-
- Change foreground to a cloud model and assert the same queued job drains, with `queued: 0` and
|
|
113
|
-
`jobsRun: 1`.
|
|
114
|
-
|
|
115
|
-
## Work unit 3 — finish toolkit artifact integration
|
|
116
|
-
|
|
117
|
-
### Confirmed source baseline
|
|
118
|
-
|
|
119
|
-
- `run_toolkit_script` packs output with `maxLines: 400` and `maxBytes: 8 * 1024`, retains failure
|
|
120
|
-
header/stdout/stderr, writes `details.artifactId`, and marks failed executions as errors
|
|
121
|
-
(`src/core/tools/run-toolkit-script.ts:135-177`).
|
|
122
|
-
- The runtime withholds the artifact store if `artifact_retrieve` is unavailable, including the toolkit
|
|
123
|
-
tool (`src/core/runtime-builder.ts:596-614`).
|
|
124
|
-
- Context GC now recognizes `run_toolkit_script` alongside `grep`/`find` when releasing references
|
|
125
|
-
(`src/core/context-pipeline.ts:619-644`).
|
|
126
|
-
|
|
127
|
-
### Behavior contract
|
|
128
|
-
|
|
129
|
-
1. Small output remains inline.
|
|
130
|
-
2. Oversized output stores exact stdout/stderr/header content in the session artifact store and returns
|
|
131
|
-
only an 8 KiB/400-line preview plus a resolvable `artifact_retrieve` handle.
|
|
132
|
-
3. Any active artifact-producing tool (`grep`, `find`, `run_toolkit_script`) auto-activates
|
|
133
|
-
`artifact_retrieve` if registered and allowed. If retrieval is excluded, no artifact handle or
|
|
134
|
-
artifact file may be emitted.
|
|
135
|
-
4. Failure state remains visible in the preview and structural details after packing.
|
|
136
|
-
5. Context GC releases the toolkit artifact's reference using `details.artifactId`, then only cleans
|
|
137
|
-
it when it has no references.
|
|
138
|
-
|
|
139
|
-
### Required tests
|
|
140
|
-
|
|
141
|
-
- Keep `test/run-toolkit-script.test.ts` for full-output preservation and failed scripts.
|
|
142
|
-
- Keep `test/suite/agent-session-tool-artifacts.test.ts` for direct active-tool companion activation.
|
|
143
|
-
- Keep `test/context-pipeline-artifact-release.test.ts` for toolkit reference release.
|
|
144
|
-
|
|
145
|
-
## Work unit 4 — add an observe-only expected-utility tool selector
|
|
146
|
-
|
|
147
|
-
### Purpose and invariant
|
|
148
|
-
|
|
149
|
-
Improve later tool selection from measured outcomes without adding an LLM judge or taking control
|
|
150
|
-
away from the foreground model. The selector records a **redacted observation** only; it does not
|
|
151
|
-
change tools, prompt text, arguments, routing, gate decisions, or execution.
|
|
152
|
-
|
|
153
|
-
### Placement (fixed)
|
|
154
|
-
|
|
155
|
-
Create or reconcile these host-only files:
|
|
156
|
-
|
|
157
|
-
- `src/core/tool-selection/expected-utility.ts` — pure scoring/ranking math.
|
|
158
|
-
- `src/core/tool-selection/tool-performance-store.ts` — bounded host-local persistence.
|
|
159
|
-
- `src/core/tool-selection/tool-selection-controller.ts` — deterministic intent/candidate construction
|
|
160
|
-
and observation lifecycle.
|
|
161
|
-
- `src/core/tool-gate-controller.ts` — invoke the controller only after existing router/autonomy/path
|
|
162
|
-
gates allow the actual call; capture final execution outcome.
|
|
163
|
-
- `src/core/agent-session.ts` — wire the controller and forward existing tool-repair telemetry.
|
|
164
|
-
|
|
165
|
-
### Data contract (fixed)
|
|
166
|
-
|
|
167
|
-
Key statistics by `(host fingerprint, provider/model ref, intent class, tool)`. Intent classes are
|
|
168
|
-
`read`, `search`, `execute`, `write`, `retrieve`, `explain`, and `other`; persist only the class, never
|
|
169
|
-
prompt text, arguments, paths, tool output, or model reasoning.
|
|
170
|
-
|
|
171
|
-
For each key retain:
|
|
172
|
-
|
|
173
|
-
| Field | Rule |
|
|
174
|
-
| --- | --- |
|
|
175
|
-
| `alpha`, `beta` | Beta posterior for execution success; initial values `1`, `1`; increment alpha on successful execution and beta on failed execution. |
|
|
176
|
-
| `latencyEwmaMs`, `latencyDeviationEwmaMs` | Execution-time EWMA and absolute-deviation EWMA; alpha = `0.25`. |
|
|
177
|
-
| `inputTokenEstimateEwma`, `outputTokenEstimateEwma` | Optional estimated argument/output-token EWMAs only when text is observable; label them estimates. |
|
|
178
|
-
| `repairCount`, `bounceCount`, `failureCount` | Increment from existing validation telemetry and final execution result. |
|
|
179
|
-
| `lastUsedAt`, `sampleCount` | Update per execution. |
|
|
180
|
-
|
|
181
|
-
Use `currentHostFingerprint()` from `src/core/models/fitness-store.ts:14-32`. Store at
|
|
182
|
-
`<agentDir>/state/tool-performance.json`; cap statistics at 500 entries and redacted observations at
|
|
183
|
-
1,000 per host, pruning oldest by `lastUsedAt`/observation time. Corrupt or unreadable files fail
|
|
184
|
-
closed to an empty in-memory store and are overwritten only on the next valid save.
|
|
185
|
-
|
|
186
|
-
### Candidate and score contract (fixed)
|
|
187
|
-
|
|
188
|
-
1. Start from the active tool surface. Filter profile-denied and capability-denied tools before scoring.
|
|
189
|
-
Do not guess path arguments: a tool whose path cannot be validated remains unresolved and must not
|
|
190
|
-
become an automatic recommendation. Existing `evaluateToolGate()` remains the execution-time path
|
|
191
|
-
authority (`src/core/tool-gate-controller.ts:45-63`).
|
|
192
|
-
2. Add `no_tool` as a real candidate with zero latency/token/risk/context cost and an intent-dependent
|
|
193
|
-
value. It is an observation result, never a command.
|
|
194
|
-
3. Use deterministic name/alias/schema-intent matching only. Do not ask another model to judge intent.
|
|
195
|
-
4. Normalize cost inputs to `[0, 1]`, then calculate:
|
|
196
|
-
|
|
197
|
-
```text
|
|
198
|
-
U(tool) = Psuccess(tool) * value(tool)
|
|
199
|
-
- lambdaLatency * latencyCost
|
|
200
|
-
- lambdaTokens * tokenCost
|
|
201
|
-
- lambdaRisk * riskCost
|
|
202
|
-
- lambdaContext * contextCost
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
Initial constants: `lambdaLatency=0.15`, `lambdaTokens=0.10`, `lambdaRisk=0.20`,
|
|
206
|
-
`lambdaContext=0.10`, latency scale `5,000 ms`, token scale `1,000` estimated tokens,
|
|
207
|
-
minimum evidence `3`, minimum margin `0.10`, high normalized entropy `0.85`.
|
|
208
|
-
5. Recommend only when the best utility is positive, its margin exceeds `0.10`, and it has at least
|
|
209
|
-
three samples or a deterministic match. High entropy or a sub-margin tie emits a top-three
|
|
210
|
-
shortlist. Otherwise abstain.
|
|
211
|
-
6. Record comparison between recommendation/shortlist/abstention and the actual first tool outcome.
|
|
212
|
-
The observation is diagnostics only; no hint is injected in this slice.
|
|
213
|
-
|
|
214
|
-
### Required tests
|
|
215
|
-
|
|
216
|
-
- Pure math: posterior, normalization, positive-best, tie/entropy shortlist, evidence threshold,
|
|
217
|
-
deterministic override, and `no_tool`.
|
|
218
|
-
- Store: host separation, bounded pruning, corrupt-file recovery, EWMA/deviation updates, validation
|
|
219
|
-
counter updates, and redaction (stored observations contain no prompt/args/output fields).
|
|
220
|
-
- Controller/gate: only gate-approved calls are observed; successful/failed calls update outcomes;
|
|
221
|
-
repaired/bounced telemetry updates counters; selector never changes a gate result or active tool list.
|
|
222
|
-
- Metrics: first-tool success, wrong-tool/failure count, recommendation match rate, shortlist count,
|
|
223
|
-
abstention count, and latency/token summaries are computable from the store.
|
|
224
|
-
|
|
225
|
-
## Work unit 5 — make worker mutation semantics explicit: review-after-apply
|
|
226
|
-
|
|
227
|
-
### Fixed decision
|
|
228
|
-
|
|
229
|
-
The shipped contract is **review-after-apply**, not staged apply. Do not silently remove the intentional
|
|
230
|
-
write lane or claim that mutation waits for parent review.
|
|
231
|
-
|
|
232
|
-
### Confirmed source baseline
|
|
233
|
-
|
|
234
|
-
- Structured actions are path-scoped and applied before final worker-result validation
|
|
235
|
-
(`src/core/delegation/worker-actions.ts:98-136`,
|
|
236
|
-
`src/core/delegation/worker-runner.ts:265-300`).
|
|
237
|
-
- A changed completed result receives `parent_review_required` after scope validation
|
|
238
|
-
(`src/core/delegation/worker-result.ts:113-177`).
|
|
239
|
-
- The background controller grants writes only for explicit enabled/path-scoped settings, filters
|
|
240
|
-
permitted actions, and records direct write/edit targets after a gate-approved call
|
|
241
|
-
(`src/core/background-lane-controller.ts:639-724`, `:740-786`).
|
|
242
|
-
|
|
243
|
-
### Behavior contract
|
|
244
|
-
|
|
245
|
-
1. Direct write/edit tools may mutate after their normal path/capability gate authorizes them.
|
|
246
|
-
2. Structured actions may mutate through `applyWorkerActions()` only after envelope/path validation.
|
|
247
|
-
3. Parent review occurs after mutation. It must receive `changedFiles`, blockers, usage report id, and
|
|
248
|
-
a `parent_review_required` acceptance outcome for an in-scope changed result.
|
|
249
|
-
4. An out-of-scope/denied structured action is refused before filesystem mutation. A blocked direct
|
|
250
|
-
tool call must not reach the execution hook.
|
|
251
|
-
5. Partial action application returns `blocked`, includes changed files and failure/refusal blockers,
|
|
252
|
-
and never appears as clean success.
|
|
253
|
-
6. Preserve symlink-aware path enforcement, disposal handling, terminal lane records, and spawned
|
|
254
|
-
usage reporting.
|
|
255
|
-
|
|
256
|
-
### Required tests and docs
|
|
257
|
-
|
|
258
|
-
- Add/retain tests for in-scope write then parent review, denied/out-of-scope action with no file
|
|
259
|
-
mutation, partial apply with changed-file accounting, and direct blocked write that never mutates.
|
|
260
|
-
- Document the exact review-after-apply contract in the operator/delegation documentation. Do not use
|
|
261
|
-
ambiguous wording such as “staged” or “reviewed before apply.”
|
|
262
|
-
|
|
263
|
-
## Work unit 6 — verify generic external memory/graph compatibility
|
|
264
|
-
|
|
265
|
-
### Confirmed source baseline
|
|
266
|
-
|
|
267
|
-
- The public context-memory contract exposes generic capability flags including `graph`
|
|
268
|
-
(`src/core/context/memory-provider-contract.ts:26-90`).
|
|
269
|
-
- Retrieval uses generic providers/policies and converts search results to source-labeled context items
|
|
270
|
-
(`src/core/context/memory-retrieval.ts:88-139`,
|
|
271
|
-
`src/core/context/memory-provider-contract.ts:239-277`).
|
|
272
|
-
- Extension-contributed legacy and context providers have separate pending lists, snapshot/restore, and
|
|
273
|
-
fresh reinitialization (`src/core/memory-controller.ts:436-467`, `:473-509`).
|
|
274
|
-
- Active providers contribute dynamic context-GC markers through `MemoryManager.getContextMarkers()`
|
|
275
|
-
(`src/core/memory/memory-manager.ts:244-260`); `ContextPipeline` merges them with configured markers
|
|
276
|
-
before calling GC (`src/core/context-pipeline.ts:551-568`).
|
|
277
|
-
|
|
278
|
-
### Behavior contract
|
|
279
|
-
|
|
280
|
-
1. Keep both `registerMemoryProvider` and `registerContextMemoryProvider` contributions through a
|
|
281
|
-
successful atomic reload. A failed reload restores the previous generation; do not add brand-specific
|
|
282
|
-
retention logic.
|
|
283
|
-
2. A faux `graph: true` context provider is treated as an ordinary provider: policy-gated, source
|
|
284
|
-
labeled, converted to context evidence, and framed as untrusted evidence before prompt inclusion.
|
|
285
|
-
3. Graph/context results enter only when the existing long-term-memory demand gate opens. Do not force
|
|
286
|
-
graph pages into every prompt.
|
|
287
|
-
4. Provider markers join semantic-GC markers dynamically and deduplicate; no Graphify import, path,
|
|
288
|
-
name, or private API belongs in host source.
|
|
289
|
-
|
|
290
|
-
### Required tests
|
|
291
|
-
|
|
292
|
-
- Add host-only faux-provider tests; never import Graphify.
|
|
293
|
-
- Reload test: register one provider of each public kind, reload successfully, assert both remain;
|
|
294
|
-
inject a reload failure and assert snapshot restoration preserves the old generation.
|
|
295
|
-
- Retrieval test: `graph: true`, `source: "external_provider"`, allowed policy, and a demand-opening
|
|
296
|
-
prompt produce a labeled, untrusted context item within budget. The same provider is absent when the
|
|
297
|
-
demand gate is closed.
|
|
298
|
-
- Marker test: a dynamic provider marker causes the semantic-GC scan to recognize the page; duplicates
|
|
299
|
-
are removed.
|
|
300
|
-
|
|
301
|
-
## Documentation and final review
|
|
302
|
-
|
|
303
|
-
After implementation, update only verified stale claims in:
|
|
304
|
-
|
|
305
|
-
- `packages/coding-agent/docs/model-router-rework.md`
|
|
306
|
-
- `packages/coding-agent/docs/model-router-rework/current-state.md`
|
|
307
|
-
- `packages/coding-agent/docs/model-router-rework/local-model-lifecycle-design.md`
|
|
308
|
-
- `packages/coding-agent/docs/context-management-rework/tool-output-artifacts.md`
|
|
309
|
-
- `packages/coding-agent/docs/integration-sweep-resume-2026-07-09.md`
|
|
310
|
-
|
|
311
|
-
State confidence explicitly. Do not claim the tool selector influences prompts or execution until an
|
|
312
|
-
independent replay validates that later phase. Add a dated, source-cited finding to `AGENTS.md` only
|
|
313
|
-
for a sharp, durable behavior discovered during implementation.
|
|
314
|
-
|
|
315
|
-
## Final acceptance command
|
|
316
|
-
|
|
317
|
-
```bash
|
|
318
|
-
cd /home/caudev/GitHub/mine/pi-adaptative
|
|
319
|
-
|
|
320
|
-
git status --short
|
|
321
|
-
|
|
322
|
-
cd packages/coding-agent
|
|
323
|
-
node ../../node_modules/vitest/dist/cli.js --run \
|
|
324
|
-
test/agent-session-local-runtime.test.ts \
|
|
325
|
-
test/runtime-arbiter.test.ts \
|
|
326
|
-
test/model-perf-profile.test.ts \
|
|
327
|
-
test/isolated-child-loop.test.ts \
|
|
328
|
-
test/context-pipeline-local-priority.test.ts \
|
|
329
|
-
test/context-pipeline-token-budget.test.ts \
|
|
330
|
-
test/context-pipeline-artifact-release.test.ts \
|
|
331
|
-
test/brain-curator.test.ts \
|
|
332
|
-
test/run-toolkit-script.test.ts \
|
|
333
|
-
test/suite/agent-session-tool-artifacts.test.ts \
|
|
334
|
-
test/tool-selection-expected-utility.test.ts \
|
|
335
|
-
test/tool-performance-store.test.ts \
|
|
336
|
-
test/tool-selection-controller.test.ts
|
|
337
|
-
|
|
338
|
-
cd /home/caudev/GitHub/mine/pi-adaptative
|
|
339
|
-
npm run check
|
|
340
|
-
```
|
|
341
|
-
|
|
342
|
-
Fix every error, warning, and info. Do not run the full Vitest suite, `npm test`, or `npm run build`.
|
|
343
|
-
Do not commit.
|
|
344
|
-
|
|
345
|
-
## Explicitly out of scope
|
|
346
|
-
|
|
347
|
-
- Pi extension changes, Graphify imports, or provider-private dependencies.
|
|
348
|
-
- Prompt hints, automatic tool execution, hidden tools, or routing changes from the new selector.
|
|
349
|
-
- A staged worker-write redesign, background CPU scheduling heuristics, or changes to manual Ollama
|
|
350
|
-
server ownership/backends.
|
|
351
|
-
- Package installation, lockfile changes, releases, commits, pushes, and destructive cleanup of the
|
|
352
|
-
current worktree.
|
|
353
|
-
|
|
354
|
-
## Review gate
|
|
355
|
-
|
|
356
|
-
Return the implementation for adversarial review. The reviewer must inspect: local cold-path HTTP
|
|
357
|
-
counts; cross-runtime residency identity; artifact-handle resolvability and cleanup; selector redaction,
|
|
358
|
-
non-interference, and bounded persistence; worker mutation timing/scope; and provider reload rollback.
|
|
359
|
-
The implementer’s reported test result is not sufficient—run the acceptance command independently.
|
|
360
|
-
|
|
361
|
-
## Scope confidence
|
|
362
|
-
|
|
363
|
-
**Confirmed:** source references cited above and the 89-test focused run recorded in this handoff.
|
|
364
|
-
**Not checked:** final TypeScript/lint/browser-smoke state after the eventual implementation, live Ollama
|
|
365
|
-
behavior on this host, and any private external provider/Graphify implementation.
|