@chankov/agent-fleet 2.0.19 → 2.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.pi/agent-fleet/scripts/coms-claude-bridge.ts +5 -5
- package/.pi/extensions/compact-and-continue/index.ts +18 -2
- package/.pi/harnesses/agent-hub/README.md +163 -130
- package/.pi/harnesses/agent-hub/access-approval.ts +15 -9
- package/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.pi/harnesses/agent-hub/agentic-sources.ts +1 -1
- package/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.pi/harnesses/agent-hub/assist-profile.ts +3 -0
- package/.pi/harnesses/agent-hub/budget-recovery.ts +4 -95
- package/.pi/harnesses/agent-hub/commands/context.ts +0 -1
- package/.pi/harnesses/agent-hub/config/model-profiles.ts +3 -2
- package/.pi/harnesses/agent-hub/config/overrides.ts +2 -2
- package/.pi/harnesses/agent-hub/context/budgets.ts +12 -66
- package/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.pi/harnesses/agent-hub/context-continuity-broker.ts +42 -0
- package/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.pi/harnesses/agent-hub/context-continuity-client.ts +19 -0
- package/.pi/harnesses/agent-hub/context-continuity-compat.ts +30 -0
- package/.pi/harnesses/agent-hub/context-continuity-owners.ts +15 -0
- package/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.pi/harnesses/agent-hub/context-pressure.ts +37 -6
- package/.pi/harnesses/agent-hub/damage-guard-approval.ts +59 -0
- package/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.pi/harnesses/agent-hub/damage-guard-hub.ts +249 -0
- package/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.pi/harnesses/agent-hub/damage-guard-owners.ts +54 -0
- package/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
- package/.pi/harnesses/agent-hub/delegate.ts +4 -4
- package/.pi/harnesses/agent-hub/deterministic-fs.ts +33 -7
- package/.pi/harnesses/agent-hub/dispatch-coms.ts +3 -2
- package/.pi/harnesses/agent-hub/dispatch-native-complete.ts +1 -1
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +32 -7
- package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +24 -4
- package/.pi/harnesses/agent-hub/dispatch-native-types.ts +26 -0
- package/.pi/harnesses/agent-hub/dispatch-native.ts +2 -0
- package/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.pi/harnesses/agent-hub/file-discovery/adapters.ts +9 -3
- package/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +10 -4
- package/.pi/harnesses/agent-hub/file-discovery/broker.ts +8 -5
- package/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +17 -8
- package/.pi/harnesses/agent-hub/file-discovery/descendant.ts +5 -1
- package/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +1 -1
- package/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +14 -5
- package/.pi/harnesses/agent-hub/file-discovery/hub.ts +33 -16
- package/.pi/harnesses/agent-hub/file-discovery/results.ts +7 -6
- package/.pi/harnesses/agent-hub/file-discovery/runtime.ts +21 -11
- package/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.pi/harnesses/agent-hub/file-discovery/sources.ts +2 -2
- package/.pi/harnesses/agent-hub/filesystem-tool.ts +6 -25
- package/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.pi/harnesses/agent-hub/hub-state-audit.js +0 -24
- package/.pi/harnesses/agent-hub/index.ts +102 -113
- package/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +122 -24
- package/.pi/harnesses/agent-hub/no-progress.ts +42 -15
- package/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.pi/harnesses/agent-hub/orchestration-activation.ts +18 -21
- package/.pi/harnesses/agent-hub/orchestration-route.ts +8 -16
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/policy/work-mode.ts +8 -3
- package/.pi/harnesses/agent-hub/proactive-runtime.ts +1 -1
- package/.pi/harnesses/agent-hub/process-obligations.ts +23 -22
- package/.pi/harnesses/agent-hub/prompts/context.ts +1 -2
- package/.pi/harnesses/agent-hub/prompts/fragments.ts +21 -30
- package/.pi/harnesses/agent-hub/prompts/session-start.ts +1 -1
- package/.pi/harnesses/agent-hub/recovery-contract.ts +2 -1
- package/.pi/harnesses/agent-hub/research/runtime.ts +14 -0
- package/.pi/harnesses/agent-hub/research/spawn-run.ts +41 -14
- package/.pi/harnesses/agent-hub/review-continuity.ts +73 -0
- package/.pi/harnesses/agent-hub/review-findings.js +2 -10
- package/.pi/harnesses/agent-hub/review-reuse.ts +47 -0
- package/.pi/harnesses/agent-hub/run-budget.js +17 -229
- package/.pi/harnesses/agent-hub/scope-gate.js +99 -15
- package/.pi/harnesses/agent-hub/session-audit.ts +22 -4
- package/.pi/harnesses/agent-hub/spawn.ts +87 -11
- package/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.pi/harnesses/agent-hub/specialist-result.ts +69 -0
- package/.pi/harnesses/agent-hub/system1-communication-store.ts +29 -2
- package/.pi/harnesses/agent-hub/system1-runtime.ts +7 -0
- package/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
- package/.pi/harnesses/agent-hub/task-triage-authorization.ts +43 -14
- package/.pi/harnesses/agent-hub/task-triage-config.ts +5 -14
- package/.pi/harnesses/agent-hub/task-triage-obligations.ts +17 -1
- package/.pi/harnesses/agent-hub/task-triage-runtime.ts +15 -10
- package/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +1 -1
- package/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +18 -7
- package/.pi/harnesses/agent-hub/tools/action-executors.ts +11 -10
- package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +2 -2
- package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +144 -64
- package/.pi/harnesses/agent-hub/ui/context-budget.ts +5 -3
- package/.pi/harnesses/agent-hub/ui/grid.ts +1 -1
- package/.pi/harnesses/agent-hub/work-mode.ts +3 -4
- package/.pi/harnesses/ask-user-remote/index.ts +13 -2
- package/.pi/harnesses/ask-user-remote/questions.ts +4 -6
- package/.pi/harnesses/ask-user-remote/runtime-ask.ts +16 -1
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/README.md +26 -0
- package/.pi/harnesses/damage-control-continue/index.ts +87 -20
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.pi/harnesses/damage-control-continue/system1-child.ts +35 -0
- package/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.pi/harnesses/lib/bash-policy-analysis.ts +155 -0
- package/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.pi/harnesses/lib/coms-core-io.ts +2 -1
- package/.pi/harnesses/lib/coms-core.ts +3 -2
- package/.pi/harnesses/lib/coms-registry-entry.ts +4 -2
- package/.pi/harnesses/lib/context-budget-child-prompt.ts +8 -14
- package/.pi/harnesses/lib/context-budget-view.ts +5 -0
- package/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.pi/harnesses/lib/damage-control-shared.ts +3 -0
- package/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.pi/harnesses/lib/herdr-presence.ts +4 -4
- package/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.pi/harnesses/lib/installation-state.js +62 -0
- package/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.pi/harnesses/lib/system1/config-file-discovery.js +4 -2
- package/.pi/harnesses/lib/system1/config-v2.js +11 -5
- package/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.pi/harnesses/lib/system1/service.ts +1 -1
- package/.pi/harnesses/package-lock.json +1041 -959
- package/.pi/harnesses/package.json +3 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.20/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.20/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/coms-claude-bridge.ts +437 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/fleet.ts +217 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/flow.ts +157 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/flow-command.ts +98 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/package-lock.json +35 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/package.json +9 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +179 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +36 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.20/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.0.20/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.20/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.0.20/.pi/agents/peers.yaml +147 -0
- package/.versions/2.0.20/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.20/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.20/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.20/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.20/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.20/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.20/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.20/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.20/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.20/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.20/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.20/.pi/extensions/compact-and-continue/index.ts +136 -0
- package/.versions/2.0.20/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.20/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.20/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.20/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.20/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.20/.pi/extensions/package.json +9 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.20/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/README.md +1516 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/acceptance.ts +199 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/access-approval.ts +141 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-hub.ts +54 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/context.ts +46 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/config/agents.ts +178 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/config/model-profiles.ts +237 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/config/overrides.ts +165 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity-broker.ts +42 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity-client.ts +19 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity-compat.ts +30 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity-owners.ts +15 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-approval.ts +59 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-hub.ts +249 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-owners.ts +54 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/delegate.ts +478 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-coms.ts +253 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-native-complete.ts +173 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +295 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +253 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-native-types.ts +293 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-native.ts +236 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/docs-lane.js +123 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/hub.ts +169 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/owners.ts +96 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/fixtures/registration-surface.json +66 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/history-projection.ts +116 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/index.ts +2614 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +144 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/no-progress.ts +620 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/policy/work-mode.ts +142 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-config.ts +21 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-snapshot.ts +271 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/proactive-types.ts +67 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/process-obligations.ts +159 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/prompts/context.ts +55 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/prompts/fragments.ts +86 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/prompts/system-prompt.ts +125 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/return-contract.js +349 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/review-closure.ts +43 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/review-continuity.ts +73 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/review-findings.js +96 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/review-reuse.ts +47 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/run-budget.js +342 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/runtime-test-check.ts +54 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/scope-gate.js +228 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/session-audit.ts +331 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/spawn.ts +639 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/specialist-result.ts +69 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/system1-communication-store.ts +217 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/system1-report.ts +275 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/system1-runtime.ts +265 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-authorization.ts +151 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-config.ts +20 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +79 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/action-executors.ts +214 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/context.ts +144 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +88 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +640 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/herdr-executors.ts +95 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/run-flow.ts +136 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +155 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/work-mode.ts +186 -0
- package/.versions/2.0.20/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.0.20/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.0.20/.pi/harnesses/ask-user-remote/index.ts +569 -0
- package/.versions/2.0.20/.pi/harnesses/ask-user-remote/questions.ts +159 -0
- package/.versions/2.0.20/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.0.20/.pi/harnesses/ask-user-remote/runtime-ask.ts +83 -0
- package/.versions/2.0.20/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.20/.pi/harnesses/coms/index.ts +282 -0
- package/.versions/2.0.20/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.20/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/README.md +161 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/index.ts +600 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/system1-child.ts +35 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
- package/.versions/2.0.20/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.20/.pi/harnesses/lib/approval-wait.ts +17 -0
- package/.versions/2.0.20/.pi/harnesses/lib/bash-policy-analysis.ts +155 -0
- package/.versions/2.0.20/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.0.20/.pi/harnesses/lib/clarification-policy.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/lib/coms-core-io.ts +386 -0
- package/.versions/2.0.20/.pi/harnesses/lib/coms-core.ts +578 -0
- package/.versions/2.0.20/.pi/harnesses/lib/coms-registry-entry.ts +96 -0
- package/.versions/2.0.20/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
- package/.versions/2.0.20/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
- package/.versions/2.0.20/.pi/harnesses/lib/context-budget-view.ts +112 -0
- package/.versions/2.0.20/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.20/.pi/harnesses/lib/context-compaction-policy.js +35 -0
- package/.versions/2.0.20/.pi/harnesses/lib/damage-action-hash.ts +28 -0
- package/.versions/2.0.20/.pi/harnesses/lib/damage-control-shared.ts +229 -0
- package/.versions/2.0.20/.pi/harnesses/lib/damage-guard-port.ts +25 -0
- package/.versions/2.0.20/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
- package/.versions/2.0.20/.pi/harnesses/lib/damage-result-view.ts +16 -0
- package/.versions/2.0.20/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
- package/.versions/2.0.20/.pi/harnesses/lib/execution-trace.ts +45 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-dashboard-view.ts +172 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-read-model.ts +609 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.0.20/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.20/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.20/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.20/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.20/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.20/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.20/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.20/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.20/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.20/.pi/harnesses/lib/identical-dialog.ts +27 -0
- package/.versions/2.0.20/.pi/harnesses/lib/installation-state.js +62 -0
- package/.versions/2.0.20/.pi/harnesses/lib/policy-roots.js +106 -0
- package/.versions/2.0.20/.pi/harnesses/lib/policy-roots.ts +31 -0
- package/.versions/2.0.20/.pi/harnesses/lib/process-shared.ts +9 -0
- package/.versions/2.0.20/.pi/harnesses/lib/safe-source-read.js +29 -0
- package/.versions/2.0.20/.pi/harnesses/lib/semantic-approval.ts +80 -0
- package/.versions/2.0.20/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-agentic.js +15 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-json.js +37 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-loader.js +44 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-proactive.js +68 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-triage.js +42 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config-v2.js +112 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/config.js +50 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/contracts.ts +154 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/demo.ts +95 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/selection.js +11 -0
- package/.versions/2.0.20/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.0.20/.pi/harnesses/lib/update-check.ts +222 -0
- package/.versions/2.0.20/.pi/harnesses/package-lock.json +2121 -0
- package/.versions/2.0.20/.pi/harnesses/package.json +13 -0
- package/.versions/2.0.20/.pi/prompts/af-build.md +27 -0
- package/.versions/2.0.20/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.20/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.0.20/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.20/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.20/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.20/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.20/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.0.20/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.20/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.20/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.20/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.20/.version +1 -0
- package/.versions/2.0.20/agents/architect.md +24 -0
- package/.versions/2.0.20/agents/bowser.md +28 -0
- package/.versions/2.0.20/agents/builder.md +55 -0
- package/.versions/2.0.20/agents/code-reviewer.md +209 -0
- package/.versions/2.0.20/agents/deep-researcher.md +32 -0
- package/.versions/2.0.20/agents/documenter.md +22 -0
- package/.versions/2.0.20/agents/orchestrator.md +22 -0
- package/.versions/2.0.20/agents/plan-reviewer.md +83 -0
- package/.versions/2.0.20/agents/planner.md +107 -0
- package/.versions/2.0.20/agents/releaser.md +24 -0
- package/.versions/2.0.20/agents/researcher.md +30 -0
- package/.versions/2.0.20/agents/security-auditor.md +167 -0
- package/.versions/2.0.20/agents/test-engineer.md +153 -0
- package/.versions/2.0.20/agents/web-debugger.md +44 -0
- package/.versions/2.0.20/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.20/bin/catalog/harness-runtime-closure.json +73 -0
- package/.versions/2.0.20/codex/fleet-session-client/SKILL.md +34 -0
- package/.versions/2.0.20/codex/fleet-session-client.zip +0 -0
- package/.versions/2.0.20/docs/ARCHITECTURE.md +977 -0
- package/.versions/2.0.20/docs/agent-fleet-setup.md +1103 -0
- package/.versions/2.0.20/docs/claude-code-coms-bridge.md +147 -0
- package/.versions/2.0.20/docs/codex-session-bridge.md +219 -0
- package/.versions/2.0.20/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.0.20/docs/getting-started.md +126 -0
- package/.versions/2.0.20/docs/npm-install.md +535 -0
- package/.versions/2.0.20/docs/pi-extensions.md +455 -0
- package/.versions/2.0.20/docs/pi-setup.md +92 -0
- package/.versions/2.0.20/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.20/install-manifest.json +3210 -0
- package/.versions/2.0.20/justfile +247 -0
- package/.versions/2.0.20/manifest-meta.json +1088 -0
- package/.versions/2.0.20/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.20/references/communication-contract.md +26 -0
- package/.versions/2.0.20/references/definition-of-done.md +67 -0
- package/.versions/2.0.20/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.20/references/observability-checklist.md +92 -0
- package/.versions/2.0.20/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.20/references/performance-checklist.md +236 -0
- package/.versions/2.0.20/references/prompting-patterns.md +380 -0
- package/.versions/2.0.20/references/security-checklist.md +245 -0
- package/.versions/2.0.20/references/testing-patterns.md +235 -0
- package/.versions/2.0.20/references/workflow-authoring.md +304 -0
- package/.versions/2.0.20/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.20/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.20/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.20/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.20/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.0.20/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.20/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.0.20/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.20/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.20/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.20/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.20/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.20/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.20/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.20/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.20/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.20/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.20/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.20/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.20/skills/incremental-implementation/SKILL.md +353 -0
- package/.versions/2.0.20/skills/incremental-implementation.zip +0 -0
- package/.versions/2.0.20/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.20/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.0.20/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.20/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.20/skills/planning-and-task-breakdown/SKILL.md +318 -0
- package/.versions/2.0.20/skills/planning-and-task-breakdown.zip +0 -0
- package/.versions/2.0.20/skills/repository-ai-setup/SKILL.md +135 -0
- package/.versions/2.0.20/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.0.20/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.0.20/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.0.20/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.0.20/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.0.20/skills/repository-ai-setup.zip +0 -0
- package/.versions/2.0.20/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.20/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.0.20/skills/spec-driven-development.zip +0 -0
- package/.versions/2.0.20/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.0.20/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/CHANGELOG.md +32 -0
- package/README.md +3 -2
- package/agents/builder.md +1 -1
- package/agents/planner.md +6 -4
- package/bin/cli.js +9 -2
- package/bin/lib/apply.js +4 -0
- package/bin/lib/desired.js +2 -0
- package/bin/lib/doctor.js +13 -7
- package/bin/lib/state.js +7 -4
- package/bin/lib/transaction.js +6 -1
- package/bin/lib/validate-overrides.js +7 -3
- package/bin/lib/verify.js +9 -2
- package/docs/ARCHITECTURE.md +177 -74
- package/docs/agent-fleet-setup.md +10 -8
- package/docs/external-project-ai-content.md +17 -2
- package/docs/pi-extensions.md +7 -6
- package/docs/system1-agentic.md +4 -4
- package/docs/system1-config.md +144 -1
- package/docs/system1-context-continuity.md +224 -0
- package/docs/system1-damage-guard.md +172 -0
- package/docs/system1-dispatch-triage.md +169 -0
- package/docs/system1-file-discovery.md +16 -4
- package/docs/system1.example.json +102 -0
- package/install-manifest.json +17 -4
- package/manifest-meta.json +14 -1
- package/package.json +21 -9
- package/skills/_internal/grilling.md +54 -54
- package/skills/incremental-implementation/SKILL.md +8 -8
- package/skills/incremental-implementation.zip +0 -0
- package/skills/planning-and-task-breakdown/SKILL.md +7 -7
- package/skills/planning-and-task-breakdown.zip +0 -0
- package/skills/spec-driven-development/SKILL.md +1 -1
- package/skills/spec-driven-development.zip +0 -0
- package/.pi/harnesses/agent-hub/budget-continuation.ts +0 -13
- package/.pi/harnesses/agent-hub/commands/budget-continue.ts +0 -10
package/docs/system1-config.md
CHANGED
|
@@ -4,6 +4,36 @@ System 1 runtime settings live only in the human-owned `.ai/system1.json` v2 doc
|
|
|
4
4
|
|
|
5
5
|
## Safe starting configuration
|
|
6
6
|
|
|
7
|
+
[system1.example.json](system1.example.json) is a valid, commented-in-this-guide
|
|
8
|
+
reference for System 1 settings. The v2 schema now supports **eight root
|
|
9
|
+
consumers**, including D7 and D6; the inert D6 fragment below documents that
|
|
10
|
+
section separately without changing the example file.
|
|
11
|
+
It is inert: root and consumer modes are `off`, remote consent is false/disabled,
|
|
12
|
+
and no key value is included. Runtime reads `.ai/system1.json`, **not** this example.
|
|
13
|
+
The example is shipped as documentation; it is not installed as active consent.
|
|
14
|
+
|
|
15
|
+
For a new workspace with no existing runtime document:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
# Only if .ai/system1.json does not exist; do not overwrite human configuration.
|
|
19
|
+
mkdir -p .ai
|
|
20
|
+
if [ ! -e .ai/system1.json ] && [ ! -L .ai/system1.json ]; then
|
|
21
|
+
cp docs/system1.example.json .ai/system1.json
|
|
22
|
+
fi
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
In an existing workspace, merge only the reviewed sections into your current
|
|
26
|
+
`.ai/system1.json`. Do not replace it wholesale. The `include` roots in the example
|
|
27
|
+
are for this Fleet checkout; substitute your project's separately approved roots.
|
|
28
|
+
No example calibration profile or rule hash is invented: `dispatchTriage.profile`
|
|
29
|
+
is omitted and `proactiveReview.localBindings` is empty until independently reviewed.
|
|
30
|
+
The dispatch byte/call values are illustrative (not calibrated production budgets);
|
|
31
|
+
D10/D9 limits show supported defaults/maxima; Task Triage limits are exact pins.
|
|
32
|
+
Most default limit fields can be omitted, but do not omit required dispatch fields
|
|
33
|
+
or alter the Task Triage pins.
|
|
34
|
+
|
|
35
|
+
A smaller provider-only starting point is:
|
|
36
|
+
|
|
7
37
|
```json
|
|
8
38
|
{
|
|
9
39
|
"version": 2,
|
|
@@ -28,7 +58,9 @@ Each optional section under `consumers` has its own permissions and budgets. Mis
|
|
|
28
58
|
| `dispatchTriage` | `mode: off`, `shadow`, or `advisory`; explicit `remoteContextApproved`, positive `maxCalls`, `maxStateBytes`, `maxTaskBytes`, `maxRoleBytes`; optional `profile`, `orchestratorBeforeDispatch` |
|
|
29
59
|
| `taskTriage` | `mode: off` or `experimental`; explicit `remoteContextApproved`, pinned `questionVersion`, `policyVersion`, `limits`; inherits root provider/model |
|
|
30
60
|
| `agenticAsk` (D10) | `mode: off`, `advisory`, or `recommended`; independent `remoteContextApproved`, `include` (repo-relative prefixes or explicit `git:tracked` selector), `allowToolOutputs`, `limits`; parent-only typed judgment tool |
|
|
31
|
-
| `fileDiscovery` (D9) | `mode: off` or `active`; independent `remoteContextApproved`, nonempty `include` for approved active use, bounded `limits`; automatic full-list ranking |
|
|
61
|
+
| `fileDiscovery` (D9/D8) | `mode: off` or `active`; independent `remoteContextApproved`, nonempty `include` for approved active use, bounded `limits`; optional `semanticReads: {mode: off | active}` (default off); automatic full-list ranking and opt-in orientation |
|
|
62
|
+
| `damageGuard` (D6) | `mode: off` or `active`; independent boolean `remoteScopes.commands/edits/results`, explicit `include`, bounded `limits`; optional semantic checks over mandatory baseline, not permission authority |
|
|
63
|
+
| `contextCompaction` (D7) | `mode: off` or `automatic`; independent `remoteContextApproved`, `earlyOpportunityPercent` (default 60, below 80), `limits.timeoutMs` (maximum/default 1000), `limits.maxStateBytes` (maximum/default 8192); automatic early-boundary advice, not a compact tool |
|
|
32
64
|
|
|
33
65
|
The top-level `mode: off` disables remote inference. Independently valid proactive local capture/checks can remain enabled. An off proactive section cannot authorize capture. Neither off nor migration failure/provider unavailability cancels persisted Task Triage process obligations.
|
|
34
66
|
|
|
@@ -69,8 +101,119 @@ Those task limits are a pinned compatibility contract, not adjustable knobs. Pro
|
|
|
69
101
|
|
|
70
102
|
Merge these under `consumers`, preserving root settings and all human-owned sections. D10 recommended is model-facing advice for suitable typed questions; it does not activate D9 or grant D9 export consent. D9 uses deterministic discovery/pre-spawn hooks, retains every display-permitted candidate (including low/unscored), and pages large results without raising read budgets. Its complete/partial/unavailable/cancelled/skipped and independent discovery/evaluation coverage are not semantic accuracy guarantees. Start a new session after edits. See [D10](system1-agentic.md) and [D9 triggers, full-list contract, limitations and unpublished source/local-tarball commands](system1-file-discovery.md).
|
|
71
103
|
|
|
104
|
+
D8 automatic semantic orientation is separately opted in with `consumers.fileDiscovery.semanticReads: {"mode":"active"}`. Missing/off preserves D9. It shares D9 consent/include/read guards and scheduling/budgets; D10 consent does not activate it. Eligible singleton discovery, repo-file stat and single-file native pre-spawn receive a versioned orientation pack with a 2000 ms foreground bound. Raw reads and mandatory evidence remain unchanged; failures preserve ordinary permitted operations. Multi-file D9 requests include orientation without a second evaluation. Explicit typed questions are never truncated to make room. See [D8 runtime contract](system1-file-discovery.md#automatic-semantic-reads-d8).
|
|
105
|
+
|
|
72
106
|
For a separately approved Git-tracked-only export scope, set only `consumers.agenticAsk.include` to `["git:tracked"]`. This dynamically checks the current Git index before reading sources and for freshness; selected text is from the working tree. Untracked files do not qualify, and sensitive-path/local-access/source guards still apply even to tracked files. It does not change `fileDiscovery` consent or output capture. Adding directory prefixes alongside the selector also permits their untracked descendants. See [D10 export scope and refusal handling](system1-agentic.md#export-scope-and-gittracked). Restart the Hub after editing.
|
|
73
107
|
|
|
108
|
+
## Enable and use each feature
|
|
109
|
+
|
|
110
|
+
1. Select the existing **`system1`** installation feature using normal setup. For
|
|
111
|
+
Task Triage, also select **`system1-task-triage`** and review its separate consent.
|
|
112
|
+
Selection alone does not enable inference or grant remote-context approval.
|
|
113
|
+
2. Supply `TYPESAFE_API_KEY` through your normal parent process environment. Never
|
|
114
|
+
put the value in JSON, chat, source control or child assignments.
|
|
115
|
+
3. Review provider/root settings and change root `mode` to `auto` only when ready
|
|
116
|
+
for remote inference. Then enable only the desired consumers with their own
|
|
117
|
+
consent and scopes. One consumer's consent cannot enable another.
|
|
118
|
+
4. Stop and restart the Pi/Hub **process** after config or extension changes. A new
|
|
119
|
+
conversation inside an old process is not a reliable code/config reload.
|
|
120
|
+
5. Use the offline doctor before launching. From this checkout, for example:
|
|
121
|
+
|
|
122
|
+
```sh
|
|
123
|
+
node bin/cli.js doctor --workspace "$PWD"
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
The following are edits to existing sections **after human review**, not commands
|
|
127
|
+
that change consent. Keep other sections off if you do not need them.
|
|
128
|
+
|
|
129
|
+
| Feature | Opt-in changes | Example use / observable behavior |
|
|
130
|
+
| --- | --- | --- |
|
|
131
|
+
| Watchdog System1 | `watchdog.mode: shadow` (or separately reviewed experimental `active`); keep the underlying drift watchdog armed | Dispatch an authorized specialist normally; System1 assists watchdog observations. `/af-watchdog` shows readiness. `active` is experimental scope-only, not general calibration acceptance. |
|
|
132
|
+
| Proactive review | `proactiveReview.mode: shadow` or `advisory`, nonempty approved `include` such as `["docs/**"]`, `maxEvaluationsPerSession` such as 20; `remoteContext: selected-excerpts` only for approved export | A normally authorized edit triggers local turn capture/review. `shadow` observes; `advisory` can deliver findings. `remoteContext: disabled` retains permitted local capture/checks without exporting excerpts. |
|
|
133
|
+
| Dispatch triage | `dispatchTriage.mode: shadow` or `advisory`, `remoteContextApproved: true`; review the explicit call/byte budgets | Ask the orchestrator to use `dispatch_triage(task, scope, language, domain)` before independently dispatching. Without a matching approved `profile`, expect `uncalibrated`, not a calibrated persona recommendation. `orchestratorBeforeDispatch: true` adds instructions, not an automatic launch hook. |
|
|
134
|
+
| Task triage | `taskTriage.mode: experimental`, `remoteContextApproved: true`, unchanged pinned question/policy/limits | Submit a normal user task; runtime assesses the accepted input before model work. Process obligations remain authoritative even after inference is turned off. |
|
|
135
|
+
| Agentic Ask (D10) | `agenticAsk.mode: advisory` or `recommended`, `remoteContextApproved: true`, reviewed `include`; keep `allowToolOutputs: false` unless separately approved | Ask a focused typed question, e.g. `ask_system1` with a choice about the relevance of a selected `docs/` range. `recommended` encourages first-use routing; answers never execute work or satisfy gates. |
|
|
136
|
+
| File discovery (D9) | `fileDiscovery.mode: active`, `remoteContextApproved: true`, approved nonempty prefix `include` | Use normal permitted `filesystem` inventory/find/ls/grep or native pre-spawn discovery. Runtime ranks candidates while retaining every display-permitted result, not only top-K. |
|
|
137
|
+
| Semantic reads (D8) | Additionally `fileDiscovery.semanticReads.mode: active` | Normal eligible single-file stat/discovery receives orientation through the same D9 service/consent. It is not another root consumer or a replacement for reading evidence. |
|
|
138
|
+
| Context compaction (D7) | `contextCompaction.mode: automatic`, `remoteContextApproved: true`; keep 60% early opportunity and bounded limits initially | Continue a normal long task. Runtime asks System1 at eligible changed turn boundaries; a safe/confident retained answer can request early compact. Deterministic 70% recovery (80% ceiling) does not require System1. |
|
|
139
|
+
|
|
140
|
+
### D7 opt-in fragment
|
|
141
|
+
|
|
142
|
+
Merge only this reviewed section under `consumers`:
|
|
143
|
+
|
|
144
|
+
```json
|
|
145
|
+
{
|
|
146
|
+
"contextCompaction": {
|
|
147
|
+
"mode": "automatic",
|
|
148
|
+
"remoteContextApproved": true,
|
|
149
|
+
"earlyOpportunityPercent": 60,
|
|
150
|
+
"limits": { "timeoutMs": 1000, "maxStateBytes": 8192 }
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
D7 uses Pi's effective compaction reserve for headroom, not the entire model
|
|
156
|
+
maximum output. `boundary = safe` must have provider confidence at least 0.80. Uncertain retention
|
|
157
|
+
uses standard preservation instructions; timeout/low confidence/stale advice leaves
|
|
158
|
+
the deterministic 70% pressure recovery available. Pi writes the summary; System1 does not compact,
|
|
159
|
+
delete history, reset budgets or grant permission.
|
|
160
|
+
|
|
161
|
+
Open the existing Fleet communication view (`1`, then enable capture with `e`)
|
|
162
|
+
**before** submitting work to observe System1 request/response metadata. D7 also
|
|
163
|
+
records `agent-hub-context-assessment` status/reason/measurement metadata and the
|
|
164
|
+
`context-assessment` status line. Capture never includes D7 task text, questions,
|
|
165
|
+
free-form summary or raw provider extras. Missing diagnostics on the model's tool
|
|
166
|
+
surface is not a reason to stop the permitted task.
|
|
167
|
+
|
|
168
|
+
Useful live prompts:
|
|
169
|
+
|
|
170
|
+
> **Short explicit test:** Read README.md once, then use `request_compaction` with
|
|
171
|
+
> a continuation that reads package.json once. Do not edit files or run shell.
|
|
172
|
+
> If there is no compactable history, report the runtime's honest skip and continue;
|
|
173
|
+
> do not claim an actual compact. Finish with `D7_EXPLICIT_FINISHED`.
|
|
174
|
+
|
|
175
|
+
> **Automatic test:** Continue one read-only comparison of new, distinct permitted
|
|
176
|
+
> documents/runtime source files. Check sizes and honor all guards/budgets. Do not
|
|
177
|
+
> use `request_compaction`, `/compact` or `ask_system1` to request compaction. Do not
|
|
178
|
+
> reset the task or stop at an arbitrary file count. Continue until real automatic
|
|
179
|
+
> compact or a concrete runtime refusal/cancellation/exhaustion of permitted sources.
|
|
180
|
+
> After automatic compact, read two further unread files without my `continue` and
|
|
181
|
+
> finish with `D7_AUTO_COMPACTION_AND_CONTINUATION_FINISHED`. No edits, padding,
|
|
182
|
+
> duplicate reads, tests, installs or permission changes.
|
|
183
|
+
|
|
184
|
+
60% is eligibility, not a guaranteed compact threshold. In the observed live Hub
|
|
185
|
+
run, early System1 advice was rejected for low confidence/staleness; 90% pressure
|
|
186
|
+
compact restored and continued successfully. Coms task-description binding and
|
|
187
|
+
root-service forwarding to nested/workflow processes remain incomplete: do not
|
|
188
|
+
claim full semantic assistance for every descendant merely because the shared
|
|
189
|
+
native pressure adapter is loaded. See [D7 scope, diagnostics, evidence and current
|
|
190
|
+
limits](system1-context-continuity.md). External peers do not gain remote compact
|
|
191
|
+
control.
|
|
192
|
+
|
|
193
|
+
### D6 independent off-by-default section
|
|
194
|
+
|
|
195
|
+
D6 is implemented in the current worktree but remains incomplete/unaccepted.
|
|
196
|
+
This inert fragment describes its section under `consumers`; it is not an
|
|
197
|
+
activation/copy/install instruction:
|
|
198
|
+
|
|
199
|
+
```json
|
|
200
|
+
{"damageGuard":{"mode":"off","remoteScopes":{"commands":false,"edits":false,"results":false},"include":[]}}
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
There is no D6 `remoteContextApproved` field and no inherited D8/D9/D10 consent.
|
|
204
|
+
Missing scopes grant nothing. Missing/off/invalid/root-off/unavailable-key means
|
|
205
|
+
no new D6 inference, not removal of durable denial/hold/recovery fences.
|
|
206
|
+
`include` is an explicit export scope; `git:tracked` is a selector example, not
|
|
207
|
+
blanket filesystem approval or active consent. Limits default/max out at 16 KiB
|
|
208
|
+
payload, 64 KiB IPC frame, one 2 s collection/IPC/inference deadline, 5 s technical
|
|
209
|
+
backoff and a separate 10 min human wait. The parser accepts smaller positive
|
|
210
|
+
safe integers; broker/client also impose fixed transport bounds. There is no
|
|
211
|
+
financial quota or upward-limit configuration. See the [D6 guide](system1-damage-guard.md)
|
|
212
|
+
for actual native coverage, standalone/coms limits, durable deny and dialog-only
|
|
213
|
+
override, original→D6→D8 structured output, SDK 1.1.0 evidence and open gates.
|
|
214
|
+
D6 is not activated by the feature instructions or other consumer examples above;
|
|
215
|
+
F12 packaging, independent review and final acceptance remain open.
|
|
216
|
+
|
|
74
217
|
## Explicit migration
|
|
75
218
|
|
|
76
219
|
Preview and apply are local CLI operations; neither starts inference nor grants new data consent:
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
# System1 context continuity (D7)
|
|
2
|
+
|
|
3
|
+
## Runtime behavior
|
|
4
|
+
|
|
5
|
+
D7 adds a runtime-owned recovery coordinator and shared native child adapter.
|
|
6
|
+
The real `Pi 1.3.0 --mode json -p --no-extensions` contract is verified offline
|
|
7
|
+
(previously verified Pi 1.1.0 and 1.2.0 remain admitted)
|
|
8
|
+
with fake inference, actual Pi compaction, persisted tool results, and subsequent
|
|
9
|
+
continuation. Runtime detection resolves npm-bin symlink launchers before reading
|
|
10
|
+
the owning Pi package version. Other runtime versions remain on their native baseline; a method
|
|
11
|
+
called `compact` alone is not a capability proof.
|
|
12
|
+
|
|
13
|
+
Automatic compaction has a 50% minimum, 60% early opportunity, deterministic 70%
|
|
14
|
+
target and 80% ceiling (operator-approved 2026-10-15). Explicit manual requests
|
|
15
|
+
remain independent of the automatic minimum. At a safe boundary,
|
|
16
|
+
the coordinator awaits compaction and successful runtime restoration before
|
|
17
|
+
sending at most one custom continuation. It does not send synthetic user input,
|
|
18
|
+
reset task/turn budgets, grant permissions, restart a child or replay tool effects.
|
|
19
|
+
A real queued user input (including images) takes priority. Restore failure and
|
|
20
|
+
existing model-work gates suppress synthetic continuation.
|
|
21
|
+
|
|
22
|
+
`request_compaction` joins the same coordinator when running under supported Hub.
|
|
23
|
+
Its public tool parameters remain compatible. Pressure-only capability refreshes
|
|
24
|
+
preserve the current explicit compaction request even at low context usage; a
|
|
25
|
+
subsequent unrelated user request clears it. It is not a permanent task pack.
|
|
26
|
+
When `set_task_tier(new_task:true)` is authorized, old packs and confirmations
|
|
27
|
+
are cleared first, then capabilities are re-derived from a snapshot of the current
|
|
28
|
+
accepted user input. The model's reason is not used as user intent, raw input is
|
|
29
|
+
not persisted in capability state, and session startup/resume does not rebind it.
|
|
30
|
+
Before a non-pressure explicit request, the supported Hub uses Pi's actual
|
|
31
|
+
compaction preparation with the effective retention settings. If there is no
|
|
32
|
+
compactable history (including a session smaller than the default 20,000 recent
|
|
33
|
+
tokens), it records `skipped`, not compact/restore success or pressure failure.
|
|
34
|
+
A requested continuation still runs once under the same identity/gates, with real
|
|
35
|
+
queued user input taking priority. Mandatory pressure recovery is never skipped
|
|
36
|
+
by this rule. Explicit and automatic requests have distinct UI messages.
|
|
37
|
+
Without a managed Hub controller, the standalone extension retains its existing
|
|
38
|
+
queue behavior.
|
|
39
|
+
|
|
40
|
+
Every common native physical spawn explicitly loads `context-continuity-child.ts`.
|
|
41
|
+
The adapter measures the child's own model window and runs pressure recovery in
|
|
42
|
+
the same process/attempt. Parent-owned authenticated Unix-socket messages are limited
|
|
43
|
+
to `context_status` and `context_assessment`; there is no eval, command or permission
|
|
44
|
+
API. Assignments are revoked on cancellation/settlement. Child environment strips
|
|
45
|
+
inherited D7 assignments and System1 keys before receiving its fresh assignment.
|
|
46
|
+
|
|
47
|
+
External peers do not receive remote compaction control. Claude bridge usage is
|
|
48
|
+
`unknown`, not a fabricated zero. Registry records distinguish measured 0% from
|
|
49
|
+
missing/legacy measurement. Context budget diagnostics include child owner,
|
|
50
|
+
physical attempt, measurement, episode and last phase without exposing channel tokens.
|
|
51
|
+
|
|
52
|
+
## Enable
|
|
53
|
+
|
|
54
|
+
Deterministic pressure recovery does **not** require System1 selection, keys,
|
|
55
|
+
fileDiscovery or any semantic consumer. Launch the normal Agent Fleet Hub on the
|
|
56
|
+
verified Pi 1.3.0 runtime; no extra user `continue` is required for an interrupted,
|
|
57
|
+
still-authorized step after successful recovery.
|
|
58
|
+
|
|
59
|
+
Optional early semantic advice uses the existing **single** `.ai/system1.json`
|
|
60
|
+
v2 document. The complete [system1.example.json](system1.example.json) covers D7
|
|
61
|
+
and every supported consumer with remote inference/consent disabled. Follow the
|
|
62
|
+
[per-consumer setup and usage guide](system1-config.md#enable-and-use-each-feature).
|
|
63
|
+
Merge this section into `consumers`, preserving existing provider configuration
|
|
64
|
+
and other consumers:
|
|
65
|
+
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"consumers": {
|
|
69
|
+
"contextCompaction": {
|
|
70
|
+
"mode": "automatic",
|
|
71
|
+
"remoteContextApproved": true,
|
|
72
|
+
"earlyOpportunityPercent": 60,
|
|
73
|
+
"limits": { "timeoutMs": 1000, "maxStateBytes": 8192 }
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
This is a fragment, not a complete replacement file. The existing System1 feature
|
|
80
|
+
must be selected and its configured provider key available **to the parent only**.
|
|
81
|
+
Restart the session after human-owned configuration changes. `mode: "off"`, missing
|
|
82
|
+
consent/config/key, invalid consumer config, unavailable service or timeout disables
|
|
83
|
+
only semantic assistance. No config, consent, runtime upgrade or activation is
|
|
84
|
+
automatically performed by D7 implementation.
|
|
85
|
+
|
|
86
|
+
The semantic opportunity defaults to 60% and may be configured only within 50–70%.
|
|
87
|
+
The 70% deterministic target does not wait for System1. These are operator policy
|
|
88
|
+
thresholds, not a measured optimum. Eligibility
|
|
89
|
+
also requires compactable history beyond Pi `keepRecentTokens`, response headroom,
|
|
90
|
+
a changed snapshot and actual growth after the previous compact. Headroom uses
|
|
91
|
+
Pi's effective `compaction.reserveTokens` (default 16,384), capped by the model's
|
|
92
|
+
maximum output, rather than reserving that entire theoretical maximum. This keeps
|
|
93
|
+
early opportunities possible for models such as 272k-context / 128k-output.
|
|
94
|
+
The bounded assessment is awaited at the safe turn boundary so another model
|
|
95
|
+
request cannot immediately invalidate its snapshot. Jev choice confidence is
|
|
96
|
+
validated locally with provider provenance; its unsupported optional
|
|
97
|
+
`provider_confidence` capability is not required to admit the request.
|
|
98
|
+
Unknown usage
|
|
99
|
+
never becomes a guessed percentage. Provider-reported confidence must be at least
|
|
100
|
+
**0.80** for the safe-boundary decision. Uncertain or unknown retention uses the
|
|
101
|
+
standard preservation instructions rather than vetoing a confidently safe boundary.
|
|
102
|
+
Both confidence values are recorded as numbers (or null), without provider text.
|
|
103
|
+
Advice cannot defer mandatory pressure recovery. The production turn-end handler
|
|
104
|
+
awaits the bounded assessment before another model request.
|
|
105
|
+
|
|
106
|
+
## Use
|
|
107
|
+
|
|
108
|
+
Continue using normal tasks, specialist dispatches, research and nested delegation.
|
|
109
|
+
For explicitly requested manual compaction, use the existing `request_compaction`
|
|
110
|
+
tool with `customInstructions`, `reason` and optionally `continuationPrompt`.
|
|
111
|
+
Existing approval and budget gates remain authoritative after recovery.
|
|
112
|
+
|
|
113
|
+
Inspect the existing context-budget view for measurements and recovery phases.
|
|
114
|
+
The communication view captures only question IDs, byte counts, status and validated
|
|
115
|
+
decision enums for `context-compaction/questions/v1`. It does not capture task text,
|
|
116
|
+
questions, raw responses, free-form summary or credentials. Semantic snapshots are
|
|
117
|
+
bounded task/turn measurements, not full transcript or raw tool output. Consent is
|
|
118
|
+
specific to this consumer.
|
|
119
|
+
|
|
120
|
+
Each Hub turn also records `agent-hub-context-assessment` metadata: measured usage,
|
|
121
|
+
reserved headroom, status, reason and whether inference was requested. Reasons
|
|
122
|
+
include `below_early_threshold`, `no_compactable_history`, `insufficient_headroom`,
|
|
123
|
+
`service_unavailable`, `unsupported`, `timeout`, `low_confidence` and `safe_boundary`.
|
|
124
|
+
These diagnostics never include task text, retention instructions or raw errors;
|
|
125
|
+
the existing status line exposes the last status/reason. They do not claim that a
|
|
126
|
+
provider call occurred when eligibility or service capability rejected it.
|
|
127
|
+
|
|
128
|
+
## Observed live behavior and scope
|
|
129
|
+
|
|
130
|
+
A live `orchestrator2` coms test reached 90% pressure, compacted from 245,830 tokens,
|
|
131
|
+
restored the Hub state and received a runtime custom continuation. It then read
|
|
132
|
+
`system1-report.ts`, `system1-activity.ts` and `context-budget-hub-prompt.ts` without
|
|
133
|
+
a new user/coms request and finished with `D7_AUTO_COMPACTION_AND_CONTINUATION_FINISHED`.
|
|
134
|
+
The session recorded 16 early assessment requests: 15 rejected as `low_confidence`
|
|
135
|
+
and one as `snapshot_changed`. This proves live pressure fallback + continuation,
|
|
136
|
+
**not** a live compact selected by accepted semantic advice. This historical trace predates per-answer confidence diagnostics; current local
|
|
137
|
+
assessment records include boundaryConfidence and retentionConfidence.
|
|
138
|
+
|
|
139
|
+
| Managed path | Local pressure adapter | Early semantic assistance / proof |
|
|
140
|
+
| --- | --- | --- |
|
|
141
|
+
| Hub | Supported Pi coordinator; live compact/continuation observed | Automatic requests observed; accepted safe advice → compact verified with guarded fake provider |
|
|
142
|
+
| Native specialist | Shared physical spawn loads child adapter | Parent context channel implemented; writable child fixture passed |
|
|
143
|
+
| Research/recon | Same physical spawn adapter | Read-only child fixture passed; full production research flow still needs acceptance coverage |
|
|
144
|
+
| Nested delegate | Same adapter on descendant physical spawn | Root shared-service forwarding through all process levels is incomplete |
|
|
145
|
+
| Workflow scout | `runAgentPhase` uses the shared physical spawn | Separate workflow process does not have guaranteed root Hub System1 service forwarding |
|
|
146
|
+
| External peer | No D7 remote control adapter | Remains usable/native-managed; unknown external context is not fabricated 0% |
|
|
147
|
+
|
|
148
|
+
The role name does not determine coverage: the physical spawn path and ownership do.
|
|
149
|
+
Each native child measures its own model window and continues in the same attempt;
|
|
150
|
+
this is not a kill/re-dispatch or a fresh task budget.
|
|
151
|
+
|
|
152
|
+
**Known semantic limitations:** `coms-inbound` is a custom message and currently does
|
|
153
|
+
not update the D7 task-description snapshot like accepted interactive input does.
|
|
154
|
+
Thus a coms-run assessment may see stale/minimal task text. Child assessments use a
|
|
155
|
+
generic non-exporting task description. Root-service forwarding for nested/workflow
|
|
156
|
+
processes is not complete. Do not lower confidence thresholds to mask these gaps;
|
|
157
|
+
coms operation binding and full descendant end-to-end proof are remaining work.
|
|
158
|
+
|
|
159
|
+
## Verification and current limits
|
|
160
|
+
|
|
161
|
+
```sh
|
|
162
|
+
npm run test:context-continuity
|
|
163
|
+
node --test bin/test/context-continuity-installed.test.js
|
|
164
|
+
npm run typecheck:hub
|
|
165
|
+
npm run test:system1
|
|
166
|
+
npm run test:fast
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
All new D7 test commands preload the network-denial helper or launch guarded fake
|
|
170
|
+
provider subprocesses. The installed test extracts the npm package and uses its
|
|
171
|
+
runtime modules without source-tree imports.
|
|
172
|
+
|
|
173
|
+
The common physical adapter is tested on writable specialist and read-only child
|
|
174
|
+
surfaces. Full production research/nested end-to-end simultaneous parent/child
|
|
175
|
+
compaction, persisted cancellation mid-compaction, the installed legacy-runtime
|
|
176
|
+
matrix, peer fixtures and exhaustive unchanged-budget ledger proof still require
|
|
177
|
+
the corresponding acceptance coverage listed in the D7 plan. Do not interpret
|
|
178
|
+
module presence or a successful compact callback as completion of those cases.
|
|
179
|
+
The implementation is not a live deployment and does not upgrade runtimes.
|
|
180
|
+
|
|
181
|
+
Latest local verification after launcher/low-pressure/new-task/small-session/headroom fixes:
|
|
182
|
+
90 D7 tests passed; the installed package's 12 real-Pi fixture cases passed through the bundled Pi symlink launcher (including explicit
|
|
183
|
+
compaction at ~1.6% usage and two separate tasks in one RPC session with an
|
|
184
|
+
explicitly confirmed task supersession, plus an honest skip with default Pi
|
|
185
|
+
retention and a real automatic hook using the shared fake Jev transport at ~66–70%
|
|
186
|
+
with 272k context / 128k max output and default Pi reserve); 428 fast tests passed; System1 suite and Hub typecheck passed.
|
|
187
|
+
70 focused spawn/registry/bridge/context-budget regression tests passed. The broader
|
|
188
|
+
file-discovery suite exceeded the command's 120-second timeout and is **not**
|
|
189
|
+
reported as passed. The plan and canonical Hub/architecture documentation still
|
|
190
|
+
need final acceptance reconciliation once the remaining integration cases close.
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
## Automatic compaction monitoring
|
|
194
|
+
|
|
195
|
+
`/af-context` retains the existing context-budget overlay and adds automatic policy
|
|
196
|
+
and last-recovery rows. The status line shows the target and ceiling. Hub records
|
|
197
|
+
`agent-hub-compaction-monitor`; native children record `agent-fleet-compaction-monitor`.
|
|
198
|
+
Events distinguish `started`, `restored`, `continuation_requested`, `continued`,
|
|
199
|
+
`failed`, `ceiling_blocked` and `ceiling_exceeded`,
|
|
200
|
+
with an episode, before/after percentages and ceiling overshoot. Since Pi reports
|
|
201
|
+
unknown usage immediately after compaction, the reduction stays unknown until the
|
|
202
|
+
first subsequent measured response; that event is marked `first_post_compaction`.
|
|
203
|
+
A queued continuation becomes `continued` only on that post-summary measurement.
|
|
204
|
+
Assessment skips and low confidence remain in `agent-hub-context-assessment`.
|
|
205
|
+
The monitors are local to execution, not a separate polling model or user approval.
|
|
206
|
+
|
|
207
|
+
A single large tool result can jump over a threshold. The runtime observes that
|
|
208
|
+
result, records the overshoot and interrupts before the next ordinary model request.
|
|
209
|
+
It cannot guarantee that every received result fits below 80%. Automatic compaction
|
|
210
|
+
re-arms when measured usage falls below 60%, or after the history grows by 10% of the
|
|
211
|
+
window over the first measurement after a compaction; the next compaction then has at
|
|
212
|
+
least that much new history to summarize. If usage is at/above 80% after a failed
|
|
213
|
+
recovery, or the compacted baseline itself is at/above 80%, it blocks further work
|
|
214
|
+
instead of repeatedly compacting or silently exceeding the ceiling. A compacted baseline
|
|
215
|
+
between 70% and 80% cannot reach the target before that growth, so a small window
|
|
216
|
+
records `ceiling_exceeded` once and keeps working until compaction re-arms. Native
|
|
217
|
+
children apply the same rule without a human prompt. Recovery never replays effects,
|
|
218
|
+
fabricates new user input, or overrides cancellation/permissions.
|
|
219
|
+
|
|
220
|
+
Current acceptance uses the installed Pi 1.3.0 CLI, actual tools, actual Pi summary
|
|
221
|
+
preparation and persisted compaction entries. Provider responses and usage are
|
|
222
|
+
controlled offline fixtures, including delayed System1 advice, so threshold tests
|
|
223
|
+
are reproducible without external inference. This verifies runtime behavior, not
|
|
224
|
+
live-provider summary quality or confidence calibration.
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# System 1 damage guard (D6)
|
|
2
|
+
|
|
3
|
+
D6 is an optional, off-by-default semantic layer over mandatory Damage-Control
|
|
4
|
+
baseline policy. Production wiring exists in the current worktree, with bounded
|
|
5
|
+
local evidence; **D6 is incomplete and unaccepted**. Independent review and final
|
|
6
|
+
testing were deferred, not waived. A1–A8, F12 packaging and F13 final acceptance
|
|
7
|
+
remain open. Reading this guide grants no activation, export or effect authority.
|
|
8
|
+
|
|
9
|
+
## Independent configuration and export scopes
|
|
10
|
+
|
|
11
|
+
The v2 [System 1 configuration](system1-config.md) has an independent
|
|
12
|
+
`consumers.damageGuard` section. Its mode is `off` or `active`; separate boolean
|
|
13
|
+
`remoteScopes.commands`, `remoteScopes.edits` and `remoteScopes.results` consent
|
|
14
|
+
to different payload classes. Missing scopes grant nothing. D6 has no
|
|
15
|
+
`remoteContextApproved` field and inherits no D8/D9/D10 consent.
|
|
16
|
+
|
|
17
|
+
This inert fragment describes the section under `consumers`, not an activation
|
|
18
|
+
or installation procedure:
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{"damageGuard":{"mode":"off","remoteScopes":{"commands":false,"edits":false,"results":false},"include":[]}}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
`include` is an explicit repository-relative export scope, with `git:tracked`
|
|
25
|
+
as a supported selector example, not blanket filesystem approval or active
|
|
26
|
+
consent. Local access, source provenance, secret recognition and payload bounds
|
|
27
|
+
still apply. Unknown provenance, denied sources, secret-bearing or oversized
|
|
28
|
+
payloads are not silently truncated into exportable evidence. Diagnostics use
|
|
29
|
+
allowlisted numeric/enumerated metadata and hashed identities, not commands,
|
|
30
|
+
edit bodies, result text, arbitrary paths or raw provider extras.
|
|
31
|
+
|
|
32
|
+
Missing/off/invalid D6, root-off or unavailable-key configuration means no new
|
|
33
|
+
D6 inference; it does **not** remove durable denial, hold or recovery fences.
|
|
34
|
+
Invalid D6 configuration is isolated from other consumers. Configuration is a
|
|
35
|
+
session snapshot, not hot-reloaded consent.
|
|
36
|
+
|
|
37
|
+
## Policy, ownership and actual coverage
|
|
38
|
+
|
|
39
|
+
`damage-guard/v1` asks two independent choice questions: severe effect and
|
|
40
|
+
evidence sufficiency, each allowing unknown. Only valid **severe AND sufficient**
|
|
41
|
+
yields an exact-action hold or a result warning. Unknown/partial is neither
|
|
42
|
+
proven-safe nor grounds for a speculative hold. There is no numeric confidence
|
|
43
|
+
threshold, arbitrary judgment tool, provider override or automatic retry.
|
|
44
|
+
|
|
45
|
+
The parent Hub owns the shared System 1 service, accepted task/input revision,
|
|
46
|
+
durable decision state and approval coordination. Its Damage-Control pre-call
|
|
47
|
+
path covers baseline-allowed `bash`, `write` and `edit`, including calls admitted
|
|
48
|
+
through baseline path exemptions/approvals. Baseline-blocked calls do not gain
|
|
49
|
+
permission from D6. Hard denies, path exemptions, OS isolation, tool/depth/tree
|
|
50
|
+
caps, admission and budgets remain authoritative; baseline is revalidated after
|
|
51
|
+
an asynchronous wait before effects.
|
|
52
|
+
|
|
53
|
+
Native specialists, research helpers and nested delegates have independent D6
|
|
54
|
+
registration through physical spawn, bounded by their actual effective tools.
|
|
55
|
+
Assignments are fresh per physical attempt (including fallback), revocable and
|
|
56
|
+
independent of D9 consent. Inherited D6 assignments are stripped at spawn;
|
|
57
|
+
children receive scoped transport capabilities, not provider credentials. The
|
|
58
|
+
child's Damage-Control takes its assignment from the spawn environment when it
|
|
59
|
+
loads and removes it there, so Bash subprocesses do not inherit the capability;
|
|
60
|
+
nested delegate registration uses the retained copy, and a malformed assignment
|
|
61
|
+
fails closed. Guard registration, result capture and the human wait are
|
|
62
|
+
process-shared, because Pi loads every extension with its own module instance.
|
|
63
|
+
Research remains read-only: registration permits supported result screening,
|
|
64
|
+
not new write authority. Capability loss is not optional inference failure.
|
|
65
|
+
|
|
66
|
+
Standalone Damage-Control without a trusted assignment retains its baseline;
|
|
67
|
+
it does not discover a hidden provider. Coms peers are **not** covered by native
|
|
68
|
+
D6 registration. These describe implemented scope, not independently accepted
|
|
69
|
+
protection for every launcher or process.
|
|
70
|
+
|
|
71
|
+
Result screening is narrow: complete provenance-checked `read`, structured bash
|
|
72
|
+
output from a simple `cat` form, and exact complete filesystem excerpts.
|
|
73
|
+
Arbitrary shell output is unsupported. Image, multiblock, error, partial,
|
|
74
|
+
unverifiable and other unsupported sources retain originals and honest coverage
|
|
75
|
+
gaps; an absent warning is never evidence of trust.
|
|
76
|
+
|
|
77
|
+
## Bounds and human waits
|
|
78
|
+
|
|
79
|
+
Defaults/maxima are:
|
|
80
|
+
|
|
81
|
+
| Limit field | Bound |
|
|
82
|
+
| --- | --- |
|
|
83
|
+
| `maxPayloadBytes` | 16 KiB |
|
|
84
|
+
| `maxFrameBytes` | 64 KiB IPC frame |
|
|
85
|
+
| `hookTimeoutMs` | One 2 s collection/IPC/inference deadline |
|
|
86
|
+
| `outageBackoffMs` | 5 s technical backoff |
|
|
87
|
+
| `approvalTimeoutMs` | Separate 10 min human wait |
|
|
88
|
+
|
|
89
|
+
The current parser accepts smaller positive safe-integer values under these
|
|
90
|
+
maxima; not every field is equality-pinned. Broker/client also impose fixed
|
|
91
|
+
transport bounds, so these fields are not upward configuration knobs or a
|
|
92
|
+
promise that every transport bound follows a smaller configured value. Human
|
|
93
|
+
wait is separate from the provider deadline. There is no financial quota or
|
|
94
|
+
D9-length timeout.
|
|
95
|
+
|
|
96
|
+
## Durable denial, recovery and dialog-only override
|
|
97
|
+
|
|
98
|
+
A durable deny key binds task, accepted-input revision, operation, full target
|
|
99
|
+
hash and canonical cwd; it excludes call ID, owner and physical attempt so a new
|
|
100
|
+
call ID cannot erase the same denial. One-use execution authority additionally
|
|
101
|
+
binds the exact action, owner and physical attempt. Matching human consent is
|
|
102
|
+
not baseline permission and cannot be replayed.
|
|
103
|
+
|
|
104
|
+
Resume, compaction, off and outage cannot restore pending grants or clear known
|
|
105
|
+
denial/hold/recovery state. Technical unavailability before a new hold is not
|
|
106
|
+
the same as disconnect or cancellation after a hold. Corrupt or inconsistent
|
|
107
|
+
input/decision history may require new accepted input. Different task/revision
|
|
108
|
+
changes semantic identity; it is not a blanket permission grant.
|
|
109
|
+
|
|
110
|
+
`/af-damage-override [actionId]` arms **one new dialog** for a current matching
|
|
111
|
+
blocked action; without an ID it selects the latest eligible blocked action.
|
|
112
|
+
It does not execute, clear denial, grant path access or retry. A subsequent
|
|
113
|
+
explicit matching attempt still requires successful exact-action approval and
|
|
114
|
+
current baseline authority. Failed/cancelled approval grants nothing. This is
|
|
115
|
+
not `/af-allow`, which changes only baseline path exemptions and cannot waive a
|
|
116
|
+
semantic denial or hard command deny. Semantic and path/baseline waits use the
|
|
117
|
+
shared human approval coordinator; cancellation/reset/expiration grant no effect
|
|
118
|
+
authority.
|
|
119
|
+
|
|
120
|
+
## Original evidence versus visible structured output
|
|
121
|
+
|
|
122
|
+
The composition order is **original → D6 → D8**. An emission-local, frozen,
|
|
123
|
+
non-aliased original evidence snapshot is separate from the visible advisory
|
|
124
|
+
view. Failed capture is an explicit gap, never a shallow substitute. D8 consumes
|
|
125
|
+
original validated evidence, not appended D6 advice. The visible original slot
|
|
126
|
+
is not a substitute for independent captured provenance.
|
|
127
|
+
|
|
128
|
+
Original blocks, status/error/exit, details and usage are preserved; visible
|
|
129
|
+
advisory blocks are appended, not promoted to instructions. Structured output
|
|
130
|
+
has this programmatic contract:
|
|
131
|
+
|
|
132
|
+
- Strings retain the original prefix and string type, with advisory text appended.
|
|
133
|
+
- Plain objects retain their fields and add `originalStructuredContent` plus
|
|
134
|
+
`damageGuard: {metadata,text}`. Colliding keys or nonplain values use an
|
|
135
|
+
envelope retaining the prior value under `originalStructuredContent`.
|
|
136
|
+
- D8 adds an independent `fileDiscovery: {metadata,text}`, preserving the D6
|
|
137
|
+
view or enveloping collisions rather than overwriting it.
|
|
138
|
+
- Absent structured output stays absent.
|
|
139
|
+
|
|
140
|
+
Warnings and coverage are advisory, untrusted data. Warning absence and
|
|
141
|
+
`no_additional_finding` never establish source trust: `sourceTrusted: false`.
|
|
142
|
+
Off/failure paths retain explicit gaps on supported composition surfaces, not
|
|
143
|
+
an invented successful assessment.
|
|
144
|
+
|
|
145
|
+
## Bounded evidence and remaining gates
|
|
146
|
+
|
|
147
|
+
Named F10 evidence in session `18aa53af-ac7d-4f4f-9e20-769fc135384a`:
|
|
148
|
+
|
|
149
|
+
- `artifacts/evidence/builder-5ecc73c9-d426-4086-898e-f554570628a2.md` records
|
|
150
|
+
the structured D8 visibility repair and exact commands/state identities.
|
|
151
|
+
- `artifacts/evidence/f10-focused-5ecc73c9.log` and `.exit`: 176/176 passing,
|
|
152
|
+
exit 0, no failures/skips.
|
|
153
|
+
- `artifacts/evidence/f10-companion-5ecc73c9.log` and `.exit`: 252/252 passing,
|
|
154
|
+
exit 0, no failures/skips.
|
|
155
|
+
|
|
156
|
+
Those runs exercised the actual installed SDK/codemode **1.1.0**, Node
|
|
157
|
+
**v25.2.1**, using synthetic provider responses under the no-network preload.
|
|
158
|
+
F11 read this evidence; it did not rerun F10. These are bounded local checks,
|
|
159
|
+
not global Pi compatibility, live accuracy or independent acceptance.
|
|
160
|
+
|
|
161
|
+
**SDK limitation:** non-structured error rejection exposes the original first
|
|
162
|
+
text block, not coverage text. The nested outcome retains coverage/error;
|
|
163
|
+
structured error script values retain advice. Therefore not every failure or
|
|
164
|
+
script surface carries visible coverage. Older version-specific compatibility
|
|
165
|
+
observations elsewhere remain historical, not superseded universal claims.
|
|
166
|
+
|
|
167
|
+
`npm run test:damage-guard` remains absent until F12; it is the required later
|
|
168
|
+
acceptance command, not a documentation check or an executed F11 test. No A1–A8
|
|
169
|
+
assertion is proven by these documents or by module presence. Packaging, final
|
|
170
|
+
regression, independent review, Checkpoint D and final acceptance remain open.
|
|
171
|
+
The original implementation record is a maintainer working-tree plan
|
|
172
|
+
(`docs/plans/`, not published).
|