@chankov/agent-fleet 2.0.19 → 2.0.20
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/.pi/agent-fleet/scripts/coms-claude-bridge.ts +5 -5
- package/.pi/extensions/compact-and-continue/index.ts +18 -2
- package/.pi/harnesses/agent-hub/README.md +163 -130
- package/.pi/harnesses/agent-hub/access-approval.ts +15 -9
- package/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.pi/harnesses/agent-hub/agentic-sources.ts +1 -1
- package/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.pi/harnesses/agent-hub/assist-profile.ts +3 -0
- package/.pi/harnesses/agent-hub/budget-recovery.ts +4 -95
- package/.pi/harnesses/agent-hub/commands/context.ts +0 -1
- package/.pi/harnesses/agent-hub/config/model-profiles.ts +3 -2
- package/.pi/harnesses/agent-hub/config/overrides.ts +2 -2
- package/.pi/harnesses/agent-hub/context/budgets.ts +12 -66
- package/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.pi/harnesses/agent-hub/context-continuity-broker.ts +42 -0
- package/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.pi/harnesses/agent-hub/context-continuity-client.ts +19 -0
- package/.pi/harnesses/agent-hub/context-continuity-compat.ts +30 -0
- package/.pi/harnesses/agent-hub/context-continuity-owners.ts +15 -0
- package/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.pi/harnesses/agent-hub/context-pressure.ts +37 -6
- package/.pi/harnesses/agent-hub/damage-guard-approval.ts +59 -0
- package/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.pi/harnesses/agent-hub/damage-guard-hub.ts +249 -0
- package/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.pi/harnesses/agent-hub/damage-guard-owners.ts +54 -0
- package/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
- package/.pi/harnesses/agent-hub/delegate.ts +4 -4
- package/.pi/harnesses/agent-hub/deterministic-fs.ts +33 -7
- package/.pi/harnesses/agent-hub/dispatch-coms.ts +3 -2
- package/.pi/harnesses/agent-hub/dispatch-native-complete.ts +1 -1
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +32 -7
- package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +24 -4
- package/.pi/harnesses/agent-hub/dispatch-native-types.ts +26 -0
- package/.pi/harnesses/agent-hub/dispatch-native.ts +2 -0
- package/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.pi/harnesses/agent-hub/file-discovery/adapters.ts +9 -3
- package/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +10 -4
- package/.pi/harnesses/agent-hub/file-discovery/broker.ts +8 -5
- package/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +17 -8
- package/.pi/harnesses/agent-hub/file-discovery/descendant.ts +5 -1
- package/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +1 -1
- package/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +14 -5
- package/.pi/harnesses/agent-hub/file-discovery/hub.ts +33 -16
- package/.pi/harnesses/agent-hub/file-discovery/results.ts +7 -6
- package/.pi/harnesses/agent-hub/file-discovery/runtime.ts +21 -11
- package/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.pi/harnesses/agent-hub/file-discovery/sources.ts +2 -2
- package/.pi/harnesses/agent-hub/filesystem-tool.ts +6 -25
- package/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.pi/harnesses/agent-hub/hub-state-audit.js +0 -24
- package/.pi/harnesses/agent-hub/index.ts +102 -113
- package/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +122 -24
- package/.pi/harnesses/agent-hub/no-progress.ts +42 -15
- package/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.pi/harnesses/agent-hub/orchestration-activation.ts +18 -21
- package/.pi/harnesses/agent-hub/orchestration-route.ts +8 -16
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/policy/work-mode.ts +8 -3
- package/.pi/harnesses/agent-hub/proactive-runtime.ts +1 -1
- package/.pi/harnesses/agent-hub/process-obligations.ts +23 -22
- package/.pi/harnesses/agent-hub/prompts/context.ts +1 -2
- package/.pi/harnesses/agent-hub/prompts/fragments.ts +21 -30
- package/.pi/harnesses/agent-hub/prompts/session-start.ts +1 -1
- package/.pi/harnesses/agent-hub/recovery-contract.ts +2 -1
- package/.pi/harnesses/agent-hub/research/runtime.ts +14 -0
- package/.pi/harnesses/agent-hub/research/spawn-run.ts +41 -14
- package/.pi/harnesses/agent-hub/review-continuity.ts +73 -0
- package/.pi/harnesses/agent-hub/review-findings.js +2 -10
- package/.pi/harnesses/agent-hub/review-reuse.ts +47 -0
- package/.pi/harnesses/agent-hub/run-budget.js +17 -229
- package/.pi/harnesses/agent-hub/scope-gate.js +99 -15
- package/.pi/harnesses/agent-hub/session-audit.ts +22 -4
- package/.pi/harnesses/agent-hub/spawn.ts +87 -11
- package/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.pi/harnesses/agent-hub/specialist-result.ts +69 -0
- package/.pi/harnesses/agent-hub/system1-communication-store.ts +29 -2
- package/.pi/harnesses/agent-hub/system1-runtime.ts +7 -0
- package/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
- package/.pi/harnesses/agent-hub/task-triage-authorization.ts +43 -14
- package/.pi/harnesses/agent-hub/task-triage-config.ts +5 -14
- package/.pi/harnesses/agent-hub/task-triage-obligations.ts +17 -1
- package/.pi/harnesses/agent-hub/task-triage-runtime.ts +15 -10
- package/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +1 -1
- package/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +18 -7
- package/.pi/harnesses/agent-hub/tools/action-executors.ts +11 -10
- package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +2 -2
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +144 -64
- package/.pi/harnesses/agent-hub/ui/context-budget.ts +5 -3
- package/.pi/harnesses/agent-hub/ui/grid.ts +1 -1
- package/.pi/harnesses/agent-hub/work-mode.ts +3 -4
- package/.pi/harnesses/ask-user-remote/index.ts +13 -2
- package/.pi/harnesses/ask-user-remote/questions.ts +4 -6
- package/.pi/harnesses/ask-user-remote/runtime-ask.ts +16 -1
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/README.md +26 -0
- package/.pi/harnesses/damage-control-continue/index.ts +87 -20
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.pi/harnesses/damage-control-continue/system1-child.ts +35 -0
- package/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.pi/harnesses/lib/bash-policy-analysis.ts +155 -0
- package/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.pi/harnesses/lib/coms-core-io.ts +2 -1
- package/.pi/harnesses/lib/coms-core.ts +3 -2
- package/.pi/harnesses/lib/coms-registry-entry.ts +4 -2
- package/.pi/harnesses/lib/context-budget-child-prompt.ts +8 -14
- package/.pi/harnesses/lib/context-budget-view.ts +5 -0
- package/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.pi/harnesses/lib/damage-control-shared.ts +3 -0
- package/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.pi/harnesses/lib/herdr-presence.ts +4 -4
- package/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.pi/harnesses/lib/installation-state.js +62 -0
- package/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.pi/harnesses/lib/system1/config-file-discovery.js +4 -2
- package/.pi/harnesses/lib/system1/config-v2.js +11 -5
- package/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.pi/harnesses/lib/system1/service.ts +1 -1
- package/.pi/harnesses/package-lock.json +1041 -959
- package/.pi/harnesses/package.json +3 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.20/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/coms-claude-bridge.ts +437 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/fleet.ts +217 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/flow.ts +157 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/flow-command.ts +98 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/package-lock.json +35 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/package.json +9 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +179 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +36 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.0.20/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.20/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.0.20/.pi/agents/peers.yaml +147 -0
- package/.versions/2.0.20/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.20/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.20/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.20/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.20/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.20/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.20/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.20/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.20/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.20/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.20/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.20/.pi/extensions/compact-and-continue/index.ts +136 -0
- package/.versions/2.0.20/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.20/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.20/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.20/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.20/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.20/.pi/extensions/package.json +9 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/README.md +1516 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/acceptance.ts +199 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/access-approval.ts +141 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-hub.ts +54 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/context.ts +46 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/config/agents.ts +178 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/config/model-profiles.ts +237 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/config/overrides.ts +165 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity-broker.ts +42 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity-client.ts +19 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity-compat.ts +30 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity-owners.ts +15 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-approval.ts +59 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-hub.ts +249 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-owners.ts +54 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/delegate.ts +478 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-coms.ts +253 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-native-complete.ts +173 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +295 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +253 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-native-types.ts +293 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-native.ts +236 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/hub.ts +169 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/owners.ts +96 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/fixtures/registration-surface.json +66 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/index.ts +2614 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +144 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/no-progress.ts +620 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/policy/work-mode.ts +142 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-config.ts +21 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-snapshot.ts +271 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-types.ts +67 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/process-obligations.ts +159 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/prompts/context.ts +55 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/prompts/fragments.ts +86 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/prompts/system-prompt.ts +125 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/return-contract.js +349 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/review-continuity.ts +73 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/review-findings.js +96 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/review-reuse.ts +47 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/run-budget.js +342 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/runtime-test-check.ts +54 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/scope-gate.js +228 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/session-audit.ts +331 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/spawn.ts +639 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/specialist-result.ts +69 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/system1-communication-store.ts +217 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/system1-runtime.ts +265 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-authorization.ts +151 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-config.ts +20 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +79 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/action-executors.ts +214 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/context.ts +144 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +88 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +640 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/herdr-executors.ts +95 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/run-flow.ts +136 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +155 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/work-mode.ts +186 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.0.20/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.0.20/.pi/harnesses/ask-user-remote/index.ts +569 -0
- package/.versions/2.0.20/.pi/harnesses/ask-user-remote/questions.ts +159 -0
- package/.versions/2.0.20/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.0.20/.pi/harnesses/ask-user-remote/runtime-ask.ts +83 -0
- package/.versions/2.0.20/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.20/.pi/harnesses/coms/index.ts +282 -0
- package/.versions/2.0.20/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.20/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/README.md +161 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/index.ts +600 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/system1-child.ts +35 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.20/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.versions/2.0.20/.pi/harnesses/lib/bash-policy-analysis.ts +155 -0
- package/.versions/2.0.20/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.0.20/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/lib/coms-core-io.ts +386 -0
- package/.versions/2.0.20/.pi/harnesses/lib/coms-core.ts +578 -0
- package/.versions/2.0.20/.pi/harnesses/lib/coms-registry-entry.ts +96 -0
- package/.versions/2.0.20/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
- package/.versions/2.0.20/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
- package/.versions/2.0.20/.pi/harnesses/lib/context-budget-view.ts +112 -0
- package/.versions/2.0.20/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.20/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.versions/2.0.20/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.versions/2.0.20/.pi/harnesses/lib/damage-control-shared.ts +229 -0
- package/.versions/2.0.20/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.versions/2.0.20/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.versions/2.0.20/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.versions/2.0.20/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
- package/.versions/2.0.20/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-dashboard-view.ts +172 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.20/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.20/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.20/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.20/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.20/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.20/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.20/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.20/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.20/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.versions/2.0.20/.pi/harnesses/lib/installation-state.js +62 -0
- package/.versions/2.0.20/.pi/harnesses/lib/policy-roots.js +106 -0
- package/.versions/2.0.20/.pi/harnesses/lib/policy-roots.ts +31 -0
- package/.versions/2.0.20/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.0.20/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.versions/2.0.20/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-loader.js +44 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-proactive.js +68 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-v2.js +112 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.0.20/.pi/harnesses/lib/update-check.ts +222 -0
- package/.versions/2.0.20/.pi/harnesses/package-lock.json +2121 -0
- package/.versions/2.0.20/.pi/harnesses/package.json +13 -0
- package/.versions/2.0.20/.pi/prompts/af-build.md +27 -0
- package/.versions/2.0.20/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.20/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.0.20/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.20/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.20/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.20/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.20/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.0.20/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.20/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.20/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.20/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.20/.version +1 -0
- package/.versions/2.0.20/agents/architect.md +24 -0
- package/.versions/2.0.20/agents/bowser.md +28 -0
- package/.versions/2.0.20/agents/builder.md +55 -0
- package/.versions/2.0.20/agents/code-reviewer.md +209 -0
- package/.versions/2.0.20/agents/deep-researcher.md +32 -0
- package/.versions/2.0.20/agents/documenter.md +22 -0
- package/.versions/2.0.20/agents/orchestrator.md +22 -0
- package/.versions/2.0.20/agents/plan-reviewer.md +83 -0
- package/.versions/2.0.20/agents/planner.md +107 -0
- package/.versions/2.0.20/agents/releaser.md +24 -0
- package/.versions/2.0.20/agents/researcher.md +30 -0
- package/.versions/2.0.20/agents/security-auditor.md +167 -0
- package/.versions/2.0.20/agents/test-engineer.md +153 -0
- package/.versions/2.0.20/agents/web-debugger.md +44 -0
- package/.versions/2.0.20/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.20/bin/catalog/harness-runtime-closure.json +73 -0
- package/.versions/2.0.20/codex/fleet-session-client/SKILL.md +34 -0
- package/.versions/2.0.20/codex/fleet-session-client.zip +0 -0
- package/.versions/2.0.20/docs/ARCHITECTURE.md +977 -0
- package/.versions/2.0.20/docs/agent-fleet-setup.md +1103 -0
- package/.versions/2.0.20/docs/claude-code-coms-bridge.md +147 -0
- package/.versions/2.0.20/docs/codex-session-bridge.md +219 -0
- package/.versions/2.0.20/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.0.20/docs/getting-started.md +126 -0
- package/.versions/2.0.20/docs/npm-install.md +535 -0
- package/.versions/2.0.20/docs/pi-extensions.md +455 -0
- package/.versions/2.0.20/docs/pi-setup.md +92 -0
- package/.versions/2.0.20/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.20/install-manifest.json +3210 -0
- package/.versions/2.0.20/justfile +247 -0
- package/.versions/2.0.20/manifest-meta.json +1088 -0
- package/.versions/2.0.20/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.20/references/communication-contract.md +26 -0
- package/.versions/2.0.20/references/definition-of-done.md +67 -0
- package/.versions/2.0.20/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.20/references/observability-checklist.md +92 -0
- package/.versions/2.0.20/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.20/references/performance-checklist.md +236 -0
- package/.versions/2.0.20/references/prompting-patterns.md +380 -0
- package/.versions/2.0.20/references/security-checklist.md +245 -0
- package/.versions/2.0.20/references/testing-patterns.md +235 -0
- package/.versions/2.0.20/references/workflow-authoring.md +304 -0
- package/.versions/2.0.20/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.20/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.20/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.20/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.20/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.0.20/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.20/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.0.20/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.20/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.20/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.20/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.20/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.20/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.20/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.20/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.20/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.20/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.20/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.20/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.20/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.0.20/skills/incremental-implementation.zip +0 -0
- package/.versions/2.0.20/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.20/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.0.20/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.20/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.20/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.0.20/skills/planning-and-task-breakdown.zip +0 -0
- package/.versions/2.0.20/skills/repository-ai-setup/SKILL.md +135 -0
- package/.versions/2.0.20/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.0.20/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.0.20/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.0.20/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.0.20/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.0.20/skills/repository-ai-setup.zip +0 -0
- package/.versions/2.0.20/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.20/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.0.20/skills/spec-driven-development.zip +0 -0
- package/.versions/2.0.20/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/CHANGELOG.md +32 -0
- package/README.md +3 -2
- package/agents/builder.md +1 -1
- package/agents/planner.md +6 -4
- package/bin/cli.js +9 -2
- package/bin/lib/apply.js +4 -0
- package/bin/lib/desired.js +2 -0
- package/bin/lib/doctor.js +13 -7
- package/bin/lib/state.js +7 -4
- package/bin/lib/transaction.js +6 -1
- package/bin/lib/validate-overrides.js +7 -3
- package/bin/lib/verify.js +9 -2
- package/docs/ARCHITECTURE.md +177 -74
- package/docs/agent-fleet-setup.md +10 -8
- package/docs/external-project-ai-content.md +17 -2
- package/docs/pi-extensions.md +7 -6
- package/docs/system1-agentic.md +4 -4
- package/docs/system1-config.md +144 -1
- package/docs/system1-context-continuity.md +224 -0
- package/docs/system1-damage-guard.md +172 -0
- package/docs/system1-dispatch-triage.md +169 -0
- package/docs/system1-file-discovery.md +16 -4
- package/docs/system1.example.json +102 -0
- package/install-manifest.json +17 -4
- package/manifest-meta.json +14 -1
- package/package.json +21 -9
- package/skills/_internal/grilling.md +54 -54
- package/skills/incremental-implementation/SKILL.md +8 -8
- package/skills/incremental-implementation.zip +0 -0
- package/skills/planning-and-task-breakdown/SKILL.md +7 -7
- package/skills/planning-and-task-breakdown.zip +0 -0
- package/skills/spec-driven-development/SKILL.md +1 -1
- package/skills/spec-driven-development.zip +0 -0
- package/.pi/harnesses/agent-hub/budget-continuation.ts +0 -13
- package/.pi/harnesses/agent-hub/commands/budget-continue.ts +0 -10
|
@@ -132,9 +132,8 @@ export function bridgeRegistryEntry(
|
|
|
132
132
|
return buildLiveRegistryEntry(identity, {
|
|
133
133
|
now: live.now,
|
|
134
134
|
pid: live.pid,
|
|
135
|
-
//
|
|
136
|
-
|
|
137
|
-
contextUsedPct: 0,
|
|
135
|
+
// External context is not observable. Unknown is not a measured zero.
|
|
136
|
+
contextUsedPct: null,
|
|
138
137
|
queueDepth: live.queueDepth,
|
|
139
138
|
});
|
|
140
139
|
}
|
|
@@ -227,7 +226,8 @@ async function main(): Promise<void> {
|
|
|
227
226
|
purpose,
|
|
228
227
|
model: "claude-code",
|
|
229
228
|
color: COLOR,
|
|
230
|
-
context_used_pct:
|
|
229
|
+
context_used_pct: null,
|
|
230
|
+
context_measurement: 'unknown',
|
|
231
231
|
queue_depth: queue.depth,
|
|
232
232
|
pane_id: paneId,
|
|
233
233
|
status: peerStatus(),
|
|
@@ -261,7 +261,7 @@ async function main(): Promise<void> {
|
|
|
261
261
|
async function reportPresence(): Promise<void> {
|
|
262
262
|
// context_used_pct is not observable from outside a Claude pane; 0 is
|
|
263
263
|
// what the agent card carries too, so the sidebar and the card agree.
|
|
264
|
-
await presence.annotate({ name: uniqueName, project, contextUsedPct:
|
|
264
|
+
await presence.annotate({ name: uniqueName, project, contextUsedPct: null, queueDepth: queue.depth });
|
|
265
265
|
}
|
|
266
266
|
const keepalive = setInterval(() => {
|
|
267
267
|
try {
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import type { CompactionResult, ExtensionAPI, ExtensionContext } from '@mariozechner/pi-coding-agent';
|
|
2
2
|
import { Type } from 'typebox';
|
|
3
3
|
|
|
4
|
+
// Agent Hub registers its managed compaction controller on the process realm. Reading
|
|
5
|
+
// it here, without importing the Hub, keeps this always-on extension loadable in a
|
|
6
|
+
// workspace that installs Fleet Core without Agent Hub.
|
|
7
|
+
type ManagedCompactionController = { request(request: { instructions: string; nextStep?: string }): void };
|
|
8
|
+
function managedCompaction(session: object): ManagedCompactionController | undefined {
|
|
9
|
+
const realm = globalThis as typeof globalThis & { [key: symbol]: WeakMap<object, ManagedCompactionController> | undefined };
|
|
10
|
+
return realm[Symbol.for('agent-fleet.context-continuity.controllers/v1')]?.get(session);
|
|
11
|
+
}
|
|
12
|
+
|
|
4
13
|
const DEFAULT_COMPACTION_INSTRUCTIONS = 'Preserve task goal, completed work, changed/read files, decisions, blockers, and next steps.';
|
|
5
14
|
|
|
6
15
|
const RequestCompactionParams = Type.Object({
|
|
@@ -97,8 +106,13 @@ export default function compactAndContinueExtension(pi: ExtensionAPI) {
|
|
|
97
106
|
const reason = params.reason?.trim() || 'The current instructions requested immediate context compaction.';
|
|
98
107
|
const continuationPrompt = params.continuationPrompt?.trim() || undefined;
|
|
99
108
|
|
|
100
|
-
|
|
109
|
+
const managed=managedCompaction(ctx.sessionManager);
|
|
110
|
+
if(managed) managed.request({instructions:`Reason: ${reason}\n${customInstructions}`,nextStep:continuationPrompt});
|
|
111
|
+
else pendingCompactions.push({ customInstructions, reason, continuationPrompt });
|
|
101
112
|
ctx.ui.notify(
|
|
113
|
+
managed ? (continuationPrompt
|
|
114
|
+
? 'Explicit compaction queued. If Pi has no compactable history, it will be skipped and the authorized plan will continue.'
|
|
115
|
+
: 'Explicit compaction queued. If Pi has no compactable history, it will be reported as skipped.') :
|
|
102
116
|
continuationPrompt
|
|
103
117
|
? 'Compaction queued after the current turn. The summarized remaining plan will continue after compaction.'
|
|
104
118
|
: 'Compaction queued after the current turn.',
|
|
@@ -108,7 +122,9 @@ export default function compactAndContinueExtension(pi: ExtensionAPI) {
|
|
|
108
122
|
return {
|
|
109
123
|
content: [{
|
|
110
124
|
type: 'text',
|
|
111
|
-
text:
|
|
125
|
+
text: managed
|
|
126
|
+
? (continuationPrompt ? 'Explicit compaction queued. After compaction, or an honest no-history skip, the authorized plan will continue.' : 'Explicit compaction queued. A session with no compactable history will be reported as skipped.')
|
|
127
|
+
: continuationPrompt
|
|
112
128
|
? 'Compaction queued. It will run after this agent turn finishes, then the summarized remaining plan will continue.'
|
|
113
129
|
: 'Compaction queued. It will run after this agent turn finishes.',
|
|
114
130
|
}],
|
|
@@ -37,15 +37,16 @@ does not refill the allowance. No file bodies/tool outputs/environment are sent
|
|
|
37
37
|
by this consumer; sensitive/oversized input is refused, not silently truncated.
|
|
38
38
|
|
|
39
39
|
Independent predicates add review for requested security changes (p ≥0.80),
|
|
40
|
-
|
|
40
|
+
review for broad changes (p ≥0.85), and exact-action one-use confirmation for
|
|
41
41
|
requested potentially irreversible execution (p ≥0.80). They do not change the
|
|
42
42
|
tier/model/roster, increase spend or authorize effects. Review is before task
|
|
43
43
|
acceptance, not a blanket authoring ban. Low probability is never safety clearance.
|
|
44
44
|
Baseline and source additions persist through failures, disable and resume.
|
|
45
45
|
|
|
46
|
-
Missing roles require the human `/af-agents-add
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
Missing review roles require the human `/af-agents-add code-reviewer` (or a
|
|
47
|
+
permitted reviewer), or `/af-agents-team` path. Planner and plan review are optional;
|
|
48
|
+
wide/high-risk tasks can start without them. Gaps use focused research and
|
|
49
|
+
additional decisions use `ask_user` grilling. Usage does not require renewal.
|
|
49
50
|
`/af-task-triage-waive <addition-id> <reason>` uses a correlated human answer for
|
|
50
51
|
one current addition; it remains waived rather than satisfied and cannot erase
|
|
51
52
|
baseline/other additions. `/af-task-triage-recover` performs checked process
|
|
@@ -138,7 +139,7 @@ These are independent runtime axes:
|
|
|
138
139
|
two-option picker. Operator keeps `read`, `bash`, `edit`, `write`, approved extension tools, and
|
|
139
140
|
orchestration. Orchestrator withholds direct coding tools but keeps dispatch, research, assertions,
|
|
140
141
|
roster controls, `ask_user`, read-only `filesystem` stat/inventory/excerpt/readback, ready coms, and ready Herdr tools.
|
|
141
|
-
Self-read
|
|
142
|
+
Large files support bounded excerpts with byte offset/max_bytes. Self-read output remains limited to 64 KiB per turn; choose smaller pages or a helper when useful.
|
|
142
143
|
`dispatch_triage` is listed only when that consumer can evaluate. Snapshot stays profile-gated.
|
|
143
144
|
In orchestrator work mode, raw Herdr panes are auxiliary-process orchestration—not a route around delegation for reading,
|
|
144
145
|
editing, testing, or implementing code.
|
|
@@ -151,9 +152,8 @@ Switching from Operator to Orchestrator with no active agents automatically load
|
|
|
151
152
|
team in configuration order (`default` in the shipped configuration), skipping empty teams and teams
|
|
152
153
|
with missing personas. Existing agents are kept. If no valid team is available, the switch is refused
|
|
153
154
|
with a warning. The selected team is saved in the session just like a manual team selection.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
`max-dispatches-per-turn` sets a lower ceiling. Research calls and the task envelope stay on the tier.
|
|
155
|
+
Child deadlines, nested delegation, and Verification Contract rigor follow the **task tier**, not
|
|
156
|
+
Work Mode. Dispatch and research counts are usage, never a per-turn allowance.
|
|
157
157
|
|
|
158
158
|
All Hub slash commands, including `/af-handoff`, are registered in both work modes. A command whose
|
|
159
159
|
runtime capability is unavailable refuses with remediation rather than disappearing. `--no-coms`
|
|
@@ -195,14 +195,21 @@ model window even while every standing prompt ceiling remains green.
|
|
|
195
195
|
The Hub samples live provider usage and projects each finalized tool result before another model
|
|
196
196
|
request:
|
|
197
197
|
|
|
198
|
-
- Below **
|
|
199
|
-
- At **
|
|
198
|
+
- Below **60%**, pressure is `normal`. Automatic semantic compaction never starts below **50%**.
|
|
199
|
+
- At **60%**, pressure becomes `warning`; the compact recovery surface is exposed transiently and
|
|
200
200
|
ordinary work may continue.
|
|
201
|
-
- At **
|
|
201
|
+
- At **70%**, the Hub aborts the next same-turn provider request, waits until the tool result and
|
|
202
202
|
aborted turn are persisted, and starts one automatic Pi compaction. Only one recovery may run at
|
|
203
203
|
a time. Input received while startup or same-turn recovery is active is retained in memory,
|
|
204
204
|
including images, then replayed once after compaction succeeds.
|
|
205
205
|
|
|
206
|
+
Automatic compaction re-arms when measured usage falls below **60%**, or after the history grows by
|
|
207
|
+
10% of the window over the first measurement after a compaction, so a small window whose compacted
|
|
208
|
+
baseline stays above 60% is not left waiting. At **80%**, further model work is blocked after a
|
|
209
|
+
failed recovery, or when even the compacted baseline is at or above 80%. A compacted baseline
|
|
210
|
+
between 70% and 80% warns once and keeps working until growth re-arms compaction. A single large
|
|
211
|
+
tool result can overshoot before its result is observed.
|
|
212
|
+
|
|
206
213
|
The status line and `/af-context` show the pressure phase, measured usage, both thresholds, episode,
|
|
207
214
|
and last recovery outcome. Persisted pressure diagnostics contain numeric/enumerated metadata only;
|
|
208
215
|
they never include prompts, tool output, credentials, error bodies, or compaction summaries.
|
|
@@ -265,6 +272,31 @@ sequenceDiagram
|
|
|
265
272
|
|
|
266
273
|
Every borrowed idea from another harness passes one test before it lands: *does this persistently enter the dispatcher context?* If yes, it goes to disk or a one-line status instead.
|
|
267
274
|
|
|
275
|
+
### Avoiding repeated coordination
|
|
276
|
+
|
|
277
|
+
- Exact-action confirmation and identical-dialog memory are shared across isolated
|
|
278
|
+
extension loaders. Decisions stay bound to the task/input revision, reset at
|
|
279
|
+
session boundaries and cannot be populated by a late answer from an older task.
|
|
280
|
+
Runtime effects still require and consume their own one-use authorization.
|
|
281
|
+
- `dispatch_agent` reuses successful review evidence only for the same reviewer,
|
|
282
|
+
task, requirements, covered scope, input artifacts and unchanged reviewed files.
|
|
283
|
+
This includes `security-auditor`. The reply reports `review_reused`, retains the
|
|
284
|
+
original evidence path and starts no child. Use `review_reason` for a fresh focus;
|
|
285
|
+
changed accepted input, relevant files/requirements, missing evidence, blocking findings or unresolved decisions
|
|
286
|
+
require fresh review. Test and acceptance evidence remain separate.
|
|
287
|
+
- Older successful tool bodies are projected to compact references for the model.
|
|
288
|
+
Full originals remain in the session journal and private
|
|
289
|
+
`artifacts/context-history/` files. Failures, questions, images, the latest tool
|
|
290
|
+
batch and recent inspection working pages remain complete. Current sourced
|
|
291
|
+
requirements/critical conditions stay visible in the task capsule. New projections
|
|
292
|
+
apply in batches of at least 32 KiB and an earlier projection is reused verbatim
|
|
293
|
+
while its original file is unchanged, so the projected prefix moves in steps instead
|
|
294
|
+
of on every turn. This reduces repeated history; it makes no provider-token or
|
|
295
|
+
latency guarantee.
|
|
296
|
+
- Plain `continue`/`resume`/`продължи` retains the accepted task input. An identical
|
|
297
|
+
`set_task_tier` declaration returns unchanged without another assessment or
|
|
298
|
+
process write. A changed request still requires the existing task binding.
|
|
299
|
+
|
|
268
300
|
`agent-hub` is the supported home for the former standalone dispatcher features:
|
|
269
301
|
|
|
270
302
|
- **Dispatcher grid** — a live dashboard of the active, dynamically adjustable native roster from `.pi/agents/teams.yaml`.
|
|
@@ -676,96 +708,22 @@ and forward parent cancellation, avoiding detached-orphan processes. Caller
|
|
|
676
708
|
cancellation follows the same bounded cleanup path but is reported as `cancelled`, not
|
|
677
709
|
`tool_timeout`.
|
|
678
710
|
|
|
679
|
-
###
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
| Budget (per user turn) | trivial | small | feature | project |
|
|
687
|
-
|-----------------------------------|---------|-------|---------|---------|
|
|
688
|
-
| `dispatch_agent` calls | 1 | 2 | 8 | 12 |
|
|
689
|
-
| `spawn_research` calls | 1 | 2 | 4 | 6 |
|
|
690
|
-
| Turn wall clock | 15 min | 15 min| 60 min | 90 min |
|
|
691
|
-
| Per-run deadline (specialist/research/delegate) | 10 min | 10 min | 30 min | 30 min |
|
|
692
|
-
| Specialist session recycled after | 3 runs | 3 runs| 5 runs | 5 runs |
|
|
693
|
-
| Nested delegation | off | off | on | on |
|
|
694
|
-
|
|
695
|
-
When a budget is exhausted, the runtime pauses `dispatch_agent`/`spawn_research` and opens
|
|
696
|
-
one localized Yes/No confirmation through the existing `ask-user-remote` wrapper. If the wrapper
|
|
697
|
-
is unavailable, it uses a local dialog; without either channel it stops. **Yes** renews the budget
|
|
698
|
-
and continues the original operation without another model call. Concurrent refusals share one
|
|
699
|
-
question and one renewal. **No**, cancellation, or confirmation failure latches a task-scoped stop
|
|
700
|
-
and aborts the parent loop. Only the human's `/af-budget-continue` command reopens that question;
|
|
701
|
-
the command itself neither grants budget nor dispatches work. Prose and magic-marker tool calls
|
|
702
|
-
cannot authorize renewal. A normal new user message still opens a fresh turn window, but cannot
|
|
703
|
-
clear a declined confirmation. Time blocked in any `ask_user` question is
|
|
704
|
-
excluded from the turn wall clock, so a slow human answer cannot exhaust the next dispatch.
|
|
705
|
-
Raise the task with `set_task_tier` when the work outgrew the current envelope. Override keys
|
|
706
|
-
in `.ai/agent-fleet-overrides.md` are a **ceiling** (`min` with the tier); `off` stays at the
|
|
707
|
-
tier rather than lifting the cap. A leftover `mode:` key is ignored with a warning.
|
|
711
|
+
### Usage accounting without continuation quotas
|
|
712
|
+
|
|
713
|
+
Dispatch, research and review-round counts and active time remain visible for each
|
|
714
|
+
turn/task. No tier imposes a continuation quota, and authorized work does not ask
|
|
715
|
+
periodically whether to continue. Legacy `max-dispatches-per-turn`,
|
|
716
|
+
`max-research-per-turn` and `turn-wall-time-s` keys are ignored with warnings.
|
|
717
|
+
Auto-research is still counted. Cancellation and individual child deadlines remain.
|
|
708
718
|
|
|
709
719
|
```markdown
|
|
710
720
|
## agent-hub
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
session-recycle-runs: 5 # recycle a specialist session after N resumed runs; integer or off
|
|
716
|
-
run-history-keep: 10 # previous sessions' artifact archives to retain; integer or off
|
|
721
|
+
watchdog: auto # default; root operator and native specialists
|
|
722
|
+
agent-turn-timeout-s: 1800 # tightens the individual run deadline
|
|
723
|
+
session-recycle-runs: 5 # tightens the recycle threshold
|
|
724
|
+
run-history-keep: 10 # previous artifact archives to retain
|
|
717
725
|
```
|
|
718
726
|
|
|
719
|
-
#### Task budget (the bound a turn window cannot provide)
|
|
720
|
-
|
|
721
|
-
A per-message allowance cannot bound a task. In the run this guardrail comes from, every
|
|
722
|
-
steering message opened a fresh window of 8 dispatches and 60 minutes, so no counter ever
|
|
723
|
-
bound: one workspace stayed open **47 hours**, while the same change made in a narrow
|
|
724
|
-
workspace took **13 minutes**.
|
|
725
|
-
|
|
726
|
-
So there is a second envelope, **`TASK_BUDGET_MULTIPLIER` (3) × the turn envelope**, whose
|
|
727
|
-
counters are **not** reset by a user message:
|
|
728
|
-
|
|
729
|
-
| | per turn (`feature`) | per task |
|
|
730
|
-
|---|---|---|
|
|
731
|
-
| `dispatch_agent` | 8 | 24 |
|
|
732
|
-
| `spawn_research` | 4 | 12 |
|
|
733
|
-
| clock | 60 min wall | 180 min **active** |
|
|
734
|
-
|
|
735
|
-
Exhausting it is a **hard stop**: the refusal says so, and another user message does not
|
|
736
|
-
reopen it. The hub asks one localized Yes/No `ask_user` question. **Yes** opens one audited
|
|
737
|
-
continuation tranche and resumes directly; it resets the task dispatch/research counters,
|
|
738
|
-
active-time clock, review allowance, and the current turn budget while preserving the task
|
|
739
|
-
tier, assertion ledger, capability packs, label, blockers, and accumulated progress. **No**
|
|
740
|
-
(or cancellation) stops. Each accepted tranche appends `agent-hub-budget-continuation` with
|
|
741
|
-
bounded prior usage, allowlisted process/session/pane identity, and runtime task/tranche/request
|
|
742
|
-
correlation. A reset invalidates pending answers; late or repeated answers cannot renew another task.
|
|
743
|
-
`/af-poll` and `/af-debate` use the same runtime confirmation gate for task and turn budgets.
|
|
744
|
-
|
|
745
|
-
`set_task_tier` with `new_task: true` remains the lifecycle action for genuinely different work.
|
|
746
|
-
It clears task identity/state as well as counters and appends an `agent-hub-task-reset` audit
|
|
747
|
-
entry. Do not use it merely to continue the same task. The status chip still shows both turn and
|
|
748
|
-
task usage (`… · task 4/18`).
|
|
749
|
-
|
|
750
|
-
The reasoning: three full envelopes still require an explicit human decision, but that decision
|
|
751
|
-
is now a single confirmation rather than a fake new task followed by a second message.
|
|
752
|
-
|
|
753
|
-
Both turn and task clocks charge **active time only** — turns that actually ran, minus the
|
|
754
|
-
time the dispatcher sat blocked on `ask_user`. Inter-turn idle costs nothing, because no turn
|
|
755
|
-
is open across it. Raw wall clock would bill a lunch break, an overnight pause, and every long
|
|
756
|
-
human answer against the task; at `fast` mode's 45-minute envelope a coffee break would
|
|
757
|
-
hard-stop a task with two dispatches spent. A false stop is worse than no stop — it teaches
|
|
758
|
-
people to reset the task window reflexively, and that reset is the one thing that has to
|
|
759
|
-
stay deliberate. Dispatch and research counts remain the honest hard stops.
|
|
760
|
-
|
|
761
|
-
The **auto-research pipe** (specialist emits `NEEDS_RESEARCH`, the hub fans out read-only
|
|
762
|
-
helpers in code) stays exempt from the TURN budget — it is hub mechanics, not a dispatcher
|
|
763
|
-
decision, and it must not steal the dispatcher's slots — but it **is** charged against the
|
|
764
|
-
task envelope. At 2 rounds × 4 questions per dispatch and 18 dispatches per task, leaving it
|
|
765
|
-
uncounted would have put 144 research runs inside the bound that is supposed to be the outer
|
|
766
|
-
one. When the task's research envelope is spent the pipe does not spawn and the specialist is
|
|
767
|
-
not resumed; the dispatch result says so.
|
|
768
|
-
|
|
769
727
|
Two related always-on behaviors: specialist **context pressure is measured over
|
|
770
728
|
input + cacheRead + cacheWrite** (resumed sessions re-send their whole accumulated context
|
|
771
729
|
as cache reads — counting `input` alone hid that entirely), and a specialist session is
|
|
@@ -811,19 +769,13 @@ can no longer hold its parent for hours.
|
|
|
811
769
|
### Task triage (complexity tiers)
|
|
812
770
|
|
|
813
771
|
The dispatcher classifies the current TASK with the `set_task_tier` tool BEFORE its first
|
|
814
|
-
dispatch — `trivial` / `small` / `feature` / `project` —
|
|
815
|
-
|
|
772
|
+
dispatch — `trivial` / `small` / `feature` / `project` — to select resource and
|
|
773
|
+
delegation policy. The tier shows in the `hub-tier` status chip
|
|
816
774
|
(`Tier: small · …`), with a trailing `?` while it is only assumed.
|
|
817
775
|
|
|
818
|
-
Skipping
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
there would unlock planner/plan-reviewer/security-auditor, loosen the review caps, and hand
|
|
822
|
-
out the full feature envelope: the over-apparatus failure mode, granted by forgetting a tool
|
|
823
|
-
call. Assuming `small` costs one explicit escalation when the work really is bigger, which
|
|
824
|
-
is the cheap direction to be wrong in. An assumed tier is not a ratchet baseline either: the
|
|
825
|
-
dispatcher's own first `set_task_tier` is treated as an initial declaration, so it never
|
|
826
|
-
needs a `reason` it had no way to know it needed.
|
|
776
|
+
Skipping classification assumes **small**. This retains conservative delegation,
|
|
777
|
+
role and child-deadline defaults, without limiting task duration or invocation counts.
|
|
778
|
+
Planner and plan-reviewer remain available on request at every tier.
|
|
827
779
|
|
|
828
780
|
The tier is **task-scoped and ratcheted**. It survives the user's next message, and it
|
|
829
781
|
moves in one direction cheaply: **lowering it is always free, raising it requires a
|
|
@@ -832,19 +784,15 @@ turn-scoped tier could not bind on a steered run — every correction reset it t
|
|
|
832
784
|
next dispatch re-assumed `feature`, and the effective tier drifted to the ceiling, because
|
|
833
785
|
nobody ever re-declares `trivial` after a steering message.
|
|
834
786
|
|
|
835
|
-
|
|
787
|
+
The remaining policy separates admission, review and usage:
|
|
836
788
|
|
|
837
789
|
- **Duplicate-dispatch guard** — refuses re-dispatching the same agent with a
|
|
838
790
|
near-identical task inside one turn.
|
|
839
|
-
- **Tier persona gate** — at
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
- **Review round cap** — review dispatches per TASK are capped by tier (trivial/small 1,
|
|
845
|
-
feature 2, project uncapped) and the (N+1)-th is refused without spending a budget slot.
|
|
846
|
-
This is where the review ratchet is actually cut: findings become requirements and the
|
|
847
|
-
enlarged requirement set justifies the next round, so the round is the thing to bound.
|
|
791
|
+
- **Tier persona gate** — at trivial/small, architect, security-auditor and
|
|
792
|
+
deep-researcher still require an appropriate classification. Planner/plan-reviewer
|
|
793
|
+
are optional and are never required to admit implementation.
|
|
794
|
+
- **Review rounds** — counted without a hard quota. Review quality and current
|
|
795
|
+
changed-scope evidence remain required where the process calls for them.
|
|
848
796
|
- **Review finding budget** — a review persona's dispatch carries a blocking-finding cap
|
|
849
797
|
tied to the tier (trivial 1, small 2, feature 5, project uncapped) plus the rule that a
|
|
850
798
|
blocking finding may only enforce an invariant the task/plan/rules already state. The hub
|
|
@@ -908,6 +856,14 @@ a stale tree is recoverable, a deleted one is not.
|
|
|
908
856
|
|
|
909
857
|
### Drift watchdog (in-flight observation)
|
|
910
858
|
|
|
859
|
+
The root operator is supervised too (`operator-watchdog.ts`): identical calls or
|
|
860
|
+
consecutive failures use the existing drift judge, cooldown and cancellation fence.
|
|
861
|
+
Root tool volume alone does not trigger a quota. Late judges cannot stop a later
|
|
862
|
+
turn/session. Root audit entries record abort requests without claiming that all
|
|
863
|
+
in-flight side effects stopped. There is no root wall-time heartbeat or visibility
|
|
864
|
+
into an external coms peer's own tool stream. Explicit watchdog off is respected.
|
|
865
|
+
|
|
866
|
+
|
|
911
867
|
An armed dispatch is observed **while it runs**, from the same JSON event stream that
|
|
912
868
|
drives the cards — not post-hoc:
|
|
913
869
|
|
|
@@ -1168,14 +1124,11 @@ in `peers.yaml`; this file only decides WHEN the hub prefers a peer over a nativ
|
|
|
1168
1124
|
|
|
1169
1125
|
### Planner recovery and completion evidence
|
|
1170
1126
|
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
or `/af-agents-team`; do not reset the task, downgrade its tier or invent an alternate lane.
|
|
1177
|
-
Read-only `coms_list`, `coms_get` and `coms_await` can inspect an existing pending message
|
|
1178
|
-
without resending it.
|
|
1127
|
+
No plan occurrence is an admission prerequisite. Existing saved plan requirements
|
|
1128
|
+
normalize to optional while preserving their artifacts and source history. A direct
|
|
1129
|
+
operator, native builder or coms peer can execute authorized work without a Planner.
|
|
1130
|
+
Independent review, task-transition fencing and exact-action authorization remain.
|
|
1131
|
+
Resolve factual gaps with focused research and additional decisions with `ask_user`.
|
|
1179
1132
|
|
|
1180
1133
|
A current declared plan artifact readback proves plan occurrence only. Exit 0, echoed
|
|
1181
1134
|
instructions, `PLAN_FILE` text without the declared file, or a pending reply do not close
|
|
@@ -1391,15 +1344,15 @@ duplicate grant, stale response, or unavailable original contract is not permiss
|
|
|
1391
1344
|
to replay. T3 protocol errors still need trusted effects evidence and corrected conditions;
|
|
1392
1345
|
unknown-tool needs a catalog change. `reconcile` requires attributable unchanged-current-
|
|
1393
1346
|
revision readback and independent nonblocking review; it clears a technical block only,
|
|
1394
|
-
retaining failed delivery and every open AF-MIN-CHANGE/test/review
|
|
1347
|
+
retaining failed delivery and every open AF-MIN-CHANGE/test/review obligation. `abandon`
|
|
1395
1348
|
does not satisfy dependent work. Audit exports IDs/statuses only, never prompts, nonces,
|
|
1396
1349
|
raw contracts or evidence paths.
|
|
1397
1350
|
|
|
1398
1351
|
Non-busy recovery refusals use separate accounting and never consume turn/task launch
|
|
1399
1352
|
counters. A `not_started` preflight refusal (runtime-owned, `started:false`, `effects:none`)
|
|
1400
1353
|
records 0 launches and 0 indeterminate attempts; correcting the prerequisite and re-invoking
|
|
1401
|
-
explicitly needs no slash reset, grant, or reconcile.
|
|
1402
|
-
|
|
1354
|
+
explicitly needs no slash reset, grant, or reconcile. Usage does not impose a
|
|
1355
|
+
continuation quota; recovery adds no automatic retry, wait or queue.
|
|
1403
1356
|
Busy operations that never started spend no allowance and record no failure. Turn reports no
|
|
1404
1357
|
longer charge refusals as dispatches; refusal totals count every refusal while launch
|
|
1405
1358
|
counters count only real child executions. Session execution totals
|
|
@@ -1472,7 +1425,9 @@ privacy boundaries, evaluation commands and outstanding live acceptance.
|
|
|
1472
1425
|
|
|
1473
1426
|
## Unified System 1 v2 configuration
|
|
1474
1427
|
|
|
1475
|
-
The runtime source is `.ai/system1.json` version 2 with independent consumer sections, one immutable session snapshot and a shared service. Installation selection remains separate. See [the unified configuration contract](../../../docs/system1-config.md) for setup, explicit migration, retained backups, diagnostics and remote/local off semantics. Legacy JSON files and `watchdog-system1` in Markdown are not runtime sources. v1 requires explicit migration and cannot start inference. Persisted Task Triage obligations remain enforced when inference is off or unavailable. D10 is not activated by this change.
|
|
1428
|
+
The runtime source is `.ai/system1.json` version 2 with independent consumer sections, one immutable session snapshot and a shared service. Installation selection remains separate. See [the unified configuration contract and per-consumer usage](../../../docs/system1-config.md) and the inert, all-consumer [system1.example.json](../../../docs/system1.example.json) for setup, explicit migration, retained backups, diagnostics and remote/local off semantics. Legacy JSON files and `watchdog-system1` in Markdown are not runtime sources. v1 requires explicit migration and cannot start inference. Persisted Task Triage obligations remain enforced when inference is off or unavailable. D10 is not activated by this change.
|
|
1429
|
+
|
|
1430
|
+
D7 `consumers.contextCompaction` adds optional automatic early-boundary advice. The verified Pi 1.3.0 Hub keeps deterministic 60% early opportunity / 70% compact-and-continue (80% ceiling) recovery independent of System1. Early advice requires separate consent, compactable history, Pi-owned reserve headroom and provider confidence; unavailable/unaccepted advice never removes the pressure fallback. Explicit compaction of a too-small session is honestly skipped while any continuation remains gated. Shared native children load the pressure adapter, but coms task-description binding and root System1 forwarding through nested/workflow processes remain incomplete. See [D7 usage, live evidence and limits](../../../docs/system1-context-continuity.md); configuration examples do not activate these features.
|
|
1476
1431
|
|
|
1477
1432
|
## Automatic System 1 file discovery
|
|
1478
1433
|
|
|
@@ -1480,4 +1435,82 @@ D9 `consumers.fileDiscovery` is separately consented and off by default. In both
|
|
|
1480
1435
|
|
|
1481
1436
|
## Agentic System 1 advisory tool
|
|
1482
1437
|
|
|
1483
|
-
`ask_system1` is an opt-in parent-only Hub consumer configured by `consumers.agenticAsk` in the shared `.ai/system1.json`. It batches typed questions over minimal state, selected files/ranges and opted-in recorded bash refs, without executing shell or changing process gates. `recommended`
|
|
1438
|
+
`ask_system1` is an opt-in parent-only Hub consumer configured by `consumers.agenticAsk` in the shared `.ai/system1.json`. It batches typed questions over minimal state, selected files/ranges and opted-in recorded bash refs, without executing shell or changing process gates. `recommended` reminds the operator to consult it for a concrete unresolved question when useful; `advisory` keeps optional consultation. Default installs remain off. Start a new Hub session after changing the mode. See [configuration, examples, bounds and safe readback](../../../docs/system1-agentic.md).
|
|
1439
|
+
|
|
1440
|
+
### Clarification routing
|
|
1441
|
+
|
|
1442
|
+
Routine technical choices inside approved scope are resolved by the working model,
|
|
1443
|
+
with their rationale recorded. Existing decisions are reused and discoverable facts
|
|
1444
|
+
are researched. Unresolved material decisions (requirements, public compatibility,
|
|
1445
|
+
consequential trade-offs, new permissions or scope) use `ask_user`; without the tool,
|
|
1446
|
+
ask in chat and wait for an explicit answer.
|
|
1447
|
+
|
|
1448
|
+
Specialist `ASK_USER` returns go to the orchestrator first. It resolves questions
|
|
1449
|
+
from approved decisions, repository facts or routine engineering judgment, then
|
|
1450
|
+
escalates what it cannot resolve. A parent-only answer uses a single task line:
|
|
1451
|
+
|
|
1452
|
+
```text
|
|
1453
|
+
ORCHESTRATOR_ANSWER: {"dispatchId":"ask-1","answers":[{"question":"Which local pattern?","answer":"Use the adjacent helper convention","basis":"routine_technical","evidence":"Same internal contract as the adjacent helper"}]}
|
|
1454
|
+
```
|
|
1455
|
+
|
|
1456
|
+
Allowed bases are `existing_decision`, `repository_fact`, and `routine_technical`.
|
|
1457
|
+
Every returned question must appear exactly once, with a nonempty answer and basis
|
|
1458
|
+
evidence. The grant is one-use, task- and scope-bound. Actual human responses retain
|
|
1459
|
+
`USER_ANSWER: <dispatchId> :: <question>` and the actual answers in the task. For a
|
|
1460
|
+
mixed round, obtain the needed human answers before re-dispatching and label the
|
|
1461
|
+
source of each answer honestly.
|
|
1462
|
+
|
|
1463
|
+
`blocked_on_user` remains the compatibility status for a paused clarification; it
|
|
1464
|
+
does not itself mandate human escalation. Neither marker grants action permissions,
|
|
1465
|
+
clears cancellation or bypasses unknown-effect recovery. Semantic classification of
|
|
1466
|
+
a decision remains model-guided; validation checks the clarification envelope and
|
|
1467
|
+
scope, not the truth of the model's reasoning. Historical pauses without recorded
|
|
1468
|
+
questions cannot use the new parent-answer path.
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
Automatic recovery monitoring adds `Auto compaction` and `Last compaction` rows to
|
|
1472
|
+
`/af-context`. Local `agent-hub-compaction-monitor` events record start, restoration,
|
|
1473
|
+
continuation, failure and ceiling blocking; native children use
|
|
1474
|
+
`agent-fleet-compaction-monitor`. Before/after percentages stay unknown when Pi has
|
|
1475
|
+
not yet provided a post-compaction usage measurement. See
|
|
1476
|
+
[context continuity](../../../docs/system1-context-continuity.md) for the 50/60/70/80
|
|
1477
|
+
policy, diagnostics, real CLI test coverage and provider-fixture limitations.
|
|
1478
|
+
|
|
1479
|
+
### Coordination efficiency
|
|
1480
|
+
|
|
1481
|
+
Native specialists receive `submit_result`. It validates a bounded report with
|
|
1482
|
+
`status` (`completed`, `partial`, `blocked`), `summary`, the existing assertion/
|
|
1483
|
+
changed-file/test/risk/decision arrays, and `evidence: [{path}]`. Evidence files
|
|
1484
|
+
must be inside the workspace and pass Damage-Control read policy; the tool records
|
|
1485
|
+
their SHA-256 and size. A proven-assertion declaration must reference one of these
|
|
1486
|
+
paths. Hashing a file confirms its identity, **not** the truth of the assertion.
|
|
1487
|
+
Further tool work invalidates an earlier submission; submit again after that work.
|
|
1488
|
+
|
|
1489
|
+
The parent consumes only a matching, successful executed tool result. By default,
|
|
1490
|
+
native runs with this tool do not invoke a model to reconstruct a missing report.
|
|
1491
|
+
A model profile that sets `assist.return-extraction: true` opts into the cheap
|
|
1492
|
+
read-only extraction pass over the written report when a specialist with tracked
|
|
1493
|
+
assertions never submits; the result is labelled extracted and stays weaker than a
|
|
1494
|
+
declared submission. Missing submissions stay visibly `submission_missing` either
|
|
1495
|
+
way; legacy/coms text parsing and its extraction fallback remain supported. `details.specialistCompletion` describes
|
|
1496
|
+
the worker's report, while `details.taskAccepted` remains the runtime acceptance
|
|
1497
|
+
verdict. Partial/blocked reports and unresolved decisions cannot accept the task.
|
|
1498
|
+
|
|
1499
|
+
A fresh review receives the previous report, recorded verification reference and
|
|
1500
|
+
a bounded exact diff of the previously reviewed files. The reviewer must check
|
|
1501
|
+
fixes and affected dependencies. History never grants approval. Changed requirements,
|
|
1502
|
+
scope, HEAD, file set, explicit new focus, stale/missing artifacts, binary/oversized
|
|
1503
|
+
files or incomplete Git observation require a full review. Baselines are local
|
|
1504
|
+
managed artifacts (up to 100 text files / 512 KiB total); journal state stores only
|
|
1505
|
+
references and hashes. Native and coms dispatches share this parent-side context.
|
|
1506
|
+
|
|
1507
|
+
System 1 advice is optional for a concrete unresolved question. Direct reasoning,
|
|
1508
|
+
search and bounded excerpts are permitted at every tier. Choose configured helpers
|
|
1509
|
+
using measured task accuracy, latency and tool reliability; unknown suitability
|
|
1510
|
+
stays unknown. The harness does not invent benchmarks or switch configured models
|
|
1511
|
+
automatically. Source/export permissions remain authoritative.
|
|
1512
|
+
|
|
1513
|
+
Catalog/capability journals record an initial snapshot and actual state changes,
|
|
1514
|
+
rather than every refresh. Session restoration resets suppression; failed writes
|
|
1515
|
+
are retried. Catalog reconciliation, recovery and active-tool enforcement still run
|
|
1516
|
+
on every refresh.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import {sharedApprovalWait} from './approval-wait.ts';
|
|
2
|
+
import {beginRuntimeTrace,type TraceBus} from '../lib/execution-trace.ts';
|
|
1
3
|
import {
|
|
2
4
|
accessDecisionChoices,
|
|
3
5
|
accessRequestCacheKey,
|
|
@@ -12,7 +14,7 @@ type ApprovalContext = {
|
|
|
12
14
|
hasUI: boolean;
|
|
13
15
|
ui: {
|
|
14
16
|
notify(message: string, level?: string): void;
|
|
15
|
-
select(title: string, options: string[], settings: { timeout: number }): Promise<string | undefined>;
|
|
17
|
+
select(title: string, options: string[], settings: { timeout: number; signal?: AbortSignal }): Promise<string | undefined>;
|
|
16
18
|
};
|
|
17
19
|
};
|
|
18
20
|
|
|
@@ -22,6 +24,7 @@ type ReplySocket = {
|
|
|
22
24
|
};
|
|
23
25
|
|
|
24
26
|
type AccessApprovalDeps = {
|
|
27
|
+
traceBus?: TraceBus;
|
|
25
28
|
getContext(): ApprovalContext | null | undefined;
|
|
26
29
|
getExemptionsFile(): string | null | undefined;
|
|
27
30
|
appendLog(entry: Record<string, unknown>): void;
|
|
@@ -29,7 +32,7 @@ type AccessApprovalDeps = {
|
|
|
29
32
|
};
|
|
30
33
|
|
|
31
34
|
export function createAccessApprovalRouter(deps: AccessApprovalDeps) {
|
|
32
|
-
|
|
35
|
+
const askQueue = sharedApprovalWait;
|
|
33
36
|
let generation = 0;
|
|
34
37
|
const denyCache = new Set<string>();
|
|
35
38
|
const pending = new Map<string, Promise<AccessDecisionChoice>>();
|
|
@@ -58,10 +61,13 @@ export function createAccessApprovalRouter(deps: AccessApprovalDeps) {
|
|
|
58
61
|
const existing = pending.get(cacheKey);
|
|
59
62
|
if (existing) return existing;
|
|
60
63
|
|
|
61
|
-
const
|
|
64
|
+
const finishQueue=beginRuntimeTrace(deps.traceBus,{kind:'queue',id:request.msg_id,parentId:request.toolCallId,owner:request.traceOwner,source:'access-escalation',reason:'approval_queue'});
|
|
65
|
+
const ask = askQueue.run(async (waitSignal): Promise<AccessDecisionChoice> => {
|
|
66
|
+
finishQueue({status:'completed'});
|
|
62
67
|
if (requestGeneration !== generation) return "deny";
|
|
63
68
|
const ctx = deps.getContext();
|
|
64
69
|
if (!ctx?.hasUI) return "deny";
|
|
70
|
+
const finishTrace=beginRuntimeTrace(deps.traceBus,{kind:'approval',id:request.msg_id,parentId:request.toolCallId,owner:request.traceOwner,source:'access-escalation',tool:request.tool,rule:request.pattern,reason:request.category});
|
|
65
71
|
|
|
66
72
|
const labels = new Map<AccessDecisionChoice, string>([
|
|
67
73
|
["deny", "Deny (keep blocked)"],
|
|
@@ -79,18 +85,18 @@ export function createAccessApprovalRouter(deps: AccessApprovalDeps) {
|
|
|
79
85
|
const choice = await ctx.ui.select(
|
|
80
86
|
`🛡️ ${agent} requests access: ${pattern}`,
|
|
81
87
|
options,
|
|
82
|
-
{ timeout: 600_000 },
|
|
88
|
+
{ timeout: 600_000, signal: waitSignal },
|
|
83
89
|
);
|
|
84
|
-
if (requestGeneration !== generation) return "deny";
|
|
90
|
+
if (requestGeneration !== generation) { finishTrace({status:'cancelled'});return "deny"; }
|
|
85
91
|
const selected = allowed.find((decision) => labels.get(decision) === choice) ?? "deny";
|
|
92
|
+
finishTrace({status:choice===undefined?'cancelled':selected==='deny'?'denied':'allowed'});
|
|
86
93
|
if (selected === "deny" && choice === labels.get("deny")) denyCache.add(cacheKey);
|
|
87
94
|
return selected;
|
|
88
95
|
} catch {
|
|
96
|
+
finishTrace({status:'failed'});
|
|
89
97
|
return "deny";
|
|
90
98
|
}
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
askQueue = ask.catch(() => {});
|
|
99
|
+
}).then(value=>value??'deny' as AccessDecisionChoice).finally(()=>finishQueue({status:'cancelled'}));
|
|
94
100
|
pending.set(cacheKey, ask);
|
|
95
101
|
void ask.finally(() => pending.delete(cacheKey));
|
|
96
102
|
return ask;
|
|
@@ -127,7 +133,7 @@ export function createAccessApprovalRouter(deps: AccessApprovalDeps) {
|
|
|
127
133
|
},
|
|
128
134
|
reset() {
|
|
129
135
|
generation++;
|
|
130
|
-
askQueue
|
|
136
|
+
askQueue.reset();
|
|
131
137
|
denyCache.clear();
|
|
132
138
|
pending.clear();
|
|
133
139
|
},
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const brand:unique symbol=Symbol('one-use authority');
|
|
2
|
+
export type OneUseAuthority={readonly [brand]:true};
|
|
3
|
+
/** Private issuer ownership and object identity; hashes are binding data, never authority. */
|
|
4
|
+
export function createOneUseAuthority(){
|
|
5
|
+
const grants=new WeakMap<object,string>();
|
|
6
|
+
return {
|
|
7
|
+
issue(key:string):OneUseAuthority {const grant=Object.freeze({[brand]:true as const});grants.set(grant,key);return grant;},
|
|
8
|
+
consume(grant:OneUseAuthority|undefined,key:string):boolean {if(!grant||typeof grant!=='object'||grants.get(grant)!==key)return false;grants.delete(grant);return true;},
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -20,7 +20,7 @@ export function exportPathAllowed(path:string,include:readonly string[],gitTrack
|
|
|
20
20
|
return include.some(p=>{if(p===GIT_TRACKED_INCLUDE)return gitTracked;const prefix=p.replace(/\/$/,'');return path===prefix||path.startsWith(prefix+'/');});
|
|
21
21
|
}
|
|
22
22
|
const runGit=promisify(execFile);
|
|
23
|
-
async function trackedPaths(root:string,paths:string[],signal:AbortSignal,deadlineMs:number):Promise<Set<string>> {
|
|
23
|
+
export async function trackedPaths(root:string,paths:string[],signal:AbortSignal,deadlineMs:number):Promise<Set<string>> {
|
|
24
24
|
// Never inherit Git repository/index overrides from the Hub process. Literal
|
|
25
25
|
// pathspecs avoid treating file names as options or wildcard/magic expressions.
|
|
26
26
|
const env=Object.fromEntries(Object.entries(process.env).filter(([key])=>!key.startsWith('GIT_')));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {createApprovalWait,sharedApprovalWait} from '../lib/approval-wait.ts';
|
|
@@ -4,6 +4,8 @@ export interface ResolvedAssistFlags {
|
|
|
4
4
|
'deterministic-tools': boolean;
|
|
5
5
|
'bounded-output': boolean;
|
|
6
6
|
'write-isolation': boolean;
|
|
7
|
+
/** A native specialist that never called submit_result gets the cheap extraction pass. */
|
|
8
|
+
'return-extraction': boolean;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
/** Resolves requested profile configuration only; feature producers apply it separately. */
|
|
@@ -12,5 +14,6 @@ export function resolveAssist(assist: AssistFlags = {}): ResolvedAssistFlags {
|
|
|
12
14
|
'deterministic-tools': assist['deterministic-tools'] === true,
|
|
13
15
|
'bounded-output': assist['bounded-output'] === true,
|
|
14
16
|
'write-isolation': assist['write-isolation'] === true,
|
|
17
|
+
'return-extraction': assist['return-extraction'] === true,
|
|
15
18
|
};
|
|
16
19
|
}
|