@chankov/agent-fleet 2.0.13 → 2.0.15
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/fleet.ts +2 -1
- package/.pi/extensions/compact-and-continue/README.md +2 -2
- package/.pi/harnesses/agent-hub/README.md +98 -10
- package/.pi/harnesses/agent-hub/budget-recovery.ts +2 -2
- package/.pi/harnesses/agent-hub/commands/context.ts +2 -0
- package/.pi/harnesses/agent-hub/commands/recover.ts +13 -4
- package/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.pi/harnesses/agent-hub/context/budgets.ts +9 -7
- package/.pi/harnesses/agent-hub/deterministic-fs.ts +51 -12
- package/.pi/harnesses/agent-hub/dispatch-native-complete.ts +4 -0
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +14 -3
- package/.pi/harnesses/agent-hub/dispatch-native-types.ts +3 -0
- package/.pi/harnesses/agent-hub/dispatch-native.ts +9 -1
- package/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +38 -0
- package/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +76 -0
- package/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.pi/harnesses/agent-hub/docs-lane.js +2 -1
- package/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.pi/harnesses/agent-hub/filesystem-tool.ts +75 -11
- package/.pi/harnesses/agent-hub/index.ts +284 -23
- package/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +13 -5
- package/.pi/harnesses/agent-hub/no-progress.ts +232 -28
- package/.pi/harnesses/agent-hub/orchestration-activation.ts +112 -0
- package/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.pi/harnesses/agent-hub/orchestration-route.ts +76 -0
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/policy/work-mode.ts +14 -5
- package/.pi/harnesses/agent-hub/process-obligations.ts +116 -15
- package/.pi/harnesses/agent-hub/prompts/context.ts +1 -0
- package/.pi/harnesses/agent-hub/prompts/fragments.ts +9 -11
- package/.pi/harnesses/agent-hub/prompts/system-prompt.ts +8 -1
- package/.pi/harnesses/agent-hub/recover-policy.ts +18 -1
- package/.pi/harnesses/agent-hub/recover-state.ts +1 -1
- package/.pi/harnesses/agent-hub/recovery-contract.ts +70 -0
- package/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.pi/harnesses/agent-hub/research/runtime.ts +2 -0
- package/.pi/harnesses/agent-hub/research/spawn-run.ts +15 -6
- package/.pi/harnesses/agent-hub/return-contract.js +27 -5
- package/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.pi/harnesses/agent-hub/run-budget.js +12 -0
- package/.pi/harnesses/agent-hub/scope-gate.js +23 -2
- package/.pi/harnesses/agent-hub/session-audit.ts +94 -8
- package/.pi/harnesses/agent-hub/spawn.ts +10 -2
- package/.pi/harnesses/agent-hub/system1-activity.ts +116 -1
- package/.pi/harnesses/agent-hub/system1-communication-store.ts +129 -0
- package/.pi/harnesses/agent-hub/system1-report.ts +50 -0
- package/.pi/harnesses/agent-hub/system1-runtime.ts +8 -4
- package/.pi/harnesses/agent-hub/task-triage-authorization.ts +122 -0
- package/.pi/harnesses/agent-hub/task-triage-config.ts +37 -0
- package/.pi/harnesses/agent-hub/task-triage-contract.ts +19 -0
- package/.pi/harnesses/agent-hub/task-triage-obligations.ts +104 -0
- package/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.pi/harnesses/agent-hub/task-triage-runtime.ts +125 -0
- package/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.pi/harnesses/agent-hub/tools/action-executors.ts +33 -10
- package/.pi/harnesses/agent-hub/tools/context.ts +2 -0
- package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +10 -4
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +86 -26
- package/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.pi/harnesses/agent-hub/tools/herdr-executors.ts +9 -0
- package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +37 -6
- package/.pi/harnesses/agent-hub/ui/fleet-source.ts +6 -2
- package/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.pi/harnesses/agent-hub/work-mode.ts +14 -8
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/context-budget-hub-prompt.ts +6 -1
- package/.pi/harnesses/lib/fleet-dashboard-view.ts +30 -5
- package/.pi/harnesses/lib/fleet-read-model.ts +73 -0
- package/.pi/harnesses/lib/fleet-strip-controller.ts +2 -1
- package/.pi/harnesses/lib/fleet-strip-view.ts +1 -1
- package/.pi/harnesses/lib/system1/demo.ts +2 -4
- package/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.pi/prompts/af-build.md +9 -6
- package/.versions/2.0.14/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.14/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.14/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/fleet.ts +216 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/flow.ts +157 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/flow-command.ts +98 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/package-lock.json +35 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/package.json +9 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +179 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +34 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.14/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.0.14/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.14/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.0.14/.pi/agents/peers.yaml +147 -0
- package/.versions/2.0.14/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.14/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.14/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.14/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.14/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.14/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.14/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.14/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.14/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.14/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.14/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.14/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.14/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.14/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.14/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.14/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.14/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.14/.pi/extensions/package.json +9 -0
- package/.versions/2.0.14/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.0.14/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.14/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.14/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.14/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.14/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.14/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/README.md +1369 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/acceptance.ts +199 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/assist-profile.ts +16 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/budget-recovery.ts +214 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/context.ts +45 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/recover.ts +52 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/config/agents.ts +178 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/config/model-profiles.ts +236 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/config/overrides.ts +160 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/context/budgets.ts +204 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/delegate.ts +467 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/deterministic-fs.ts +127 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-coms.ts +252 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-native-complete.ts +169 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +248 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +231 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-native-types.ts +257 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-native.ts +226 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +38 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +75 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +53 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/dispatch-triage-state.ts +15 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/filesystem-tool.ts +73 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/fixtures/registration-surface.json +62 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/hub-state-audit.js +65 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/index.ts +2370 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +125 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/no-progress.ts +359 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/policy/work-mode.ts +126 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-config.ts +40 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-local.ts +88 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-observer.ts +105 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-rules.ts +143 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-runtime.ts +316 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-snapshot.ts +243 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/proactive-types.ts +63 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/process-obligations.ts +57 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/prompts/context.ts +54 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/prompts/fragments.ts +118 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/prompts/system-prompt.ts +122 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/recover-policy.ts +27 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/recovery-contract.ts +80 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/research/runtime.ts +195 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/research/spawn-run.ts +174 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/return-contract.js +327 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/review-findings.js +104 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/run-budget.js +542 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/runtime-test-check.ts +54 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/scope-gate.js +123 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/session-audit.ts +227 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/spawn.ts +526 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/system1-activity.ts +510 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/system1-communication-store.ts +95 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/system1-report.ts +225 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/system1-runtime.ts +279 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +68 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/action-executors.ts +185 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/context.ts +144 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +88 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +498 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/run-flow.ts +136 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/spawn-research.ts +65 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/context-budget.ts +87 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +152 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/fleet-source.ts +175 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/work-mode.ts +174 -0
- package/.versions/2.0.14/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.0.14/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.0.14/.pi/harnesses/ask-user-remote/index.ts +558 -0
- package/.versions/2.0.14/.pi/harnesses/ask-user-remote/questions.ts +161 -0
- package/.versions/2.0.14/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.0.14/.pi/harnesses/ask-user-remote/runtime-ask.ts +68 -0
- package/.versions/2.0.14/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.14/.pi/harnesses/coms/index.ts +282 -0
- package/.versions/2.0.14/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.14/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.14/.pi/harnesses/damage-control-continue/README.md +135 -0
- package/.versions/2.0.14/.pi/harnesses/damage-control-continue/index.ts +550 -0
- package/.versions/2.0.14/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.14/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.14/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.0.14/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.14/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.14/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.14/.pi/harnesses/lib/context-budget-child-prompt.ts +219 -0
- package/.versions/2.0.14/.pi/harnesses/lib/context-budget-hub-prompt.ts +116 -0
- package/.versions/2.0.14/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.14/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.14/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/2.0.14/.pi/harnesses/lib/deterministic-handle-path.ts +23 -0
- package/.versions/2.0.14/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.14/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.14/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.14/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.0.14/.pi/harnesses/lib/fleet-dashboard-view.ts +147 -0
- package/.versions/2.0.14/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.0.14/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.14/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.14/.pi/harnesses/lib/fleet-read-model.ts +536 -0
- package/.versions/2.0.14/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.14/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.0.14/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.0.14/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.14/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.14/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.14/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.14/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.14/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.14/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.14/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.14/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.14/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.0.14/.pi/harnesses/lib/system1/config.js +61 -0
- package/.versions/2.0.14/.pi/harnesses/lib/system1/contracts.ts +152 -0
- package/.versions/2.0.14/.pi/harnesses/lib/system1/demo.ts +106 -0
- package/.versions/2.0.14/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.0.14/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.0.14/.pi/harnesses/lib/update-check.ts +222 -0
- package/.versions/2.0.14/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.14/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.14/.pi/prompts/af-build.md +24 -0
- package/.versions/2.0.14/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.14/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.0.14/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.14/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.14/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.14/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.14/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.0.14/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.14/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.14/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.14/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.14/.version +1 -0
- package/.versions/2.0.14/agents/architect.md +24 -0
- package/.versions/2.0.14/agents/bowser.md +28 -0
- package/.versions/2.0.14/agents/builder.md +55 -0
- package/.versions/2.0.14/agents/code-reviewer.md +209 -0
- package/.versions/2.0.14/agents/deep-researcher.md +32 -0
- package/.versions/2.0.14/agents/documenter.md +22 -0
- package/.versions/2.0.14/agents/orchestrator.md +22 -0
- package/.versions/2.0.14/agents/plan-reviewer.md +83 -0
- package/.versions/2.0.14/agents/planner.md +105 -0
- package/.versions/2.0.14/agents/releaser.md +24 -0
- package/.versions/2.0.14/agents/researcher.md +30 -0
- package/.versions/2.0.14/agents/security-auditor.md +167 -0
- package/.versions/2.0.14/agents/test-engineer.md +153 -0
- package/.versions/2.0.14/agents/web-debugger.md +44 -0
- package/.versions/2.0.14/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.14/bin/catalog/harness-runtime-closure.json +73 -0
- package/.versions/2.0.14/codex/fleet-session-client/SKILL.md +34 -0
- package/.versions/2.0.14/codex/fleet-session-client.zip +0 -0
- package/.versions/2.0.14/docs/ARCHITECTURE.md +754 -0
- package/.versions/2.0.14/docs/agent-fleet-setup.md +917 -0
- package/.versions/2.0.14/docs/claude-code-coms-bridge.md +134 -0
- package/.versions/2.0.14/docs/codex-session-bridge.md +219 -0
- package/.versions/2.0.14/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.0.14/docs/getting-started.md +126 -0
- package/.versions/2.0.14/docs/npm-install.md +476 -0
- package/.versions/2.0.14/docs/pi-extensions.md +454 -0
- package/.versions/2.0.14/docs/pi-setup.md +92 -0
- package/.versions/2.0.14/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.14/install-manifest.json +3183 -0
- package/.versions/2.0.14/justfile +247 -0
- package/.versions/2.0.14/manifest-meta.json +1065 -0
- package/.versions/2.0.14/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.14/references/communication-contract.md +26 -0
- package/.versions/2.0.14/references/definition-of-done.md +67 -0
- package/.versions/2.0.14/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.14/references/observability-checklist.md +92 -0
- package/.versions/2.0.14/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.14/references/performance-checklist.md +236 -0
- package/.versions/2.0.14/references/prompting-patterns.md +380 -0
- package/.versions/2.0.14/references/security-checklist.md +245 -0
- package/.versions/2.0.14/references/testing-patterns.md +235 -0
- package/.versions/2.0.14/references/workflow-authoring.md +304 -0
- package/.versions/2.0.14/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.14/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.14/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.14/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.14/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.0.14/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.14/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.0.14/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.14/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.14/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.14/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.14/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.14/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.14/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.14/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.14/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.14/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.14/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.14/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.14/skills/incremental-implementation/SKILL.md +302 -0
- package/.versions/2.0.14/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.14/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.0.14/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.14/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.14/skills/planning-and-task-breakdown/SKILL.md +289 -0
- package/.versions/2.0.14/skills/repository-ai-setup/SKILL.md +117 -0
- package/.versions/2.0.14/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.0.14/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.0.14/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.0.14/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.0.14/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.0.14/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.14/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.0.14/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.0.14/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.15/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.15/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/fleet.ts +217 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/flow.ts +157 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/flow-command.ts +98 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/package-lock.json +35 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/package.json +9 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +179 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +34 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.15/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.0.15/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.15/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.0.15/.pi/agents/peers.yaml +147 -0
- package/.versions/2.0.15/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.15/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.15/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.15/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.15/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.15/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.15/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.15/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.15/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.15/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.15/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.15/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.15/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.15/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.15/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.15/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.15/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.15/.pi/extensions/package.json +9 -0
- package/.versions/2.0.15/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.0.15/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.15/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.15/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.15/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.15/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.15/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/README.md +1448 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/acceptance.ts +199 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/assist-profile.ts +16 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/budget-recovery.ts +214 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/context.ts +47 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/config/agents.ts +178 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/config/model-profiles.ts +236 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/config/overrides.ts +160 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/context/budgets.ts +206 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/delegate.ts +467 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/deterministic-fs.ts +166 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/dispatch-coms.ts +252 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/dispatch-native-complete.ts +173 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +259 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +231 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/dispatch-native-types.ts +260 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/dispatch-native.ts +234 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +38 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +76 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/filesystem-tool.ts +137 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/fixtures/registration-surface.json +64 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/hub-state-audit.js +65 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/index.ts +2597 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +133 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/no-progress.ts +563 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/orchestration-activation.ts +112 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/orchestration-route.ts +76 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/policy/work-mode.ts +135 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/proactive-config.ts +40 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/proactive-local.ts +88 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/proactive-observer.ts +105 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/proactive-rules.ts +143 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/proactive-runtime.ts +316 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/proactive-snapshot.ts +243 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/proactive-types.ts +63 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/process-obligations.ts +158 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/prompts/context.ts +54 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/prompts/fragments.ts +116 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/prompts/system-prompt.ts +122 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/recovery-contract.ts +150 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/research/runtime.ts +197 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/research/spawn-run.ts +183 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/return-contract.js +349 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/review-findings.js +104 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/run-budget.js +554 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/runtime-test-check.ts +54 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/scope-gate.js +144 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/session-audit.ts +313 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/spawn.ts +534 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/system1-communication-store.ts +129 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/system1-runtime.ts +280 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-authorization.ts +122 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-config.ts +37 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-contract.ts +19 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-live-stage-closure.user-run.mjs +336 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-obligations.ts +104 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-reviewer-only.user-run.mjs +157 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-runtime.ts +125 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +68 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/action-executors.ts +208 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/context.ts +144 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +88 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +558 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/herdr-executors.ts +95 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/run-flow.ts +136 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/spawn-research.ts +65 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/context-budget.ts +87 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +155 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/work-mode.ts +179 -0
- package/.versions/2.0.15/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.0.15/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.0.15/.pi/harnesses/ask-user-remote/index.ts +558 -0
- package/.versions/2.0.15/.pi/harnesses/ask-user-remote/questions.ts +161 -0
- package/.versions/2.0.15/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.0.15/.pi/harnesses/ask-user-remote/runtime-ask.ts +68 -0
- package/.versions/2.0.15/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.15/.pi/harnesses/coms/index.ts +282 -0
- package/.versions/2.0.15/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.15/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.15/.pi/harnesses/damage-control-continue/README.md +135 -0
- package/.versions/2.0.15/.pi/harnesses/damage-control-continue/index.ts +550 -0
- package/.versions/2.0.15/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.15/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.15/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.0.15/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.15/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.15/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.15/.pi/harnesses/lib/context-budget-child-prompt.ts +219 -0
- package/.versions/2.0.15/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
- package/.versions/2.0.15/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.15/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.15/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/2.0.15/.pi/harnesses/lib/deterministic-handle-path.ts +23 -0
- package/.versions/2.0.15/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.15/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.15/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.15/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.0.15/.pi/harnesses/lib/fleet-dashboard-view.ts +172 -0
- package/.versions/2.0.15/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.0.15/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.15/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.15/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.0.15/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.15/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.0.15/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.0.15/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.15/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.15/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.15/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.15/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.15/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.15/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.15/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.15/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.15/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.0.15/.pi/harnesses/lib/system1/config.js +61 -0
- package/.versions/2.0.15/.pi/harnesses/lib/system1/contracts.ts +152 -0
- package/.versions/2.0.15/.pi/harnesses/lib/system1/demo.ts +104 -0
- package/.versions/2.0.15/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.0.15/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.0.15/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.0.15/.pi/harnesses/lib/update-check.ts +222 -0
- package/.versions/2.0.15/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.15/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.15/.pi/prompts/af-build.md +27 -0
- package/.versions/2.0.15/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.15/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.0.15/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.15/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.15/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.15/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.15/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.0.15/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.15/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.15/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.15/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.15/.version +1 -0
- package/.versions/2.0.15/agents/architect.md +24 -0
- package/.versions/2.0.15/agents/bowser.md +28 -0
- package/.versions/2.0.15/agents/builder.md +55 -0
- package/.versions/2.0.15/agents/code-reviewer.md +209 -0
- package/.versions/2.0.15/agents/deep-researcher.md +32 -0
- package/.versions/2.0.15/agents/documenter.md +22 -0
- package/.versions/2.0.15/agents/orchestrator.md +22 -0
- package/.versions/2.0.15/agents/plan-reviewer.md +83 -0
- package/.versions/2.0.15/agents/planner.md +105 -0
- package/.versions/2.0.15/agents/releaser.md +24 -0
- package/.versions/2.0.15/agents/researcher.md +30 -0
- package/.versions/2.0.15/agents/security-auditor.md +167 -0
- package/.versions/2.0.15/agents/test-engineer.md +153 -0
- package/.versions/2.0.15/agents/web-debugger.md +44 -0
- package/.versions/2.0.15/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.15/bin/catalog/harness-runtime-closure.json +73 -0
- package/.versions/2.0.15/codex/fleet-session-client/SKILL.md +34 -0
- package/.versions/2.0.15/codex/fleet-session-client.zip +0 -0
- package/.versions/2.0.15/docs/ARCHITECTURE.md +829 -0
- package/.versions/2.0.15/docs/agent-fleet-setup.md +1090 -0
- package/.versions/2.0.15/docs/claude-code-coms-bridge.md +134 -0
- package/.versions/2.0.15/docs/codex-session-bridge.md +219 -0
- package/.versions/2.0.15/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.0.15/docs/getting-started.md +126 -0
- package/.versions/2.0.15/docs/npm-install.md +525 -0
- package/.versions/2.0.15/docs/pi-extensions.md +454 -0
- package/.versions/2.0.15/docs/pi-setup.md +92 -0
- package/.versions/2.0.15/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.15/install-manifest.json +3193 -0
- package/.versions/2.0.15/justfile +247 -0
- package/.versions/2.0.15/manifest-meta.json +1071 -0
- package/.versions/2.0.15/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.15/references/communication-contract.md +26 -0
- package/.versions/2.0.15/references/definition-of-done.md +67 -0
- package/.versions/2.0.15/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.15/references/observability-checklist.md +92 -0
- package/.versions/2.0.15/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.15/references/performance-checklist.md +236 -0
- package/.versions/2.0.15/references/prompting-patterns.md +380 -0
- package/.versions/2.0.15/references/security-checklist.md +245 -0
- package/.versions/2.0.15/references/testing-patterns.md +235 -0
- package/.versions/2.0.15/references/workflow-authoring.md +304 -0
- package/.versions/2.0.15/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.15/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.15/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.15/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.15/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.0.15/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.15/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.0.15/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.15/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.15/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.15/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.15/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.15/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.15/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.15/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.15/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.15/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.15/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.15/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.15/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.0.15/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.15/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.0.15/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.15/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.15/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.0.15/skills/repository-ai-setup/SKILL.md +117 -0
- package/.versions/2.0.15/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.0.15/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.0.15/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.0.15/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.0.15/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.0.15/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.15/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.0.15/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.0.15/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/agents/builder.md +2 -2
- package/bin/cli.js +16 -2
- package/bin/lib/apply.js +5 -0
- package/bin/lib/doctor.js +85 -12
- package/bin/lib/reconcile.js +9 -1
- package/bin/lib/state.js +1 -0
- package/bin/lib/task-triage-setup.js +76 -0
- package/bin/lib/transaction.js +4 -0
- package/docs/ARCHITECTURE.md +100 -24
- package/docs/agent-fleet-setup.md +196 -6
- package/docs/npm-install.md +72 -15
- package/docs/pi-extensions.md +1 -1
- package/install-manifest.json +21 -3
- package/manifest-meta.json +14 -0
- package/package.json +11 -3
- package/skills/incremental-implementation/SKILL.md +64 -13
- package/skills/planning-and-task-breakdown/SKILL.md +43 -14
- package/skills/using-agent-skills/SKILL.md +2 -2
|
@@ -0,0 +1,754 @@
|
|
|
1
|
+
# Agent Fleet Architecture
|
|
2
|
+
|
|
3
|
+
Agent Fleet is a Pi-centered multi-agent orchestration system. This page maps
|
|
4
|
+
the runtime responsibilities and where each module lives in the repository.
|
|
5
|
+
|
|
6
|
+
For the principles governing future plans and design decisions, read the
|
|
7
|
+
[project philosophy](PHILOSOPHY.md). That document states the intended direction;
|
|
8
|
+
this page describes the current architecture.
|
|
9
|
+
|
|
10
|
+
## Runtime layers
|
|
11
|
+
|
|
12
|
+
| Layer | Role | Implementation |
|
|
13
|
+
| --- | --- | --- |
|
|
14
|
+
| **Pi Coding Agent** | Primary local runtime — runs the dispatcher and specialist subagents | `.pi/harnesses/`, `.pi/extensions/`, `.pi/agents/`, `.pi/prompts/` |
|
|
15
|
+
| **agent-hub** | Thin-context multi-agent harness: dispatcher + specialists + research helpers + Verification Contract | `.pi/harnesses/agent-hub/` |
|
|
16
|
+
| **Workflows** | Headless, code-owned phase order, retries, gates, writes enforcement, and acceptance through `just flow` | `.pi/agent-fleet/scripts/flow.ts`, `.pi/agent-fleet/scripts/workflows/` — see [workflows.md](workflows.md) |
|
|
17
|
+
| **Herdr** | Fleet/workspace control plane — spawns peer teams as tiled workspaces, presence via push events, snapshot/resume | [herdr.dev](https://herdr.dev); client in `.pi/harnesses/lib/herdr-client.ts`, layout in `.pi/agent-fleet/scripts/lib/herdr-layout.ts` |
|
|
18
|
+
| **coms** | Peer communication protocol/data plane — envelope-based P2P messaging between agents | Shared peer lifecycle in `.pi/harnesses/lib/coms-core.ts` and `coms-core-io.ts`; Pi registrations in `.pi/harnesses/coms/` and `agent-hub/`; wire helpers in `.pi/agent-fleet/scripts/lib/coms-envelope.ts` and `.pi/agent-fleet/scripts/coms-cli.ts` |
|
|
19
|
+
| **Claude Code bridge** | Makes an interactive Claude Code pane a bidirectional coms peer | `.pi/agent-fleet/scripts/coms-claude-bridge.ts`, `.pi/agent-fleet/hooks/coms-stop-hook.mjs`, `skills/peer-coms/` — see [claude-code-coms-bridge.md](claude-code-coms-bridge.md) |
|
|
20
|
+
| **Hermes bridge** | Remote human control — relays hub questions to Telegram, races phone vs. local answers, conductor/liaison skills | `.pi/agent-fleet/scripts/coms-hermes-bridge.ts`, `.pi/harnesses/ask-user-remote/`, `.pi/agent-fleet/hermes/skills/` — see [coms-hermes-bridge.md](coms-hermes-bridge.md) |
|
|
21
|
+
| **Hermes local monitor transport** | Local, authenticated monitor contract for Hub-owned task generations; consumers supply their own presentation | `.pi/harnesses/agent-hub/monitor-*.ts`, `.pi/harnesses/lib/hermes-monitor-{model,store,registry,socket}.ts` (with compatibility re-exports under `.pi/agent-fleet/scripts/lib/`) — see [Hermes artifacts](../.pi/agent-fleet/hermes/README.md#local-agent-hub-monitor-integration) and [watchdog limits](hermes-watchdog-supervisor.md) |
|
|
22
|
+
| **Hermes Desktop plugin** (`agent-fleet-herdr`) | Fleet observability surface — read-only panel of every live session joined from the coms registry, herdr presence, agent transcripts, and the monitor transport; `focus` and subagent `cancel` are its only write doors | `.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/` (Electron pane), `.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/` (FastAPI backend), installed by `.pi/agent-fleet/scripts/install-hermes-plugin.sh` — see [hermes-desktop-plugins.md](hermes-desktop-plugins.md) |
|
|
23
|
+
| **ChatGPT Fleet session client** | Experimental ChatGPT-initiated client for an existing Pi session; no daemon or idle wake | `.pi/agent-fleet/scripts/fleet-codex-client.ts`, `.pi/agent-fleet/scripts/lib/fleet-codex-*`, opt-in feature `chatgpt-client` — see [codex-session-bridge.md](codex-session-bridge.md) |
|
|
24
|
+
| **System 1 foundation** | Experimental, opt-in provider-neutral structured judgments; currently TypeSafe Jev only, with a separate off-by-default native watchdog shadow consumer and closed active gate | `.pi/harnesses/lib/system1/`, feature `system1`, human-owned `.ai/system1.json` |
|
|
25
|
+
| **System 1 dispatch advice / communication** | Optional off-by-default `dispatch_triage` tool; shared-service memory-only Fleet `1` viewer, independently opt-in; live calibration not yet accepted | `.pi/harnesses/agent-hub/dispatch-triage-*.ts`, `system1-communication-store.ts`, `ui/system1-communication.ts` — [guide](system1-dispatch-triage.md) |
|
|
26
|
+
| **Skill library** | Lifecycle workflows and quality gates every agent follows | `skills/` (native) + `vendor/agent-skills-upstream/skills/` (vendored) — see [UPSTREAM-SKILLS.md](UPSTREAM-SKILLS.md) |
|
|
27
|
+
| **Personas** | Reusable specialist definitions, installed verbatim | `agents/` in the package → `.pi/agents/personas/` in a workspace; `bin/lib/personas.js` |
|
|
28
|
+
|
|
29
|
+
## One Hub runtime, independent axes
|
|
30
|
+
|
|
31
|
+
Every public Pi launch through `just fleet` loads Fleet Core and the `agent-hub`
|
|
32
|
+
harness. Three independent choices shape that runtime:
|
|
33
|
+
|
|
34
|
+
| Axis | Choices | What it controls |
|
|
35
|
+
| --- | --- | --- |
|
|
36
|
+
| **Work Mode** | `operator`, `orchestrator` | Whether the main agent may use direct coding tools. Operator retains the captured `read`/`bash`/`edit`/`write` and approved extension surface; orchestrator removes direct coding tools and keeps dispatch, research, assertions, `ask_user`, and available coms/Herdr tools. `/af-work-mode` and **Alt+M** switch this axis. |
|
|
37
|
+
| **Native roster** | empty or one entry from `.pi/agents/teams.yaml` | Which in-process Pi specialist personas `dispatch_agent` may start. Roster changes do not change work mode in a live session. |
|
|
38
|
+
| **Peer topology** | current terminal, Hub-only Herdr workspace, or Hub plus a `.pi/agents/peers.yaml` preset | Which separate, addressable Pi/Claude processes occupy sibling panes. Starting or spawning peers does not change work mode or the native roster. |
|
|
39
|
+
|
|
40
|
+
Bare `just fleet` therefore means operator work mode, an empty native roster, and
|
|
41
|
+
the current terminal. At startup an explicit `--work-mode` wins; otherwise
|
|
42
|
+
`--agents <roster>` implies orchestrator; otherwise operator is used. An
|
|
43
|
+
orchestrator startup requires a roster. `/af-work-mode` and **Alt+M** switch
|
|
44
|
+
only work mode in the live session, and `/af-agents-*` changes
|
|
45
|
+
only the native roster. Dispatch, research, nested delegation, and Verification
|
|
46
|
+
Contract rigor follow the **task tier** (`trivial`/`small`/`feature`/`project`),
|
|
47
|
+
not a session execution mode.
|
|
48
|
+
|
|
49
|
+
All Hub-owned slash commands remain registered in both work modes. Capability packs are resolved automatically from explicit task intent, work mode, tier, pending work, and compaction state—there is no activation command. Runtime **readiness** (a coms or Herdr connection) is not model-visible capability: ready-but-unrequested peer/workspace packs remain inactive. Ambiguous fleet, peer, and workspace requests are provisionally visible but require one `ask_user` confirmation before their first side effect; a rejection removes the provisional pack. Task packs persist across follow-ups and reset only through `set_task_tier(new_task: true)`, while mandatory work mode and pending-operation leases remain.
|
|
50
|
+
|
|
51
|
+
`/af-context` is a standalone, read-only full-screen budget diagnostic; it separates stable prompt cost, volatile state, active schemas, and zero-cost inactive/loaded-excluded inputs. Provider totals and cache read/write fields are authoritative where Pi supplies them; it never fabricates provider usage or combines capacity percentages across Hub, child, and peer planes. `/af-audit` is a separate read-only session audit over existing runtime-owned records: it reports allowlisted T1 recovery categories, T2 result states, T3 protocol failures, and T8 permission correlations while keeping root, child, compaction snapshot, and repeated-record identities distinct. It never copies prompts, model text, tool payloads, environment values, or transcript content, and unavailable evidence stays explicit rather than becoming a zero count. Managed specialists and research children use explicit replacement prompts/context manifests with selected persona, policy, and skill paths instead of inherited global skills/context files. Configured project rule and documentation pointers are rendered into the Hub prompt in both work modes and into native specialist, nested delegate, research, and coms handoffs. Files are read directly; folders are resolved index-first, with recursive rule discovery only when no index exists. The prompt carries pointers and selection instructions rather than bulk-injecting rule bodies, and the Hub ledger attributes that text as `hub/policy/project`. Runtime gates control whether an action can proceed: without coms, Herdr, a visible target, or an active roster, the corresponding command refuses with an actionable message rather than disappearing. `--browser` and `--all-extensions` expand the captured operator surface only when those optional extensions are installed.
|
|
52
|
+
|
|
53
|
+
T12 diagnostics have been withdrawn by user decision; there is no command, runner, or replacement entry point. Historical results and accounting remain unchanged. `diagnostic-series-budget.ts` retains the shared v2 ledger, stage/per-unit ceilings, conservative input preflight, migration refusal for ambiguous history, ownership locks, and cancellation fences used by benchmark consumers. `diagnostic-probe-extension.ts` is now a side-effect-free compatibility library exposing only provider/API output-cap mapping, its types, and the transport refusal exit constant. It preserves the reviewed 2048 cap and rejects unsupported payload semantics; it does not register an extension or tool. Existing sessions must be reloaded after updating. The installer retires unchanged managed command/runner files; user-modified obsolete files are preserved and reported for manual review, never deleted automatically. Such retained files are not imported by the current Hub.
|
|
54
|
+
|
|
55
|
+
### Context pressure and recovery
|
|
56
|
+
|
|
57
|
+
Standing prompt ceilings constrain the repeatable replacement prompt and active schemas; they do not
|
|
58
|
+
bound conversation messages or results accumulated inside a long tool loop. The Hub therefore has a
|
|
59
|
+
second, runtime pressure guard. It samples provider usage, projects a finalized tool result at
|
|
60
|
+
`message_end`, warns and exposes transient compaction support at **80%**, then at **90%** aborts the
|
|
61
|
+
pre-model continuation and waits for `agent_settled` before requesting one Pi compaction. This
|
|
62
|
+
ordering ensures the result is persisted before summarization and prevents an ordinary provider call
|
|
63
|
+
from escaping between pressure detection and recovery.
|
|
64
|
+
|
|
65
|
+
Recovery is single-flight. High-context startup or concurrent input is retained in memory and
|
|
66
|
+
replayed exactly once after success; failure retains it for `/compact` or a larger-context model.
|
|
67
|
+
`/af-context` and the status line report phase, usage, thresholds, episode, and last outcome. Session
|
|
68
|
+
entries store only numeric/enumerated pressure metadata, never prompts, tool payloads, credentials,
|
|
69
|
+
error bodies, or summaries.
|
|
70
|
+
|
|
71
|
+
A persisted native roster is also metadata, not copied configuration: only its team name is stored
|
|
72
|
+
and it is re-resolved against current teams and persona definitions. A stale or absent roster in a
|
|
73
|
+
resumed orchestrator session fails closed—work mode remains orchestrator, direct tools remain removed,
|
|
74
|
+
and model input is blocked until `/af-agents-team`, an explicit `--agent-team <name>` restart, or an
|
|
75
|
+
explicit operator selection resolves it. Explicit CLI work mode and roster selections retain
|
|
76
|
+
precedence.
|
|
77
|
+
|
|
78
|
+
Pi's session JSONL is the authoritative append-only record for rebuilding a session, including
|
|
79
|
+
compaction and Hub metadata. Pressure and roster recovery operate through Pi/Hub lifecycle APIs;
|
|
80
|
+
they never rewrite prior entries. Operators must not edit, truncate, reorder, or synthesize JSONL to
|
|
81
|
+
recover a session.
|
|
82
|
+
|
|
83
|
+
The project selected by `--project <name>` is the coms namespace for the Hub
|
|
84
|
+
and every standing or dynamically spawned peer. The Hub-facing peer spawn API
|
|
85
|
+
cannot override it. Native subagents remain children of that Hub and inherit
|
|
86
|
+
its repository context; peers are separate processes in their own panes.
|
|
87
|
+
|
|
88
|
+
At dispatch time, `backend: "auto"` applies
|
|
89
|
+
`.pi/agents/dispatch-policy.yaml`; `backend: "native"` bypasses same-name peer
|
|
90
|
+
substitution; and `backend: "coms"` requires a visible same-name peer and never
|
|
91
|
+
falls back to a native child. `.pi/agents/peers.yaml` owns how a peer runs
|
|
92
|
+
(`runner`, persona, model, extensions, and declared `env_file`), not whether a
|
|
93
|
+
dispatch uses it.
|
|
94
|
+
|
|
95
|
+
## Fleet hierarchy
|
|
96
|
+
|
|
97
|
+
Agent Fleet is layered on purpose. Work flows **down** (delegate); evidence and status flow **up** — as compact structured returns, never raw dumps.
|
|
98
|
+
|
|
99
|
+
```mermaid
|
|
100
|
+
flowchart TD
|
|
101
|
+
You(["You · Hermes inbound relay · Codex outbound conductor on your phone"])
|
|
102
|
+
|
|
103
|
+
subgraph HUBL["HUB — guarded runtime (bare just fleet)"]
|
|
104
|
+
Hub["agent-hub harness<br/>operator or orchestrator work mode · routes tasks<br/>owns the Verification Contract on disk · keeps research dumps out of its own context"]
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
subgraph TEAML["OPTIONAL NATIVE ROSTER (.pi/agents/teams.yaml)"]
|
|
108
|
+
Team["default: builder · test-engineer · code-reviewer · documenter<br/>also: plan · debug · frontend · security · hotfix · release · info"]
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
subgraph RESL["RESEARCH HELPERS — read-only, always available"]
|
|
112
|
+
Research["researcher (fast tier — simple reads)<br/>deep-researcher (deep tier — hard, cross-cutting questions)"]
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
subgraph SUBL["SUB-AGENTS — focused children, narrow tools + models"]
|
|
116
|
+
Subs["planner → scout · rules · risk<br/>plan-reviewer → feasibility · deps<br/>builder → recon · verifier<br/>test-engineer → coverage-scout · conventions<br/>code-reviewer → preflight · quality · perf · docs<br/>security-auditor → recon · input-sweep · secrets-sweep"]
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
You -->|task| Hub
|
|
120
|
+
Hub -->|"dispatch_agent — one persona = one specialist session"| Team
|
|
121
|
+
Hub -->|"spawn_research"| Research
|
|
122
|
+
Research -.->|"findings written to disk — hub gets paths, not dumps"| Hub
|
|
123
|
+
Team -->|"subagents: block (delegate_depth ≥ 1)"| Subs
|
|
124
|
+
Subs -.->|"results return to the parent agent only"| Team
|
|
125
|
+
Team -.->|"structured return + evidence"| Hub
|
|
126
|
+
Hub -.->|"one status line: Assertions: 2✓ 1○ 1✗"| You
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Every specialist session is one persona from [`agents/`](../agents/) (installed to `.pi/agents/personas/`) — *skills* tell each agent **how** to work; *personas* define **who** they are (see [agents.md](agents.md)).
|
|
130
|
+
|
|
131
|
+
The same idea as a tree:
|
|
132
|
+
|
|
133
|
+
```text
|
|
134
|
+
hub (operator by default; orchestrator when selected)
|
|
135
|
+
├── optional native roster (empty by default; example: default)
|
|
136
|
+
│ ├── builder → recon · verifier
|
|
137
|
+
│ ├── test-engineer → coverage-scout · conventions
|
|
138
|
+
│ ├── code-reviewer → preflight · quality · perf · docs
|
|
139
|
+
│ └── documenter
|
|
140
|
+
├── research helpers (spawn_research, any time)
|
|
141
|
+
│ ├── researcher
|
|
142
|
+
│ └── deep-researcher
|
|
143
|
+
└── optional fleet peers (herdr + coms)
|
|
144
|
+
├── architect / releaser / web-debugger panes
|
|
145
|
+
├── Claude Code peer (coms bridge)
|
|
146
|
+
├── Hermes (phone human · inbound ask_user)
|
|
147
|
+
└── ChatGPT Fleet session client (Desktop/Android · existing Pi session)
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
Composition rule: **the hub (or a slash command) orchestrates; personas do not invoke other personas as peers.** Specialists may only fan out to their configured **sub-agents**. Research helpers write findings to disk; the hub resumes specialists with paths, not raw dumps.
|
|
151
|
+
|
|
152
|
+
### Research search supervision
|
|
153
|
+
|
|
154
|
+
The shared `spawnPiAgent` seam supervises every `read`/`grep`/`find`/`ls` call from native
|
|
155
|
+
research helpers and nested delegate children. The supervisor tracks JSONL `toolCallId` values
|
|
156
|
+
independently, with a default 120-second deadline (`recon-search-timeout-s: 1..3600|off` under
|
|
157
|
+
`## agent-hub`). It is a per-tool watchdog; the whole-run bound is separate — the task-tier
|
|
158
|
+
per-run deadline (`agent-turn-timeout-s`), which terminates a hung run as `turn_timeout`.
|
|
159
|
+
On timeout or caller cancellation it owns and terminates the child's process group (SIGTERM,
|
|
160
|
+
then SIGKILL after a bounded grace), has a separate settlement timer for missing `close`/pipe
|
|
161
|
+
drain, and reports timeout separately from cancellation. Research helpers and nested delegates
|
|
162
|
+
are each given safe process-group ownership; delegates forward parent termination so no detached
|
|
163
|
+
child is orphaned. Full pattern catalog: [references/orchestration-patterns.md](../references/orchestration-patterns.md).
|
|
164
|
+
|
|
165
|
+
### Task-tier budgets
|
|
166
|
+
|
|
167
|
+
The hub enforces per-user-turn budgets in code (`run-budget.js`): the current **task tier**
|
|
168
|
+
caps `dispatch_agent` calls, `spawn_research` calls, and active time per turn, sets the
|
|
169
|
+
per-run deadline above, and controls nested delegation (`off` at trivial/small). Exhausted
|
|
170
|
+
budgets make the dispatch tools refuse and request one Yes/No `ask_user` confirmation; Yes
|
|
171
|
+
renews the turn in the same tool loop. A normal new user message also opens a fresh turn
|
|
172
|
+
window.
|
|
173
|
+
Specialist context pressure is measured over input + cacheRead + cacheWrite against **that
|
|
174
|
+
agent's own** model window, resolved from pi's model registry with the source recorded
|
|
175
|
+
(`context-window.js`) — measuring a 49k local model against the dispatcher's window is what
|
|
176
|
+
made readings like "315%" unactionable; anything over 100% now emits a one-time diagnostic
|
|
177
|
+
naming the window and where it came from. Specialist sessions are recycled (fresh spawn
|
|
178
|
+
instead of `-c` resume) after `session-recycle-runs` runs, at ≥60% measured context, and
|
|
179
|
+
unconditionally at a full window; a resumed session whose *projected* prompt would overflow
|
|
180
|
+
is recycled before the spawn rather than after the run. Requests to one provider are capped
|
|
181
|
+
per process (`provider-semaphore.js`: 2 in flight for `custom/*` by default, unlimited
|
|
182
|
+
elsewhere, `AGENT_HUB_PROVIDER_LIMITS` to override) — the cap is per level of the delegation
|
|
183
|
+
tree, and a nested spawn reuses its parent's permit so it can never wait on its own ancestor.
|
|
184
|
+
Configured under `## agent-hub` (`max-dispatches-per-turn`,
|
|
185
|
+
`max-research-per-turn`, `turn-wall-time-s`, `agent-turn-timeout-s`, `session-recycle-runs`,
|
|
186
|
+
`run-history-keep`) as ceilings (`min` with the tier). A leftover `mode:` key is ignored with
|
|
187
|
+
a warning.
|
|
188
|
+
|
|
189
|
+
A per-message allowance cannot bound a task, so a second envelope sits above the turn one:
|
|
190
|
+
the **task budget** (`run-budget.js`, `3×` the turn envelope) counts dispatches, research
|
|
191
|
+
runs and **active** time across the WHOLE task and is *not* reset by a user message. Both turn
|
|
192
|
+
and task active time exclude `ask_user` waits — billing human idle false-stops a normal steered
|
|
193
|
+
session and teaches people to reset reflexively. The auto-research pipe is exempt from the turn
|
|
194
|
+
budget but charged against the task envelope, so it cannot smuggle 8 helpers per dispatch past
|
|
195
|
+
the outer bound.
|
|
196
|
+
|
|
197
|
+
Either envelope stops before another dispatch/research call and asks one localized Yes/No
|
|
198
|
+
`ask_user` question. A confirmed turn continuation renews its counters/clock in the same tool
|
|
199
|
+
loop. A confirmed task continuation opens one audited tranche, also renews the turn, and
|
|
200
|
+
preserves task tier, assertions, capability packs, label, blockers, and progress. No typed
|
|
201
|
+
`continue` message or slash command is required. `set_task_tier` with `new_task: true` is only
|
|
202
|
+
for genuinely different work and clears task identity/state. This is the guardrail the
|
|
203
|
+
post-mortem run never hit: every steering message reopened the turn window,
|
|
204
|
+
so one workspace stayed open 47 hours on a change that took 13 minutes in a narrow one.
|
|
205
|
+
|
|
206
|
+
### Runtime acceptance and recovery
|
|
207
|
+
|
|
208
|
+
Writable specialist operations (`write`, `edit`, or `bash`) receive the same T2 minimal
|
|
209
|
+
acceptance contract at every task tier. The trigger is the actual operation/tool contract and
|
|
210
|
+
current assertion ledger, not user-language matching or the model's tier label. Read-only
|
|
211
|
+
operations remain lightweight. Language heuristics only expose the fuller verification pack;
|
|
212
|
+
they are supplementary and do not decide whether changed work needs evidence. Pending
|
|
213
|
+
capability leases survive a new-task transition, while stale task packs and assertion state
|
|
214
|
+
reset through the explicit lifecycle path.
|
|
215
|
+
|
|
216
|
+
The runtime-owned result schema is `agent-fleet.runtime-result/v1`. It records orthogonal
|
|
217
|
+
`execution` (`completed | failed | pending`), `changes` (`changed | unchanged | unknown`, with
|
|
218
|
+
`certain | uncertain | not_observed` attribution), `verification`
|
|
219
|
+
(`passed | failed | missing | stale | unsupported`), and `acceptance`
|
|
220
|
+
(`accepted | not_accepted`) dimensions, bound to task identity, before/after revision, command,
|
|
221
|
+
integer exit status, and evidence references. A changed result and failed verification can
|
|
222
|
+
therefore both be true. Compatibility presentation remains
|
|
223
|
+
`not_available | deliverable_failed | needs_verification | accepted` for the Hub and
|
|
224
|
+
`accepted | rejected` for flows.
|
|
225
|
+
|
|
226
|
+
Only native Pi children support trusted runtime checks. The Hub injects the code-owned
|
|
227
|
+
`runtime-test-check.ts` observer only when the native persona has `bash`; the observer wraps the
|
|
228
|
+
existing bash implementation and preserves the normal damage-control `tool_call` approval and
|
|
229
|
+
bash error-event semantics. The parent accepts a check only when producer schema, observed bash
|
|
230
|
+
start, exact declared command, task, coverage metadata, exit status, and unchanged inspected
|
|
231
|
+
revision agree. This proves exact command execution, not semantic adequacy: even a declared
|
|
232
|
+
`true` command can pass, so test quality remains subject to independent or human review.
|
|
233
|
+
Coms peers cannot produce trusted checks, and `manual`/`runtime-ui` requirements currently have
|
|
234
|
+
no trusted producer; all three paths fail closed as missing or unsupported.
|
|
235
|
+
|
|
236
|
+
The observer and trusted event-correlation path have an observed compatibility dependency on
|
|
237
|
+
`@earendil-works/pi-coding-agent@0.84.2`: they rely on its `createBashToolDefinition`, `tool_result`
|
|
238
|
+
hook, `args.path`, and JSON-event passthrough contracts. This records the currently verified API
|
|
239
|
+
surface rather than changing or independently pinning the package version; Pi upgrades must
|
|
240
|
+
re-verify these integration points.
|
|
241
|
+
|
|
242
|
+
Native runs also retain a bounded record of actual tool starts/ends by tool-call identity. T3
|
|
243
|
+
uses those code-owned events only to correlate a terminal, unfenced pseudo-write claim with the
|
|
244
|
+
readback of an explicitly declared deliverable. It never executes tool-shaped text. Fenced
|
|
245
|
+
XML/JSON documentation examples are excluded; a real matching write event with failed readback
|
|
246
|
+
remains a T2 verification/effect failure rather than being relabelled as a protocol failure.
|
|
247
|
+
|
|
248
|
+
A mismatch emits `agent-fleet.tool-protocol-diagnostic/v1` with category
|
|
249
|
+
`tool_protocol_error`, task-or-controlled-probe origin, effective backend/model/tool
|
|
250
|
+
configuration, the claimed effect, matching-event and deliverable facts, `none | partial`
|
|
251
|
+
effects, this-run-only conclusion, and evidence references. The T2 runtime-result dimensions
|
|
252
|
+
remain unchanged and orthogonal. For a real task, the retained diagnostic artifact is the only
|
|
253
|
+
input accepted by the task-generation-bound `establishEffects` recovery port; it records what
|
|
254
|
+
already happened so unchanged retries cannot replay partial effects. It does not authorize a
|
|
255
|
+
retry by itself and does not turn a task failure into a probe result or a universal model
|
|
256
|
+
judgment. The withdrawn T12 runner is not part of this path; historical evidence remains archived.
|
|
257
|
+
|
|
258
|
+
T5's opt-in `filesystem` tool performs deterministic inventory, byte excerpts, artifact readback, and
|
|
259
|
+
local-file-only source snapshots without another model run. It is registered in the Hub and native
|
|
260
|
+
children but appears in their effective tool surface only while the inherited complete profile has
|
|
261
|
+
`assist.deterministic-tools: true`; stale or forged calls are refused at execution too. Profile and
|
|
262
|
+
work-mode changes rebuild the truthful T4 catalog, and compaction reconciles that effective surface.
|
|
263
|
+
Orchestrator mode may use this narrow inspection/managed-snapshot exception, but still has no generic
|
|
264
|
+
bash, edit, or write tools. Native specialist, research, and nested-delegate explicit tool caps remain
|
|
265
|
+
authoritative: the assist flag cannot append `filesystem` outside a declared cap.
|
|
266
|
+
Opaque handles bind canonical paths,
|
|
267
|
+
content hashes/fingerprints, and offsets; continuation fails on stale bytes or directory state,
|
|
268
|
+
and canonical-root checks reject symlink escape. Snapshot bytes and provenance metadata are
|
|
269
|
+
stored separately under the owning current session, marked untrusted, and never interpreted as analysis
|
|
270
|
+
or fetched from a network origin. Snapshot destinations are runtime-owned and cannot be supplied by the
|
|
271
|
+
caller; this narrow artifact creation path grants no general write or shell authority. Every source
|
|
272
|
+
path—including the path resolved from a readback handle—passes through the existing damage-control
|
|
273
|
+
`zeroAccessPaths` hook before execution, preserving its exemptions and interactive/headless approval
|
|
274
|
+
semantics; a denial occurs before source bytes or snapshot artifacts are created. Handle decoding is
|
|
275
|
+
single-sourced in `.pi/harnesses/lib/deterministic-handle-path.ts`, so damage-control retains this guard
|
|
276
|
+
when installed with its declared shared-library companion but without agent-hub. Inventory names and
|
|
277
|
+
all other operation results are marked untrusted. Because snapshot has a managed artifact side effect,
|
|
278
|
+
`filesystem` is not classified as replay-safe for automatic mid-run model fallback.
|
|
279
|
+
`assist.deterministic-tools` and `assist.bounded-output` are independent. Enabling
|
|
280
|
+
`bounded-output` alone bounds read-only tool results inside native specialists, research helpers,
|
|
281
|
+
and nested delegates before the next model continuation, and bounds parent reply transport too;
|
|
282
|
+
`deterministic-tools` controls the deterministic filesystem assistance without being a prerequisite
|
|
283
|
+
for output bounds. The fixed bounds are 500 inventory entries per page, 64 KiB per content/reply,
|
|
284
|
+
and 180 Unicode characters per preview; truncation always names a retained full-output path and
|
|
285
|
+
retrieval handle. With `bounded-output` off, legacy transport is preserved regardless of the
|
|
286
|
+
`deterministic-tools` setting. Inventory records an escaping or unavailable symlink as a denied
|
|
287
|
+
entry without traversing it or disclosing its target outside the authorized inventory.
|
|
288
|
+
T5 does not consume `assist.write-isolation`; the separate T6c native launch boundary does.
|
|
289
|
+
|
|
290
|
+
Recovery remains the single T1 contract: no automatic retry, queue, model fallback, or new
|
|
291
|
+
numeric allowance. Busy work is refused before execution accounting or history mutation and is
|
|
292
|
+
not recorded as no-progress failure. A settled indeterminate failure permits at most one
|
|
293
|
+
explicit, warned, human-authorized retry per logical operation after the prior process is
|
|
294
|
+
confirmed finished and the executor is idle; partial side effects may be duplicated. Neither
|
|
295
|
+
`/af-recover retry <operationId> <attemptId>` nor legacy `/af-retry <dispatchId>` executes work:
|
|
296
|
+
both use the same authorization lane and offer a stored original-contract invocation for a
|
|
297
|
+
separate explicit tool call under unchanged budgets and safety gates. Pending/unknown process,
|
|
298
|
+
second grant, stale IDs, and missing original contract fail closed. `/af-recover inspect` is
|
|
299
|
+
read-only; `reconcile` clears only a technical block when independent current-revision
|
|
300
|
+
readback and nonblocking reviewer evidence cover the failed attempt, leaving the immutable
|
|
301
|
+
failure and open T2/T11 requirements intact; `abandon` never satisfies dependent work.
|
|
302
|
+
Operator cancellation fences the same agent identity until a fresh, one-use authorization is consumed.
|
|
303
|
+
Other agent identities—including the anonymous, read-only research actor—remain independent,
|
|
304
|
+
and a task reset does not erase the cancellation fence. Native session reuse is bound to an exact,
|
|
305
|
+
normalized current-task contract (task identity, instructions, scope, deliverables, input artifacts,
|
|
306
|
+
effective model, and permissions). A different/narrower task starts with a fresh session and
|
|
307
|
+
replacement manifest; only an exact continuation, including the auto-research continuation path,
|
|
308
|
+
receives Pi resume transport. This remains context hygiene rather than confinement.
|
|
309
|
+
|
|
310
|
+
When `assist.write-isolation` is explicitly true, dispatch snapshots that effective setting before
|
|
311
|
+
routing and forces a native child. Explicit coms is refused because remote isolation cannot be
|
|
312
|
+
claimed. The complete Pi process and descendants run under Linux bubblewrap or macOS Seatbelt;
|
|
313
|
+
the repository/root view is read-only except for existing exact relative files, expressly allowed
|
|
314
|
+
existing recursive directories, and separate current-run runtime/artifact/temp roots. Glob scope,
|
|
315
|
+
absolute/escaping scope, symlinked grants, an empty writable grant set, absent or wrong-platform
|
|
316
|
+
backends, and sandbox launch failure all fail closed without an unsandboxed retry. Damage-control remains the policy/audit/
|
|
317
|
+
approval overlay, but an approval cannot widen the OS boundary already created for a run; a wider
|
|
318
|
+
path requires a new explicitly authorized dispatch contract. Network, model, and read access are
|
|
319
|
+
otherwise unchanged. Turning the profile flag off does not dismantle an
|
|
320
|
+
active process boundary; the next run takes a new snapshot. Opt-out retains the legacy spawn path.
|
|
321
|
+
The sandbox never rolls back or deletes user edits, and it cannot protect an allowlisted file from
|
|
322
|
+
a concurrent writer. Exact-file grants support direct writes to the existing inode but intentionally
|
|
323
|
+
block temp-file-plus-rename atomic saves; callers must explicitly grant the containing directory for
|
|
324
|
+
that behavior, and the runtime never widens the grant automatically. Sandboxed spawn uses exactly
|
|
325
|
+
three pipe stdio entries and rejects extra inherited descriptors, closing the known writable-FD
|
|
326
|
+
bypass. Linux deliberately preserves the Hub-owned process group instead of adding a PID namespace,
|
|
327
|
+
and `/dev/tty` remains narrowly available; confinement therefore assumes host ptrace and terminal
|
|
328
|
+
injection controls prevent same-uid cross-process escape (for example Linux Yama ptrace restrictions
|
|
329
|
+
and disabled legacy TIOCSTI). Linux enforcement is exercised on a real bubblewrap host. Seatbelt
|
|
330
|
+
canonicalizes only trusted runtime/artifact/temp aliases such as `/tmp` → `/private/tmp`, while user
|
|
331
|
+
scope grants retain strict symlink rejection; its only device write exceptions are literal
|
|
332
|
+
`/dev/null` and `/dev/tty`, never a blanket `/dev` grant. The Seatbelt profile has contract coverage
|
|
333
|
+
but still requires a Darwin runtime check before T6c is fully verified.
|
|
334
|
+
|
|
335
|
+
T4 adds a code-owned effective-tool catalog without creating another recovery policy. Every
|
|
336
|
+
application of work-mode tools compares the actual active catalog before and after
|
|
337
|
+
`setActiveTools` and can emit `agent-fleet.tool-catalog-delta/v1`: removed, added/available,
|
|
338
|
+
active substitutes with explicit limitations, `permissionExpansion: false`, and SHA-256 catalog
|
|
339
|
+
identities. The delta is persisted as a trusted session entry and included in the next system
|
|
340
|
+
prompt. Orchestrator mode still excludes direct `write`, `edit`, and `bash`; a substitute is only
|
|
341
|
+
an already-active path such as `dispatch_agent` or read-only inspection, and is never invoked by
|
|
342
|
+
the catalog machinery.
|
|
343
|
+
|
|
344
|
+
The runtime latches the effective catalog at `before_agent_start`. Actual assistant tool-call
|
|
345
|
+
blocks are compared to that originating-turn catalog on the real `message_end` path, so a
|
|
346
|
+
next-turn mode switch cannot charge an unknown-tool refusal for a call that was legal when the
|
|
347
|
+
turn began; text blocks are ignored and no pseudo-tool text is executed. On `session_compact`,
|
|
348
|
+
the runtime reconciles the restored `agent-fleet.tool-catalog-state/v1` identity with Pi's current
|
|
349
|
+
active tools, persists restore evidence, and retains the task-scoped unknown-tool counter. Catalog
|
|
350
|
+
errors are recorded fail-closed but cannot skip the existing compaction settlement/deferred-input
|
|
351
|
+
lifecycle.
|
|
352
|
+
|
|
353
|
+
Each unavailable tool refusal is keyed by normalized task and tool, while normalized arguments
|
|
354
|
+
and catalog identity record whether the request or availability was reevaluated. The
|
|
355
|
+
operator-approved limit is exactly three counted refusals, including the first. Mode switches,
|
|
356
|
+
compaction, prose, and real catalog changes never refill it; only the explicit new-task lifecycle
|
|
357
|
+
resets it. A real `unknown_tool` dispatch failure is stamped by the Hub with the latched,
|
|
358
|
+
code-owned catalog identity; a result-supplied identity is ignored. A later successfully persisted
|
|
359
|
+
effective-catalog event can establish `toolStateChanged` evidence for the existing T1
|
|
360
|
+
`unknown_tool` `recoveryDecision`, but still requires explicit reinvocation and existing general
|
|
361
|
+
budgets; it never schedules an automatic retry.
|
|
362
|
+
|
|
363
|
+
On top of the tier envelope sit several qualitative guardrails. **Task triage**: the dispatcher
|
|
364
|
+
classifies the current TASK via the `set_task_tier` tool (`trivial`/`small`/`feature`/`project`)
|
|
365
|
+
and that classification *is* the budget. The tier is task-scoped and **ratcheted** — it survives
|
|
366
|
+
the user's next message, lowering is free, raising needs a stated `reason` — because a
|
|
367
|
+
turn-scoped tier reset to `feature` on every correction. Three refusals enforce
|
|
368
|
+
proportionality in code rather than prose: a duplicate-dispatch guard (near-identical
|
|
369
|
+
re-dispatches within a turn), a **tier persona gate** (`planner`, `plan-reviewer`,
|
|
370
|
+
`architect`, `security-auditor`, `deep-researcher` are refused at trivial/small — each opens
|
|
371
|
+
a document/finding loop), and a **review round cap** (review dispatches per task, by tier).
|
|
372
|
+
Skipping triage assumes `small`, not `feature`: the tier latches for the task, and the case
|
|
373
|
+
where it was never declared is exactly the case where proportionality was not being
|
|
374
|
+
considered. The review **finding** budget is the one thing deliberately left advisory — the
|
|
375
|
+
hub counts blocking findings (`review-findings.js`) and reports an over-budget return, but
|
|
376
|
+
never reclassifies one, because no rule it can evaluate separates an invented manifest from
|
|
377
|
+
a leaked credential; the round cap is what carries the enforcement.
|
|
378
|
+
**Process obligations (T11)** are task-scoped and independent of that budget tier. The
|
|
379
|
+
`set_task_tier` tool accepts explicit `risk` (`unknown | low | high`) and process `scope`
|
|
380
|
+
(`read-only | small | wide`); neither is inferred from task prose. Legacy/omitted risk is
|
|
381
|
+
`unknown`, risk changes require a reason, and scope expansion requires a reason plus an
|
|
382
|
+
explicit risk reassessment. Unknown permits read-only research but cannot accept changed
|
|
383
|
+
work. Confirmed low-risk small work uses the existing T2 minimal acceptance path; high risk
|
|
384
|
+
adds a separate review stage, while wide work adds plan and review stages. These obligations
|
|
385
|
+
ratchet within a task, so lowering spend cannot erase them. Completed stage records name an
|
|
386
|
+
artifact and revision but only prove that the stage occurred—not that model-authored review
|
|
387
|
+
is semantically adequate.
|
|
388
|
+
|
|
389
|
+
The same code-owned state is consumed by dispatch acceptance in operator and orchestrator
|
|
390
|
+
modes, appended as `agent-hub-process-state`, restored from the session log, and retained
|
|
391
|
+
through compaction and mode changes. Only `set_task_tier(new_task: true)` creates fresh
|
|
392
|
+
unknown-risk process state. `/af-audit` exports allowlisted satisfied/open/unsupported
|
|
393
|
+
obligation statuses and explains that the budget tier limits spend rather than correctness;
|
|
394
|
+
reasons and task prose are not copied. This extends the existing task/acceptance/audit paths
|
|
395
|
+
and is not a second workflow engine.
|
|
396
|
+
|
|
397
|
+
**Docs lane** (`docs-lane.js`): a dispatch whose whole declared `scope` is documentation
|
|
398
|
+
refuses review personas (overridable with `review_reason`) and tells the dispatcher not to
|
|
399
|
+
open a review gate; an absent scope is never the lighter lane. **External-blocker stop**
|
|
400
|
+
(`external-blocker.js`): a specialist emits `EXTERNAL_BLOCKED: …` when it needs something
|
|
401
|
+
outside the fleet's reach (account, permission, credential, telemetry destination), and the
|
|
402
|
+
hub refuses the next dispatch with an owner-escalation packet until the human is addressed —
|
|
403
|
+
the alternative, observed, is hours spent approximating the missing fact with scripts,
|
|
404
|
+
manifests and fixtures while the assertion still ends UNPROVEN. **Drift watchdog**
|
|
405
|
+
(`drift-watchdog.js`): armed dispatches are
|
|
406
|
+
observed in-flight from the JSON event stream — deterministic rules (out-of-scope writes
|
|
407
|
+
against the declared `scope` globs, tool-call loops, consecutive failures, tool-call cap)
|
|
408
|
+
escalate to a one-shot cheap LLM judge whose DRIFTING/STUCK verdict terminates the run as
|
|
409
|
+
`drift_stop` (exit 125, partial output preserved); enabled per hub/agent/dispatch
|
|
410
|
+
(`watchdog` key, `/af-watchdog`, `watchdog` param). Orchestrator work mode auto-arms the
|
|
411
|
+
watchdog when the hub setting is `auto`/`on`; a dispatch `watchdog: false` cannot disarm it
|
|
412
|
+
there. Hub or per-agent `off` remains the opt-out. Two rules about scope: the session's
|
|
413
|
+
own `artifacts/`, `findings/`, and `delegations/` subtrees are implicitly in scope (the
|
|
414
|
+
deliverable protocol *orders* specialists to write there, and the judge is told so), and the
|
|
415
|
+
`scope` rule is non-terminal — it reports a drift advisory on the result and never stops a
|
|
416
|
+
run by itself, matching the post-run scope gate, which reverts nothing. **Dynamic teams**: `/af-agents-add`,
|
|
417
|
+
`/af-agents-drop`, `/af-agents-save` restructure the roster live (the system prompt rebuilds
|
|
418
|
+
every turn), and the gated `team_adjust` tool lets the dispatcher itself adjust the roster
|
|
419
|
+
when nested delegation is on (feature/project), with user notification. `/af-hub-report` accounts each turn's dispatches,
|
|
420
|
+
tokens (billed = input + cacheRead + cacheWrite), recycles, drift stops, and refusals.
|
|
421
|
+
|
|
422
|
+
## Runtime stack (tools the fleet sits on)
|
|
423
|
+
|
|
424
|
+
```mermaid
|
|
425
|
+
flowchart TD
|
|
426
|
+
AF["<b>Agent Fleet</b><br/>agent-hub · personas · skills · coms · bridges · CLI"]
|
|
427
|
+
AF -->|primary runtime| PI["<b>pi</b><br/>coding agent — loads harnesses,<br/>extensions, prompts, personas"]
|
|
428
|
+
AF -->|control plane| HERDR["<b>herdr</b><br/>tiled peer workspaces,<br/>presence, snapshot/resume"]
|
|
429
|
+
AF -->|coms peer only| CC["<b>Claude Code</b><br/>bidirectional peer via<br/>the coms bridge<br/><i>not an install target</i>"]
|
|
430
|
+
AF -->|remote human| HERMES["<b>Hermes</b><br/>hub questions relayed to your phone,<br/>plus the Desktop fleet panel"]
|
|
431
|
+
AF -->|ChatGPT-initiated session client| CODEX["<b>ChatGPT Fleet session client</b><br/>existing Pi session via<br/>opt-in chatgpt-client (experimental)"]
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
### External dependencies
|
|
435
|
+
|
|
436
|
+
These are the external systems Agent Fleet assumes or integrates with — not npm packages, but the **runtime stack** the fleet operates on top of.
|
|
437
|
+
|
|
438
|
+
| Dependency | Role | Required? |
|
|
439
|
+
| --- | --- | --- |
|
|
440
|
+
| **[pi](https://github.com/badlogic/pi-mono)** (or your pi install) | Primary coding-agent runtime; loads harnesses, extensions, prompts, and personas | Yes for `just fleet` |
|
|
441
|
+
| **[herdr](https://herdr.dev)** | Workspace control plane: Hub/peer panes, presence push events, team snapshot/resume | Required for `--herdr` or `--peers`; optional for bare `just fleet` |
|
|
442
|
+
| **[Claude Code](https://docs.anthropic.com/en/docs/claude-code)** | First-class coms peer via the [coms bridge](claude-code-coms-bridge.md) — cross-model review and analysis. Never an install target: it hosts no skills, commands, or personas | Optional peer |
|
|
443
|
+
| **Hermes** | Remote human-in-the-loop (Telegram relay for hub questions — [coms-hermes-bridge](coms-hermes-bridge.md)) and the Desktop fleet panel ([hermes-desktop-plugins](hermes-desktop-plugins.md), needs v0.19.0+ and the Desktop app) | Optional |
|
|
444
|
+
| **ChatGPT Desktop/Android** | Experimental opt-in Fleet session client for an existing Pi session; Node 22.18+, Python 3.10+, local herdr/coms access — [runbook](codex-session-bridge.md) | Optional experimental feature `chatgpt-client` |
|
|
445
|
+
| **[addyosmani/agent-skills](https://github.com/addyosmani/agent-skills)** | Upstream skill library (manually vendored) | Bundled (vendored) |
|
|
446
|
+
| **[disler/pi-vs-claude-code](https://github.com/disler/pi-vs-claude-code)** | Source inspiration / MIT port origin for pi harnesses | Design lineage (ported in-repo) |
|
|
447
|
+
| **LLM providers** | Models per persona (`model:` / `models:` in agent frontmatter) — e.g. OpenAI Codex, GitHub Copilot, Ollama, … | Yes (at least one provider your agents can call) |
|
|
448
|
+
| **Chrome DevTools MCP** / **Playwright Agent CLI** | Browser verify (`browser-testing-with-devtools`) and headless automation (`bowser`) | Optional, feature-specific |
|
|
449
|
+
| **Node.js + npm** | CLI (`npx @chankov/agent-fleet`), package install, `just` recipes | Yes for install & tooling |
|
|
450
|
+
|
|
451
|
+
The existing `agent-fleet doctor` command also performs a read-only manifest preflight. It reports exact selected installation files and manifest-declared tool probes as environment readiness, distinguishes missing installation from unknown or unavailable platforms, and names the existing explicit remediation path. Bare doctor never repairs or installs; `doctor --fix` remains the only repair activation, and package/tool installation remains behind its existing explicit consent path.
|
|
452
|
+
|
|
453
|
+
### System 1 watchdog consumer (off by default)
|
|
454
|
+
|
|
455
|
+
The native specialist Layer 1 drift watchdog can use the shared System 1 runtime
|
|
456
|
+
only after explicit `watchdog-system1: shadow` in `## agent-hub`, feature selection,
|
|
457
|
+
valid provider configuration, an available key and an armed watchdog. It takes a
|
|
458
|
+
session snapshot; setup and doctor do not infer. Shadow starts the LLM judge at
|
|
459
|
+
once and separately observes the same bounded state with Jev. Only the LLM
|
|
460
|
+
verdict may terminate a child; an unavailable LLM judge is recorded as
|
|
461
|
+
`judge_unavailable` and gets one revalidated retry at 5 s, not a successful
|
|
462
|
+
90 s cooldown. Successful decisions keep 90 s. Every physical attempt has
|
|
463
|
+
separate identities; D1 retries create a new snapshot and do not reuse or
|
|
464
|
+
repeat the previous System 1 evaluation.
|
|
465
|
+
|
|
466
|
+
The state carries a redacted task, relative scope/paths, up to 40 structured
|
|
467
|
+
kinds/outcomes/repeat counts, rule facts and coverage, not raw arguments,
|
|
468
|
+
commands, edit bodies or outputs. This limit applies to System 1 only: the
|
|
469
|
+
existing parallel LLM judge prompt contains the original task, scope and a
|
|
470
|
+
recent trail with up to 120 characters of raw tool arguments per call. Use
|
|
471
|
+
only reviewed nonsecret pilot inputs; manual review does not rule out
|
|
472
|
+
unexpected agent actions. The native spawn boundary removes
|
|
473
|
+
`TYPESAFE_API_KEY` after env overrides. This cannot prevent file reads or
|
|
474
|
+
requests from other launchers. The append-only session watchdog trace stores
|
|
475
|
+
only safe metadata, with explicit unknown usage and interrupted readback.
|
|
476
|
+
The below-chat Fleet strip and `/af-agents` owner detail share a projection;
|
|
477
|
+
`/af-watchdog` shows readiness/active blocking, `/af-hub-report` separates
|
|
478
|
+
watchdog checks, S1 evaluations and LLM attempts, and `/af-audit` lists safe
|
|
479
|
+
read-only lifecycle outcomes. UI/trace failure does not change judgment.
|
|
480
|
+
|
|
481
|
+
`watchdog-system1: active` explicitly opts into an **uncalibrated experimental**
|
|
482
|
+
shortcut available in installed workspaces: only advisory `scope` may skip LLM
|
|
483
|
+
when Jev `jev-1.13.0` reports provider on-track with confidence and on-track
|
|
484
|
+
distribution ≥0.95 and all three contradiction probabilities ≤0.05. Terminal
|
|
485
|
+
rules always use the LLM; System 1 cannot stop a child. The watchdog status
|
|
486
|
+
labels the mode `experimental: scope only; G2 not validated`; default remains
|
|
487
|
+
off and production approved profiles remain empty. Human snapshot labels,
|
|
488
|
+
session-separated held-out measurement and independent maintainer G2 approval
|
|
489
|
+
are still required before calling this calibrated or expanding its authority. Offline tests and installed-package checks do not
|
|
490
|
+
constitute a live pilot (G1) or active approval (G2). Roll back with
|
|
491
|
+
`watchdog-system1: off` and restart Hub; cancel the current run if needed.
|
|
492
|
+
|
|
493
|
+
### Proactive turn review (separate opt-in consumer)
|
|
494
|
+
|
|
495
|
+
The Hub's `proactive-*` modules compose a separate, off-by-default consumer of the
|
|
496
|
+
existing shared System 1 library and its provider/key; they do not create another
|
|
497
|
+
provider owner or change watchdog authority. A human-owned per-repository
|
|
498
|
+
`.ai/proactive-review.json` selects `off`, `shadow`, or `advisory` and exact
|
|
499
|
+
repository-relative include scope. Missing/off means **zero proactive capture,
|
|
500
|
+
inference, and feedback**. Enabled config with `remoteContext: "disabled"` is
|
|
501
|
+
local-only: bounded source/rule capture and reviewed local validators may run,
|
|
502
|
+
but no semantic provider assessment. `selected-excerpts` separately permits
|
|
503
|
+
bounded selected source/assistant excerpts to the shared System 1 service when
|
|
504
|
+
it is ready; shadow records findings without delivery, advisory may deliver
|
|
505
|
+
feedback at the next *already-occurring* context hook for the same owner,
|
|
506
|
+
attempt, task, and bound rule/source revision. It never creates a turn, fixes
|
|
507
|
+
code, terminates work, changes acceptance gates, or suppresses the watchdog.
|
|
508
|
+
No activation, outbound transmission, or remote repository authorization is
|
|
509
|
+
conferred by installing this code or reading this documentation.
|
|
510
|
+
|
|
511
|
+
At `turn_start`/`turn_end`, Hub and supported native Pi specialists bind the
|
|
512
|
+
explicit task/plan and session rule catalog, collect bounded immutable
|
|
513
|
+
before/after worktree and text evidence, and retain private snapshots separately
|
|
514
|
+
from metadata-only finding/report projections. Source-backed rules come from
|
|
515
|
+
`rules:` folders in `## agent-hub` (legacy `## agent-team`), with index-first
|
|
516
|
+
Markdown discovery, explicit linked sections, and bounded fallback; discovery
|
|
517
|
+
is read-only and never executes rule instructions. Rule identity includes path,
|
|
518
|
+
heading occurrence and hash. Incomplete discovery, unselected sections,
|
|
519
|
+
unsupported Markdown, missing plan (`task_only`), concurrent edits, and
|
|
520
|
+
changed source stays partial, unsupported, uncertain or stale—not
|
|
521
|
+
confirmed passes. Rule references use the session-bound revision: on-disk rule
|
|
522
|
+
edits do not themselves stale a finding, and a restart is required to adopt them. Only explicitly reviewed bindings support deterministic
|
|
523
|
+
local link-form and new-file-placement checks; model findings remain
|
|
524
|
+
suspicions, not validated bugs. Rules are **bound per session**: editing a rule
|
|
525
|
+
in a running session does not reload it; restart to adopt edits. Research
|
|
526
|
+
helpers, nested delegates, coms peers and Hermes are not instrumented by this
|
|
527
|
+
consumer. Native observer hooks/integration were checked with repo-local Pi
|
|
528
|
+
0.84.2; Node 18 compatibility concerns the extracted installer CLI/doctor,
|
|
529
|
+
not running the TypeScript observer under Node 18.
|
|
530
|
+
|
|
531
|
+
Limits and exclusions, exact config, local report/labels usage, and consent
|
|
532
|
+
sequence are in [Project Files — Proactive turn review](agent-fleet-setup.md#proactive-turn-review-experimental).
|
|
533
|
+
Offline/installed tests and C5 operator visibility establish neither live-pilot
|
|
534
|
+
utility nor universal correctness. The finding-label source fix passed final independent source/docs review;
|
|
535
|
+
this establishes offline/package readiness, not human-labelled semantic acceptance. Only retained finding keys
|
|
536
|
+
are exposed for human labels: checked-clear units lack an operator-accessible
|
|
537
|
+
key, so miss/true-negative labeling and full recall evaluation are not operational.
|
|
538
|
+
C7 human acceptance and any release/deployment remain separate. Current caveats include
|
|
539
|
+
unknown native delivery without a receipt and a rare async-close error risk.
|
|
540
|
+
|
|
541
|
+
### Experimental System 1 foundation
|
|
542
|
+
|
|
543
|
+
System 1 is a shared Fleet library for bounded structured judgments, not a Pi
|
|
544
|
+
model and not a workflow stage. Its provider-neutral contract exposes
|
|
545
|
+
`choice`, `predicate`, and `ordinal` questions with explicit `ok`, `skipped`,
|
|
546
|
+
`unavailable`, `unsupported`, and `cancelled` outcomes. A valid judgment never
|
|
547
|
+
grants action authority. The contract retains distributions, predicate
|
|
548
|
+
probabilities, and provider confidence when supplied and required, but never
|
|
549
|
+
invents missing uncertainty or treats provider confidence as universal
|
|
550
|
+
calibration.
|
|
551
|
+
|
|
552
|
+
The experimental `system1` feature must be named explicitly in the human-owned
|
|
553
|
+
`.ai/agent-fleet.json`; automatic Full excludes it. Provider configuration is a
|
|
554
|
+
separate human-owned `.ai/system1.json` with exactly this version-1 contract:
|
|
555
|
+
|
|
556
|
+
```json
|
|
557
|
+
{
|
|
558
|
+
"version": 1,
|
|
559
|
+
"mode": "auto",
|
|
560
|
+
"provider": "typesafe",
|
|
561
|
+
"model": "jev-1.13.0",
|
|
562
|
+
"apiKeyEnv": "TYPESAFE_API_KEY"
|
|
563
|
+
}
|
|
564
|
+
```
|
|
565
|
+
|
|
566
|
+
Selection, valid `mode: "auto"` configuration, and a nonempty key in the
|
|
567
|
+
caller's environment are all required. `mode: "off"` wins, and key presence by
|
|
568
|
+
itself never activates the service. The runtime and imports do not load `.env`
|
|
569
|
+
or mutate global environment. Managed `just` launches may load the workspace
|
|
570
|
+
root `.env`; direct Node launches must export or inject the key themselves.
|
|
571
|
+
|
|
572
|
+
The only phase-0 production adapter uses the fixed official TypeSafe endpoint
|
|
573
|
+
and pinned `jev-1.13.0` model. It has a 2,000 ms total deadline, including body
|
|
574
|
+
collection and at most one budget-fitting retry for 429/529, rejects redirects,
|
|
575
|
+
and bounds request and response bodies at 1 MiB without truncation. Cancellation
|
|
576
|
+
prevents retry and late-result use; a 401 latches that service instance. Normal
|
|
577
|
+
failures return structured, sanitized outcomes rather than raw response bodies.
|
|
578
|
+
There is no arbitrary endpoint, SDK dependency, Pi/local-model fallback, daemon,
|
|
579
|
+
or local-model installation.
|
|
580
|
+
|
|
581
|
+
Doctor reuses the shared configuration validator and is advisory, read-only,
|
|
582
|
+
and offline—even with `--fix`. It distinguishes an `.env` declaration from a
|
|
583
|
+
nonempty key in its own process but cannot prove API validity. The standalone
|
|
584
|
+
demo is also offline by default; only explicit `--live` sends its embedded
|
|
585
|
+
synthetic Bulgarian/English examples. Public setup and commands are documented
|
|
586
|
+
in [Install and lifecycle](npm-install.md#experimental-system-1-foundation).
|
|
587
|
+
|
|
588
|
+
This foundation has no Watchdog integration or other action consumer. It also
|
|
589
|
+
makes no child-environment isolation promise: existing Fleet children may
|
|
590
|
+
inherit caller environment. A future consumer must own field allowlisting,
|
|
591
|
+
credential filtering, policy, thresholds, and calibration for its provider,
|
|
592
|
+
model, question version, domain, and language. Synthetic success is not
|
|
593
|
+
Watchdog accuracy.
|
|
594
|
+
|
|
595
|
+
Evidence remains split by boundary. Offline contract and extracted-package
|
|
596
|
+
checks passed on Node 25.2.1. A real-provider smoke was not executed because
|
|
597
|
+
`TYPESAFE_API_KEY` was absent, packaged doctor execution on Node 18 remains
|
|
598
|
+
unverified because no Node 18 runtime was available, and final maintainer review
|
|
599
|
+
is pending. None of those open items is implied by fixtures or readiness output.
|
|
600
|
+
|
|
601
|
+
## Repository module map
|
|
602
|
+
|
|
603
|
+
### Agent Hub composition
|
|
604
|
+
|
|
605
|
+
`.pi/harnesses/agent-hub/index.ts` owns mutable Hub state and composes the extracted concerns without merging their context contracts:
|
|
606
|
+
|
|
607
|
+
```text
|
|
608
|
+
agent-hub/
|
|
609
|
+
├── index.ts # bounded composition root; constructs root-owned mutable ports
|
|
610
|
+
├── types.ts # shared Hub agent/state contracts
|
|
611
|
+
├── config/ # agent/frontmatter, teams, profiles, dispatch policy, overrides
|
|
612
|
+
├── context/ # state, budgets, assertions/artifacts, session-health factories
|
|
613
|
+
├── commands/ # 27 typed /af-* command registrars
|
|
614
|
+
├── tools/ # 16 tools plus dispatch/research execution orchestration
|
|
615
|
+
├── dispatch-core.ts # facade over native, coms, and observability dispatch
|
|
616
|
+
├── dispatch-*.ts # native preparation/spawn/completion and backend adapters
|
|
617
|
+
├── acceptance.ts # agent-fleet.runtime-result/v1 and minimal acceptance evaluation
|
|
618
|
+
├── runtime-test-check.ts # code-owned native bash observer for trusted runtime checks
|
|
619
|
+
├── tool-protocol.ts # T3 event/readback correlation and shared diagnostic schema
|
|
620
|
+
├── recovery-contract.ts # shared typed failure/recovery policy
|
|
621
|
+
├── policy/ # model, roster, capability, and work-mode decisions
|
|
622
|
+
├── research/ # helper runtime, spawn transitions, and controls
|
|
623
|
+
├── ui/ # grid, dashboard, detail, context, pool, zoom, and history
|
|
624
|
+
├── input/ # shortcuts and completion derivation
|
|
625
|
+
├── lifecycle/ # turn, pressure, monitor, session, and shutdown orchestration
|
|
626
|
+
├── prompts/ # data-oriented system/session templates + HubPromptContext
|
|
627
|
+
├── session-start.ts # typed ordered session_start step runner
|
|
628
|
+
├── presentation.ts # marker, name, thinking, and delegate-path helpers
|
|
629
|
+
├── timeline.ts # bounded transcript/timeline append helpers
|
|
630
|
+
├── monitor-*.ts # local monitor transport and recovery primitives
|
|
631
|
+
└── *.test.{ts,js} # registration, loader, parity, and behavior contracts
|
|
632
|
+
```
|
|
633
|
+
|
|
634
|
+
Cross-harness coms lifecycle remains shared in `.pi/harnesses/lib/coms-core.ts` and `coms-core-io.ts`; it is not owned by the Hub composition root.
|
|
635
|
+
|
|
636
|
+
```text
|
|
637
|
+
.pi/ # Pi runtime: harnesses, extensions, agents config, prompts
|
|
638
|
+
.pi/agent-fleet/ # The fleet runtime, mirrored verbatim into a workspace:
|
|
639
|
+
scripts/ # CLI helpers, bridges, team + one-off peer launchers (pure logic in scripts/lib/)
|
|
640
|
+
scripts/workflows/ # deterministic flow graphs + phase/gate/permission/quality runtime
|
|
641
|
+
hermes/ # Hermes-facing skills/integration assets
|
|
642
|
+
hooks/ # the coms bridge Stop hook
|
|
643
|
+
docs/ # the one doc that installs into a workspace (workflows.md)
|
|
644
|
+
skills/ # Agent Fleet-native skills (shadow vendored names)
|
|
645
|
+
agents/ # Personas/subagents; installed to a workspace's .pi/agents/personas/
|
|
646
|
+
codex/ # Canonical Codex conductor contract (runtime copy lives outside checkout)
|
|
647
|
+
systemd/user/ # Owned user-unit template for Codex remote control
|
|
648
|
+
vendor/agent-skills-upstream/ # Manually imported upstream skills (pinned SHA)
|
|
649
|
+
bin/ # npm CLI: init/update/doctor + the installer engine
|
|
650
|
+
references/ # Supplementary checklists, installed with the skills that cite them
|
|
651
|
+
docs/ # This file, setup guides, bridge references, vendoring policy
|
|
652
|
+
```
|
|
653
|
+
|
|
654
|
+
The fleet runtime keeps its *source* layout identical to its *installed* layout.
|
|
655
|
+
That is not cosmetic: `companion:harness-runtime-closure` and its siblings copy
|
|
656
|
+
with `preserveLayout`, so a relative import written here resolves the same way in
|
|
657
|
+
a workspace — including the ones reaching from the stationary `.pi/harnesses/`
|
|
658
|
+
into the movable `.pi/agent-fleet/scripts/`. `bin/test/path-boundaries.test.js`
|
|
659
|
+
holds that invariant.
|
|
660
|
+
|
|
661
|
+
Reserved for future modules (do not repurpose these paths):
|
|
662
|
+
|
|
663
|
+
```text
|
|
664
|
+
apps/dashboard/ # future dashboard: Kanban state, Herdr workspaces, peer status
|
|
665
|
+
packages/fleet-core/ # future extracted core orchestration library
|
|
666
|
+
packages/herdr-bridge/ # future Herdr integration package
|
|
667
|
+
packages/hermes-bridge/ # future Hermes integration package
|
|
668
|
+
```
|
|
669
|
+
|
|
670
|
+
## Design rules
|
|
671
|
+
|
|
672
|
+
- **Workflow engine remains single-sourced.** `just flow` owns deterministic phase order, retries, executable gates, post-hoc writes enforcement, and one flow acceptance decision. It uses the clean spawn/context seams and keeps its clean-tree guard while staying on the current branch by default; creating a flow branch requires explicit `--branch`; normal traces live under `.pi/flow-sessions/`. Explicit flow branches retain source/result metadata, while reserved `cleanup` and `merge` delegate safe removal and squash integration to Worktrunk. The initial Hub `run_flow` adapter calls the same exported dispatcher directly and permits only read-only `scout`: it runs in a stable detached snapshot with no flow branch, stores trace/manifest in the current Hub session, and has one Hub budget/cancellation owner. Snapshot overlay operations validate plain parents before mutation and never follow a HEAD symlink leaf. The native process and descendants use `confineNativeChild`, with only the session-owned phase directory writable; the actual `read`/`grep`/`find`/`ls` data paths are separately limited to the snapshot while damage-control remains loaded. Runtime/model libraries and provider configuration remain readable for Pi startup, so this is intentionally not a global no-read claim. Duplicate identity is idempotent; stale/busy calls are uncharged. All setup/result exceptions settle as structured failures, release active ownership, and preserve honest charged/started state. Owned scout snapshots are cleaned on settlement, with visible cleanup status/errors; traces and explicit branches are retained. Flow acceptance never promotes parent assertions or closes T11 obligations. Writable/committing flows remain outside this adapter pending a separate review.
|
|
673
|
+
- **Thin dispatcher context.** Nothing lands persistently in the dispatcher's
|
|
674
|
+
context if it can live on disk or in a one-line status. Research findings,
|
|
675
|
+
the Verification Contract ledger, and team snapshots are all disk-first.
|
|
676
|
+
- **A harness fault must never look like a specialist fault.** The hub passes
|
|
677
|
+
`--session <file>` on every run, so one corrupt session file used to fail a
|
|
678
|
+
persona in ~1s with no output — indistinguishable from a bad agent, and
|
|
679
|
+
unrecoverable by drop + re-add. Unusable session files are now validated and
|
|
680
|
+
quarantined (`session-health.js`) with the reset named in the result. Same rule
|
|
681
|
+
for the return contract: a report the parser cannot read gets one cheap
|
|
682
|
+
read-only extraction pass (`return-extract.js`) before its assertions are
|
|
683
|
+
written off as unproven, and extracted evidence is always labelled as weaker
|
|
684
|
+
than declared evidence. The converse also holds: a run that errored or timed
|
|
685
|
+
out writes to `artifacts/failures/`, never `returns/` — an error stub filed
|
|
686
|
+
as a return reads as a specialist verdict and gets acted on as one.
|
|
687
|
+
- **A pool status field beats reading the screen.** `coms_list` publishes each
|
|
688
|
+
peer's `pane_id` and `status` (`idle`/`working`/`booting`), and
|
|
689
|
+
`herdr_spawn_peer` waits for the peer to register and returns `peer_ready`
|
|
690
|
+
rather than a bare pane id. A spawned peer boots idle and does nothing until
|
|
691
|
+
addressed, so peers spawned and never sent to are named at turn end and in
|
|
692
|
+
`/af-hub-report` (`spawned-peers.js`); closing stays the human's call.
|
|
693
|
+
- **A declared requirement carries its origin.** Every assertion in the ledger
|
|
694
|
+
names its source (`assertion-ledger.js`), and the open ledger is soft-capped
|
|
695
|
+
at 8 — an id nobody can trace back to a plan line costs a dispatch and an
|
|
696
|
+
ASK_USER cycle to re-derive.
|
|
697
|
+
- **Pre-flight validation is free.** Anything the hub can reject before spawning
|
|
698
|
+
— an unresolvable artifact path, an unknown research persona, a heavy persona
|
|
699
|
+
at a low tier, a reviewer on a docs-only scope — is refused without spending a
|
|
700
|
+
budget slot. Artifact paths also resolve across artifact kinds when the name is
|
|
701
|
+
unique, since the hub writes every auto-return under `returns/` while
|
|
702
|
+
dispatchers reasonably guess `reviews/`.
|
|
703
|
+
- **Evidence is archived, never overwritten.** Session start moves the previous
|
|
704
|
+
session's `artifacts/` into an immutable `.pi/agent-sessions/runs/<runId>/`
|
|
705
|
+
namespace with a read-only `meta.json` and an appended `runs/index.json`
|
|
706
|
+
(`run-namespace.js`), retained per `run-history-keep` (default 10). The old
|
|
707
|
+
behaviour — delete `artifacts/` at start, name returns by a per-session counter
|
|
708
|
+
— collided two ways at once and made a post-mortem record eleven specialist
|
|
709
|
+
returns and two reviews as NOT RECOVERABLE. A failed archive leaves the
|
|
710
|
+
artifacts in place: a stale tree is recoverable, a deleted one is not.
|
|
711
|
+
- **Herdr owns panes, presence, and lifecycle; coms owns messages.** Herdr
|
|
712
|
+
topology recipes (`--herdr` or `--peers`) require a running server and refuse
|
|
713
|
+
with an actionable message otherwise. Bare Fleet does not require Herdr.
|
|
714
|
+
`--no-coms` leaves direct/native execution available but disables peer
|
|
715
|
+
messaging, peer-backed dispatch, and handoff from the Hub.
|
|
716
|
+
- **External agents are peers, not plugins.** Claude Code (and future CLI
|
|
717
|
+
agents) join the fleet through bridge adaptors that speak coms envelopes —
|
|
718
|
+
the fleet core stays agent-agnostic. Hermes remains the inbound `ask_user`/
|
|
719
|
+
Telegram route; the experimental Codex conductor is outbound-initiated only,
|
|
720
|
+
approval-gated, and restricted to listed peers through the validated wrapper.
|
|
721
|
+
- **Hermes monitor presentation is outside the fleet core.** Agent Fleet exposes owner-only
|
|
722
|
+
local monitor operations for Hub-owned state; a consumer owns its UI and lifecycle. The
|
|
723
|
+
worktree contains additive monitor/event/invoke code, but that implementation and its local
|
|
724
|
+
tests are not proof of a durable external identity or live delivery contract. `invoke`, where
|
|
725
|
+
available, is Hub-owned and queues dispatcher work rather than exposing tools directly.
|
|
726
|
+
- **Packaged Hermes source is opt-in, never auto-installed.** The npm tarball carries the
|
|
727
|
+
`hub-watchdog` skill (`.pi/agent-fleet/hermes/skills/`) plus the backend and Desktop monitor plugin source
|
|
728
|
+
(`.pi/agent-fleet/hermes/plugins/`, `.pi/agent-fleet/hermes/desktop-plugins/`) as runtime-only source. Shipping that source
|
|
729
|
+
makes it available to an operator; installing it into a Hermes profile is always an explicit
|
|
730
|
+
action through `agent-fleet set-hermes-watchdog` (skill) or the consumer's own flow (plugins).
|
|
731
|
+
Nothing is enabled, launched, or configured by installing the package.
|
|
732
|
+
- **Watchdog delivery is capability-gated and currently unproven.** No checked-in
|
|
733
|
+
Gate O live artifact proves Hermes origin identity, updates, reconnect, or two-chat isolation,
|
|
734
|
+
so its supported posture is journal-only/dormant: no delivery, steering, or surgical use. It
|
|
735
|
+
never manages services, gateways, Herdr, or shell commands. Local runtime evidence — including
|
|
736
|
+
a real foreground watcher against a disposable Hub UDS — is `synthetic-local` and proves none of
|
|
737
|
+
those capabilities; see [the watchdog runbook](hermes-watchdog-supervisor.md).
|
|
738
|
+
- **External conductor contracts are advisory.** Pi damage-control wraps Pi
|
|
739
|
+
tool calls, not Hermes or Codex processes; human approvals and their
|
|
740
|
+
contracts reduce risk but do not provide an OS command allowlist.
|
|
741
|
+
- **Destructive fleet verbs are damage-control-guarded.** Specialists cannot
|
|
742
|
+
spawn/close herdr panes; the human confirms destructive actions.
|
|
743
|
+
- **Native-over-vendored skills.** The skill catalogue resolves `skills/`
|
|
744
|
+
first, then the vendored upstream import; upstream updates are explicit
|
|
745
|
+
maintainer actions ([UPSTREAM-SKILLS.md](UPSTREAM-SKILLS.md)).
|
|
746
|
+
|
|
747
|
+
## History
|
|
748
|
+
|
|
749
|
+
Agent Fleet began as a fork of `addyosmani/agent-skills` and was split into a
|
|
750
|
+
standalone repository in July 2026, with upstream demoted to vendored content.
|
|
751
|
+
The one-time migration record, including the history-filtering commands, lives
|
|
752
|
+
in [MIGRATION-agent-fleet.md](MIGRATION-agent-fleet.md). The product
|
|
753
|
+
requirements that drove the split were a one-off planning document and are no
|
|
754
|
+
longer maintained.
|