@chankov/agent-fleet 2.0.12 → 2.0.13
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/flow.ts +5 -3
- package/.pi/agent-fleet/scripts/lib/flow-command.ts +9 -4
- package/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +3 -1
- package/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +34 -0
- package/.pi/agents/model-profiles.yaml +80 -29
- package/.pi/agents/peers.yaml +18 -18
- package/.pi/agents/voices.yaml +2 -2
- package/.pi/harnesses/agent-hub/README.md +55 -4
- package/.pi/harnesses/agent-hub/commands/audit.ts +1 -1
- package/.pi/harnesses/agent-hub/commands/context.ts +1 -1
- package/.pi/harnesses/agent-hub/config/model-profiles.ts +1 -0
- package/.pi/harnesses/agent-hub/delegate.ts +5 -3
- package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +27 -2
- package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +29 -0
- package/.pi/harnesses/agent-hub/dispatch-native-types.ts +6 -0
- package/.pi/harnesses/agent-hub/index.ts +75 -40
- package/.pi/harnesses/agent-hub/package.json +1 -1
- package/.pi/harnesses/agent-hub/policy/profile-activation.ts +2 -2
- package/.pi/harnesses/agent-hub/proactive-config.ts +40 -0
- package/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.pi/harnesses/agent-hub/proactive-local.ts +88 -0
- package/.pi/harnesses/agent-hub/proactive-observer.ts +105 -0
- package/.pi/harnesses/agent-hub/proactive-rules.ts +143 -0
- package/.pi/harnesses/agent-hub/proactive-runtime.ts +316 -0
- package/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.pi/harnesses/agent-hub/proactive-snapshot.ts +243 -0
- package/.pi/harnesses/agent-hub/proactive-types.ts +63 -0
- package/.pi/harnesses/agent-hub/prompts/context.ts +2 -0
- package/.pi/harnesses/agent-hub/prompts/system-prompt.ts +3 -0
- package/.pi/harnesses/agent-hub/research/runtime.ts +3 -1
- package/.pi/harnesses/agent-hub/research/spawn-run.ts +4 -1
- package/.pi/harnesses/agent-hub/return-extract.js +1 -1
- package/.pi/harnesses/agent-hub/session-audit.ts +6 -5
- package/.pi/harnesses/agent-hub/system1-activity.ts +67 -0
- package/.pi/harnesses/agent-hub/system1-report.ts +142 -1
- package/.pi/harnesses/agent-hub/system1-runtime.ts +3 -0
- package/.pi/harnesses/agent-hub/tools/run-flow.ts +16 -2
- package/.pi/harnesses/agent-hub/ui/detail-panel.ts +26 -5
- package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +30 -5
- package/.pi/harnesses/agent-hub/ui/fleet-source.ts +7 -2
- package/.pi/harnesses/agent-hub/ui/grid.ts +12 -7
- package/.pi/harnesses/coms/package.json +1 -1
- package/.pi/harnesses/damage-control-continue/package.json +1 -1
- package/.pi/harnesses/lib/context-budget-child-prompt.ts +41 -2
- package/.pi/harnesses/lib/context-budget-hub-prompt.ts +4 -2
- package/.pi/harnesses/lib/fleet-dashboard-view.ts +14 -3
- package/.pi/harnesses/lib/fleet-detail-view.ts +68 -7
- package/.pi/harnesses/lib/fleet-read-model.ts +131 -0
- package/.pi/harnesses/lib/fleet-strip-view.ts +44 -9
- package/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/README.md +347 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
- package/.versions/2.0.13/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
- package/.versions/2.0.13/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/coms-claude-bridge.ts +411 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/fleet.ts +216 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/flow.ts +157 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +210 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/flow-command.ts +98 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/package-lock.json +35 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/package.json +9 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/team-up.ts +378 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +179 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +34 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
- package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
- package/.versions/2.0.13/.pi/agents/dispatch-policy.yaml +32 -0
- package/.versions/2.0.13/.pi/agents/model-profiles.yaml +134 -0
- package/.versions/2.0.13/.pi/agents/peers.yaml +147 -0
- package/.versions/2.0.13/.pi/agents/teams.yaml +41 -0
- package/.versions/2.0.13/.pi/agents/voices.yaml +13 -0
- package/.versions/2.0.13/.pi/damage-control-rules.yaml +297 -0
- package/.versions/2.0.13/.pi/extensions/btw/README.md +120 -0
- package/.versions/2.0.13/.pi/extensions/btw/index.ts +914 -0
- package/.versions/2.0.13/.pi/extensions/btw/package.json +6 -0
- package/.versions/2.0.13/.pi/extensions/btw/state.js +179 -0
- package/.versions/2.0.13/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
- package/.versions/2.0.13/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
- package/.versions/2.0.13/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
- package/.versions/2.0.13/.pi/extensions/compact-and-continue/README.md +42 -0
- package/.versions/2.0.13/.pi/extensions/compact-and-continue/index.ts +120 -0
- package/.versions/2.0.13/.pi/extensions/compact-and-continue/package.json +6 -0
- package/.versions/2.0.13/.pi/extensions/mcp-bridge/README.md +46 -0
- package/.versions/2.0.13/.pi/extensions/mcp-bridge/index.ts +206 -0
- package/.versions/2.0.13/.pi/extensions/mcp-bridge/package.json +6 -0
- package/.versions/2.0.13/.pi/extensions/package-lock.json +1175 -0
- package/.versions/2.0.13/.pi/extensions/package.json +9 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/README.md +224 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/config.ts +198 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/index.ts +248 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/package.json +6 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/providers.ts +214 -0
- package/.versions/2.0.13/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/README.md +1360 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/acceptance.ts +199 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/access-approval.ts +135 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/artifacts.js +146 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/assist-profile.ts +16 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/backend-policy.js +174 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/budget-recovery.ts +214 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/context.ts +45 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/models.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/recover.ts +52 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/config/agents.ts +178 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/config/model-profiles.ts +236 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/config/overrides.ts +160 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context/budgets.ts +204 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/context-window.js +108 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/debate-command.ts +176 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/delegate.ts +467 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/deterministic-fs.ts +127 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-coms.ts +252 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-complete.ts +169 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +248 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +231 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-types.ts +257 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native.ts +226 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/docs-lane.js +122 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/external-blocker.js +85 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/filesystem-tool.ts +73 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/fixtures/registration-surface.json +61 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/footer.ts +30 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/helpers.ts +270 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/hub-state-audit.js +65 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/index.ts +2336 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/input/completions.ts +82 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +125 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/no-progress.ts +359 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/package.json +7 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/models.ts +153 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/work-mode.ts +126 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/poll-command.ts +176 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/presentation.ts +48 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-config.ts +40 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-local.ts +88 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-observer.ts +105 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-rules.ts +143 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-runtime.ts +316 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-snapshot.ts +243 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-types.ts +63 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/process-obligations.ts +57 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/context.ts +53 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/fragments.ts +118 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/system-prompt.ts +115 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/reconcile.ts +26 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/recover-policy.ts +27 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/recover-state.ts +104 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/recovery-contract.ts +80 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/research/controls.ts +74 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/research/runtime.ts +195 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/research/spawn-run.ts +174 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/return-contract.js +327 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/return-extract.js +77 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/review-findings.js +104 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/run-budget.js +542 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/run-namespace.js +93 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/runtime-test-check.ts +54 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/scope-gate.js +123 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/session-audit.ts +227 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/session-health.js +110 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/session-start.ts +42 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/spawn.ts +526 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/system1-activity.ts +510 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/system1-report.ts +225 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/system1-runtime.ts +276 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/timeline.ts +72 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +68 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/action-executors.ts +185 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/context.ts +142 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +82 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +498 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/run-flow.ts +136 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/spawn-research.ts +65 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/tsconfig.json +22 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/types.ts +66 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/context-budget.ts +87 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +124 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-source.ts +175 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/history.ts +234 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/version.ts +42 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/work-mode.ts +173 -0
- package/.versions/2.0.13/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
- package/.versions/2.0.13/.pi/harnesses/ask-user-remote/README.md +59 -0
- package/.versions/2.0.13/.pi/harnesses/ask-user-remote/index.ts +558 -0
- package/.versions/2.0.13/.pi/harnesses/ask-user-remote/questions.ts +161 -0
- package/.versions/2.0.13/.pi/harnesses/ask-user-remote/race-core.js +124 -0
- package/.versions/2.0.13/.pi/harnesses/ask-user-remote/runtime-ask.ts +68 -0
- package/.versions/2.0.13/.pi/harnesses/coms/README.md +100 -0
- package/.versions/2.0.13/.pi/harnesses/coms/index.ts +282 -0
- package/.versions/2.0.13/.pi/harnesses/coms/package.json +7 -0
- package/.versions/2.0.13/.pi/harnesses/coms/version.ts +42 -0
- package/.versions/2.0.13/.pi/harnesses/damage-control-continue/README.md +135 -0
- package/.versions/2.0.13/.pi/harnesses/damage-control-continue/index.ts +550 -0
- package/.versions/2.0.13/.pi/harnesses/damage-control-continue/package.json +7 -0
- package/.versions/2.0.13/.pi/harnesses/damage-control-continue/version.ts +42 -0
- package/.versions/2.0.13/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
- package/.versions/2.0.13/.pi/harnesses/lib/coms-core-io.ts +385 -0
- package/.versions/2.0.13/.pi/harnesses/lib/coms-core.ts +577 -0
- package/.versions/2.0.13/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
- package/.versions/2.0.13/.pi/harnesses/lib/context-budget-child-prompt.ts +219 -0
- package/.versions/2.0.13/.pi/harnesses/lib/context-budget-hub-prompt.ts +116 -0
- package/.versions/2.0.13/.pi/harnesses/lib/context-budget-view.ts +107 -0
- package/.versions/2.0.13/.pi/harnesses/lib/context-budget.ts +114 -0
- package/.versions/2.0.13/.pi/harnesses/lib/damage-control-shared.ts +197 -0
- package/.versions/2.0.13/.pi/harnesses/lib/deterministic-handle-path.ts +23 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-dashboard-view.ts +147 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-overlay.ts +26 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-panel.ts +34 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-read-model.ts +536 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-selection.ts +24 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-strip-controller.ts +74 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
- package/.versions/2.0.13/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
- package/.versions/2.0.13/.pi/harnesses/lib/herdr-client.ts +472 -0
- package/.versions/2.0.13/.pi/harnesses/lib/herdr-presence.ts +399 -0
- package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
- package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
- package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
- package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
- package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
- package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
- package/.versions/2.0.13/.pi/harnesses/lib/spawned-peers.js +191 -0
- package/.versions/2.0.13/.pi/harnesses/lib/system1/config.js +61 -0
- package/.versions/2.0.13/.pi/harnesses/lib/system1/contracts.ts +152 -0
- package/.versions/2.0.13/.pi/harnesses/lib/system1/demo.ts +106 -0
- package/.versions/2.0.13/.pi/harnesses/lib/system1/jev.ts +503 -0
- package/.versions/2.0.13/.pi/harnesses/lib/system1/service.ts +245 -0
- package/.versions/2.0.13/.pi/harnesses/lib/update-check.ts +222 -0
- package/.versions/2.0.13/.pi/harnesses/package-lock.json +2039 -0
- package/.versions/2.0.13/.pi/harnesses/package.json +10 -0
- package/.versions/2.0.13/.pi/prompts/af-build.md +24 -0
- package/.versions/2.0.13/.pi/prompts/af-code-simplify.md +22 -0
- package/.versions/2.0.13/.pi/prompts/af-constraints.md +31 -0
- package/.versions/2.0.13/.pi/prompts/af-plan.md +17 -0
- package/.versions/2.0.13/.pi/prompts/af-review.md +16 -0
- package/.versions/2.0.13/.pi/prompts/af-set-hermes-telegram.md +15 -0
- package/.versions/2.0.13/.pi/prompts/af-set-hermes-watchdog.md +6 -0
- package/.versions/2.0.13/.pi/prompts/af-setup-rules.md +20 -0
- package/.versions/2.0.13/.pi/prompts/af-ship.md +17 -0
- package/.versions/2.0.13/.pi/prompts/af-spec.md +15 -0
- package/.versions/2.0.13/.pi/prompts/af-test.md +19 -0
- package/.versions/2.0.13/.pi/skills/bowser/SKILL.md +145 -0
- package/.versions/2.0.13/.version +1 -0
- package/.versions/2.0.13/agents/architect.md +24 -0
- package/.versions/2.0.13/agents/bowser.md +28 -0
- package/.versions/2.0.13/agents/builder.md +55 -0
- package/.versions/2.0.13/agents/code-reviewer.md +209 -0
- package/.versions/2.0.13/agents/deep-researcher.md +32 -0
- package/.versions/2.0.13/agents/documenter.md +22 -0
- package/.versions/2.0.13/agents/orchestrator.md +22 -0
- package/.versions/2.0.13/agents/plan-reviewer.md +83 -0
- package/.versions/2.0.13/agents/planner.md +105 -0
- package/.versions/2.0.13/agents/releaser.md +24 -0
- package/.versions/2.0.13/agents/researcher.md +30 -0
- package/.versions/2.0.13/agents/security-auditor.md +167 -0
- package/.versions/2.0.13/agents/test-engineer.md +153 -0
- package/.versions/2.0.13/agents/web-debugger.md +44 -0
- package/.versions/2.0.13/agents/web-performance-auditor.md +194 -0
- package/.versions/2.0.13/bin/catalog/harness-runtime-closure.json +73 -0
- package/.versions/2.0.13/codex/fleet-session-client/SKILL.md +34 -0
- package/.versions/2.0.13/codex/fleet-session-client.zip +0 -0
- package/.versions/2.0.13/docs/ARCHITECTURE.md +753 -0
- package/.versions/2.0.13/docs/agent-fleet-setup.md +900 -0
- package/.versions/2.0.13/docs/claude-code-coms-bridge.md +134 -0
- package/.versions/2.0.13/docs/codex-session-bridge.md +219 -0
- package/.versions/2.0.13/docs/coms-hermes-bridge.md +188 -0
- package/.versions/2.0.13/docs/getting-started.md +126 -0
- package/.versions/2.0.13/docs/npm-install.md +468 -0
- package/.versions/2.0.13/docs/pi-extensions.md +454 -0
- package/.versions/2.0.13/docs/pi-setup.md +92 -0
- package/.versions/2.0.13/docs/skill-anatomy.md +150 -0
- package/.versions/2.0.13/install-manifest.json +3175 -0
- package/.versions/2.0.13/justfile +247 -0
- package/.versions/2.0.13/manifest-meta.json +1057 -0
- package/.versions/2.0.13/references/accessibility-checklist.md +160 -0
- package/.versions/2.0.13/references/communication-contract.md +26 -0
- package/.versions/2.0.13/references/definition-of-done.md +67 -0
- package/.versions/2.0.13/references/fleet-coordination-patterns.md +171 -0
- package/.versions/2.0.13/references/observability-checklist.md +92 -0
- package/.versions/2.0.13/references/orchestration-patterns.md +370 -0
- package/.versions/2.0.13/references/performance-checklist.md +236 -0
- package/.versions/2.0.13/references/prompting-patterns.md +380 -0
- package/.versions/2.0.13/references/security-checklist.md +245 -0
- package/.versions/2.0.13/references/testing-patterns.md +235 -0
- package/.versions/2.0.13/references/workflow-authoring.md +304 -0
- package/.versions/2.0.13/skills/_internal/grilling.md +59 -0
- package/.versions/2.0.13/skills/browser-testing-with-devtools/SKILL.md +351 -0
- package/.versions/2.0.13/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.13/skills/compound-learning/SKILL.md +137 -0
- package/.versions/2.0.13/skills/constraint-driven-development/SKILL.md +338 -0
- package/.versions/2.0.13/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.13/skills/context-engineering/SKILL.md +341 -0
- package/.versions/2.0.13/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.13/skills/designing-agents/SKILL.md +394 -0
- package/.versions/2.0.13/skills/designing-agents/pi-harness-authoring.md +222 -0
- package/.versions/2.0.13/skills/drafting-workflows/SKILL.md +143 -0
- package/.versions/2.0.13/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
- package/.versions/2.0.13/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.13/skills/git-workflow-and-versioning/SKILL.md +316 -0
- package/.versions/2.0.13/skills/idea-refine/SKILL.md +182 -0
- package/.versions/2.0.13/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.13/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.13/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.13/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.13/skills/incremental-implementation/SKILL.md +302 -0
- package/.versions/2.0.13/skills/interview-me/SKILL.md +226 -0
- package/.versions/2.0.13/skills/orchestration-verification/SKILL.md +182 -0
- package/.versions/2.0.13/skills/peer-coms/SKILL.md +90 -0
- package/.versions/2.0.13/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.13/skills/planning-and-task-breakdown/SKILL.md +289 -0
- package/.versions/2.0.13/skills/repository-ai-setup/SKILL.md +117 -0
- package/.versions/2.0.13/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/.versions/2.0.13/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/.versions/2.0.13/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/.versions/2.0.13/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/.versions/2.0.13/skills/repository-ai-setup/references/verify-setup.md +20 -0
- package/.versions/2.0.13/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.13/skills/spec-driven-development/SKILL.md +295 -0
- package/.versions/2.0.13/skills/using-agent-skills/SKILL.md +198 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/LICENSE +21 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/README.md +430 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
- package/.versions/2.0.13/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
- package/CHANGELOG.md +10 -0
- package/README.md +3 -3
- package/agents/architect.md +2 -3
- package/agents/bowser.md +2 -2
- package/agents/builder.md +2 -3
- package/agents/code-reviewer.md +7 -8
- package/agents/deep-researcher.md +3 -4
- package/agents/documenter.md +2 -3
- package/agents/orchestrator.md +2 -3
- package/agents/plan-reviewer.md +5 -6
- package/agents/planner.md +5 -6
- package/agents/releaser.md +2 -3
- package/agents/researcher.md +4 -5
- package/agents/security-auditor.md +6 -7
- package/agents/test-engineer.md +3 -4
- package/agents/web-debugger.md +3 -3
- package/agents/web-performance-auditor.md +3 -3
- package/bin/catalog/harness-runtime-closure.json +30 -18
- package/bin/cli.js +47 -1
- package/bin/lib/apply.js +16 -0
- package/bin/lib/overrides.js +37 -1
- package/bin/lib/project-provenance.js +119 -0
- package/bin/lib/scan.js +1 -1
- package/bin/lib/transaction.js +1 -1
- package/bin/lib/validate-overrides.js +37 -3
- package/catalog/agent-prompts/README.md +12 -0
- package/catalog/agent-prompts/architecture-decision-author.md +24 -0
- package/catalog/agent-prompts/requirements-author.md +21 -0
- package/catalog/commands/README.md +13 -0
- package/catalog/commands/assess-change-impact.md +19 -0
- package/catalog/commands/audit-documentation.md +19 -0
- package/catalog/rules/README.md +33 -0
- package/catalog/rules/ai/policy-authoring.md +22 -0
- package/catalog/rules/architecture/behavior-preserving-refactoring.md +25 -0
- package/catalog/rules/architecture/public-contracts.md +22 -0
- package/catalog/rules/architecture/repository-boundaries.md +21 -0
- package/catalog/rules/architecture/structural-change-registration.md +25 -0
- package/catalog/rules/backend/notification-date-time.md +25 -0
- package/catalog/rules/bundles/README.md +16 -0
- package/catalog/rules/data/enum-semantics.md +25 -0
- package/catalog/rules/data/mixed-ownership-data.md +22 -0
- package/catalog/rules/data/reporting-queries.md +34 -0
- package/catalog/rules/docs/docs-maintenance.md +25 -0
- package/catalog/rules/frameworks/vue.md +25 -0
- package/catalog/rules/frontend/async-ui-states.md +26 -0
- package/catalog/rules/frontend/established-ui-primitives.md +25 -0
- package/catalog/rules/frontend/form-validation.md +26 -0
- package/catalog/rules/frontend/navigation-contracts.md +25 -0
- package/catalog/rules/languages/csharp.md +25 -0
- package/catalog/rules/languages/javascript.md +25 -0
- package/catalog/rules/languages/sql.md +24 -0
- package/catalog/rules/security/authorization-before-effects.md +26 -0
- package/catalog/rules/security/diagnostic-data-safety.md +22 -0
- package/catalog/rules/security/response-data-minimization.md +25 -0
- package/catalog/rules/security/trusted-tenant-scope.md +26 -0
- package/catalog/rules/testing/shared-package-consumers.md +25 -0
- package/catalog/rules/testing/verification-conventions.md +24 -0
- package/docs/ARCHITECTURE.md +50 -2
- package/docs/agent-fleet-setup.md +246 -28
- package/docs/codex-session-bridge.md +1 -1
- package/docs/pi-extensions.md +10 -5
- package/docs/workflows.md +4 -3
- package/install-manifest.json +125 -3
- package/manifest-meta.json +77 -15
- package/package.json +5 -3
- package/skills/repository-ai-setup/SKILL.md +117 -0
- package/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
- package/skills/repository-ai-setup/references/apply-contract.md +74 -0
- package/skills/repository-ai-setup/references/provenance-template.md +16 -0
- package/skills/repository-ai-setup/references/setup-flow.md +108 -0
- package/skills/repository-ai-setup/references/verify-setup.md +20 -0
package/install-manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
|
-
"packageVersion": "2.0.
|
|
3
|
+
"packageVersion": "2.0.13",
|
|
4
4
|
"groups": [
|
|
5
5
|
{
|
|
6
6
|
"id": "skills",
|
|
@@ -458,6 +458,31 @@
|
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
},
|
|
461
|
+
{
|
|
462
|
+
"id": "command:setup-rules",
|
|
463
|
+
"kind": "command",
|
|
464
|
+
"group": "commands",
|
|
465
|
+
"subcategory": null,
|
|
466
|
+
"title": "setup-rules",
|
|
467
|
+
"summary": "Set up or extend repository AI rules from the Fleet catalogue — discovery, proposal, grilling, diff, apply, verify.",
|
|
468
|
+
"recommended": false,
|
|
469
|
+
"stability": "stable",
|
|
470
|
+
"consent": "file",
|
|
471
|
+
"platform": "any",
|
|
472
|
+
"agents": {
|
|
473
|
+
"pi": {
|
|
474
|
+
"source": [
|
|
475
|
+
".pi/prompts/af-setup-rules.md"
|
|
476
|
+
],
|
|
477
|
+
"sourceMode": "first",
|
|
478
|
+
"target": ".pi/prompts/af-setup-rules.md",
|
|
479
|
+
"strategy": "copy-file",
|
|
480
|
+
"legacyTargets": [
|
|
481
|
+
".pi/prompts/setup-rules.md"
|
|
482
|
+
]
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
},
|
|
461
486
|
{
|
|
462
487
|
"id": "command:ship",
|
|
463
488
|
"kind": "command",
|
|
@@ -680,7 +705,19 @@
|
|
|
680
705
|
".pi/agent-fleet/scripts/workflows/wf-document.ts",
|
|
681
706
|
".pi/agent-fleet/scripts/workflows/wf-poll.ts",
|
|
682
707
|
".pi/agent-fleet/scripts/workflows/wf-quality.ts",
|
|
683
|
-
".pi/agent-fleet/scripts/workflows/wf-scout.ts"
|
|
708
|
+
".pi/agent-fleet/scripts/workflows/wf-scout.ts",
|
|
709
|
+
".pi/harnesses/agent-hub/proactive-config.ts",
|
|
710
|
+
".pi/harnesses/agent-hub/proactive-evaluate.ts",
|
|
711
|
+
".pi/harnesses/agent-hub/proactive-feedback.ts",
|
|
712
|
+
".pi/harnesses/agent-hub/proactive-findings.ts",
|
|
713
|
+
".pi/harnesses/agent-hub/proactive-local.ts",
|
|
714
|
+
".pi/harnesses/agent-hub/proactive-observer.ts",
|
|
715
|
+
".pi/harnesses/agent-hub/proactive-rules.ts",
|
|
716
|
+
".pi/harnesses/agent-hub/proactive-runtime.ts",
|
|
717
|
+
".pi/harnesses/agent-hub/proactive-selection.ts",
|
|
718
|
+
".pi/harnesses/agent-hub/proactive-snapshot-worker.mjs",
|
|
719
|
+
".pi/harnesses/agent-hub/proactive-snapshot.ts",
|
|
720
|
+
".pi/harnesses/agent-hub/proactive-types.ts"
|
|
684
721
|
],
|
|
685
722
|
"sourceMode": "all",
|
|
686
723
|
"target": null,
|
|
@@ -880,6 +917,7 @@
|
|
|
880
917
|
}
|
|
881
918
|
},
|
|
882
919
|
"parents": [
|
|
920
|
+
"companion:workflow-runtime",
|
|
883
921
|
"pi-extension:btw",
|
|
884
922
|
"pi-harness:agent-hub",
|
|
885
923
|
"pi-harness:ask-user-remote",
|
|
@@ -1072,7 +1110,68 @@
|
|
|
1072
1110
|
".pi/agent-fleet/scripts/package-lock.json",
|
|
1073
1111
|
".pi/agent-fleet/scripts/lib/flow-command.ts",
|
|
1074
1112
|
".pi/agent-fleet/scripts/lib/flow-maintenance.ts",
|
|
1075
|
-
".pi/agent-fleet/scripts/workflows"
|
|
1113
|
+
".pi/agent-fleet/scripts/workflows",
|
|
1114
|
+
".pi/harnesses/agent-hub/return-contract.js",
|
|
1115
|
+
".pi/harnesses/agent-hub/run-namespace.js",
|
|
1116
|
+
".pi/harnesses/agent-hub/config/agents.ts",
|
|
1117
|
+
".pi/harnesses/agent-hub/config/overrides.ts",
|
|
1118
|
+
".pi/harnesses/agent-hub/backend-policy.js",
|
|
1119
|
+
".pi/harnesses/agent-hub/execution-evidence.ts",
|
|
1120
|
+
".pi/harnesses/agent-hub/context-window.js",
|
|
1121
|
+
".pi/harnesses/agent-hub/spawn.ts",
|
|
1122
|
+
".pi/harnesses/agent-hub/runtime-test-check.ts",
|
|
1123
|
+
".pi/harnesses/agent-hub/tool-protocol.ts",
|
|
1124
|
+
".pi/harnesses/agent-hub/policy/profile-runtime.ts",
|
|
1125
|
+
".pi/harnesses/agent-hub/config/model-profiles.ts",
|
|
1126
|
+
".pi/harnesses/agent-hub/scope-gate.js",
|
|
1127
|
+
".pi/harnesses/agent-hub/write-isolation.ts",
|
|
1128
|
+
".pi/harnesses/agent-hub/deterministic-fs.ts",
|
|
1129
|
+
".pi/harnesses/agent-hub/helpers.ts",
|
|
1130
|
+
".pi/harnesses/agent-hub/external-blocker.js",
|
|
1131
|
+
".pi/harnesses/damage-control-continue",
|
|
1132
|
+
".pi/harnesses/agent-hub/types.ts",
|
|
1133
|
+
".pi/harnesses/agent-hub/dispatch-core.ts",
|
|
1134
|
+
".pi/harnesses/agent-hub/dispatch-coms.ts",
|
|
1135
|
+
".pi/harnesses/agent-hub/drift-runtime.ts",
|
|
1136
|
+
".pi/harnesses/agent-hub/acceptance.ts",
|
|
1137
|
+
".pi/harnesses/agent-hub/artifacts.js",
|
|
1138
|
+
".pi/harnesses/agent-hub/tools/context.ts",
|
|
1139
|
+
".pi/harnesses/agent-hub/drift-watchdog.js",
|
|
1140
|
+
".pi/harnesses/agent-hub/return-extract.js",
|
|
1141
|
+
".pi/harnesses/agent-hub/dispatch-native.ts",
|
|
1142
|
+
".pi/harnesses/agent-hub/assist-profile.ts",
|
|
1143
|
+
".pi/harnesses/agent-hub/monitor-control.ts",
|
|
1144
|
+
".pi/harnesses/agent-hub/dispatch-native-prepare.ts",
|
|
1145
|
+
".pi/harnesses/agent-hub/bounded-output.ts",
|
|
1146
|
+
".pi/harnesses/agent-hub/filesystem-tool.ts",
|
|
1147
|
+
".pi/harnesses/agent-hub/run-budget.js",
|
|
1148
|
+
".pi/harnesses/agent-hub/session-health.js",
|
|
1149
|
+
".pi/harnesses/agent-hub/safety-routing.ts",
|
|
1150
|
+
".pi/harnesses/agent-hub/dispatch-native-types.ts",
|
|
1151
|
+
".pi/harnesses/agent-hub/ui/history-store.ts",
|
|
1152
|
+
".pi/harnesses/agent-hub/ui/zoom.ts",
|
|
1153
|
+
".pi/harnesses/agent-hub/dispatch-observability.ts",
|
|
1154
|
+
".pi/harnesses/agent-hub/ui/activity-dots.ts",
|
|
1155
|
+
".pi/harnesses/agent-hub/task-resume-contract.ts",
|
|
1156
|
+
".pi/harnesses/agent-hub/system1-runtime.ts",
|
|
1157
|
+
".pi/harnesses/agent-hub/drift-system1-policy.ts",
|
|
1158
|
+
".pi/harnesses/agent-hub/drift-system1.ts",
|
|
1159
|
+
".pi/harnesses/agent-hub/system1-activity.ts",
|
|
1160
|
+
".pi/harnesses/agent-hub/drift-judge.ts",
|
|
1161
|
+
".pi/harnesses/agent-hub/dispatch-native-spawn.ts",
|
|
1162
|
+
".pi/harnesses/agent-hub/timeline.ts",
|
|
1163
|
+
".pi/harnesses/agent-hub/dispatch-native-complete.ts",
|
|
1164
|
+
".pi/harnesses/agent-hub/research/runtime.ts",
|
|
1165
|
+
".pi/harnesses/agent-hub/context/hub-state.ts",
|
|
1166
|
+
".pi/harnesses/agent-hub/context/budgets.ts",
|
|
1167
|
+
".pi/harnesses/agent-hub/hub-state-audit.js",
|
|
1168
|
+
".pi/harnesses/agent-hub/budget-continuation.ts",
|
|
1169
|
+
".pi/harnesses/agent-hub/budget-recovery.ts",
|
|
1170
|
+
".pi/harnesses/agent-hub/context/assertions-artifacts.ts",
|
|
1171
|
+
".pi/harnesses/agent-hub/provider-semaphore.js",
|
|
1172
|
+
".pi/harnesses/agent-hub/research/spawn-run.ts",
|
|
1173
|
+
".pi/harnesses/agent-hub/research-watchdog.ts",
|
|
1174
|
+
".pi/agent-fleet/scripts/lib/persona-dirs.ts"
|
|
1076
1175
|
],
|
|
1077
1176
|
"sourceMode": "all",
|
|
1078
1177
|
"target": null,
|
|
@@ -1081,6 +1180,7 @@
|
|
|
1081
1180
|
}
|
|
1082
1181
|
},
|
|
1083
1182
|
"companions": [
|
|
1183
|
+
"companion:pi-harness-lib",
|
|
1084
1184
|
"companion:workflow-deps",
|
|
1085
1185
|
"companion:workflow-guide"
|
|
1086
1186
|
],
|
|
@@ -2896,6 +2996,28 @@
|
|
|
2896
2996
|
"reference:definition-of-done"
|
|
2897
2997
|
]
|
|
2898
2998
|
},
|
|
2999
|
+
{
|
|
3000
|
+
"id": "skill:repository-ai-setup",
|
|
3001
|
+
"kind": "skill",
|
|
3002
|
+
"group": "skills",
|
|
3003
|
+
"subcategory": null,
|
|
3004
|
+
"title": "repository-ai-setup",
|
|
3005
|
+
"summary": "Sets up repository AI rules from the packaged Fleet catalogue — discover target evidence, propose semantic adaptation…",
|
|
3006
|
+
"recommended": false,
|
|
3007
|
+
"stability": "stable",
|
|
3008
|
+
"consent": "file",
|
|
3009
|
+
"platform": "any",
|
|
3010
|
+
"agents": {
|
|
3011
|
+
"pi": {
|
|
3012
|
+
"source": [
|
|
3013
|
+
"skills/repository-ai-setup"
|
|
3014
|
+
],
|
|
3015
|
+
"sourceMode": "first",
|
|
3016
|
+
"target": ".pi/skills/repository-ai-setup",
|
|
3017
|
+
"strategy": "copy-tree"
|
|
3018
|
+
}
|
|
3019
|
+
}
|
|
3020
|
+
},
|
|
2899
3021
|
{
|
|
2900
3022
|
"id": "skill:security-and-hardening",
|
|
2901
3023
|
"kind": "skill",
|
package/manifest-meta.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
|
-
"_comment": "Curated metadata for install-manifest.json. Everything mechanical (which artifacts exist, which agent has a source) is derived from the tree by bin/build-manifest.js
|
|
3
|
+
"_comment": "Curated metadata for install-manifest.json. Everything mechanical (which artifacts exist, which agent has a source) is derived from the tree by bin/build-manifest.js — only judgement lives here: grouping, recommendations, consent class, companion wiring, and profiles. Run `node bin/build-manifest.js` after editing.",
|
|
4
4
|
"groups": [
|
|
5
5
|
{
|
|
6
6
|
"id": "skills",
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
"reference:communication-contract"
|
|
290
290
|
]
|
|
291
291
|
},
|
|
292
|
-
"_references_comment": "A reference is the long-form half of a skill that cites it by path
|
|
292
|
+
"_references_comment": "A reference is the long-form half of a skill that cites it by path — never a standalone choice. Declaring it here as a companion means selecting the skill brings its checklists, and uninstall refuses to strand a skill without them. Keep this in step with the `references/…` citations in the SKILL.md bodies (both skills/ and the vendored copies under vendor/agent-skills-upstream/).",
|
|
293
293
|
"skill:using-agent-skills": {
|
|
294
294
|
"companions": [
|
|
295
295
|
"reference:definition-of-done"
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
"reference:performance-checklist"
|
|
360
360
|
]
|
|
361
361
|
},
|
|
362
|
-
"_coms_bridge_comment": "Claude Code is not an install target
|
|
362
|
+
"_coms_bridge_comment": "Claude Code is not an install target — it joins the fleet only as a coms peer, driven by .pi/agent-fleet/scripts/coms-claude-bridge.ts. Both halves of that bridge live in one group: the skill the bridged pane reads, and the Stop hook it writes its turn output through. See docs/claude-code-coms-bridge.md.",
|
|
363
363
|
"skill:peer-coms": {
|
|
364
364
|
"group": "coms-bridge",
|
|
365
365
|
"companions": [
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
"external:playwright-cli"
|
|
404
404
|
]
|
|
405
405
|
},
|
|
406
|
-
"_fleet_core_comment": "Fleet Core is the set the justfile's `fleet_core_extensions` loads into every pi session and every Herdr peer: two harnesses (damage-control-continue, ask-user-remote) plus compact-and-continue and btw. The package update check is not a standalone extension; damage-control-continue runs `.pi/harnesses/lib/update-check.ts` once per session. The launcher set is encoded twice on purpose
|
|
406
|
+
"_fleet_core_comment": "Fleet Core is the set the justfile's `fleet_core_extensions` loads into every pi session and every Herdr peer: two harnesses (damage-control-continue, ask-user-remote) plus compact-and-continue and btw. The package update check is not a standalone extension; damage-control-continue runs `.pi/harnesses/lib/update-check.ts` once per session. The launcher set is encoded twice on purpose — `requires`, so installing any harness pulls the whole set, and `pinnedBy`, so uninstall refuses to break a harness by taking a member out from under it. Keep it in step with the `fleet_core_extensions` line in the justfile; bin/test/damage-control-unification.test.js asserts the two agree.",
|
|
407
407
|
"pi-extension:mcp-bridge": {
|
|
408
408
|
"companions": [
|
|
409
409
|
"companion:pi-extension-manifests",
|
|
@@ -517,20 +517,20 @@
|
|
|
517
517
|
"pi-harness:ask-user-remote"
|
|
518
518
|
]
|
|
519
519
|
},
|
|
520
|
-
"_operator_comment": "operatorSteps are printed verbatim by `install --profile hermes-plugins|codex-bridge`. These artifacts install into a Hermes profile or user systemd
|
|
520
|
+
"_operator_comment": "operatorSteps are printed verbatim by `install --profile hermes-plugins|codex-bridge`. These artifacts install into a Hermes profile or user systemd — outside the workspace the engine is allowed to write to — so the engine names the commands and performs none of them. <profile> is the operator's Hermes profile.",
|
|
521
521
|
"hermes-plugin:agent-fleet-herdr": {
|
|
522
522
|
"operatorSteps": [
|
|
523
|
-
"clone agent-fleet
|
|
523
|
+
"clone agent-fleet — .pi/agent-fleet/scripts/install-hermes-plugin.sh is repo-only, not shipped on npm",
|
|
524
524
|
".pi/agent-fleet/scripts/install-hermes-plugin.sh agent-fleet-herdr --profile <profile>",
|
|
525
|
-
"restart the Hermes Desktop app
|
|
525
|
+
"restart the Hermes Desktop app — plugin routers mount only when its gateway boots",
|
|
526
526
|
"hermes --profile <profile> gateway restart # only if the web dashboard/TUI needs the routes"
|
|
527
527
|
]
|
|
528
528
|
},
|
|
529
529
|
"hermes-plugin:agent-fleet-monitor": {
|
|
530
530
|
"operatorSteps": [
|
|
531
|
-
"clone agent-fleet
|
|
531
|
+
"clone agent-fleet — .pi/agent-fleet/scripts/install-hermes-plugin.sh is repo-only, not shipped on npm",
|
|
532
532
|
".pi/agent-fleet/scripts/install-hermes-plugin.sh agent-fleet-monitor --profile <profile>",
|
|
533
|
-
"restart the Hermes Desktop app
|
|
533
|
+
"restart the Hermes Desktop app — plugin routers mount only when its gateway boots",
|
|
534
534
|
"hermes --profile <profile> gateway restart # only if the web dashboard/TUI needs the routes"
|
|
535
535
|
]
|
|
536
536
|
},
|
|
@@ -569,7 +569,8 @@
|
|
|
569
569
|
"companion:workflow-runtime": {
|
|
570
570
|
"companions": [
|
|
571
571
|
"companion:workflow-guide",
|
|
572
|
-
"companion:workflow-deps"
|
|
572
|
+
"companion:workflow-deps",
|
|
573
|
+
"companion:pi-harness-lib"
|
|
573
574
|
]
|
|
574
575
|
}
|
|
575
576
|
},
|
|
@@ -703,7 +704,7 @@
|
|
|
703
704
|
"strategy": "copy-tree"
|
|
704
705
|
}
|
|
705
706
|
},
|
|
706
|
-
"_comment": "Declared file by file, not as the .pi/agents tree. The installed personas live in .pi/agents/personas/, and a whole-directory binding would own that subtree too
|
|
707
|
+
"_comment": "Declared file by file, not as the .pi/agents tree. The installed personas live in .pi/agents/personas/, and a whole-directory binding would own that subtree too — under --method symlink it would make .pi/agents itself a link into the package, so writing a persona would escape the workspace and apply() (correctly) refuses. bin/test/manifest.test.js asserts every .pi/agents/*.yaml in the package is listed here."
|
|
707
708
|
},
|
|
708
709
|
"companion:damage-control-rules": {
|
|
709
710
|
"title": ".pi/damage-control-rules.yaml",
|
|
@@ -720,7 +721,7 @@
|
|
|
720
721
|
},
|
|
721
722
|
"companion:stt-config": {
|
|
722
723
|
"title": ".ai/stt.json",
|
|
723
|
-
"summary": "Non-secret voice provider config; keys stay in .env
|
|
724
|
+
"summary": "Non-secret voice provider config; keys stay in .env — asked for, never generated",
|
|
724
725
|
"agents": {
|
|
725
726
|
"pi": {
|
|
726
727
|
"source": [],
|
|
@@ -730,9 +731,9 @@
|
|
|
730
731
|
},
|
|
731
732
|
"consent": "operator",
|
|
732
733
|
"operatorSteps": [
|
|
733
|
-
"pick a provider and write .ai/stt.json
|
|
734
|
+
"pick a provider and write .ai/stt.json — see docs/pi-extensions.md",
|
|
734
735
|
"put the API key in a gitignored .env under the env-var name stt.json references; never in stt.json itself",
|
|
735
|
-
"the extension binds Alt+S only once a provider resolves
|
|
736
|
+
"the extension binds Alt+S only once a provider resolves — until then it is a no-op"
|
|
736
737
|
]
|
|
737
738
|
},
|
|
738
739
|
"companion:system1-config": {
|
|
@@ -776,7 +777,68 @@
|
|
|
776
777
|
".pi/agent-fleet/scripts/package-lock.json",
|
|
777
778
|
".pi/agent-fleet/scripts/lib/flow-command.ts",
|
|
778
779
|
".pi/agent-fleet/scripts/lib/flow-maintenance.ts",
|
|
779
|
-
".pi/agent-fleet/scripts/workflows"
|
|
780
|
+
".pi/agent-fleet/scripts/workflows",
|
|
781
|
+
".pi/harnesses/agent-hub/return-contract.js",
|
|
782
|
+
".pi/harnesses/agent-hub/run-namespace.js",
|
|
783
|
+
".pi/harnesses/agent-hub/config/agents.ts",
|
|
784
|
+
".pi/harnesses/agent-hub/config/overrides.ts",
|
|
785
|
+
".pi/harnesses/agent-hub/backend-policy.js",
|
|
786
|
+
".pi/harnesses/agent-hub/execution-evidence.ts",
|
|
787
|
+
".pi/harnesses/agent-hub/context-window.js",
|
|
788
|
+
".pi/harnesses/agent-hub/spawn.ts",
|
|
789
|
+
".pi/harnesses/agent-hub/runtime-test-check.ts",
|
|
790
|
+
".pi/harnesses/agent-hub/tool-protocol.ts",
|
|
791
|
+
".pi/harnesses/agent-hub/policy/profile-runtime.ts",
|
|
792
|
+
".pi/harnesses/agent-hub/config/model-profiles.ts",
|
|
793
|
+
".pi/harnesses/agent-hub/scope-gate.js",
|
|
794
|
+
".pi/harnesses/agent-hub/write-isolation.ts",
|
|
795
|
+
".pi/harnesses/agent-hub/deterministic-fs.ts",
|
|
796
|
+
".pi/harnesses/agent-hub/helpers.ts",
|
|
797
|
+
".pi/harnesses/agent-hub/external-blocker.js",
|
|
798
|
+
".pi/harnesses/damage-control-continue",
|
|
799
|
+
".pi/harnesses/agent-hub/types.ts",
|
|
800
|
+
".pi/harnesses/agent-hub/dispatch-core.ts",
|
|
801
|
+
".pi/harnesses/agent-hub/dispatch-coms.ts",
|
|
802
|
+
".pi/harnesses/agent-hub/drift-runtime.ts",
|
|
803
|
+
".pi/harnesses/agent-hub/acceptance.ts",
|
|
804
|
+
".pi/harnesses/agent-hub/artifacts.js",
|
|
805
|
+
".pi/harnesses/agent-hub/tools/context.ts",
|
|
806
|
+
".pi/harnesses/agent-hub/drift-watchdog.js",
|
|
807
|
+
".pi/harnesses/agent-hub/return-extract.js",
|
|
808
|
+
".pi/harnesses/agent-hub/dispatch-native.ts",
|
|
809
|
+
".pi/harnesses/agent-hub/assist-profile.ts",
|
|
810
|
+
".pi/harnesses/agent-hub/monitor-control.ts",
|
|
811
|
+
".pi/harnesses/agent-hub/dispatch-native-prepare.ts",
|
|
812
|
+
".pi/harnesses/agent-hub/bounded-output.ts",
|
|
813
|
+
".pi/harnesses/agent-hub/filesystem-tool.ts",
|
|
814
|
+
".pi/harnesses/agent-hub/run-budget.js",
|
|
815
|
+
".pi/harnesses/agent-hub/session-health.js",
|
|
816
|
+
".pi/harnesses/agent-hub/safety-routing.ts",
|
|
817
|
+
".pi/harnesses/agent-hub/dispatch-native-types.ts",
|
|
818
|
+
".pi/harnesses/agent-hub/ui/history-store.ts",
|
|
819
|
+
".pi/harnesses/agent-hub/ui/zoom.ts",
|
|
820
|
+
".pi/harnesses/agent-hub/dispatch-observability.ts",
|
|
821
|
+
".pi/harnesses/agent-hub/ui/activity-dots.ts",
|
|
822
|
+
".pi/harnesses/agent-hub/task-resume-contract.ts",
|
|
823
|
+
".pi/harnesses/agent-hub/system1-runtime.ts",
|
|
824
|
+
".pi/harnesses/agent-hub/drift-system1-policy.ts",
|
|
825
|
+
".pi/harnesses/agent-hub/drift-system1.ts",
|
|
826
|
+
".pi/harnesses/agent-hub/system1-activity.ts",
|
|
827
|
+
".pi/harnesses/agent-hub/drift-judge.ts",
|
|
828
|
+
".pi/harnesses/agent-hub/dispatch-native-spawn.ts",
|
|
829
|
+
".pi/harnesses/agent-hub/timeline.ts",
|
|
830
|
+
".pi/harnesses/agent-hub/dispatch-native-complete.ts",
|
|
831
|
+
".pi/harnesses/agent-hub/research/runtime.ts",
|
|
832
|
+
".pi/harnesses/agent-hub/context/hub-state.ts",
|
|
833
|
+
".pi/harnesses/agent-hub/context/budgets.ts",
|
|
834
|
+
".pi/harnesses/agent-hub/hub-state-audit.js",
|
|
835
|
+
".pi/harnesses/agent-hub/budget-continuation.ts",
|
|
836
|
+
".pi/harnesses/agent-hub/budget-recovery.ts",
|
|
837
|
+
".pi/harnesses/agent-hub/context/assertions-artifacts.ts",
|
|
838
|
+
".pi/harnesses/agent-hub/provider-semaphore.js",
|
|
839
|
+
".pi/harnesses/agent-hub/research/spawn-run.ts",
|
|
840
|
+
".pi/harnesses/agent-hub/research-watchdog.ts",
|
|
841
|
+
".pi/agent-fleet/scripts/lib/persona-dirs.ts"
|
|
780
842
|
],
|
|
781
843
|
"sourceMode": "all",
|
|
782
844
|
"preserveLayout": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chankov/agent-fleet",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"description": "Subagent orchestration for the pi coding agent — a thin dispatcher runs parallel subagents under a verification contract, keeping their output out of its context window. Multi-agent fleets, 15 personas, skills, herdr panes, peer coms, Hermes desktop.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"subagents",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"files": [
|
|
57
57
|
"bin/",
|
|
58
|
+
"catalog/",
|
|
58
59
|
"skills/",
|
|
59
60
|
"agents/",
|
|
60
61
|
".pi/prompts/",
|
|
@@ -129,7 +130,8 @@
|
|
|
129
130
|
"!**/.DS_Store",
|
|
130
131
|
"!docs/plans/**",
|
|
131
132
|
".pi/agent-fleet/scripts/fleet-codex-read.py",
|
|
132
|
-
"docs/codex-session-bridge.md"
|
|
133
|
+
"docs/codex-session-bridge.md",
|
|
134
|
+
".pi/harnesses/agent-hub/proactive-snapshot-worker.mjs"
|
|
133
135
|
],
|
|
134
136
|
"engines": {
|
|
135
137
|
"node": ">=18.0.0"
|
|
@@ -138,7 +140,7 @@
|
|
|
138
140
|
"access": "public"
|
|
139
141
|
},
|
|
140
142
|
"scripts": {
|
|
141
|
-
"test": "npm run typecheck:workflows && npm run typecheck:hub && npm run test:system1 && node bin/cli.js --version && node bin/cli.js --help && node --test bin/test/setup-tty.test.js && node --test --test-skip-pattern='real TTY|readline-owned' --test-concurrency=4 --test-timeout=120000 bin/test/*.test.js .pi/agent-fleet/scripts/agent-hub-helpers.test.mjs .pi/agent-fleet/scripts/agent-hub-spawn.test.mjs .pi/agent-fleet/scripts/agent-hub-delegate.test.mjs .pi/agent-fleet/scripts/agent-hub-research.test.mjs .pi/harnesses/lib/herdr-client.test.ts .pi/harnesses/lib/herdr-presence.test.ts .pi/harnesses/lib/coms-registry-entry.test.ts .pi/harnesses/lib/coms-core.test.ts .pi/harnesses/lib/fleet-overlay.test.ts .pi/harnesses/lib/fleet-selection.test.ts .pi/harnesses/lib/fleet-panel.test.ts .pi/harnesses/lib/context-budget.test.ts .pi/harnesses/lib/context-budget-view.test.ts .pi/harnesses/lib/context-budget-hub-prompt.test.ts .pi/harnesses/lib/context-budget-child-prompt.test.ts .pi/harnesses/agent-hub/prompts/system-prompt.test.ts .pi/harnesses/agent-hub/prompts/session-start.test.ts .pi/harnesses/agent-hub/session-start.test.ts .pi/harnesses/agent-hub/context-budget-snapshot.test.ts .pi/harnesses/agent-hub/context-budget.integration.test.ts .pi/harnesses/agent-hub/context-pressure.test.ts .pi/harnesses/agent-hub/capability-packs.test.ts .pi/harnesses/agent-hub/capability-confirmation.test.ts .pi/harnesses/agent-hub/capability-matrix.test.ts .pi/harnesses/lib/fleet-read-model.test.ts .pi/harnesses/lib/fleet-strip-view.test.ts .pi/harnesses/lib/fleet-strip-controller.test.ts .pi/harnesses/lib/fleet-dashboard-view.test.ts .pi/harnesses/lib/fleet-dashboard-ops.test.ts .pi/harnesses/lib/fleet-detail-view.test.ts .pi/harnesses/lib/fleet-transcript-store.test.ts .pi/harnesses/agent-hub/fleet-dashboard.integration.test.ts .pi/agent-fleet/scripts/coms-cli.test.ts .pi/agent-fleet/scripts/fleet-codex-client.test.ts .pi/agent-fleet/scripts/fleet-codex-transport.test.ts .pi/agent-fleet/scripts/fleet-codex-questions.test.ts .pi/agent-fleet/scripts/lib/fleet-command.test.ts .pi/agent-fleet/scripts/lib/flow-command.test.ts .pi/agent-fleet/scripts/lib/flow-maintenance.test.ts .pi/agent-fleet/scripts/workflows/lib/env.test.ts .pi/agent-fleet/scripts/workflows/lib/git.test.ts .pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.test.ts .pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.test.ts .pi/agent-fleet/scripts/workflows/lib/run.test.ts .pi/agent-fleet/scripts/workflows/lib/quality.test.ts .pi/agent-fleet/scripts/workflows/lib/changes.test.ts .pi/agent-fleet/scripts/workflows/lib/gates.test.ts .pi/agent-fleet/scripts/workflows/lib/permissions.test.ts .pi/agent-fleet/scripts/workflows/lib/envelopes.test.ts .pi/agent-fleet/scripts/workflows/lib/agent-phase.test.ts .pi/agent-fleet/scripts/workflows/lib/envelopes-triad.test.ts .pi/agent-fleet/scripts/workflows/lib/voices.test.ts .pi/agent-fleet/scripts/workflows/lib/model-visibility.test.ts .pi/agent-fleet/scripts/workflows/lib/poll.test.ts .pi/agent-fleet/scripts/workflows/lib/merge.test.ts .pi/agent-fleet/scripts/workflows/lib/debate.test.ts .pi/agent-fleet/scripts/workflows/lib/writer-lease.test.ts .pi/agent-fleet/scripts/workflows/wf-scout.test.ts .pi/agent-fleet/scripts/workflows/wf-build-test.test.ts .pi/agent-fleet/scripts/workflows/wf-document.test.ts .pi/agent-fleet/scripts/workflows/wf-poll.test.ts .pi/agent-fleet/scripts/workflows/wf-debate.test.ts skills/drafting-workflows/scripts/make-workflow.test.ts .pi/agent-fleet/scripts/lib/team-project.test.ts .pi/agent-fleet/scripts/lib/herdr-layout.test.ts .pi/agent-fleet/scripts/lib/peer-launch.test.ts .pi/agent-fleet/scripts/lib/spawn-stagger.test.ts .pi/agent-fleet/scripts/lib/monitor-env.test.ts .pi/agent-fleet/scripts/lib/fleet-extras.test.ts .pi/agent-fleet/scripts/lib/team-snapshot.test.ts .pi/agent-fleet/scripts/team-snapshot.command.test.ts .pi/agent-fleet/scripts/lib/coms-envelope.test.ts .pi/agent-fleet/scripts/lib/claude-bridge-core.test.ts .pi/agent-fleet/scripts/lib/hermes-bridge-core.test.ts .pi/agent-fleet/scripts/coms-hermes-bridge.test.ts .pi/harnesses/ask-user-remote/race-core.test.js .pi/harnesses/ask-user-remote/questions.test.ts .pi/harnesses/ask-user-remote/index.test.ts .pi/harnesses/agent-hub/extension-loader.test.ts .pi/harnesses/agent-hub/lifecycle/session-orchestration.test.ts .pi/harnesses/agent-hub/registration-surface.test.ts .pi/harnesses/agent-hub/poll-command.test.ts .pi/harnesses/agent-hub/debate-command.test.ts .pi/harnesses/agent-hub/delegate-thinking.test.ts .pi/harnesses/agent-hub/backend-routing.integration.test.ts .pi/harnesses/agent-hub/dispatch-core.test.ts .pi/extensions/btw/state.test.js .pi/extensions/btw/index.test.ts .pi/harnesses/agent-hub/work-mode.test.ts .pi/harnesses/agent-hub/work-mode-controls.test.ts .pi/harnesses/agent-hub/work-mode-integration.test.ts .pi/harnesses/agent-hub/footer.test.ts .pi/harnesses/agent-hub/view-default.test.ts .pi/harnesses/agent-hub/overlay-migration.test.ts .pi/harnesses/agent-hub/safety-routing.test.ts .pi/harnesses/agent-hub/approval-routing.integration.test.ts .pi/harnesses/agent-hub/run-budget.test.js .pi/harnesses/agent-hub/budget-continuation.test.ts .pi/harnesses/agent-hub/budget-continuation.integration.test.ts .pi/harnesses/agent-hub/budget-recovery.test.ts .pi/harnesses/agent-hub/evidence-retention.test.ts .pi/harnesses/agent-hub/deterministic-fs.test.ts .pi/harnesses/agent-hub/filesystem-tool.integration.test.ts .pi/harnesses/agent-hub/bounded-output.test.ts .pi/harnesses/agent-hub/write-isolation.test.ts .pi/harnesses/agent-hub/session-audit.test.ts .pi/harnesses/agent-hub/drift-runtime.test.ts .pi/harnesses/agent-hub/spawn-system1-env.test.ts .pi/harnesses/agent-hub/drift-system1.test.ts .pi/harnesses/agent-hub/system1-runtime.test.ts .pi/harnesses/agent-hub/drift-judge.test.ts .pi/harnesses/agent-hub/system1-activity.test.ts .pi/harnesses/agent-hub/system1-timeline.test.ts .pi/harnesses/agent-hub/system1-report.test.ts .pi/harnesses/agent-hub/drift-system1-policy.test.ts .pi/harnesses/agent-hub/watchdog-evaluation.test.ts .pi/harnesses/agent-hub/diagnostic-series-budget.test.ts .pi/harnesses/agent-hub/diagnostic-probe-extension.test.ts .pi/harnesses/agent-hub/tools/run-flow.test.ts .pi/harnesses/agent-hub/t0a-synthetic-fixtures.test.ts .pi/harnesses/agent-hub/t4-t6-t10a-contract.red.test.ts .pi/harnesses/agent-hub/no-progress.test.ts .pi/harnesses/agent-hub/recover-state.test.ts .pi/harnesses/agent-hub/recover-policy.test.ts .pi/harnesses/agent-hub/reconcile.test.ts .pi/harnesses/agent-hub/recover.integration.test.ts .pi/harnesses/agent-hub/recovery-contract.test.ts .pi/harnesses/agent-hub/acceptance.test.ts .pi/harnesses/agent-hub/runtime-test-check.test.ts .pi/harnesses/agent-hub/context/assertions-artifacts.test.ts .pi/harnesses/agent-hub/tools/action-executors.test.ts .pi/harnesses/agent-hub/tools/dispatch-execution.test.ts .pi/harnesses/agent-hub/context/budgets.test.ts .pi/harnesses/agent-hub/lifecycle/lifecycle.test.ts .pi/harnesses/ask-user-remote/runtime-ask.test.ts .pi/harnesses/agent-hub/hub-state-audit.test.js .pi/harnesses/agent-hub/docs-lane.test.js .pi/harnesses/agent-hub/external-blocker.test.js .pi/harnesses/agent-hub/run-namespace.test.js .pi/harnesses/agent-hub/review-findings.test.js .pi/harnesses/agent-hub/assertion-ledger.test.js .pi/harnesses/agent-hub/provider-semaphore.test.js .pi/harnesses/lib/spawned-peers.test.js .pi/harnesses/agent-hub/context-window.test.js .pi/harnesses/agent-hub/drift-watchdog.test.js .pi/harnesses/agent-hub/session-health.test.js .pi/harnesses/agent-hub/return-contract.test.js .pi/harnesses/agent-hub/return-extract.test.js .pi/harnesses/agent-hub/backend-policy.test.js .pi/harnesses/agent-hub/artifacts.test.js .pi/harnesses/agent-hub/scope-gate.test.js .pi/harnesses/agent-hub/evidence-rules.test.js .pi/harnesses/agent-hub/research/runtime.test.ts .pi/harnesses/agent-hub/research/controls.test.ts .pi/harnesses/agent-hub/ui/fleet-source.test.ts .pi/harnesses/agent-hub/input/shortcuts.test.ts .pi/harnesses/agent-hub/ui/fleet-editor.test.ts .pi/harnesses/agent-hub/ui/fleet-actions.test.ts .pi/harnesses/agent-hub/ui/grid.test.ts .pi/harnesses/agent-hub/ui/fleet-dashboard.test.ts .pi/harnesses/agent-hub/input/presentation.test.ts .pi/harnesses/agent-hub/config/overrides.test.ts .pi/harnesses/lib/damage-control-shared.test.ts .pi/harnesses/lib/changed-file-diagnostics.test.ts .pi/harnesses/lib/update-check.test.ts .pi/harnesses/damage-control-continue/herdr-rules.test.js .pi/harnesses/damage-control-continue/exemptions.test.js .pi/agent-fleet/scripts/lib/hermes-monitor-model.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-events.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-store.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-retention.integration.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-registry.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-socket.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-data-path.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-slice7-9-backend.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-control-socket.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-e2e.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-plugin-handshake.test.ts .pi/agent-fleet/scripts/hermes-monitor-capability-runner.test.ts .pi/agent-fleet/scripts/hermes-monitor-scenario.test.ts .pi/agent-fleet/scripts/hermes-watchdog-capability-probe.test.ts .pi/harnesses/agent-hub/monitor-invoke.test.ts .pi/harnesses/agent-hub/monitor-invoke-journal.test.ts .pi/harnesses/agent-hub/monitor-control.test.ts .pi/harnesses/agent-hub/monitor-live-bridge-gaps.test.ts .pi/harnesses/agent-hub/monitor-review-live-wiring.red.test.ts .pi/harnesses/agent-hub/monitor-runtime.test.ts .pi/harnesses/agent-hub/monitor-bridge-runtime.test.ts .pi/harnesses/agent-hub/monitor-reconcile.test.ts .pi/harnesses/agent-hub/monitor-recovery.test.ts .pi/harnesses/agent-hub/monitor-lifecycle-lease.test.ts .pi/harnesses/agent-hub/monitor-session-bridge-race.test.ts .pi/harnesses/agent-hub/monitor-session-bridge.test.ts .pi/harnesses/agent-hub/monitor-cancel-race.test.ts .pi/harnesses/agent-hub/monitor-wait-only.test.ts .pi/harnesses/agent-hub/monitor-publisher.test.ts .pi/harnesses/agent-hub/monitor-index.integration.test.ts .pi/harnesses/agent-hub/monitor-coms-turn.test.ts .pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.test.js .pi/harnesses/agent-hub/config/model-profiles.test.ts .pi/harnesses/agent-hub/policy/models.test.ts .pi/harnesses/agent-hub/policy/profile-activation.test.ts .pi/harnesses/agent-hub/profile-execution.test.ts .pi/agent-fleet/scripts/docs-links.test.mjs && npm run test:watchdog-py",
|
|
143
|
+
"test": "npm run typecheck:workflows && npm run typecheck:hub && npm run test:system1 && node bin/cli.js --version && node bin/cli.js --help && node --test bin/test/setup-tty.test.js && node --test --test-skip-pattern='real TTY|readline-owned' --test-concurrency=4 --test-timeout=120000 bin/test/*.test.js .pi/agent-fleet/scripts/agent-hub-helpers.test.mjs .pi/agent-fleet/scripts/agent-hub-spawn.test.mjs .pi/agent-fleet/scripts/agent-hub-delegate.test.mjs .pi/agent-fleet/scripts/agent-hub-research.test.mjs .pi/harnesses/lib/herdr-client.test.ts .pi/harnesses/lib/herdr-presence.test.ts .pi/harnesses/lib/coms-registry-entry.test.ts .pi/harnesses/lib/coms-core.test.ts .pi/harnesses/lib/fleet-overlay.test.ts .pi/harnesses/lib/fleet-selection.test.ts .pi/harnesses/lib/fleet-panel.test.ts .pi/harnesses/lib/context-budget.test.ts .pi/harnesses/lib/context-budget-view.test.ts .pi/harnesses/lib/context-budget-hub-prompt.test.ts .pi/harnesses/lib/context-budget-child-prompt.test.ts .pi/harnesses/agent-hub/prompts/system-prompt.test.ts .pi/harnesses/agent-hub/prompts/session-start.test.ts .pi/harnesses/agent-hub/session-start.test.ts .pi/harnesses/agent-hub/context-budget-snapshot.test.ts .pi/harnesses/agent-hub/context-budget.integration.test.ts .pi/harnesses/agent-hub/context-pressure.test.ts .pi/harnesses/agent-hub/capability-packs.test.ts .pi/harnesses/agent-hub/capability-confirmation.test.ts .pi/harnesses/agent-hub/capability-matrix.test.ts .pi/harnesses/lib/fleet-read-model.test.ts .pi/harnesses/lib/fleet-strip-view.test.ts .pi/harnesses/lib/fleet-strip-controller.test.ts .pi/harnesses/lib/fleet-dashboard-view.test.ts .pi/harnesses/lib/fleet-dashboard-ops.test.ts .pi/harnesses/lib/fleet-detail-view.test.ts .pi/harnesses/lib/fleet-transcript-store.test.ts .pi/harnesses/agent-hub/fleet-dashboard.integration.test.ts .pi/agent-fleet/scripts/coms-cli.test.ts .pi/agent-fleet/scripts/fleet-codex-client.test.ts .pi/agent-fleet/scripts/fleet-codex-transport.test.ts .pi/agent-fleet/scripts/fleet-codex-questions.test.ts .pi/agent-fleet/scripts/lib/fleet-command.test.ts .pi/agent-fleet/scripts/lib/flow-command.test.ts .pi/agent-fleet/scripts/lib/flow-maintenance.test.ts .pi/agent-fleet/scripts/workflows/lib/env.test.ts .pi/agent-fleet/scripts/workflows/lib/git.test.ts .pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.test.ts .pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.test.ts .pi/agent-fleet/scripts/workflows/lib/run.test.ts .pi/agent-fleet/scripts/workflows/lib/quality.test.ts .pi/agent-fleet/scripts/workflows/lib/changes.test.ts .pi/agent-fleet/scripts/workflows/lib/gates.test.ts .pi/agent-fleet/scripts/workflows/lib/permissions.test.ts .pi/agent-fleet/scripts/workflows/lib/envelopes.test.ts .pi/agent-fleet/scripts/workflows/lib/agent-phase.test.ts .pi/agent-fleet/scripts/workflows/lib/envelopes-triad.test.ts .pi/agent-fleet/scripts/workflows/lib/voices.test.ts .pi/agent-fleet/scripts/workflows/lib/model-visibility.test.ts .pi/agent-fleet/scripts/workflows/lib/poll.test.ts .pi/agent-fleet/scripts/workflows/lib/merge.test.ts .pi/agent-fleet/scripts/workflows/lib/debate.test.ts .pi/agent-fleet/scripts/workflows/lib/writer-lease.test.ts .pi/agent-fleet/scripts/workflows/wf-scout.test.ts .pi/agent-fleet/scripts/workflows/wf-build-test.test.ts .pi/agent-fleet/scripts/workflows/wf-document.test.ts .pi/agent-fleet/scripts/workflows/wf-poll.test.ts .pi/agent-fleet/scripts/workflows/wf-debate.test.ts skills/drafting-workflows/scripts/make-workflow.test.ts .pi/agent-fleet/scripts/lib/team-project.test.ts .pi/agent-fleet/scripts/lib/herdr-layout.test.ts .pi/agent-fleet/scripts/lib/peer-launch.test.ts .pi/agent-fleet/scripts/lib/spawn-stagger.test.ts .pi/agent-fleet/scripts/lib/monitor-env.test.ts .pi/agent-fleet/scripts/lib/fleet-extras.test.ts .pi/agent-fleet/scripts/lib/team-snapshot.test.ts .pi/agent-fleet/scripts/team-snapshot.command.test.ts .pi/agent-fleet/scripts/lib/coms-envelope.test.ts .pi/agent-fleet/scripts/lib/claude-bridge-core.test.ts .pi/agent-fleet/scripts/lib/hermes-bridge-core.test.ts .pi/agent-fleet/scripts/coms-hermes-bridge.test.ts .pi/harnesses/ask-user-remote/race-core.test.js .pi/harnesses/ask-user-remote/questions.test.ts .pi/harnesses/ask-user-remote/index.test.ts .pi/harnesses/agent-hub/extension-loader.test.ts .pi/harnesses/agent-hub/lifecycle/session-orchestration.test.ts .pi/harnesses/agent-hub/registration-surface.test.ts .pi/harnesses/agent-hub/poll-command.test.ts .pi/harnesses/agent-hub/debate-command.test.ts .pi/harnesses/agent-hub/delegate-thinking.test.ts .pi/harnesses/agent-hub/backend-routing.integration.test.ts .pi/harnesses/agent-hub/dispatch-core.test.ts .pi/extensions/btw/state.test.js .pi/extensions/btw/index.test.ts .pi/harnesses/agent-hub/work-mode.test.ts .pi/harnesses/agent-hub/work-mode-controls.test.ts .pi/harnesses/agent-hub/work-mode-integration.test.ts .pi/harnesses/agent-hub/footer.test.ts .pi/harnesses/agent-hub/view-default.test.ts .pi/harnesses/agent-hub/overlay-migration.test.ts .pi/harnesses/agent-hub/safety-routing.test.ts .pi/harnesses/agent-hub/approval-routing.integration.test.ts .pi/harnesses/agent-hub/run-budget.test.js .pi/harnesses/agent-hub/budget-continuation.test.ts .pi/harnesses/agent-hub/budget-continuation.integration.test.ts .pi/harnesses/agent-hub/budget-recovery.test.ts .pi/harnesses/agent-hub/evidence-retention.test.ts .pi/harnesses/agent-hub/deterministic-fs.test.ts .pi/harnesses/agent-hub/filesystem-tool.integration.test.ts .pi/harnesses/agent-hub/bounded-output.test.ts .pi/harnesses/agent-hub/write-isolation.test.ts .pi/harnesses/agent-hub/session-audit.test.ts .pi/harnesses/agent-hub/drift-runtime.test.ts .pi/harnesses/agent-hub/spawn-system1-env.test.ts .pi/harnesses/agent-hub/drift-system1.test.ts .pi/harnesses/agent-hub/system1-runtime.test.ts .pi/harnesses/agent-hub/drift-judge.test.ts .pi/harnesses/agent-hub/system1-activity.test.ts .pi/harnesses/agent-hub/system1-timeline.test.ts .pi/harnesses/agent-hub/system1-report.test.ts .pi/harnesses/agent-hub/drift-system1-policy.test.ts .pi/harnesses/agent-hub/watchdog-evaluation.test.ts .pi/harnesses/agent-hub/diagnostic-series-budget.test.ts .pi/harnesses/agent-hub/diagnostic-probe-extension.test.ts .pi/harnesses/agent-hub/tools/run-flow.test.ts .pi/harnesses/agent-hub/t0a-synthetic-fixtures.test.ts .pi/harnesses/agent-hub/t4-t6-t10a-contract.red.test.ts .pi/harnesses/agent-hub/no-progress.test.ts .pi/harnesses/agent-hub/recover-state.test.ts .pi/harnesses/agent-hub/recover-policy.test.ts .pi/harnesses/agent-hub/reconcile.test.ts .pi/harnesses/agent-hub/recover.integration.test.ts .pi/harnesses/agent-hub/recovery-contract.test.ts .pi/harnesses/agent-hub/acceptance.test.ts .pi/harnesses/agent-hub/runtime-test-check.test.ts .pi/harnesses/agent-hub/context/assertions-artifacts.test.ts .pi/harnesses/agent-hub/tools/action-executors.test.ts .pi/harnesses/agent-hub/tools/dispatch-execution.test.ts .pi/harnesses/agent-hub/context/budgets.test.ts .pi/harnesses/agent-hub/lifecycle/lifecycle.test.ts .pi/harnesses/ask-user-remote/runtime-ask.test.ts .pi/harnesses/agent-hub/hub-state-audit.test.js .pi/harnesses/agent-hub/docs-lane.test.js .pi/harnesses/agent-hub/external-blocker.test.js .pi/harnesses/agent-hub/run-namespace.test.js .pi/harnesses/agent-hub/review-findings.test.js .pi/harnesses/agent-hub/assertion-ledger.test.js .pi/harnesses/agent-hub/provider-semaphore.test.js .pi/harnesses/lib/spawned-peers.test.js .pi/harnesses/agent-hub/context-window.test.js .pi/harnesses/agent-hub/drift-watchdog.test.js .pi/harnesses/agent-hub/session-health.test.js .pi/harnesses/agent-hub/return-contract.test.js .pi/harnesses/agent-hub/return-extract.test.js .pi/harnesses/agent-hub/backend-policy.test.js .pi/harnesses/agent-hub/artifacts.test.js .pi/harnesses/agent-hub/scope-gate.test.js .pi/harnesses/agent-hub/evidence-rules.test.js .pi/harnesses/agent-hub/research/runtime.test.ts .pi/harnesses/agent-hub/research/controls.test.ts .pi/harnesses/agent-hub/ui/fleet-source.test.ts .pi/harnesses/agent-hub/input/shortcuts.test.ts .pi/harnesses/agent-hub/ui/fleet-editor.test.ts .pi/harnesses/agent-hub/ui/fleet-actions.test.ts .pi/harnesses/agent-hub/ui/grid.test.ts .pi/harnesses/agent-hub/ui/fleet-dashboard.test.ts .pi/harnesses/agent-hub/input/presentation.test.ts .pi/harnesses/agent-hub/config/overrides.test.ts .pi/harnesses/lib/damage-control-shared.test.ts .pi/harnesses/lib/changed-file-diagnostics.test.ts .pi/harnesses/lib/update-check.test.ts .pi/harnesses/damage-control-continue/herdr-rules.test.js .pi/harnesses/damage-control-continue/exemptions.test.js .pi/agent-fleet/scripts/lib/hermes-monitor-model.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-events.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-store.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-retention.integration.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-registry.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-socket.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-data-path.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-slice7-9-backend.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-control-socket.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-e2e.test.ts .pi/agent-fleet/scripts/lib/hermes-monitor-plugin-handshake.test.ts .pi/agent-fleet/scripts/hermes-monitor-capability-runner.test.ts .pi/agent-fleet/scripts/hermes-monitor-scenario.test.ts .pi/agent-fleet/scripts/hermes-watchdog-capability-probe.test.ts .pi/harnesses/agent-hub/monitor-invoke.test.ts .pi/harnesses/agent-hub/monitor-invoke-journal.test.ts .pi/harnesses/agent-hub/monitor-control.test.ts .pi/harnesses/agent-hub/monitor-live-bridge-gaps.test.ts .pi/harnesses/agent-hub/monitor-review-live-wiring.red.test.ts .pi/harnesses/agent-hub/monitor-runtime.test.ts .pi/harnesses/agent-hub/monitor-bridge-runtime.test.ts .pi/harnesses/agent-hub/monitor-reconcile.test.ts .pi/harnesses/agent-hub/monitor-recovery.test.ts .pi/harnesses/agent-hub/monitor-lifecycle-lease.test.ts .pi/harnesses/agent-hub/monitor-session-bridge-race.test.ts .pi/harnesses/agent-hub/monitor-session-bridge.test.ts .pi/harnesses/agent-hub/monitor-cancel-race.test.ts .pi/harnesses/agent-hub/monitor-wait-only.test.ts .pi/harnesses/agent-hub/monitor-publisher.test.ts .pi/harnesses/agent-hub/monitor-index.integration.test.ts .pi/harnesses/agent-hub/monitor-coms-turn.test.ts .pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.test.js .pi/harnesses/agent-hub/config/model-profiles.test.ts .pi/harnesses/agent-hub/policy/models.test.ts .pi/harnesses/agent-hub/policy/profile-activation.test.ts .pi/harnesses/agent-hub/profile-execution.test.ts .pi/agent-fleet/scripts/docs-links.test.mjs .pi/harnesses/agent-hub/proactive-*.test.ts && npm run test:watchdog-py",
|
|
142
144
|
"test:system1": "npm run typecheck:system1 && node --test .pi/harnesses/lib/system1/config.test.js && node --experimental-strip-types --test .pi/harnesses/lib/system1/service.test.ts .pi/harnesses/lib/system1/fake-provider.test.ts .pi/harnesses/lib/system1/jev.test.ts .pi/harnesses/lib/system1/demo.test.ts",
|
|
143
145
|
"test:portability": "node bin/test/helpers/run-portability.js",
|
|
144
146
|
"typecheck:workflows": "tsc -p .pi/agent-fleet/scripts/workflows/tsconfig.json --noEmit",
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: repository-ai-setup
|
|
3
|
+
description: Sets up repository AI rules from the packaged Fleet catalogue — discover target evidence, propose semantic adaptations, grill unresolved decisions one question at a time, then diff, apply, and verify. Use for initial .ai/rules setup and repeated additions or updates via an optional change request.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Repository AI Setup
|
|
7
|
+
|
|
8
|
+
Initial and repeated setup of a target repository's `.ai/rules`, `.ai/commands`,
|
|
9
|
+
and `.ai/agent-prompts` from the Fleet catalogue, plus the Fleet settings handoff
|
|
10
|
+
that makes the result load automatically. Follow
|
|
11
|
+
`references/setup-flow.md` for the phase checklists,
|
|
12
|
+
`references/apply-contract.md` for the deterministic write rules, and
|
|
13
|
+
`references/provenance-template.md` for the file metadata contract.
|
|
14
|
+
|
|
15
|
+
## When to Use
|
|
16
|
+
|
|
17
|
+
Apply this skill when the user invokes `/af-setup-rules` (optionally with a
|
|
18
|
+
free-text change request such as "add API compatibility rules"), or asks to set
|
|
19
|
+
up, review, or extend a repository's AI rules from the Fleet catalogue.
|
|
20
|
+
|
|
21
|
+
**When NOT to use:**
|
|
22
|
+
|
|
23
|
+
- Ordinary planning, building, or reviewing — read the already-installed
|
|
24
|
+
`.ai/rules` index instead of re-running setup.
|
|
25
|
+
- Deterministic installation (`agent-fleet setup`) — that path stays
|
|
26
|
+
non-interactive and never runs this interview.
|
|
27
|
+
- Editing Fleet settings by hand or via any path other than the CLI below.
|
|
28
|
+
|
|
29
|
+
## Non-negotiable boundaries
|
|
30
|
+
|
|
31
|
+
1. **Catalogue source is the installed Fleet npm package only.** Resolve it with
|
|
32
|
+
`requirePackageCatalogue(packageRoot)` from `bin/lib/project-provenance.js`
|
|
33
|
+
before any selection. If the package has no `catalog/` payload, stop this
|
|
34
|
+
capability with a clear error — other Fleet functionality keeps working.
|
|
35
|
+
Never copy the catalogue beneath `.pi/`, never infer one from a source
|
|
36
|
+
checkout, never download it silently. This skill consumes the library; the
|
|
37
|
+
library is not part of any repository's own policy.
|
|
38
|
+
2. **Missing rules/docs paths warn and continue, never fail setup.** A
|
|
39
|
+
configured root that does not exist on disk is advisory, not fatal.
|
|
40
|
+
3. **This skill never edits overrides and contains no overrides merge
|
|
41
|
+
algorithm.** All settings changes go through the deterministic CLI:
|
|
42
|
+
preview with `agent-fleet configure --rules <dirs> --docs <paths> --dry-run`,
|
|
43
|
+
then apply the reviewed preview with `--expect-hash <expectedHash> --yes`.
|
|
44
|
+
There is no second Markdown merge writer in this skill or its references.
|
|
45
|
+
4. **Provenance is the single sidecar `.ai/agent-fleet-ai-state.json`.**
|
|
46
|
+
Read, classify, and write it only via `bin/lib/project-provenance.js`
|
|
47
|
+
(`readProjectProvenance`, `classifyProjectFile`, `applyAcceptedProjectFiles`).
|
|
48
|
+
Template-derived files carry `fleet-template` / `fleet-source-version`
|
|
49
|
+
frontmatter; repo-derived files never get an invented template identity.
|
|
50
|
+
`appliedHash` lives in the sidecar, never in the hashed file. The sidecar is
|
|
51
|
+
preserved on uninstall and is not installer ownership.
|
|
52
|
+
5. **Existing explicit policy is preserved without redundant confirmation.**
|
|
53
|
+
A rule inferred only from code frequency or consistency is a proposal with
|
|
54
|
+
cited evidence — never normative — until the user explicitly accepts it.
|
|
55
|
+
|
|
56
|
+
## The workflow
|
|
57
|
+
|
|
58
|
+
Run these phases in order. The detail for each step lives in
|
|
59
|
+
`references/setup-flow.md`; the gates below are normative.
|
|
60
|
+
|
|
61
|
+
### 1. Discover before asking
|
|
62
|
+
|
|
63
|
+
Resolve target root and git state. Read existing `.ai/` files, Fleet overrides,
|
|
64
|
+
the docs policy and indexes. Inventory manifests, formatter/linter/analyzers,
|
|
65
|
+
build/test commands, CI, module boundaries, and templates using representative
|
|
66
|
+
implementations and callers — not extension counts. Skip generated, vendor,
|
|
67
|
+
build, and cache trees; never read secret values. For each recommendation
|
|
68
|
+
record evidence source, scope, status (confirmed / proposed / conflicting),
|
|
69
|
+
proposed file, reason, and check. Unknown stays unknown.
|
|
70
|
+
|
|
71
|
+
### 2. Present a concrete proposal
|
|
72
|
+
|
|
73
|
+
Show the proposed tree, selected profiles/roles/commands, files to update, new
|
|
74
|
+
files, and conflicts. Keep working structure; never move an intact catalogue to
|
|
75
|
+
match a template. Adaptations are complete project files with concrete rules,
|
|
76
|
+
paths, templates, and verification steps — never placeholder-only substitution,
|
|
77
|
+
never imported reference-repository defaults without target evidence.
|
|
78
|
+
|
|
79
|
+
### 3. Grill unresolved important decisions
|
|
80
|
+
|
|
81
|
+
Follow `skills/_internal/grilling.md`. Never re-ask what is already explicit in
|
|
82
|
+
chat, plan, spec, rules, or a recorded decision. For each remaining
|
|
83
|
+
load-bearing fork ask **one question at a time**, each with the found evidence,
|
|
84
|
+
2–4 real options, your **recommendation with reason**, and the material
|
|
85
|
+
trade-off. Use the native user-question tool; where none exists, ask a real
|
|
86
|
+
text question and wait — never simulate a tool call or an answer. Let each
|
|
87
|
+
answer shape the next question. Record accepted / rejected / deferred in the
|
|
88
|
+
proposal; a deferred decision never authorizes its dependent change. If every
|
|
89
|
+
decision is already explicit, report the zero-open-decisions case instead of
|
|
90
|
+
inventing questions. Headless runs may produce analysis and a proposal only:
|
|
91
|
+
no fake interview, no auto-acceptance, no apply of undecided policy.
|
|
92
|
+
|
|
93
|
+
### 4. Apply reviewed changes and verify
|
|
94
|
+
|
|
95
|
+
Show the concrete diff with the recorded decisions before writing. Honor
|
|
96
|
+
authorization already given; do not re-ask for the same actions. Re-check file
|
|
97
|
+
bytes immediately before writing if the repo changed since preview. Apply
|
|
98
|
+
content and provenance per `references/apply-contract.md` (current bytes vs
|
|
99
|
+
`appliedHash`: no-op, local-edit, source-update, conflict, unknown); settings
|
|
100
|
+
go through the CLI handoff. On error report exactly what was written and what remains, and
|
|
101
|
+
restore only your own changes when safe. Then verify per `references/verify-setup.md`: links, triggers, stale
|
|
102
|
+
placeholders, overrides content, target-local command discovery, prompt
|
|
103
|
+
reference resolution, and clean-session policy use. An unchanged accepted state
|
|
104
|
+
is a byte-identical no-op with no regeneration.
|
|
105
|
+
|
|
106
|
+
## Repeated runs and change requests
|
|
107
|
+
|
|
108
|
+
Rules and commands are the default scope; include agent prompts when the change
|
|
109
|
+
needs them or the user asks. A scoped request updates only affected files and
|
|
110
|
+
their necessary indexes, references, and adapters. Repeating a fulfilled
|
|
111
|
+
request adds no duplicates. A new change request re-opens its affected scope
|
|
112
|
+
even when template versions are unchanged.
|
|
113
|
+
|
|
114
|
+
## Headless and unanswered decisions
|
|
115
|
+
|
|
116
|
+
Without a live user: discover, propose, stop. Unanswered decisions never lead
|
|
117
|
+
to dependent apply. Say what is blocked and what the user must decide.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Apply contract: candidate diff → reviewed apply → verified provenance
|
|
2
|
+
|
|
3
|
+
Deterministic rules for writing target `.ai/` content, sidecar entries,
|
|
4
|
+
pointer edits, and adapters. This reference holds no merge algorithm for
|
|
5
|
+
overrides and no transaction subsystem: content and sidecar go through
|
|
6
|
+
`applyAcceptedProjectFiles` in `bin/lib/project-provenance.js` (backed by
|
|
7
|
+
`bin/lib/transaction.js`), pointer regions through `extractRegion` /
|
|
8
|
+
`replaceRegion` in `bin/lib/merge-forms.js`, and settings through
|
|
9
|
+
`agent-fleet configure`. The model produces candidate bytes; only reviewed,
|
|
10
|
+
accepted bytes are written.
|
|
11
|
+
|
|
12
|
+
## Candidate diff
|
|
13
|
+
|
|
14
|
+
Show a concrete diff before every write: file path, classification, the
|
|
15
|
+
recorded decision it implements, and the full new bytes (or region-scoped
|
|
16
|
+
hunk for pointer edits). Unrelated files and unrelated hunks are explicitly
|
|
17
|
+
out of scope in the diff header. A stale preview — bytes changed after the
|
|
18
|
+
diff was shown — is re-shown, never applied blindly.
|
|
19
|
+
|
|
20
|
+
## Classification → action
|
|
21
|
+
|
|
22
|
+
Computed by `classifyProjectFile` (current bytes vs `appliedHash`, source
|
|
23
|
+
identity/version/hash vs the sidecar record):
|
|
24
|
+
|
|
25
|
+
| Status | Action |
|
|
26
|
+
|---|---|
|
|
27
|
+
| `unchanged`, no requested change | Byte-identical no-op. No generator call, no timestamp or metadata touch. |
|
|
28
|
+
| `unknown` (missing / corrupt / unrecorded / unknown template / deleted) | Human-owned or broken state. Propose adoption or repair; apply only with explicit `adopt` acceptance. Never overwrite or auto-restore. |
|
|
29
|
+
| `local-edit` | Preserve the file. On a requested update touching it, reconcile: keep the accepted local lines, add the new decision's content, and say what was kept. |
|
|
30
|
+
| `source-update` | Template changed, local bytes clean. Candidate shows the adapted update (re-adapted to the target, not pasted); review before apply. |
|
|
31
|
+
| `conflict` (source and local both changed) | Explicit reconciliation preserving accepted local choices. No automatic three-way merge; a missing base snapshot is reported, never invented. |
|
|
32
|
+
|
|
33
|
+
An apply that meets anything but clean `unchanged` / `source-update`
|
|
34
|
+
without `adopt` / `reconciled` fails loudly instead of overwriting.
|
|
35
|
+
|
|
36
|
+
## Write and record
|
|
37
|
+
|
|
38
|
+
- `applyAcceptedProjectFiles` writes only changes carrying explicit
|
|
39
|
+
`accepted: true`, then records the sidecar entry (origin, evidence,
|
|
40
|
+
accepted decision, inputs, `appliedHash` of the exact bytes written)
|
|
41
|
+
**only for files successfully written and re-read**. Preserve / skip never
|
|
42
|
+
changes `appliedHash`.
|
|
43
|
+
- Partial apply and interruption leave a visible mismatch, never a success
|
|
44
|
+
report: the transaction rolls project files and sidecar back together, and
|
|
45
|
+
the error states exactly what was written and what remains.
|
|
46
|
+
- Repeating a fulfilled request writes nothing new: same bytes re-classify as
|
|
47
|
+
`unchanged`, no duplicate files, adapters, or index entries.
|
|
48
|
+
|
|
49
|
+
## Pointer edits and adapters
|
|
50
|
+
|
|
51
|
+
- Small pointer edits in human-owned files (`AGENTS.md`, docs indexes) are
|
|
52
|
+
key- or region-scoped (`extractRegion` / `replaceRegion`): the managed
|
|
53
|
+
region is replaced, everything outside the sentinels is preserved
|
|
54
|
+
byte-for-byte. They never convert the host file into a generated file and
|
|
55
|
+
never gain provenance entries.
|
|
56
|
+
- Target-local slash adapters resolve their canonical `.ai/commands` source
|
|
57
|
+
and pass invocation inputs; they copy no policy. One adapter per selected
|
|
58
|
+
command, created once, never duplicated on repeat runs. Adapters and
|
|
59
|
+
human-owned files are not installer-owned items.
|
|
60
|
+
|
|
61
|
+
## CLI integration
|
|
62
|
+
|
|
63
|
+
Settings are not written here. The skill shows the `agent-fleet configure`
|
|
64
|
+
preview (`--dry-run`), the user reviews `before` / `after` /
|
|
65
|
+
`expectedHash`, and the CLI applies (`--expect-hash … --yes`). Omitted keys
|
|
66
|
+
stay byte-identical. See `setup-flow.md` §4 for the exact commands.
|
|
67
|
+
|
|
68
|
+
## Semantic bar
|
|
69
|
+
|
|
70
|
+
Every adapted file is checked for meaning, not just paths: no imported
|
|
71
|
+
reference-repository defaults without target evidence, no invented
|
|
72
|
+
paths/checks/commands, no dropped applicable constraint, and consistency
|
|
73
|
+
across the adapted rules, commands, and agent prompts. A path-substitution-only
|
|
74
|
+
result fails review.
|