@chankov/agent-fleet 2.0.21 → 2.0.23

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.
Files changed (1359) hide show
  1. package/.pi/agent-fleet/scripts/coms-claude-bridge.ts +5 -2
  2. package/.pi/agent-fleet/scripts/coms-cli.ts +9 -4
  3. package/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +5 -2
  4. package/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
  5. package/.pi/agent-fleet/scripts/fleet.ts +32 -4
  6. package/.pi/agent-fleet/scripts/flow.ts +10 -1
  7. package/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +1 -1
  8. package/.pi/agent-fleet/scripts/lib/fleet-command.ts +14 -0
  9. package/.pi/agent-fleet/scripts/lib/flow-command.ts +9 -0
  10. package/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +14 -6
  11. package/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
  12. package/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
  13. package/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
  14. package/.pi/agent-fleet/scripts/lib/team-snapshot.ts +13 -0
  15. package/.pi/agent-fleet/scripts/peer-launch.ts +17 -11
  16. package/.pi/agent-fleet/scripts/pi-session.ts +9 -0
  17. package/.pi/agent-fleet/scripts/team-snapshot.ts +14 -6
  18. package/.pi/agent-fleet/scripts/team-up.ts +16 -9
  19. package/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +5 -3
  20. package/.pi/agent-fleet/scripts/workflows/lib/env.ts +3 -1
  21. package/.pi/agent-fleet/scripts/workflows/lib/git.ts +4 -1
  22. package/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +10 -5
  23. package/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +15 -8
  24. package/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +5 -4
  25. package/.pi/agent-fleet/scripts/workflows/lib/quality.ts +3 -2
  26. package/.pi/agent-fleet/scripts/workflows/lib/run.ts +1 -0
  27. package/.pi/agent-fleet/scripts/workflows/lib/trace.ts +23 -5
  28. package/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +59 -23
  29. package/.pi/agents/model-profiles.yaml +3 -3
  30. package/.pi/extensions/btw/index.ts +2 -0
  31. package/.pi/extensions/pi-voice-stt/config.ts +5 -4
  32. package/.pi/harnesses/agent-hub/README.md +10 -0
  33. package/.pi/harnesses/agent-hub/acceptance.ts +2 -1
  34. package/.pi/harnesses/agent-hub/agentic-hub.ts +2 -1
  35. package/.pi/harnesses/agent-hub/config/agents.ts +3 -0
  36. package/.pi/harnesses/agent-hub/config/overrides.ts +4 -3
  37. package/.pi/harnesses/agent-hub/context-continuity-broker.ts +7 -5
  38. package/.pi/harnesses/agent-hub/context-continuity-client.ts +6 -3
  39. package/.pi/harnesses/agent-hub/context-continuity-owners.ts +5 -3
  40. package/.pi/harnesses/agent-hub/damage-guard-hub.ts +11 -4
  41. package/.pi/harnesses/agent-hub/damage-guard-owners.ts +5 -0
  42. package/.pi/harnesses/agent-hub/dispatch-coms.ts +7 -2
  43. package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +3 -1
  44. package/.pi/harnesses/agent-hub/execution-evidence.ts +20 -4
  45. package/.pi/harnesses/agent-hub/external-blocker.js +9 -2
  46. package/.pi/harnesses/agent-hub/file-discovery/hub.ts +2 -1
  47. package/.pi/harnesses/agent-hub/file-discovery/owners.ts +7 -3
  48. package/.pi/harnesses/agent-hub/index.ts +4 -3
  49. package/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +3 -2
  50. package/.pi/harnesses/agent-hub/no-progress.ts +4 -2
  51. package/.pi/harnesses/agent-hub/package.json +1 -1
  52. package/.pi/harnesses/agent-hub/presentation.ts +7 -1
  53. package/.pi/harnesses/agent-hub/proactive-config.ts +2 -1
  54. package/.pi/harnesses/agent-hub/proactive-rules.ts +1 -1
  55. package/.pi/harnesses/agent-hub/proactive-snapshot.ts +12 -4
  56. package/.pi/harnesses/agent-hub/proactive-types.ts +3 -0
  57. package/.pi/harnesses/agent-hub/runtime-test-check.ts +16 -2
  58. package/.pi/harnesses/agent-hub/safety-routing.ts +7 -1
  59. package/.pi/harnesses/agent-hub/scope-gate.js +10 -5
  60. package/.pi/harnesses/agent-hub/spawn.ts +30 -4
  61. package/.pi/harnesses/agent-hub/system1-runtime.ts +9 -3
  62. package/.pi/harnesses/agent-hub/task-triage-config.ts +2 -1
  63. package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +3 -2
  64. package/.pi/harnesses/agent-hub/tools/fleet-tools.ts +3 -2
  65. package/.pi/harnesses/agent-hub/tools/herdr-executors.ts +11 -6
  66. package/.pi/harnesses/agent-hub/tools/run-flow.ts +21 -11
  67. package/.pi/harnesses/ask-user-remote/index.ts +4 -2
  68. package/.pi/harnesses/coms/package.json +1 -1
  69. package/.pi/harnesses/damage-control-continue/index.ts +25 -4
  70. package/.pi/harnesses/damage-control-continue/package.json +1 -1
  71. package/.pi/harnesses/damage-control-continue/system1-child.ts +16 -6
  72. package/.pi/harnesses/lib/bash-policy-analysis.ts +31 -1
  73. package/.pi/harnesses/lib/coms-core-io.ts +2 -0
  74. package/.pi/harnesses/lib/coms-core.ts +7 -1
  75. package/.pi/harnesses/lib/coms-registry-entry.ts +3 -0
  76. package/.pi/harnesses/lib/damage-control-shared.ts +17 -1
  77. package/.pi/harnesses/lib/damage-policy.ts +35 -0
  78. package/.pi/harnesses/lib/peer-target.ts +24 -0
  79. package/.pi/harnesses/lib/policy-roots.js +20 -9
  80. package/.pi/harnesses/lib/policy-roots.ts +2 -1
  81. package/.pi/harnesses/lib/resource-closure.js +26 -0
  82. package/.pi/harnesses/lib/session-target.ts +62 -0
  83. package/.pi/harnesses/lib/system1/config-loader.js +12 -3
  84. package/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
  85. package/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
  86. package/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
  87. package/.pi/harnesses/lib/target-capabilities.js +7 -0
  88. package/.pi/harnesses/lib/workspace-context.js +115 -0
  89. package/.pi/harnesses/lib/workspace-context.ts +22 -0
  90. package/.versions/2.0.22/.pi/agent-fleet/hermes/README.md +347 -0
  91. package/.versions/2.0.22/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
  92. package/.versions/2.0.22/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
  93. package/.versions/2.0.22/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
  94. package/.versions/2.0.22/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
  95. package/.versions/2.0.22/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
  96. package/.versions/2.0.22/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
  97. package/.versions/2.0.22/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
  98. package/.versions/2.0.22/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
  99. package/.versions/2.0.22/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
  100. package/.versions/2.0.22/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
  101. package/.versions/2.0.22/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
  102. package/.versions/2.0.22/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
  103. package/.versions/2.0.22/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
  104. package/.versions/2.0.22/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
  105. package/.versions/2.0.22/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
  106. package/.versions/2.0.22/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
  107. package/.versions/2.0.22/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
  108. package/.versions/2.0.22/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
  109. package/.versions/2.0.22/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
  110. package/.versions/2.0.22/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
  111. package/.versions/2.0.22/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
  112. package/.versions/2.0.22/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
  113. package/.versions/2.0.22/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
  114. package/.versions/2.0.22/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
  115. package/.versions/2.0.22/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
  116. package/.versions/2.0.22/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
  117. package/.versions/2.0.22/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
  118. package/.versions/2.0.22/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
  119. package/.versions/2.0.22/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
  120. package/.versions/2.0.22/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
  121. package/.versions/2.0.22/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
  122. package/.versions/2.0.22/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
  123. package/.versions/2.0.22/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
  124. package/.versions/2.0.22/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
  125. package/.versions/2.0.22/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
  126. package/.versions/2.0.22/.pi/agent-fleet/scripts/coms-claude-bridge.ts +437 -0
  127. package/.versions/2.0.22/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
  128. package/.versions/2.0.22/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
  129. package/.versions/2.0.22/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
  130. package/.versions/2.0.22/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
  131. package/.versions/2.0.22/.pi/agent-fleet/scripts/fleet.ts +217 -0
  132. package/.versions/2.0.22/.pi/agent-fleet/scripts/flow.ts +157 -0
  133. package/.versions/2.0.22/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
  134. package/.versions/2.0.22/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
  135. package/.versions/2.0.22/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
  136. package/.versions/2.0.22/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
  137. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
  138. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
  139. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
  140. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
  141. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
  142. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
  143. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
  144. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
  145. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/flow-command.ts +98 -0
  146. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
  147. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
  148. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
  149. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
  150. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
  151. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
  152. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
  153. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
  154. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
  155. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
  156. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
  157. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
  158. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
  159. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
  160. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
  161. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
  162. package/.versions/2.0.22/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
  163. package/.versions/2.0.22/.pi/agent-fleet/scripts/package-lock.json +35 -0
  164. package/.versions/2.0.22/.pi/agent-fleet/scripts/package.json +9 -0
  165. package/.versions/2.0.22/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
  166. package/.versions/2.0.22/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
  167. package/.versions/2.0.22/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
  168. package/.versions/2.0.22/.pi/agent-fleet/scripts/team-up.ts +378 -0
  169. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +179 -0
  170. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
  171. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
  172. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
  173. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
  174. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
  175. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
  176. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
  177. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
  178. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
  179. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
  180. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
  181. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
  182. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
  183. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +36 -0
  184. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
  185. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
  186. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
  187. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
  188. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
  189. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
  190. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
  191. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
  192. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
  193. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
  194. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
  195. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
  196. package/.versions/2.0.22/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
  197. package/.versions/2.0.22/.pi/agents/dispatch-policy.yaml +32 -0
  198. package/.versions/2.0.22/.pi/agents/model-profiles.yaml +134 -0
  199. package/.versions/2.0.22/.pi/agents/peers.yaml +147 -0
  200. package/.versions/2.0.22/.pi/agents/teams.yaml +41 -0
  201. package/.versions/2.0.22/.pi/agents/voices.yaml +13 -0
  202. package/.versions/2.0.22/.pi/damage-control-rules.yaml +297 -0
  203. package/.versions/2.0.22/.pi/extensions/btw/README.md +120 -0
  204. package/.versions/2.0.22/.pi/extensions/btw/index.ts +914 -0
  205. package/.versions/2.0.22/.pi/extensions/btw/package.json +6 -0
  206. package/.versions/2.0.22/.pi/extensions/btw/state.js +179 -0
  207. package/.versions/2.0.22/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
  208. package/.versions/2.0.22/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
  209. package/.versions/2.0.22/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  210. package/.versions/2.0.22/.pi/extensions/compact-and-continue/README.md +42 -0
  211. package/.versions/2.0.22/.pi/extensions/compact-and-continue/index.ts +136 -0
  212. package/.versions/2.0.22/.pi/extensions/compact-and-continue/package.json +6 -0
  213. package/.versions/2.0.22/.pi/extensions/mcp-bridge/README.md +46 -0
  214. package/.versions/2.0.22/.pi/extensions/mcp-bridge/index.ts +206 -0
  215. package/.versions/2.0.22/.pi/extensions/mcp-bridge/package.json +6 -0
  216. package/.versions/2.0.22/.pi/extensions/package-lock.json +1175 -0
  217. package/.versions/2.0.22/.pi/extensions/package.json +9 -0
  218. package/.versions/2.0.22/.pi/extensions/pi-voice-stt/README.md +224 -0
  219. package/.versions/2.0.22/.pi/extensions/pi-voice-stt/config.ts +198 -0
  220. package/.versions/2.0.22/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
  221. package/.versions/2.0.22/.pi/extensions/pi-voice-stt/index.ts +248 -0
  222. package/.versions/2.0.22/.pi/extensions/pi-voice-stt/package.json +6 -0
  223. package/.versions/2.0.22/.pi/extensions/pi-voice-stt/providers.ts +214 -0
  224. package/.versions/2.0.22/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
  225. package/.versions/2.0.22/.pi/harnesses/agent-hub/README.md +1527 -0
  226. package/.versions/2.0.22/.pi/harnesses/agent-hub/acceptance.ts +200 -0
  227. package/.versions/2.0.22/.pi/harnesses/agent-hub/access-approval.ts +141 -0
  228. package/.versions/2.0.22/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
  229. package/.versions/2.0.22/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
  230. package/.versions/2.0.22/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
  231. package/.versions/2.0.22/.pi/harnesses/agent-hub/agentic-hub.ts +54 -0
  232. package/.versions/2.0.22/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
  233. package/.versions/2.0.22/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
  234. package/.versions/2.0.22/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
  235. package/.versions/2.0.22/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
  236. package/.versions/2.0.22/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
  237. package/.versions/2.0.22/.pi/harnesses/agent-hub/artifacts.js +146 -0
  238. package/.versions/2.0.22/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
  239. package/.versions/2.0.22/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
  240. package/.versions/2.0.22/.pi/harnesses/agent-hub/backend-policy.js +174 -0
  241. package/.versions/2.0.22/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
  242. package/.versions/2.0.22/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
  243. package/.versions/2.0.22/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
  244. package/.versions/2.0.22/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
  245. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
  246. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
  247. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
  248. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
  249. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
  250. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
  251. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
  252. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
  253. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
  254. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
  255. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
  256. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
  257. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
  258. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
  259. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
  260. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/context.ts +46 -0
  261. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
  262. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
  263. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
  264. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
  265. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/models.ts +10 -0
  266. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
  267. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
  268. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
  269. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
  270. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
  271. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
  272. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
  273. package/.versions/2.0.22/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
  274. package/.versions/2.0.22/.pi/harnesses/agent-hub/config/agents.ts +178 -0
  275. package/.versions/2.0.22/.pi/harnesses/agent-hub/config/model-profiles.ts +237 -0
  276. package/.versions/2.0.22/.pi/harnesses/agent-hub/config/overrides.ts +165 -0
  277. package/.versions/2.0.22/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
  278. package/.versions/2.0.22/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
  279. package/.versions/2.0.22/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
  280. package/.versions/2.0.22/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
  281. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
  282. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
  283. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
  284. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
  285. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
  286. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-continuity-broker.ts +42 -0
  287. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
  288. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-continuity-client.ts +19 -0
  289. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-continuity-compat.ts +30 -0
  290. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-continuity-owners.ts +15 -0
  291. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
  292. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
  293. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
  294. package/.versions/2.0.22/.pi/harnesses/agent-hub/context-window.js +108 -0
  295. package/.versions/2.0.22/.pi/harnesses/agent-hub/damage-guard-approval.ts +59 -0
  296. package/.versions/2.0.22/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
  297. package/.versions/2.0.22/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
  298. package/.versions/2.0.22/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
  299. package/.versions/2.0.22/.pi/harnesses/agent-hub/damage-guard-hub.ts +254 -0
  300. package/.versions/2.0.22/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
  301. package/.versions/2.0.22/.pi/harnesses/agent-hub/damage-guard-owners.ts +54 -0
  302. package/.versions/2.0.22/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
  303. package/.versions/2.0.22/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
  304. package/.versions/2.0.22/.pi/harnesses/agent-hub/debate-command.ts +176 -0
  305. package/.versions/2.0.22/.pi/harnesses/agent-hub/delegate.ts +478 -0
  306. package/.versions/2.0.22/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
  307. package/.versions/2.0.22/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
  308. package/.versions/2.0.22/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
  309. package/.versions/2.0.22/.pi/harnesses/agent-hub/dispatch-coms.ts +253 -0
  310. package/.versions/2.0.22/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
  311. package/.versions/2.0.22/.pi/harnesses/agent-hub/dispatch-native-complete.ts +173 -0
  312. package/.versions/2.0.22/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +295 -0
  313. package/.versions/2.0.22/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +255 -0
  314. package/.versions/2.0.22/.pi/harnesses/agent-hub/dispatch-native-types.ts +293 -0
  315. package/.versions/2.0.22/.pi/harnesses/agent-hub/dispatch-native.ts +236 -0
  316. package/.versions/2.0.22/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
  317. package/.versions/2.0.22/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
  318. package/.versions/2.0.22/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
  319. package/.versions/2.0.22/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
  320. package/.versions/2.0.22/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
  321. package/.versions/2.0.22/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
  322. package/.versions/2.0.22/.pi/harnesses/agent-hub/docs-lane.js +123 -0
  323. package/.versions/2.0.22/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
  324. package/.versions/2.0.22/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
  325. package/.versions/2.0.22/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
  326. package/.versions/2.0.22/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
  327. package/.versions/2.0.22/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
  328. package/.versions/2.0.22/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
  329. package/.versions/2.0.22/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
  330. package/.versions/2.0.22/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
  331. package/.versions/2.0.22/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
  332. package/.versions/2.0.22/.pi/harnesses/agent-hub/external-blocker.js +92 -0
  333. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
  334. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
  335. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
  336. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
  337. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
  338. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
  339. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
  340. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
  341. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/hub.ts +169 -0
  342. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
  343. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
  344. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/owners.ts +96 -0
  345. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
  346. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
  347. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
  348. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
  349. package/.versions/2.0.22/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
  350. package/.versions/2.0.22/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
  351. package/.versions/2.0.22/.pi/harnesses/agent-hub/fixtures/registration-surface.json +66 -0
  352. package/.versions/2.0.22/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
  353. package/.versions/2.0.22/.pi/harnesses/agent-hub/footer.ts +30 -0
  354. package/.versions/2.0.22/.pi/harnesses/agent-hub/helpers.ts +270 -0
  355. package/.versions/2.0.22/.pi/harnesses/agent-hub/history-projection.ts +116 -0
  356. package/.versions/2.0.22/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
  357. package/.versions/2.0.22/.pi/harnesses/agent-hub/index.ts +2616 -0
  358. package/.versions/2.0.22/.pi/harnesses/agent-hub/input/completions.ts +82 -0
  359. package/.versions/2.0.22/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
  360. package/.versions/2.0.22/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
  361. package/.versions/2.0.22/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
  362. package/.versions/2.0.22/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +144 -0
  363. package/.versions/2.0.22/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
  364. package/.versions/2.0.22/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
  365. package/.versions/2.0.22/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
  366. package/.versions/2.0.22/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
  367. package/.versions/2.0.22/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
  368. package/.versions/2.0.22/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
  369. package/.versions/2.0.22/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
  370. package/.versions/2.0.22/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
  371. package/.versions/2.0.22/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
  372. package/.versions/2.0.22/.pi/harnesses/agent-hub/no-progress.ts +622 -0
  373. package/.versions/2.0.22/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
  374. package/.versions/2.0.22/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
  375. package/.versions/2.0.22/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
  376. package/.versions/2.0.22/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
  377. package/.versions/2.0.22/.pi/harnesses/agent-hub/package.json +7 -0
  378. package/.versions/2.0.22/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
  379. package/.versions/2.0.22/.pi/harnesses/agent-hub/policy/models.ts +153 -0
  380. package/.versions/2.0.22/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
  381. package/.versions/2.0.22/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
  382. package/.versions/2.0.22/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
  383. package/.versions/2.0.22/.pi/harnesses/agent-hub/policy/work-mode.ts +142 -0
  384. package/.versions/2.0.22/.pi/harnesses/agent-hub/poll-command.ts +176 -0
  385. package/.versions/2.0.22/.pi/harnesses/agent-hub/presentation.ts +48 -0
  386. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-config.ts +21 -0
  387. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
  388. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
  389. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
  390. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
  391. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
  392. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
  393. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
  394. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
  395. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
  396. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
  397. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
  398. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-snapshot.ts +271 -0
  399. package/.versions/2.0.22/.pi/harnesses/agent-hub/proactive-types.ts +67 -0
  400. package/.versions/2.0.22/.pi/harnesses/agent-hub/process-obligations.ts +159 -0
  401. package/.versions/2.0.22/.pi/harnesses/agent-hub/prompts/context.ts +55 -0
  402. package/.versions/2.0.22/.pi/harnesses/agent-hub/prompts/fragments.ts +86 -0
  403. package/.versions/2.0.22/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
  404. package/.versions/2.0.22/.pi/harnesses/agent-hub/prompts/system-prompt.ts +125 -0
  405. package/.versions/2.0.22/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
  406. package/.versions/2.0.22/.pi/harnesses/agent-hub/reconcile.ts +26 -0
  407. package/.versions/2.0.22/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
  408. package/.versions/2.0.22/.pi/harnesses/agent-hub/recover-state.ts +104 -0
  409. package/.versions/2.0.22/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
  410. package/.versions/2.0.22/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
  411. package/.versions/2.0.22/.pi/harnesses/agent-hub/research/controls.ts +74 -0
  412. package/.versions/2.0.22/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
  413. package/.versions/2.0.22/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
  414. package/.versions/2.0.22/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
  415. package/.versions/2.0.22/.pi/harnesses/agent-hub/return-contract.js +349 -0
  416. package/.versions/2.0.22/.pi/harnesses/agent-hub/return-extract.js +77 -0
  417. package/.versions/2.0.22/.pi/harnesses/agent-hub/review-closure.ts +43 -0
  418. package/.versions/2.0.22/.pi/harnesses/agent-hub/review-continuity.ts +73 -0
  419. package/.versions/2.0.22/.pi/harnesses/agent-hub/review-findings.js +96 -0
  420. package/.versions/2.0.22/.pi/harnesses/agent-hub/review-reuse.ts +47 -0
  421. package/.versions/2.0.22/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
  422. package/.versions/2.0.22/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
  423. package/.versions/2.0.22/.pi/harnesses/agent-hub/run-budget.js +342 -0
  424. package/.versions/2.0.22/.pi/harnesses/agent-hub/run-namespace.js +93 -0
  425. package/.versions/2.0.22/.pi/harnesses/agent-hub/runtime-test-check.ts +68 -0
  426. package/.versions/2.0.22/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
  427. package/.versions/2.0.22/.pi/harnesses/agent-hub/scope-gate.js +228 -0
  428. package/.versions/2.0.22/.pi/harnesses/agent-hub/session-audit.ts +331 -0
  429. package/.versions/2.0.22/.pi/harnesses/agent-hub/session-health.js +110 -0
  430. package/.versions/2.0.22/.pi/harnesses/agent-hub/session-start.ts +42 -0
  431. package/.versions/2.0.22/.pi/harnesses/agent-hub/spawn.ts +639 -0
  432. package/.versions/2.0.22/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
  433. package/.versions/2.0.22/.pi/harnesses/agent-hub/specialist-result.ts +69 -0
  434. package/.versions/2.0.22/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
  435. package/.versions/2.0.22/.pi/harnesses/agent-hub/system1-communication-store.ts +217 -0
  436. package/.versions/2.0.22/.pi/harnesses/agent-hub/system1-report.ts +275 -0
  437. package/.versions/2.0.22/.pi/harnesses/agent-hub/system1-runtime.ts +265 -0
  438. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
  439. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
  440. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-triage-authorization.ts +151 -0
  441. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-triage-config.ts +20 -0
  442. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
  443. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
  444. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
  445. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
  446. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
  447. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
  448. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
  449. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
  450. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
  451. package/.versions/2.0.22/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
  452. package/.versions/2.0.22/.pi/harnesses/agent-hub/timeline.ts +72 -0
  453. package/.versions/2.0.22/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +79 -0
  454. package/.versions/2.0.22/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
  455. package/.versions/2.0.22/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
  456. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/action-executors.ts +214 -0
  457. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
  458. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
  459. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
  460. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/context.ts +144 -0
  461. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +88 -0
  462. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +641 -0
  463. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
  464. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
  465. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
  466. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/herdr-executors.ts +95 -0
  467. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/run-flow.ts +136 -0
  468. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
  469. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
  470. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
  471. package/.versions/2.0.22/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
  472. package/.versions/2.0.22/.pi/harnesses/agent-hub/tsconfig.json +22 -0
  473. package/.versions/2.0.22/.pi/harnesses/agent-hub/types.ts +66 -0
  474. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
  475. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
  476. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
  477. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
  478. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +155 -0
  479. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
  480. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
  481. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
  482. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
  483. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/history.ts +234 -0
  484. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
  485. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
  486. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
  487. package/.versions/2.0.22/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
  488. package/.versions/2.0.22/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
  489. package/.versions/2.0.22/.pi/harnesses/agent-hub/version.ts +42 -0
  490. package/.versions/2.0.22/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
  491. package/.versions/2.0.22/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
  492. package/.versions/2.0.22/.pi/harnesses/agent-hub/work-mode.ts +186 -0
  493. package/.versions/2.0.22/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
  494. package/.versions/2.0.22/.pi/harnesses/ask-user-remote/README.md +59 -0
  495. package/.versions/2.0.22/.pi/harnesses/ask-user-remote/index.ts +569 -0
  496. package/.versions/2.0.22/.pi/harnesses/ask-user-remote/questions.ts +159 -0
  497. package/.versions/2.0.22/.pi/harnesses/ask-user-remote/race-core.js +124 -0
  498. package/.versions/2.0.22/.pi/harnesses/ask-user-remote/runtime-ask.ts +83 -0
  499. package/.versions/2.0.22/.pi/harnesses/coms/README.md +100 -0
  500. package/.versions/2.0.22/.pi/harnesses/coms/index.ts +285 -0
  501. package/.versions/2.0.22/.pi/harnesses/coms/package.json +7 -0
  502. package/.versions/2.0.22/.pi/harnesses/coms/version.ts +42 -0
  503. package/.versions/2.0.22/.pi/harnesses/damage-control-continue/README.md +161 -0
  504. package/.versions/2.0.22/.pi/harnesses/damage-control-continue/index.ts +600 -0
  505. package/.versions/2.0.22/.pi/harnesses/damage-control-continue/package.json +7 -0
  506. package/.versions/2.0.22/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
  507. package/.versions/2.0.22/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
  508. package/.versions/2.0.22/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
  509. package/.versions/2.0.22/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
  510. package/.versions/2.0.22/.pi/harnesses/damage-control-continue/version.ts +42 -0
  511. package/.versions/2.0.22/.pi/harnesses/lib/approval-wait.ts +17 -0
  512. package/.versions/2.0.22/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
  513. package/.versions/2.0.22/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
  514. package/.versions/2.0.22/.pi/harnesses/lib/clarification-policy.ts +9 -0
  515. package/.versions/2.0.22/.pi/harnesses/lib/coms-core-io.ts +413 -0
  516. package/.versions/2.0.22/.pi/harnesses/lib/coms-core.ts +680 -0
  517. package/.versions/2.0.22/.pi/harnesses/lib/coms-registry-entry.ts +96 -0
  518. package/.versions/2.0.22/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
  519. package/.versions/2.0.22/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
  520. package/.versions/2.0.22/.pi/harnesses/lib/context-budget-view.ts +112 -0
  521. package/.versions/2.0.22/.pi/harnesses/lib/context-budget.ts +114 -0
  522. package/.versions/2.0.22/.pi/harnesses/lib/context-compaction-policy.js +35 -0
  523. package/.versions/2.0.22/.pi/harnesses/lib/damage-action-hash.ts +28 -0
  524. package/.versions/2.0.22/.pi/harnesses/lib/damage-control-shared.ts +229 -0
  525. package/.versions/2.0.22/.pi/harnesses/lib/damage-guard-port.ts +25 -0
  526. package/.versions/2.0.22/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
  527. package/.versions/2.0.22/.pi/harnesses/lib/damage-result-view.ts +16 -0
  528. package/.versions/2.0.22/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
  529. package/.versions/2.0.22/.pi/harnesses/lib/execution-trace.ts +45 -0
  530. package/.versions/2.0.22/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
  531. package/.versions/2.0.22/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
  532. package/.versions/2.0.22/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
  533. package/.versions/2.0.22/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
  534. package/.versions/2.0.22/.pi/harnesses/lib/fleet-dashboard-view.ts +172 -0
  535. package/.versions/2.0.22/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
  536. package/.versions/2.0.22/.pi/harnesses/lib/fleet-overlay.ts +26 -0
  537. package/.versions/2.0.22/.pi/harnesses/lib/fleet-panel.ts +34 -0
  538. package/.versions/2.0.22/.pi/harnesses/lib/fleet-read-model.ts +609 -0
  539. package/.versions/2.0.22/.pi/harnesses/lib/fleet-selection.ts +24 -0
  540. package/.versions/2.0.22/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
  541. package/.versions/2.0.22/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
  542. package/.versions/2.0.22/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
  543. package/.versions/2.0.22/.pi/harnesses/lib/herdr-client.ts +472 -0
  544. package/.versions/2.0.22/.pi/harnesses/lib/herdr-presence.ts +399 -0
  545. package/.versions/2.0.22/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
  546. package/.versions/2.0.22/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
  547. package/.versions/2.0.22/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
  548. package/.versions/2.0.22/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
  549. package/.versions/2.0.22/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
  550. package/.versions/2.0.22/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
  551. package/.versions/2.0.22/.pi/harnesses/lib/identical-dialog.ts +27 -0
  552. package/.versions/2.0.22/.pi/harnesses/lib/installation-state.js +62 -0
  553. package/.versions/2.0.22/.pi/harnesses/lib/policy-roots.js +106 -0
  554. package/.versions/2.0.22/.pi/harnesses/lib/policy-roots.ts +31 -0
  555. package/.versions/2.0.22/.pi/harnesses/lib/process-shared.ts +9 -0
  556. package/.versions/2.0.22/.pi/harnesses/lib/safe-source-read.js +29 -0
  557. package/.versions/2.0.22/.pi/harnesses/lib/semantic-approval.ts +80 -0
  558. package/.versions/2.0.22/.pi/harnesses/lib/spawned-peers.js +191 -0
  559. package/.versions/2.0.22/.pi/harnesses/lib/system1/config-agentic.js +15 -0
  560. package/.versions/2.0.22/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
  561. package/.versions/2.0.22/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
  562. package/.versions/2.0.22/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
  563. package/.versions/2.0.22/.pi/harnesses/lib/system1/config-json.js +37 -0
  564. package/.versions/2.0.22/.pi/harnesses/lib/system1/config-loader.js +44 -0
  565. package/.versions/2.0.22/.pi/harnesses/lib/system1/config-proactive.js +68 -0
  566. package/.versions/2.0.22/.pi/harnesses/lib/system1/config-triage.js +42 -0
  567. package/.versions/2.0.22/.pi/harnesses/lib/system1/config-v2.js +112 -0
  568. package/.versions/2.0.22/.pi/harnesses/lib/system1/config.js +50 -0
  569. package/.versions/2.0.22/.pi/harnesses/lib/system1/contracts.ts +154 -0
  570. package/.versions/2.0.22/.pi/harnesses/lib/system1/demo.ts +95 -0
  571. package/.versions/2.0.22/.pi/harnesses/lib/system1/jev.ts +503 -0
  572. package/.versions/2.0.22/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
  573. package/.versions/2.0.22/.pi/harnesses/lib/system1/selection.js +11 -0
  574. package/.versions/2.0.22/.pi/harnesses/lib/system1/service.ts +245 -0
  575. package/.versions/2.0.22/.pi/harnesses/lib/update-check.ts +222 -0
  576. package/.versions/2.0.22/.pi/harnesses/package-lock.json +2121 -0
  577. package/.versions/2.0.22/.pi/harnesses/package.json +13 -0
  578. package/.versions/2.0.22/.pi/prompts/af-build.md +27 -0
  579. package/.versions/2.0.22/.pi/prompts/af-code-simplify.md +22 -0
  580. package/.versions/2.0.22/.pi/prompts/af-constraints.md +31 -0
  581. package/.versions/2.0.22/.pi/prompts/af-plan.md +17 -0
  582. package/.versions/2.0.22/.pi/prompts/af-review.md +16 -0
  583. package/.versions/2.0.22/.pi/prompts/af-set-hermes-telegram.md +15 -0
  584. package/.versions/2.0.22/.pi/prompts/af-set-hermes-watchdog.md +6 -0
  585. package/.versions/2.0.22/.pi/prompts/af-setup-rules.md +20 -0
  586. package/.versions/2.0.22/.pi/prompts/af-ship.md +17 -0
  587. package/.versions/2.0.22/.pi/prompts/af-spec.md +15 -0
  588. package/.versions/2.0.22/.pi/prompts/af-test.md +19 -0
  589. package/.versions/2.0.22/.pi/skills/bowser/SKILL.md +145 -0
  590. package/.versions/2.0.22/.version +1 -0
  591. package/.versions/2.0.22/agents/architect.md +24 -0
  592. package/.versions/2.0.22/agents/bowser.md +28 -0
  593. package/.versions/2.0.22/agents/builder.md +55 -0
  594. package/.versions/2.0.22/agents/code-reviewer.md +209 -0
  595. package/.versions/2.0.22/agents/deep-researcher.md +32 -0
  596. package/.versions/2.0.22/agents/documenter.md +22 -0
  597. package/.versions/2.0.22/agents/orchestrator.md +22 -0
  598. package/.versions/2.0.22/agents/plan-reviewer.md +83 -0
  599. package/.versions/2.0.22/agents/planner.md +107 -0
  600. package/.versions/2.0.22/agents/releaser.md +24 -0
  601. package/.versions/2.0.22/agents/researcher.md +30 -0
  602. package/.versions/2.0.22/agents/security-auditor.md +167 -0
  603. package/.versions/2.0.22/agents/test-engineer.md +153 -0
  604. package/.versions/2.0.22/agents/web-debugger.md +44 -0
  605. package/.versions/2.0.22/agents/web-performance-auditor.md +194 -0
  606. package/.versions/2.0.22/bin/catalog/harness-runtime-closure.json +73 -0
  607. package/.versions/2.0.22/codex/fleet-session-client/SKILL.md +34 -0
  608. package/.versions/2.0.22/codex/fleet-session-client.zip +0 -0
  609. package/.versions/2.0.22/docs/ARCHITECTURE.md +982 -0
  610. package/.versions/2.0.22/docs/agent-fleet-setup.md +1103 -0
  611. package/.versions/2.0.22/docs/claude-code-coms-bridge.md +147 -0
  612. package/.versions/2.0.22/docs/codex-session-bridge.md +219 -0
  613. package/.versions/2.0.22/docs/coms-hermes-bridge.md +188 -0
  614. package/.versions/2.0.22/docs/getting-started.md +126 -0
  615. package/.versions/2.0.22/docs/npm-install.md +535 -0
  616. package/.versions/2.0.22/docs/pi-extensions.md +455 -0
  617. package/.versions/2.0.22/docs/pi-setup.md +92 -0
  618. package/.versions/2.0.22/docs/skill-anatomy.md +150 -0
  619. package/.versions/2.0.22/install-manifest.json +3210 -0
  620. package/.versions/2.0.22/justfile +247 -0
  621. package/.versions/2.0.22/manifest-meta.json +1088 -0
  622. package/.versions/2.0.22/references/accessibility-checklist.md +160 -0
  623. package/.versions/2.0.22/references/communication-contract.md +26 -0
  624. package/.versions/2.0.22/references/definition-of-done.md +67 -0
  625. package/.versions/2.0.22/references/fleet-coordination-patterns.md +171 -0
  626. package/.versions/2.0.22/references/observability-checklist.md +92 -0
  627. package/.versions/2.0.22/references/orchestration-patterns.md +370 -0
  628. package/.versions/2.0.22/references/performance-checklist.md +236 -0
  629. package/.versions/2.0.22/references/prompting-patterns.md +380 -0
  630. package/.versions/2.0.22/references/security-checklist.md +245 -0
  631. package/.versions/2.0.22/references/testing-patterns.md +235 -0
  632. package/.versions/2.0.22/references/workflow-authoring.md +304 -0
  633. package/.versions/2.0.22/skills/_internal/grilling.md +59 -0
  634. package/.versions/2.0.22/skills/browser-testing-with-devtools/SKILL.md +351 -0
  635. package/.versions/2.0.22/skills/code-review-and-quality/SKILL.md +396 -0
  636. package/.versions/2.0.22/skills/compound-learning/SKILL.md +137 -0
  637. package/.versions/2.0.22/skills/constraint-driven-development/SKILL.md +338 -0
  638. package/.versions/2.0.22/skills/constraint-driven-development/references/floor-guard.md +99 -0
  639. package/.versions/2.0.22/skills/context-engineering/SKILL.md +341 -0
  640. package/.versions/2.0.22/skills/deprecation-and-migration/SKILL.md +247 -0
  641. package/.versions/2.0.22/skills/designing-agents/SKILL.md +394 -0
  642. package/.versions/2.0.22/skills/designing-agents/pi-harness-authoring.md +222 -0
  643. package/.versions/2.0.22/skills/drafting-workflows/SKILL.md +143 -0
  644. package/.versions/2.0.22/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
  645. package/.versions/2.0.22/skills/frontend-ui-engineering/SKILL.md +328 -0
  646. package/.versions/2.0.22/skills/git-workflow-and-versioning/SKILL.md +316 -0
  647. package/.versions/2.0.22/skills/idea-refine/SKILL.md +182 -0
  648. package/.versions/2.0.22/skills/idea-refine/examples.md +238 -0
  649. package/.versions/2.0.22/skills/idea-refine/frameworks.md +99 -0
  650. package/.versions/2.0.22/skills/idea-refine/refinement-criteria.md +113 -0
  651. package/.versions/2.0.22/skills/idea-refine/scripts/idea-refine.sh +15 -0
  652. package/.versions/2.0.22/skills/incremental-implementation/SKILL.md +353 -0
  653. package/.versions/2.0.22/skills/incremental-implementation.zip +0 -0
  654. package/.versions/2.0.22/skills/interview-me/SKILL.md +226 -0
  655. package/.versions/2.0.22/skills/orchestration-verification/SKILL.md +182 -0
  656. package/.versions/2.0.22/skills/peer-coms/SKILL.md +90 -0
  657. package/.versions/2.0.22/skills/performance-optimization/SKILL.md +496 -0
  658. package/.versions/2.0.22/skills/planning-and-task-breakdown/SKILL.md +318 -0
  659. package/.versions/2.0.22/skills/planning-and-task-breakdown.zip +0 -0
  660. package/.versions/2.0.22/skills/repository-ai-setup/SKILL.md +135 -0
  661. package/.versions/2.0.22/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
  662. package/.versions/2.0.22/skills/repository-ai-setup/references/apply-contract.md +74 -0
  663. package/.versions/2.0.22/skills/repository-ai-setup/references/provenance-template.md +16 -0
  664. package/.versions/2.0.22/skills/repository-ai-setup/references/setup-flow.md +108 -0
  665. package/.versions/2.0.22/skills/repository-ai-setup/references/verify-setup.md +20 -0
  666. package/.versions/2.0.22/skills/repository-ai-setup.zip +0 -0
  667. package/.versions/2.0.22/skills/security-and-hardening/SKILL.md +524 -0
  668. package/.versions/2.0.22/skills/spec-driven-development/SKILL.md +295 -0
  669. package/.versions/2.0.22/skills/spec-driven-development.zip +0 -0
  670. package/.versions/2.0.22/skills/using-agent-skills/SKILL.md +198 -0
  671. package/.versions/2.0.22/vendor/agent-skills-upstream/LICENSE +21 -0
  672. package/.versions/2.0.22/vendor/agent-skills-upstream/README.md +430 -0
  673. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
  674. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
  675. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
  676. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
  677. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
  678. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
  679. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
  680. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
  681. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
  682. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
  683. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
  684. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
  685. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
  686. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
  687. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
  688. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
  689. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
  690. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
  691. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
  692. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
  693. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
  694. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
  695. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
  696. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
  697. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
  698. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
  699. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
  700. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
  701. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
  702. package/.versions/2.0.22/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
  703. package/.versions/2.0.23/.pi/agent-fleet/hermes/README.md +347 -0
  704. package/.versions/2.0.23/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
  705. package/.versions/2.0.23/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
  706. package/.versions/2.0.23/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
  707. package/.versions/2.0.23/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
  708. package/.versions/2.0.23/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
  709. package/.versions/2.0.23/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
  710. package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
  711. package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
  712. package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
  713. package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
  714. package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
  715. package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
  716. package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
  717. package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
  718. package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
  719. package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
  720. package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
  721. package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
  722. package/.versions/2.0.23/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
  723. package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
  724. package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
  725. package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
  726. package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
  727. package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
  728. package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
  729. package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
  730. package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
  731. package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
  732. package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
  733. package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
  734. package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
  735. package/.versions/2.0.23/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
  736. package/.versions/2.0.23/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
  737. package/.versions/2.0.23/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
  738. package/.versions/2.0.23/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
  739. package/.versions/2.0.23/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
  740. package/.versions/2.0.23/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
  741. package/.versions/2.0.23/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
  742. package/.versions/2.0.23/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
  743. package/.versions/2.0.23/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
  744. package/.versions/2.0.23/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
  745. package/.versions/2.0.23/.pi/agent-fleet/scripts/fleet.ts +245 -0
  746. package/.versions/2.0.23/.pi/agent-fleet/scripts/flow.ts +166 -0
  747. package/.versions/2.0.23/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
  748. package/.versions/2.0.23/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
  749. package/.versions/2.0.23/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
  750. package/.versions/2.0.23/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
  751. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
  752. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
  753. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
  754. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
  755. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
  756. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
  757. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
  758. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/fleet-command.ts +266 -0
  759. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
  760. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +238 -0
  761. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
  762. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
  763. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
  764. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
  765. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
  766. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
  767. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
  768. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
  769. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
  770. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
  771. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
  772. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
  773. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
  774. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
  775. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
  776. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
  777. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
  778. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
  779. package/.versions/2.0.23/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
  780. package/.versions/2.0.23/.pi/agent-fleet/scripts/package-lock.json +35 -0
  781. package/.versions/2.0.23/.pi/agent-fleet/scripts/package.json +9 -0
  782. package/.versions/2.0.23/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
  783. package/.versions/2.0.23/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
  784. package/.versions/2.0.23/.pi/agent-fleet/scripts/pi-session.ts +9 -0
  785. package/.versions/2.0.23/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
  786. package/.versions/2.0.23/.pi/agent-fleet/scripts/team-up.ts +385 -0
  787. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
  788. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
  789. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
  790. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
  791. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
  792. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
  793. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/git.ts +99 -0
  794. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
  795. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
  796. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
  797. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
  798. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
  799. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
  800. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
  801. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
  802. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/quality.ts +65 -0
  803. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
  804. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
  805. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
  806. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
  807. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
  808. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
  809. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
  810. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
  811. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
  812. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
  813. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
  814. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
  815. package/.versions/2.0.23/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
  816. package/.versions/2.0.23/.pi/agents/dispatch-policy.yaml +32 -0
  817. package/.versions/2.0.23/.pi/agents/model-profiles.yaml +134 -0
  818. package/.versions/2.0.23/.pi/agents/peers.yaml +147 -0
  819. package/.versions/2.0.23/.pi/agents/teams.yaml +41 -0
  820. package/.versions/2.0.23/.pi/agents/voices.yaml +13 -0
  821. package/.versions/2.0.23/.pi/damage-control-rules.yaml +297 -0
  822. package/.versions/2.0.23/.pi/extensions/btw/README.md +120 -0
  823. package/.versions/2.0.23/.pi/extensions/btw/index.ts +916 -0
  824. package/.versions/2.0.23/.pi/extensions/btw/package.json +6 -0
  825. package/.versions/2.0.23/.pi/extensions/btw/state.js +179 -0
  826. package/.versions/2.0.23/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
  827. package/.versions/2.0.23/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
  828. package/.versions/2.0.23/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  829. package/.versions/2.0.23/.pi/extensions/compact-and-continue/README.md +42 -0
  830. package/.versions/2.0.23/.pi/extensions/compact-and-continue/index.ts +136 -0
  831. package/.versions/2.0.23/.pi/extensions/compact-and-continue/package.json +6 -0
  832. package/.versions/2.0.23/.pi/extensions/mcp-bridge/README.md +46 -0
  833. package/.versions/2.0.23/.pi/extensions/mcp-bridge/index.ts +206 -0
  834. package/.versions/2.0.23/.pi/extensions/mcp-bridge/package.json +6 -0
  835. package/.versions/2.0.23/.pi/extensions/package-lock.json +1175 -0
  836. package/.versions/2.0.23/.pi/extensions/package.json +9 -0
  837. package/.versions/2.0.23/.pi/extensions/pi-voice-stt/README.md +224 -0
  838. package/.versions/2.0.23/.pi/extensions/pi-voice-stt/config.ts +199 -0
  839. package/.versions/2.0.23/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
  840. package/.versions/2.0.23/.pi/extensions/pi-voice-stt/index.ts +248 -0
  841. package/.versions/2.0.23/.pi/extensions/pi-voice-stt/package.json +6 -0
  842. package/.versions/2.0.23/.pi/extensions/pi-voice-stt/providers.ts +214 -0
  843. package/.versions/2.0.23/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
  844. package/.versions/2.0.23/.pi/harnesses/agent-hub/README.md +1527 -0
  845. package/.versions/2.0.23/.pi/harnesses/agent-hub/acceptance.ts +200 -0
  846. package/.versions/2.0.23/.pi/harnesses/agent-hub/access-approval.ts +141 -0
  847. package/.versions/2.0.23/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
  848. package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
  849. package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
  850. package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
  851. package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
  852. package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
  853. package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
  854. package/.versions/2.0.23/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
  855. package/.versions/2.0.23/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
  856. package/.versions/2.0.23/.pi/harnesses/agent-hub/artifacts.js +146 -0
  857. package/.versions/2.0.23/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
  858. package/.versions/2.0.23/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
  859. package/.versions/2.0.23/.pi/harnesses/agent-hub/backend-policy.js +174 -0
  860. package/.versions/2.0.23/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
  861. package/.versions/2.0.23/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
  862. package/.versions/2.0.23/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
  863. package/.versions/2.0.23/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
  864. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
  865. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
  866. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
  867. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
  868. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
  869. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
  870. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
  871. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
  872. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
  873. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
  874. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
  875. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
  876. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
  877. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
  878. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
  879. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/context.ts +46 -0
  880. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
  881. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
  882. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
  883. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
  884. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/models.ts +10 -0
  885. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
  886. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/recover.ts +61 -0
  887. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
  888. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
  889. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
  890. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
  891. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
  892. package/.versions/2.0.23/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
  893. package/.versions/2.0.23/.pi/harnesses/agent-hub/config/agents.ts +181 -0
  894. package/.versions/2.0.23/.pi/harnesses/agent-hub/config/model-profiles.ts +237 -0
  895. package/.versions/2.0.23/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
  896. package/.versions/2.0.23/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
  897. package/.versions/2.0.23/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
  898. package/.versions/2.0.23/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
  899. package/.versions/2.0.23/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
  900. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
  901. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
  902. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
  903. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
  904. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
  905. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
  906. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
  907. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
  908. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity-compat.ts +30 -0
  909. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
  910. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
  911. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
  912. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
  913. package/.versions/2.0.23/.pi/harnesses/agent-hub/context-window.js +108 -0
  914. package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-approval.ts +59 -0
  915. package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
  916. package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
  917. package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
  918. package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-hub.ts +256 -0
  919. package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
  920. package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
  921. package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
  922. package/.versions/2.0.23/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
  923. package/.versions/2.0.23/.pi/harnesses/agent-hub/debate-command.ts +176 -0
  924. package/.versions/2.0.23/.pi/harnesses/agent-hub/delegate.ts +478 -0
  925. package/.versions/2.0.23/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
  926. package/.versions/2.0.23/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
  927. package/.versions/2.0.23/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
  928. package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
  929. package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
  930. package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-native-complete.ts +173 -0
  931. package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +295 -0
  932. package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +255 -0
  933. package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-native-types.ts +293 -0
  934. package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-native.ts +236 -0
  935. package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
  936. package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
  937. package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
  938. package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
  939. package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
  940. package/.versions/2.0.23/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
  941. package/.versions/2.0.23/.pi/harnesses/agent-hub/docs-lane.js +123 -0
  942. package/.versions/2.0.23/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
  943. package/.versions/2.0.23/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
  944. package/.versions/2.0.23/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
  945. package/.versions/2.0.23/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
  946. package/.versions/2.0.23/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
  947. package/.versions/2.0.23/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
  948. package/.versions/2.0.23/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
  949. package/.versions/2.0.23/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
  950. package/.versions/2.0.23/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
  951. package/.versions/2.0.23/.pi/harnesses/agent-hub/external-blocker.js +92 -0
  952. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
  953. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
  954. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
  955. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
  956. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
  957. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
  958. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
  959. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
  960. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
  961. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
  962. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
  963. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
  964. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
  965. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
  966. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
  967. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
  968. package/.versions/2.0.23/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
  969. package/.versions/2.0.23/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
  970. package/.versions/2.0.23/.pi/harnesses/agent-hub/fixtures/registration-surface.json +66 -0
  971. package/.versions/2.0.23/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
  972. package/.versions/2.0.23/.pi/harnesses/agent-hub/footer.ts +30 -0
  973. package/.versions/2.0.23/.pi/harnesses/agent-hub/helpers.ts +270 -0
  974. package/.versions/2.0.23/.pi/harnesses/agent-hub/history-projection.ts +116 -0
  975. package/.versions/2.0.23/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
  976. package/.versions/2.0.23/.pi/harnesses/agent-hub/index.ts +2617 -0
  977. package/.versions/2.0.23/.pi/harnesses/agent-hub/input/completions.ts +82 -0
  978. package/.versions/2.0.23/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
  979. package/.versions/2.0.23/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
  980. package/.versions/2.0.23/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
  981. package/.versions/2.0.23/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +145 -0
  982. package/.versions/2.0.23/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
  983. package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
  984. package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
  985. package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
  986. package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
  987. package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
  988. package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
  989. package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
  990. package/.versions/2.0.23/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
  991. package/.versions/2.0.23/.pi/harnesses/agent-hub/no-progress.ts +622 -0
  992. package/.versions/2.0.23/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
  993. package/.versions/2.0.23/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
  994. package/.versions/2.0.23/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
  995. package/.versions/2.0.23/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
  996. package/.versions/2.0.23/.pi/harnesses/agent-hub/package.json +7 -0
  997. package/.versions/2.0.23/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
  998. package/.versions/2.0.23/.pi/harnesses/agent-hub/policy/models.ts +153 -0
  999. package/.versions/2.0.23/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
  1000. package/.versions/2.0.23/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
  1001. package/.versions/2.0.23/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
  1002. package/.versions/2.0.23/.pi/harnesses/agent-hub/policy/work-mode.ts +142 -0
  1003. package/.versions/2.0.23/.pi/harnesses/agent-hub/poll-command.ts +176 -0
  1004. package/.versions/2.0.23/.pi/harnesses/agent-hub/presentation.ts +54 -0
  1005. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
  1006. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
  1007. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
  1008. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
  1009. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
  1010. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
  1011. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
  1012. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
  1013. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
  1014. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
  1015. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
  1016. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
  1017. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-snapshot.ts +279 -0
  1018. package/.versions/2.0.23/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
  1019. package/.versions/2.0.23/.pi/harnesses/agent-hub/process-obligations.ts +159 -0
  1020. package/.versions/2.0.23/.pi/harnesses/agent-hub/prompts/context.ts +55 -0
  1021. package/.versions/2.0.23/.pi/harnesses/agent-hub/prompts/fragments.ts +86 -0
  1022. package/.versions/2.0.23/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
  1023. package/.versions/2.0.23/.pi/harnesses/agent-hub/prompts/system-prompt.ts +125 -0
  1024. package/.versions/2.0.23/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
  1025. package/.versions/2.0.23/.pi/harnesses/agent-hub/reconcile.ts +26 -0
  1026. package/.versions/2.0.23/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
  1027. package/.versions/2.0.23/.pi/harnesses/agent-hub/recover-state.ts +104 -0
  1028. package/.versions/2.0.23/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
  1029. package/.versions/2.0.23/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
  1030. package/.versions/2.0.23/.pi/harnesses/agent-hub/research/controls.ts +74 -0
  1031. package/.versions/2.0.23/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
  1032. package/.versions/2.0.23/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
  1033. package/.versions/2.0.23/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
  1034. package/.versions/2.0.23/.pi/harnesses/agent-hub/return-contract.js +349 -0
  1035. package/.versions/2.0.23/.pi/harnesses/agent-hub/return-extract.js +77 -0
  1036. package/.versions/2.0.23/.pi/harnesses/agent-hub/review-closure.ts +43 -0
  1037. package/.versions/2.0.23/.pi/harnesses/agent-hub/review-continuity.ts +73 -0
  1038. package/.versions/2.0.23/.pi/harnesses/agent-hub/review-findings.js +96 -0
  1039. package/.versions/2.0.23/.pi/harnesses/agent-hub/review-reuse.ts +47 -0
  1040. package/.versions/2.0.23/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
  1041. package/.versions/2.0.23/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
  1042. package/.versions/2.0.23/.pi/harnesses/agent-hub/run-budget.js +342 -0
  1043. package/.versions/2.0.23/.pi/harnesses/agent-hub/run-namespace.js +93 -0
  1044. package/.versions/2.0.23/.pi/harnesses/agent-hub/runtime-test-check.ts +68 -0
  1045. package/.versions/2.0.23/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
  1046. package/.versions/2.0.23/.pi/harnesses/agent-hub/scope-gate.js +233 -0
  1047. package/.versions/2.0.23/.pi/harnesses/agent-hub/session-audit.ts +331 -0
  1048. package/.versions/2.0.23/.pi/harnesses/agent-hub/session-health.js +110 -0
  1049. package/.versions/2.0.23/.pi/harnesses/agent-hub/session-start.ts +42 -0
  1050. package/.versions/2.0.23/.pi/harnesses/agent-hub/spawn.ts +665 -0
  1051. package/.versions/2.0.23/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
  1052. package/.versions/2.0.23/.pi/harnesses/agent-hub/specialist-result.ts +69 -0
  1053. package/.versions/2.0.23/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
  1054. package/.versions/2.0.23/.pi/harnesses/agent-hub/system1-communication-store.ts +217 -0
  1055. package/.versions/2.0.23/.pi/harnesses/agent-hub/system1-report.ts +275 -0
  1056. package/.versions/2.0.23/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
  1057. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
  1058. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
  1059. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-authorization.ts +151 -0
  1060. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
  1061. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
  1062. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
  1063. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
  1064. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
  1065. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
  1066. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
  1067. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
  1068. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
  1069. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
  1070. package/.versions/2.0.23/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
  1071. package/.versions/2.0.23/.pi/harnesses/agent-hub/timeline.ts +72 -0
  1072. package/.versions/2.0.23/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +79 -0
  1073. package/.versions/2.0.23/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
  1074. package/.versions/2.0.23/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
  1075. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/action-executors.ts +214 -0
  1076. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
  1077. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
  1078. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
  1079. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/context.ts +144 -0
  1080. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +88 -0
  1081. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +641 -0
  1082. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
  1083. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
  1084. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
  1085. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
  1086. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/run-flow.ts +146 -0
  1087. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
  1088. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
  1089. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
  1090. package/.versions/2.0.23/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
  1091. package/.versions/2.0.23/.pi/harnesses/agent-hub/tsconfig.json +22 -0
  1092. package/.versions/2.0.23/.pi/harnesses/agent-hub/types.ts +66 -0
  1093. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
  1094. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
  1095. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
  1096. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
  1097. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +155 -0
  1098. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
  1099. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
  1100. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
  1101. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
  1102. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/history.ts +234 -0
  1103. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
  1104. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
  1105. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
  1106. package/.versions/2.0.23/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
  1107. package/.versions/2.0.23/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
  1108. package/.versions/2.0.23/.pi/harnesses/agent-hub/version.ts +42 -0
  1109. package/.versions/2.0.23/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
  1110. package/.versions/2.0.23/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
  1111. package/.versions/2.0.23/.pi/harnesses/agent-hub/work-mode.ts +186 -0
  1112. package/.versions/2.0.23/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
  1113. package/.versions/2.0.23/.pi/harnesses/ask-user-remote/README.md +59 -0
  1114. package/.versions/2.0.23/.pi/harnesses/ask-user-remote/index.ts +571 -0
  1115. package/.versions/2.0.23/.pi/harnesses/ask-user-remote/questions.ts +159 -0
  1116. package/.versions/2.0.23/.pi/harnesses/ask-user-remote/race-core.js +124 -0
  1117. package/.versions/2.0.23/.pi/harnesses/ask-user-remote/runtime-ask.ts +83 -0
  1118. package/.versions/2.0.23/.pi/harnesses/coms/README.md +100 -0
  1119. package/.versions/2.0.23/.pi/harnesses/coms/index.ts +285 -0
  1120. package/.versions/2.0.23/.pi/harnesses/coms/package.json +7 -0
  1121. package/.versions/2.0.23/.pi/harnesses/coms/version.ts +42 -0
  1122. package/.versions/2.0.23/.pi/harnesses/damage-control-continue/README.md +161 -0
  1123. package/.versions/2.0.23/.pi/harnesses/damage-control-continue/index.ts +621 -0
  1124. package/.versions/2.0.23/.pi/harnesses/damage-control-continue/package.json +7 -0
  1125. package/.versions/2.0.23/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
  1126. package/.versions/2.0.23/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
  1127. package/.versions/2.0.23/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
  1128. package/.versions/2.0.23/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
  1129. package/.versions/2.0.23/.pi/harnesses/damage-control-continue/version.ts +42 -0
  1130. package/.versions/2.0.23/.pi/harnesses/lib/approval-wait.ts +17 -0
  1131. package/.versions/2.0.23/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
  1132. package/.versions/2.0.23/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
  1133. package/.versions/2.0.23/.pi/harnesses/lib/clarification-policy.ts +9 -0
  1134. package/.versions/2.0.23/.pi/harnesses/lib/coms-core-io.ts +415 -0
  1135. package/.versions/2.0.23/.pi/harnesses/lib/coms-core.ts +686 -0
  1136. package/.versions/2.0.23/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
  1137. package/.versions/2.0.23/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
  1138. package/.versions/2.0.23/.pi/harnesses/lib/context-budget-hub-prompt.ts +121 -0
  1139. package/.versions/2.0.23/.pi/harnesses/lib/context-budget-view.ts +112 -0
  1140. package/.versions/2.0.23/.pi/harnesses/lib/context-budget.ts +114 -0
  1141. package/.versions/2.0.23/.pi/harnesses/lib/context-compaction-policy.js +35 -0
  1142. package/.versions/2.0.23/.pi/harnesses/lib/damage-action-hash.ts +28 -0
  1143. package/.versions/2.0.23/.pi/harnesses/lib/damage-control-shared.ts +245 -0
  1144. package/.versions/2.0.23/.pi/harnesses/lib/damage-guard-port.ts +25 -0
  1145. package/.versions/2.0.23/.pi/harnesses/lib/damage-policy.ts +35 -0
  1146. package/.versions/2.0.23/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
  1147. package/.versions/2.0.23/.pi/harnesses/lib/damage-result-view.ts +16 -0
  1148. package/.versions/2.0.23/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
  1149. package/.versions/2.0.23/.pi/harnesses/lib/execution-trace.ts +45 -0
  1150. package/.versions/2.0.23/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
  1151. package/.versions/2.0.23/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
  1152. package/.versions/2.0.23/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
  1153. package/.versions/2.0.23/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
  1154. package/.versions/2.0.23/.pi/harnesses/lib/fleet-dashboard-view.ts +172 -0
  1155. package/.versions/2.0.23/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
  1156. package/.versions/2.0.23/.pi/harnesses/lib/fleet-overlay.ts +26 -0
  1157. package/.versions/2.0.23/.pi/harnesses/lib/fleet-panel.ts +34 -0
  1158. package/.versions/2.0.23/.pi/harnesses/lib/fleet-read-model.ts +609 -0
  1159. package/.versions/2.0.23/.pi/harnesses/lib/fleet-selection.ts +24 -0
  1160. package/.versions/2.0.23/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
  1161. package/.versions/2.0.23/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
  1162. package/.versions/2.0.23/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
  1163. package/.versions/2.0.23/.pi/harnesses/lib/herdr-client.ts +472 -0
  1164. package/.versions/2.0.23/.pi/harnesses/lib/herdr-presence.ts +399 -0
  1165. package/.versions/2.0.23/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
  1166. package/.versions/2.0.23/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
  1167. package/.versions/2.0.23/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
  1168. package/.versions/2.0.23/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
  1169. package/.versions/2.0.23/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
  1170. package/.versions/2.0.23/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
  1171. package/.versions/2.0.23/.pi/harnesses/lib/identical-dialog.ts +27 -0
  1172. package/.versions/2.0.23/.pi/harnesses/lib/installation-state.js +62 -0
  1173. package/.versions/2.0.23/.pi/harnesses/lib/peer-target.ts +24 -0
  1174. package/.versions/2.0.23/.pi/harnesses/lib/policy-roots.js +117 -0
  1175. package/.versions/2.0.23/.pi/harnesses/lib/policy-roots.ts +32 -0
  1176. package/.versions/2.0.23/.pi/harnesses/lib/process-shared.ts +9 -0
  1177. package/.versions/2.0.23/.pi/harnesses/lib/resource-closure.js +26 -0
  1178. package/.versions/2.0.23/.pi/harnesses/lib/safe-source-read.js +29 -0
  1179. package/.versions/2.0.23/.pi/harnesses/lib/semantic-approval.ts +80 -0
  1180. package/.versions/2.0.23/.pi/harnesses/lib/session-target.ts +62 -0
  1181. package/.versions/2.0.23/.pi/harnesses/lib/spawned-peers.js +191 -0
  1182. package/.versions/2.0.23/.pi/harnesses/lib/system1/config-agentic.js +15 -0
  1183. package/.versions/2.0.23/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
  1184. package/.versions/2.0.23/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
  1185. package/.versions/2.0.23/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
  1186. package/.versions/2.0.23/.pi/harnesses/lib/system1/config-json.js +37 -0
  1187. package/.versions/2.0.23/.pi/harnesses/lib/system1/config-loader.js +53 -0
  1188. package/.versions/2.0.23/.pi/harnesses/lib/system1/config-proactive.js +68 -0
  1189. package/.versions/2.0.23/.pi/harnesses/lib/system1/config-triage.js +42 -0
  1190. package/.versions/2.0.23/.pi/harnesses/lib/system1/config-v2.js +112 -0
  1191. package/.versions/2.0.23/.pi/harnesses/lib/system1/config.js +50 -0
  1192. package/.versions/2.0.23/.pi/harnesses/lib/system1/contracts.ts +154 -0
  1193. package/.versions/2.0.23/.pi/harnesses/lib/system1/demo.ts +95 -0
  1194. package/.versions/2.0.23/.pi/harnesses/lib/system1/jev.ts +503 -0
  1195. package/.versions/2.0.23/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
  1196. package/.versions/2.0.23/.pi/harnesses/lib/system1/selection.js +11 -0
  1197. package/.versions/2.0.23/.pi/harnesses/lib/system1/service.ts +245 -0
  1198. package/.versions/2.0.23/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
  1199. package/.versions/2.0.23/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
  1200. package/.versions/2.0.23/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
  1201. package/.versions/2.0.23/.pi/harnesses/lib/target-capabilities.js +7 -0
  1202. package/.versions/2.0.23/.pi/harnesses/lib/update-check.ts +222 -0
  1203. package/.versions/2.0.23/.pi/harnesses/lib/workspace-context.js +115 -0
  1204. package/.versions/2.0.23/.pi/harnesses/lib/workspace-context.ts +22 -0
  1205. package/.versions/2.0.23/.pi/harnesses/package-lock.json +2121 -0
  1206. package/.versions/2.0.23/.pi/harnesses/package.json +13 -0
  1207. package/.versions/2.0.23/.pi/prompts/af-build.md +27 -0
  1208. package/.versions/2.0.23/.pi/prompts/af-code-simplify.md +22 -0
  1209. package/.versions/2.0.23/.pi/prompts/af-constraints.md +31 -0
  1210. package/.versions/2.0.23/.pi/prompts/af-plan.md +17 -0
  1211. package/.versions/2.0.23/.pi/prompts/af-review.md +16 -0
  1212. package/.versions/2.0.23/.pi/prompts/af-set-hermes-telegram.md +15 -0
  1213. package/.versions/2.0.23/.pi/prompts/af-set-hermes-watchdog.md +6 -0
  1214. package/.versions/2.0.23/.pi/prompts/af-setup-rules.md +20 -0
  1215. package/.versions/2.0.23/.pi/prompts/af-ship.md +17 -0
  1216. package/.versions/2.0.23/.pi/prompts/af-spec.md +15 -0
  1217. package/.versions/2.0.23/.pi/prompts/af-test.md +19 -0
  1218. package/.versions/2.0.23/.pi/skills/bowser/SKILL.md +145 -0
  1219. package/.versions/2.0.23/.version +1 -0
  1220. package/.versions/2.0.23/agents/architect.md +24 -0
  1221. package/.versions/2.0.23/agents/bowser.md +28 -0
  1222. package/.versions/2.0.23/agents/builder.md +55 -0
  1223. package/.versions/2.0.23/agents/code-reviewer.md +209 -0
  1224. package/.versions/2.0.23/agents/deep-researcher.md +32 -0
  1225. package/.versions/2.0.23/agents/documenter.md +22 -0
  1226. package/.versions/2.0.23/agents/orchestrator.md +22 -0
  1227. package/.versions/2.0.23/agents/plan-reviewer.md +83 -0
  1228. package/.versions/2.0.23/agents/planner.md +107 -0
  1229. package/.versions/2.0.23/agents/releaser.md +24 -0
  1230. package/.versions/2.0.23/agents/researcher.md +30 -0
  1231. package/.versions/2.0.23/agents/security-auditor.md +167 -0
  1232. package/.versions/2.0.23/agents/test-engineer.md +153 -0
  1233. package/.versions/2.0.23/agents/web-debugger.md +44 -0
  1234. package/.versions/2.0.23/agents/web-performance-auditor.md +194 -0
  1235. package/.versions/2.0.23/bin/catalog/harness-runtime-closure.json +85 -0
  1236. package/.versions/2.0.23/codex/fleet-session-client/SKILL.md +34 -0
  1237. package/.versions/2.0.23/codex/fleet-session-client.zip +0 -0
  1238. package/.versions/2.0.23/docs/ARCHITECTURE.md +1023 -0
  1239. package/.versions/2.0.23/docs/agent-fleet-setup.md +1106 -0
  1240. package/.versions/2.0.23/docs/claude-code-coms-bridge.md +147 -0
  1241. package/.versions/2.0.23/docs/codex-session-bridge.md +219 -0
  1242. package/.versions/2.0.23/docs/coms-hermes-bridge.md +188 -0
  1243. package/.versions/2.0.23/docs/getting-started.md +126 -0
  1244. package/.versions/2.0.23/docs/npm-install.md +535 -0
  1245. package/.versions/2.0.23/docs/pi-extensions.md +455 -0
  1246. package/.versions/2.0.23/docs/pi-setup.md +92 -0
  1247. package/.versions/2.0.23/docs/skill-anatomy.md +150 -0
  1248. package/.versions/2.0.23/install-manifest.json +3251 -0
  1249. package/.versions/2.0.23/justfile +247 -0
  1250. package/.versions/2.0.23/manifest-meta.json +1096 -0
  1251. package/.versions/2.0.23/references/accessibility-checklist.md +160 -0
  1252. package/.versions/2.0.23/references/communication-contract.md +26 -0
  1253. package/.versions/2.0.23/references/definition-of-done.md +67 -0
  1254. package/.versions/2.0.23/references/fleet-coordination-patterns.md +171 -0
  1255. package/.versions/2.0.23/references/observability-checklist.md +92 -0
  1256. package/.versions/2.0.23/references/orchestration-patterns.md +370 -0
  1257. package/.versions/2.0.23/references/performance-checklist.md +236 -0
  1258. package/.versions/2.0.23/references/prompting-patterns.md +380 -0
  1259. package/.versions/2.0.23/references/security-checklist.md +245 -0
  1260. package/.versions/2.0.23/references/testing-patterns.md +235 -0
  1261. package/.versions/2.0.23/references/workflow-authoring.md +304 -0
  1262. package/.versions/2.0.23/skills/_internal/grilling.md +59 -0
  1263. package/.versions/2.0.23/skills/browser-testing-with-devtools/SKILL.md +351 -0
  1264. package/.versions/2.0.23/skills/code-review-and-quality/SKILL.md +396 -0
  1265. package/.versions/2.0.23/skills/compound-learning/SKILL.md +137 -0
  1266. package/.versions/2.0.23/skills/constraint-driven-development/SKILL.md +338 -0
  1267. package/.versions/2.0.23/skills/constraint-driven-development/references/floor-guard.md +99 -0
  1268. package/.versions/2.0.23/skills/context-engineering/SKILL.md +341 -0
  1269. package/.versions/2.0.23/skills/deprecation-and-migration/SKILL.md +247 -0
  1270. package/.versions/2.0.23/skills/designing-agents/SKILL.md +394 -0
  1271. package/.versions/2.0.23/skills/designing-agents/pi-harness-authoring.md +222 -0
  1272. package/.versions/2.0.23/skills/drafting-workflows/SKILL.md +143 -0
  1273. package/.versions/2.0.23/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
  1274. package/.versions/2.0.23/skills/frontend-ui-engineering/SKILL.md +328 -0
  1275. package/.versions/2.0.23/skills/git-workflow-and-versioning/SKILL.md +316 -0
  1276. package/.versions/2.0.23/skills/idea-refine/SKILL.md +182 -0
  1277. package/.versions/2.0.23/skills/idea-refine/examples.md +238 -0
  1278. package/.versions/2.0.23/skills/idea-refine/frameworks.md +99 -0
  1279. package/.versions/2.0.23/skills/idea-refine/refinement-criteria.md +113 -0
  1280. package/.versions/2.0.23/skills/idea-refine/scripts/idea-refine.sh +15 -0
  1281. package/.versions/2.0.23/skills/incremental-implementation/SKILL.md +353 -0
  1282. package/.versions/2.0.23/skills/incremental-implementation.zip +0 -0
  1283. package/.versions/2.0.23/skills/interview-me/SKILL.md +226 -0
  1284. package/.versions/2.0.23/skills/orchestration-verification/SKILL.md +182 -0
  1285. package/.versions/2.0.23/skills/peer-coms/SKILL.md +90 -0
  1286. package/.versions/2.0.23/skills/performance-optimization/SKILL.md +496 -0
  1287. package/.versions/2.0.23/skills/planning-and-task-breakdown/SKILL.md +318 -0
  1288. package/.versions/2.0.23/skills/planning-and-task-breakdown.zip +0 -0
  1289. package/.versions/2.0.23/skills/repository-ai-setup/SKILL.md +135 -0
  1290. package/.versions/2.0.23/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
  1291. package/.versions/2.0.23/skills/repository-ai-setup/references/apply-contract.md +74 -0
  1292. package/.versions/2.0.23/skills/repository-ai-setup/references/provenance-template.md +16 -0
  1293. package/.versions/2.0.23/skills/repository-ai-setup/references/setup-flow.md +108 -0
  1294. package/.versions/2.0.23/skills/repository-ai-setup/references/verify-setup.md +20 -0
  1295. package/.versions/2.0.23/skills/repository-ai-setup.zip +0 -0
  1296. package/.versions/2.0.23/skills/security-and-hardening/SKILL.md +524 -0
  1297. package/.versions/2.0.23/skills/spec-driven-development/SKILL.md +295 -0
  1298. package/.versions/2.0.23/skills/spec-driven-development.zip +0 -0
  1299. package/.versions/2.0.23/skills/using-agent-skills/SKILL.md +198 -0
  1300. package/.versions/2.0.23/vendor/agent-skills-upstream/LICENSE +21 -0
  1301. package/.versions/2.0.23/vendor/agent-skills-upstream/README.md +430 -0
  1302. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
  1303. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
  1304. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
  1305. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
  1306. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
  1307. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
  1308. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
  1309. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
  1310. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
  1311. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
  1312. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
  1313. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
  1314. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
  1315. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
  1316. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
  1317. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
  1318. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
  1319. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
  1320. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
  1321. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
  1322. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
  1323. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
  1324. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
  1325. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
  1326. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
  1327. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
  1328. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
  1329. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
  1330. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
  1331. package/.versions/2.0.23/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
  1332. package/CHANGELOG.md +28 -0
  1333. package/README.md +4 -1
  1334. package/agents/architect.md +1 -1
  1335. package/agents/bowser.md +1 -1
  1336. package/agents/builder.md +1 -1
  1337. package/agents/code-reviewer.md +1 -1
  1338. package/agents/deep-researcher.md +1 -1
  1339. package/agents/documenter.md +1 -1
  1340. package/agents/orchestrator.md +1 -1
  1341. package/agents/plan-reviewer.md +1 -1
  1342. package/agents/planner.md +1 -1
  1343. package/agents/releaser.md +1 -1
  1344. package/agents/researcher.md +1 -1
  1345. package/agents/security-auditor.md +1 -1
  1346. package/agents/test-engineer.md +1 -1
  1347. package/agents/web-debugger.md +1 -1
  1348. package/agents/web-performance-auditor.md +1 -1
  1349. package/bin/catalog/harness-runtime-closure.json +12 -0
  1350. package/bin/cli.js +3 -2
  1351. package/docs/ARCHITECTURE.md +47 -3
  1352. package/docs/agent-fleet-setup.md +5 -2
  1353. package/docs/session-worktree-targeting.md +99 -0
  1354. package/docs/system1-damage-guard.md +23 -2
  1355. package/docs/workflows.md +4 -0
  1356. package/install-manifest.json +43 -2
  1357. package/justfile +6 -6
  1358. package/manifest-meta.json +8 -0
  1359. package/package.json +3 -2
@@ -0,0 +1,982 @@
1
+ # Agent Fleet Architecture
2
+
3
+ Agent Fleet is a Pi-centered multi-agent orchestration system. This page maps
4
+ the runtime responsibilities and where each module lives in the repository.
5
+
6
+ For the principles governing future plans and design decisions, read the
7
+ [project philosophy](PHILOSOPHY.md). That document states the intended direction;
8
+ this page describes the current architecture.
9
+
10
+ ## Runtime layers
11
+
12
+ | Layer | Role | Implementation |
13
+ | --- | --- | --- |
14
+ | **Pi Coding Agent** | Primary local runtime — runs the dispatcher and specialist subagents | `.pi/harnesses/`, `.pi/extensions/`, `.pi/agents/`, `.pi/prompts/` |
15
+ | **agent-hub** | Thin-context multi-agent harness: dispatcher + specialists + research helpers + Verification Contract | `.pi/harnesses/agent-hub/` |
16
+ | **Workflows** | Headless, code-owned phase order, retries, gates, writes enforcement, and acceptance through `just flow` | `.pi/agent-fleet/scripts/flow.ts`, `.pi/agent-fleet/scripts/workflows/` — see [workflows.md](workflows.md) |
17
+ | **Herdr** | Fleet/workspace control plane — spawns peer teams as tiled workspaces, presence via push events, snapshot/resume | [herdr.dev](https://herdr.dev); client in `.pi/harnesses/lib/herdr-client.ts`, layout in `.pi/agent-fleet/scripts/lib/herdr-layout.ts` |
18
+ | **coms** | Peer communication protocol/data plane — envelope-based P2P messaging between agents | Shared peer lifecycle in `.pi/harnesses/lib/coms-core.ts` and `coms-core-io.ts`; Pi registrations in `.pi/harnesses/coms/` and `agent-hub/`; wire helpers in `.pi/agent-fleet/scripts/lib/coms-envelope.ts` and `.pi/agent-fleet/scripts/coms-cli.ts` |
19
+ | **Claude Code bridge** | Makes an interactive Claude Code pane a bidirectional coms peer | `.pi/agent-fleet/scripts/coms-claude-bridge.ts`, `.pi/agent-fleet/hooks/coms-stop-hook.mjs`, `skills/peer-coms/` — see [claude-code-coms-bridge.md](claude-code-coms-bridge.md) |
20
+ | **Hermes bridge** | Remote human control — relays hub questions to Telegram, races phone vs. local answers, conductor/liaison skills | `.pi/agent-fleet/scripts/coms-hermes-bridge.ts`, `.pi/harnesses/ask-user-remote/`, `.pi/agent-fleet/hermes/skills/` — see [coms-hermes-bridge.md](coms-hermes-bridge.md) |
21
+ | **Hermes local monitor transport** | Local, authenticated monitor contract for Hub-owned task generations; consumers supply their own presentation | `.pi/harnesses/agent-hub/monitor-*.ts`, `.pi/harnesses/lib/hermes-monitor-{model,store,registry,socket}.ts` (with compatibility re-exports under `.pi/agent-fleet/scripts/lib/`) — see [Hermes artifacts](../.pi/agent-fleet/hermes/README.md#local-agent-hub-monitor-integration) and [watchdog limits](hermes-watchdog-supervisor.md) |
22
+ | **Hermes Desktop plugin** (`agent-fleet-herdr`) | Fleet observability surface — read-only panel of every live session joined from the coms registry, herdr presence, agent transcripts, and the monitor transport; `focus` and subagent `cancel` are its only write doors | `.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/` (Electron pane), `.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/` (FastAPI backend), installed by `.pi/agent-fleet/scripts/install-hermes-plugin.sh` — see [hermes-desktop-plugins.md](hermes-desktop-plugins.md) |
23
+ | **ChatGPT Fleet session client** | Experimental ChatGPT-initiated client for an existing Pi session; no daemon or idle wake | `.pi/agent-fleet/scripts/fleet-codex-client.ts`, `.pi/agent-fleet/scripts/lib/fleet-codex-*`, opt-in feature `chatgpt-client` — see [codex-session-bridge.md](codex-session-bridge.md) |
24
+ | **System 1 foundation** | Experimental shared structured-judgment service; TypeSafe Jev only, with independent watchdog/dispatch/proactive/task-triage/agenticAsk/fileDiscovery/contextCompaction/damageGuard consumer opt-ins | `.pi/harnesses/lib/system1/`, feature `system1`, human-owned `.ai/system1.json` |
25
+ | **System 1 dispatch advice / communication** | Optional off-by-default `dispatch_triage` tool; shared-service memory-only Fleet `1` viewer, independently opt-in; live calibration not yet accepted | `.pi/harnesses/agent-hub/dispatch-triage-*.ts`, `system1-communication-store.ts`, `ui/system1-communication.ts` — [guide](system1-dispatch-triage.md) |
26
+ | **System 1 task triage** | Active uncalibrated opt-in: uncertain predicates add process obligations, never spend/permission authority; session Fleet/audit metadata | `.pi/harnesses/agent-hub/task-triage-*.ts`, human-owned `consumers.taskTriage` in `.ai/system1.json` — [config/recovery](agent-fleet-setup.md#task-triage-active-experimental-off-by-default) |
27
+ | **System 1 file discovery (D9)** | Off-by-default automatic full-list file ranking; parent scheduler/cache/durable budget, guarded source export, private UDS broker and per-physical-attempt native/descendant identities; no permission or acceptance authority | `.pi/harnesses/agent-hub/file-discovery/`, `tools/ask-system1-files.ts` — [scope/status/full-list and activation](system1-file-discovery.md) |
28
+ | **System 1 damage guard (D6)** | Off-by-default independent commands/edits/results scopes over mandatory Damage-Control baseline; parent-owned durable decisions, approval and native capability transport; production wiring exists, acceptance remains open | `.pi/harnesses/agent-hub/damage-guard-*.ts`, `damage-control-continue/system1-*.ts`, `result-screen.ts` — [contract and limits](system1-damage-guard.md) |
29
+ | **Skill library** | Lifecycle workflows and quality gates every agent follows | `skills/` (native) + `vendor/agent-skills-upstream/skills/` (vendored) — see [UPSTREAM-SKILLS.md](UPSTREAM-SKILLS.md) |
30
+ | **Personas** | Reusable specialist definitions, installed verbatim | `agents/` in the package → `.pi/agents/personas/` in a workspace; `bin/lib/personas.js` |
31
+
32
+ ## One Hub runtime, independent axes
33
+
34
+ Every public Pi launch through `just fleet` loads Fleet Core and the `agent-hub`
35
+ harness. Three independent choices shape that runtime:
36
+
37
+ | Axis | Choices | What it controls |
38
+ | --- | --- | --- |
39
+ | **Work Mode** | `operator`, `orchestrator` | Whether the main agent may use direct coding tools. Operator retains the captured `read`/`bash`/`edit`/`write` and approved extension surface; orchestrator removes those coding tools and keeps dispatch, research, assertions, `ask_user`, read-only `filesystem` stat/inventory/excerpt/readback, and available coms/Herdr tools. The orchestrator self-read ceiling is 64 KiB for one file and 64 KiB for the turn. Above that, research or a specialist gets the path, not the body. `dispatch_triage` is listed only when that consumer can evaluate. `/af-work-mode` and **Alt+M** switch this axis. |
40
+ | **Native roster** | empty or one entry from `.pi/agents/teams.yaml` | Which in-process Pi specialist personas `dispatch_agent` may start. Roster changes do not change work mode in a live session. |
41
+ | **Peer topology** | current terminal, Hub-only Herdr workspace, or Hub plus a `.pi/agents/peers.yaml` preset | Which separate, addressable Pi/Claude processes occupy sibling panes. Starting or spawning peers does not change work mode or the native roster. |
42
+
43
+ Bare `just fleet` therefore means operator work mode, an empty native roster, and
44
+ the current terminal. At startup an explicit `--work-mode` wins; otherwise
45
+ `--agents <roster>` implies orchestrator; otherwise operator is used. An
46
+ orchestrator startup requires a roster. `/af-work-mode` and **Alt+M** switch
47
+ only work mode in the live session, and `/af-agents-*` changes
48
+ only the native roster. Dispatch, research, nested delegation, and Verification
49
+ Contract rigor follow the **task tier** (`trivial`/`small`/`feature`/`project`),
50
+ not a session execution mode. Dispatch/research counts and active duration are
51
+ accounting metrics without turn or task continuation quotas. Planner and plan
52
+ review are optional; wide/high-risk work retains independent review and applicable
53
+ exact-action authorization without a pre-effect planning gate.
54
+
55
+ Approval memory is shared across Pi's isolated extension loaders within the
56
+ runtime. Semantic decisions remain bound to the accepted task/input revision and
57
+ exact path; task/session changes fence late answers. Only an exact-action dialog
58
+ that showed the human the command records a delete decision; free-form `ask_user`
59
+ answers are never recorded and never answered automatically, because prose cannot
60
+ prove which path or polarity the human chose. Remembered confirmation is
61
+ not a reusable effect grant: actual irreversible effects still consume their
62
+ runtime authorization. Identical concurrent dialogs coalesce, and cancellation
63
+ does not become consent.
64
+
65
+ Successful independent reviews retain role-specific evidence, reviewed file
66
+ revision, coverage, requirement declarations and input-artifact hashes in the
67
+ process journal. An identical covered review returns the retained evidence without
68
+ starting another child. Changed accepted input, source, requirements, task, scope, evidence,
69
+ concurrent writes or an explicit `review_reason` require a fresh review; unresolved
70
+ questions, blocking findings and rejected reviews cannot supply reusable approval.
71
+
72
+ The model's context hook projects older successful coordination/inspection bodies
73
+ to short references backed by exact local originals. It leaves the session journal,
74
+ user/assistant messages, questions, failures, images and latest tool batch intact,
75
+ and retains a recent inspection working set. The prompt capsule carries current
76
+ sourced requirements and critical conditions without treating recorded status as
77
+ fresh proof. Plain continue/resume inputs retain the accepted task; identical
78
+ classification declarations avoid new triage, revision hashing and journal writes.
79
+ Changed intent still uses the existing task-transition fence.
80
+
81
+ All Hub-owned slash commands remain registered in both work modes. Capability packs are resolved automatically from explicit task intent, work mode, tier, pending work, and compaction state—there is no activation command. Runtime **readiness** (a coms or Herdr connection) is not model-visible capability: ready-but-unrequested peer/workspace packs remain inactive. Ambiguous fleet, peer, and workspace requests are provisionally visible but require one `ask_user` confirmation before their first side effect; a rejection removes the provisional pack. Task packs persist across follow-ups and reset only through `set_task_tier(new_task: true)`, while mandatory work mode and pending-operation leases remain.
82
+
83
+ `/af-context` is a standalone, read-only full-screen budget diagnostic; it separates stable prompt cost, volatile state, active schemas, and zero-cost inactive/loaded-excluded inputs. Provider totals and cache read/write fields are authoritative where Pi supplies them; it never fabricates provider usage or combines capacity percentages across Hub, child, and peer planes. `/af-audit` is a separate read-only session audit over existing runtime-owned records: it reports allowlisted T1 recovery categories, T2 result states, T3 protocol failures, and T8 permission correlations while keeping root, child, compaction snapshot, and repeated-record identities distinct. It never copies prompts, model text, tool payloads, environment values, or transcript content, and unavailable evidence stays explicit rather than becoming a zero count. Managed specialists and research children use explicit replacement prompts/context manifests with selected persona, policy, and skill paths instead of inherited global skills/context files. Configured project rule and documentation pointers are rendered into the Hub prompt in both work modes and into native specialist, nested delegate, research, and coms handoffs. Files are read directly; folders are resolved index-first, with recursive rule discovery only when no index exists. The prompt carries pointers and selection instructions rather than bulk-injecting rule bodies, and the Hub ledger attributes that text as `hub/policy/project`. Runtime gates control whether an action can proceed: without coms, Herdr, a visible target, or an active roster, the corresponding command refuses with an actionable message rather than disappearing. `--browser` and `--all-extensions` expand the captured operator surface only when those optional extensions are installed.
84
+
85
+ T12 diagnostics have been withdrawn by user decision; there is no command, runner, or replacement entry point. Historical results and accounting remain unchanged. `diagnostic-series-budget.ts` retains the shared v2 ledger, stage/per-unit ceilings, conservative input preflight, migration refusal for ambiguous history, ownership locks, and cancellation fences used by benchmark consumers. `diagnostic-probe-extension.ts` is now a side-effect-free compatibility library exposing only provider/API output-cap mapping, its types, and the transport refusal exit constant. It preserves the reviewed 2048 cap and rejects unsupported payload semantics; it does not register an extension or tool. Existing sessions must be reloaded after updating. The installer retires unchanged managed command/runner files; user-modified obsolete files are preserved and reported for manual review, never deleted automatically. Such retained files are not imported by the current Hub.
86
+
87
+ ### Context pressure and recovery
88
+
89
+ Standing prompt ceilings constrain the repeatable replacement prompt and active schemas; they do not
90
+ bound conversation messages or results accumulated inside a long tool loop. The Hub therefore has a
91
+ second, runtime pressure guard. It samples provider usage, projects a finalized tool result at
92
+ `message_end`, warns and exposes transient compaction support at **60%**, then at **70%** aborts the
93
+ pre-model continuation and waits for `agent_settled` before requesting one Pi compaction. This
94
+ ordering ensures the result is persisted before summarization and prevents an ordinary provider call
95
+ from escaping between pressure detection and recovery. Automatic compaction re-arms when measured
96
+ usage falls below 60%, or after the history grows by 10% of the window over the first measurement
97
+ after a compaction. At the **80%** ceiling, work stops after a failed recovery or when even the
98
+ compacted baseline is at or above the ceiling. A baseline between 70% and 80% only warns, because a
99
+ small window then keeps working until growth re-arms compaction.
100
+
101
+ Recovery is single-flight. High-context startup or concurrent input is retained in memory and
102
+ replayed exactly once after success; failure retains it for `/compact` or a larger-context model.
103
+ `/af-context` and the status line report phase, usage, thresholds, episode, and last outcome. Session
104
+ entries store only numeric/enumerated pressure metadata, never prompts, tool payloads, credentials,
105
+ error bodies, or summaries.
106
+
107
+ A persisted native roster is also metadata, not copied configuration: only its team name is stored
108
+ and it is re-resolved against current teams and persona definitions. A stale or absent roster in a
109
+ resumed orchestrator session fails closed—work mode remains orchestrator, direct tools remain removed,
110
+ and model input is blocked until `/af-agents-team`, an explicit `--agent-team <name>` restart, or an
111
+ explicit operator selection resolves it. Explicit CLI work mode and roster selections retain
112
+ precedence.
113
+
114
+ Pi's session JSONL is the authoritative append-only record for rebuilding a session, including
115
+ compaction and Hub metadata. Pressure and roster recovery operate through Pi/Hub lifecycle APIs;
116
+ they never rewrite prior entries. Operators must not edit, truncate, reorder, or synthesize JSONL to
117
+ recover a session.
118
+
119
+ The project selected by `--project <name>` is the coms namespace for the Hub
120
+ and every standing or dynamically spawned peer. The Hub-facing peer spawn API
121
+ cannot override it. Native subagents remain children of that Hub and inherit
122
+ its repository context; peers are separate processes in their own panes.
123
+
124
+ At dispatch time, `backend: "auto"` applies
125
+ `.pi/agents/dispatch-policy.yaml`; `backend: "native"` bypasses same-name peer
126
+ substitution; and `backend: "coms"` requires a visible same-name peer and never
127
+ falls back to a native child. `.pi/agents/peers.yaml` owns how a peer runs
128
+ (`runner`, persona, model, extensions, and declared `env_file`), not whether a
129
+ dispatch uses it.
130
+
131
+ ## Fleet hierarchy
132
+
133
+ Agent Fleet is layered on purpose. Work flows **down** (delegate); evidence and status flow **up** — as compact structured returns, never raw dumps.
134
+
135
+ ```mermaid
136
+ flowchart TD
137
+ You(["You · Hermes inbound relay · Codex outbound conductor on your phone"])
138
+
139
+ subgraph HUBL["HUB — guarded runtime (bare just fleet)"]
140
+ Hub["agent-hub harness<br/>operator or orchestrator work mode · routes tasks<br/>owns the Verification Contract on disk · keeps research dumps out of its own context"]
141
+ end
142
+
143
+ subgraph TEAML["OPTIONAL NATIVE ROSTER (.pi/agents/teams.yaml)"]
144
+ Team["default: builder · test-engineer · code-reviewer · documenter<br/>also: plan · debug · frontend · security · hotfix · release · info"]
145
+ end
146
+
147
+ subgraph RESL["RESEARCH HELPERS — read-only, always available"]
148
+ Research["researcher (fast tier — simple reads)<br/>deep-researcher (deep tier — hard, cross-cutting questions)"]
149
+ end
150
+
151
+ subgraph SUBL["SUB-AGENTS — focused children, narrow tools + models"]
152
+ Subs["planner → scout · rules · risk<br/>plan-reviewer → feasibility · deps<br/>builder → recon · verifier<br/>test-engineer → coverage-scout · conventions<br/>code-reviewer → preflight · quality · perf · docs<br/>security-auditor → recon · input-sweep · secrets-sweep"]
153
+ end
154
+
155
+ You -->|task| Hub
156
+ Hub -->|"dispatch_agent — one persona = one specialist session"| Team
157
+ Hub -->|"spawn_research"| Research
158
+ Research -.->|"findings written to disk — hub gets paths, not dumps"| Hub
159
+ Team -->|"subagents: block (delegate_depth ≥ 1)"| Subs
160
+ Subs -.->|"results return to the parent agent only"| Team
161
+ Team -.->|"structured return + evidence"| Hub
162
+ Hub -.->|"one status line: Assertions: 2✓ 1○ 1✗"| You
163
+ ```
164
+
165
+ Every specialist session is one persona from [`agents/`](../agents/) (installed to `.pi/agents/personas/`) — *skills* tell each agent **how** to work; *personas* define **who** they are (see [agents.md](agents.md)).
166
+
167
+ The same idea as a tree:
168
+
169
+ ```text
170
+ hub (operator by default; orchestrator when selected)
171
+ ├── optional native roster (empty by default; example: default)
172
+ │ ├── builder → recon · verifier
173
+ │ ├── test-engineer → coverage-scout · conventions
174
+ │ ├── code-reviewer → preflight · quality · perf · docs
175
+ │ └── documenter
176
+ ├── research helpers (spawn_research, any time)
177
+ │ ├── researcher
178
+ │ └── deep-researcher
179
+ └── optional fleet peers (herdr + coms)
180
+ ├── architect / releaser / web-debugger panes
181
+ ├── Claude Code peer (coms bridge)
182
+ ├── Hermes (phone human · inbound ask_user)
183
+ └── ChatGPT Fleet session client (Desktop/Android · existing Pi session)
184
+ ```
185
+
186
+ Composition rule: **the hub (or a slash command) orchestrates; personas do not invoke other personas as peers.** Specialists may only fan out to their configured **sub-agents**. Research helpers write findings to disk; the hub resumes specialists with paths, not raw dumps.
187
+
188
+ ### Automatic file discovery
189
+
190
+ The independently consented v2 `consumers.fileDiscovery` consumer intercepts eligible
191
+ parent inventory/find/ls/grep results and native research/worker/registered descendant
192
+ discoveries before the next model step. Pre-spawn context is prepared after launch
193
+ gates and rechecked after awaits. One parent runtime owns bounded scheduling,
194
+ durable logical reservations, full-question/current-permission cache identity and
195
+ individual waiter cancellation. The parent reads guarded files; native attempts
196
+ receive private, revocable broker assignments, never the provider key. Sandbox,
197
+ tool/depth/tree caps, task authority and mandatory policy remain unchanged.
198
+
199
+ All display-permitted candidates retain ranked or explicit unscored rows; >255 is
200
+ not a semantic limit. Managed per-page artifacts preserve total/offset/next/hash and
201
+ normal orchestrator self-read limits. Discovery/evaluation coverage and complete,
202
+ partial, unavailable, cancelled and skipped differ. Exact read/grep evidence is
203
+ not replaced. Fleet communication capture is opt-in and memory-only: D9 includes
204
+ only hashed owner/attempt, trigger, counts/coverage/elapsed and actual-or-unknown
205
+ usage, never source bodies, raw queries, arbitrary paths or tokens. Configuration
206
+ changes require a new session. Offline production lifecycle/package tests prove
207
+ mechanics, not semantic accuracy or final live activation. See the [D9 guide](system1-file-discovery.md)
208
+ for exact triggers, unsupported surfaces, residual limitations and unpublished
209
+ source/local-tarball commands.
210
+
211
+ ### Optional semantic damage guard
212
+
213
+ D6's parent Hub owns the shared service, task/accepted-input revision, durable
214
+ hold/denial state and shared approval coordinator. Baseline-allowed bash/write/edit
215
+ receive scoped pre-call assessment; only valid severe AND sufficient can hold an
216
+ exact action. When D6 is enabled or this task has a persisted hold/denial,
217
+ native specialists, research helpers and nested delegates have independent
218
+ physical-spawn registration, fresh/revocable assignments (including fallback),
219
+ stripped inherited assignments and no child provider credentials. Disabled D6
220
+ without a persisted fence skips its broker and registration entirely; ordinary
221
+ baseline-protected work does not depend on optional assessment IPC.
222
+ This is independent of D9 consent and cannot expand effective tools, admission,
223
+ OS isolation, budgets or baseline authority. Research stays read-only with
224
+ supported result screening; standalone Damage-Control without trusted assignment
225
+ has baseline only, and coms peers have no native D6 registration coverage.
226
+
227
+ Missing/off/invalid/root-off/unavailable-key means no new D6 inference, not
228
+ removal of durable fences. `/af-damage-override [actionId]` only re-arms a matching
229
+ human dialog, never executes, retries, clears denial or grants path access.
230
+ One-use semantic consent still requires current baseline authority after waiting.
231
+ Original→D6→D8 composition keeps frozen non-aliased original evidence separate
232
+ from appended visible advice; structured `damageGuard` and `fileDiscovery`
233
+ views preserve originals or envelope collisions. Failed capture is a gap and
234
+ warning absence never establishes trust. See the [D6 guide](system1-damage-guard.md)
235
+ for bounded provenance-checked result sources, exact structured API and deadlines.
236
+
237
+ Production wiring exists in the current worktree; named F10 no-network checks
238
+ record SDK/codemode 1.1.0 on Node v25.2.1, not universal compatibility. In that
239
+ SDK, non-structured error rejection exposes the original first block, not coverage
240
+ text (the nested outcome retains coverage/error). D6 remains incomplete/unaccepted:
241
+ A1–A8, independent review/final testing, F12 packaging and F13 final acceptance
242
+ remain open. Documentation and module presence do not close those gates.
243
+
244
+ ### Research search supervision
245
+
246
+ The shared `spawnPiAgent` seam supervises every `read`/`grep`/`find`/`ls` call from native
247
+ research helpers and nested delegate children. The supervisor tracks JSONL `toolCallId` values
248
+ independently, with a default 120-second deadline (`recon-search-timeout-s: 1..3600|off` under
249
+ `## agent-hub`). It is a per-tool watchdog; the whole-run bound is separate — the task-tier
250
+ per-run deadline (`agent-turn-timeout-s`), which terminates a hung run as `turn_timeout`.
251
+ On timeout or caller cancellation it owns and terminates the child's process group (SIGTERM,
252
+ then SIGKILL after a bounded grace), has a separate settlement timer for missing `close`/pipe
253
+ drain, and reports timeout separately from cancellation. Research helpers and nested delegates
254
+ are each given safe process-group ownership; delegates forward parent termination so no detached
255
+ child is orphaned. Full pattern catalog: [references/orchestration-patterns.md](../references/orchestration-patterns.md).
256
+
257
+ ### Usage accounting and supervision
258
+
259
+ The hub records dispatches, research, review rounds and active time across turns and
260
+ saved tasks (`run-budget.js`). None imposes a continuation quota. Legacy
261
+ `max-dispatches-per-turn`, `max-research-per-turn` and `turn-wall-time-s` overrides
262
+ are ignored with migration warnings. Usage remains visible with unlimited caps.
263
+ Task tiers still select delegation, specialist deadlines, recycling and role policy.
264
+ Planner and plan-reviewer are optional at every tier. Wide or high-risk classification
265
+ and System 1 additions retain independent review and action authorization, not a
266
+ Planner admission requirement. Gaps use research; new decisions use `ask_user` grilling.
267
+
268
+ The root operator and native specialists use the drift runtime. Repeated identical
269
+ calls or consecutive failures trigger a bounded judge; a current stuck/drifting
270
+ verdict requests cancellation. Root productive call volume alone never triggers it.
271
+ Judges are fenced at turn/input/session boundaries; an unavailable judge cannot
272
+ fabricate a stop. Root audit entries distinguish an abort request from a confirmed
273
+ physical child stop. This is tool-stream supervision, not a wall-time heartbeat or
274
+ visibility into an external coms peer's own tools. `watchdog: auto` arms it by default;
275
+ an explicit human `off` setting is respected.
276
+
277
+ Individual child deadlines and operator cancellation remain effective. Session
278
+ recycling at run-count/context thresholds and provider concurrency limits remain
279
+ independent resource controls. `agent-turn-timeout-s` and `session-recycle-runs`
280
+ can tighten their tier defaults. Active-time accounting excludes human waits.
281
+
282
+ ### Runtime acceptance and recovery
283
+
284
+ Writable specialist operations (`write`, `edit`, or `bash`) receive the same T2 minimal
285
+ acceptance contract at every task tier. The trigger is the actual operation/tool contract and
286
+ current assertion ledger, not user-language matching or the model's tier label. Read-only
287
+ operations remain lightweight. Language heuristics only expose the fuller verification pack;
288
+ they are supplementary and do not decide whether changed work needs evidence. Pending
289
+ capability leases survive a new-task transition, while stale task packs and assertion state
290
+ reset through the explicit lifecycle path.
291
+
292
+ The runtime-owned result schema is `agent-fleet.runtime-result/v1`. It records orthogonal
293
+ `execution` (`completed | failed | pending`), `changes` (`changed | unchanged | unknown`, with
294
+ `certain | uncertain | not_observed` attribution), `verification`
295
+ (`passed | failed | missing | stale | unsupported`), and `acceptance`
296
+ (`accepted | not_accepted`) dimensions, bound to task identity, before/after revision, command,
297
+ integer exit status, and evidence references. A changed result and failed verification can
298
+ therefore both be true. Compatibility presentation remains
299
+ `not_available | deliverable_failed | needs_verification | accepted` for the Hub and
300
+ `accepted | rejected` for flows.
301
+
302
+ Only native Pi children support trusted runtime checks. The Hub injects the code-owned
303
+ `runtime-test-check.ts` observer only when the native persona has `bash`; the observer wraps the
304
+ existing bash implementation and preserves the normal damage-control `tool_call` approval and
305
+ bash error-event semantics. The parent accepts a check only when producer schema, observed bash
306
+ start, exact declared command, task, coverage metadata, exit status, and unchanged inspected
307
+ revision agree. This proves exact command execution, not semantic adequacy: even a declared
308
+ `true` command can pass, so test quality remains subject to independent or human review.
309
+ Coms peers cannot produce trusted checks, and `manual`/`runtime-ui` requirements currently have
310
+ no trusted producer; all three paths fail closed as missing or unsupported.
311
+
312
+ The observer and trusted event-correlation path have an observed compatibility dependency on
313
+ `@earendil-works/pi-coding-agent@0.84.2`: they rely on its `createBashToolDefinition`, `tool_result`
314
+ hook, `args.path`, and JSON-event passthrough contracts. This records the currently verified API
315
+ surface rather than changing or independently pinning the package version; Pi upgrades must
316
+ re-verify these integration points.
317
+
318
+ Native runs also retain a bounded record of actual tool starts/ends by tool-call identity. T3
319
+ uses those code-owned events only to correlate a terminal, unfenced pseudo-write claim with the
320
+ readback of an explicitly declared deliverable. It never executes tool-shaped text. Fenced
321
+ XML/JSON documentation examples are excluded; a real matching write event with failed readback
322
+ remains a T2 verification/effect failure rather than being relabelled as a protocol failure.
323
+
324
+ A mismatch emits `agent-fleet.tool-protocol-diagnostic/v1` with category
325
+ `tool_protocol_error`, task-or-controlled-probe origin, effective backend/model/tool
326
+ configuration, the claimed effect, matching-event and deliverable facts, `none | partial`
327
+ effects, this-run-only conclusion, and evidence references. The T2 runtime-result dimensions
328
+ remain unchanged and orthogonal. For a real task, the retained diagnostic artifact is the only
329
+ input accepted by the task-generation-bound `establishEffects` recovery port; it records what
330
+ already happened so unchanged retries cannot replay partial effects. It does not authorize a
331
+ retry by itself and does not turn a task failure into a probe result or a universal model
332
+ judgment. The withdrawn T12 runner is not part of this path; historical evidence remains archived.
333
+
334
+ T5's opt-in `filesystem` tool performs deterministic inventory, byte excerpts, artifact readback, and
335
+ local-file-only source snapshots without another model run. It is registered in the Hub and native
336
+ children but appears in their effective tool surface only while the inherited complete profile has
337
+ `assist.deterministic-tools: true`; stale or forged calls are refused at execution too. Profile and
338
+ work-mode changes rebuild the truthful T4 catalog, and compaction reconciles that effective surface.
339
+ Orchestrator mode may use this narrow inspection/managed-snapshot exception, but still has no generic
340
+ bash, edit, or write tools. Orchestrator excerpt, readback, and inventory share a 64 KiB turn ceiling and refuse a file above 64 KiB without returning its body. Excerpt hashes and reads a window, not the whole file into memory. The recovery is `spawn_research` or a specialist dispatch that carries the path, not the contents. Native specialist, research, and nested-delegate explicit tool caps remain
341
+ authoritative: the assist flag cannot append `filesystem` outside a declared cap.
342
+ Opaque handles bind canonical paths,
343
+ content hashes/fingerprints, and offsets; continuation fails on stale bytes or directory state,
344
+ and canonical-root checks reject symlink escape. Snapshot bytes and provenance metadata are
345
+ stored separately under the owning current session, marked untrusted, and never interpreted as analysis
346
+ or fetched from a network origin. Snapshot destinations are runtime-owned and cannot be supplied by the
347
+ caller; this narrow artifact creation path grants no general write or shell authority. Every source
348
+ path—including the path resolved from a readback handle—passes through the existing damage-control
349
+ `zeroAccessPaths` hook before execution, preserving its exemptions and interactive/headless approval
350
+ semantics; a denial occurs before source bytes or snapshot artifacts are created. Handle decoding is
351
+ single-sourced in `.pi/harnesses/lib/deterministic-handle-path.ts`, so damage-control retains this guard
352
+ when installed with its declared shared-library companion but without agent-hub. Inventory names and
353
+ all other operation results are marked untrusted. Because snapshot has a managed artifact side effect,
354
+ `filesystem` is not classified as replay-safe for automatic mid-run model fallback.
355
+ `assist.deterministic-tools` and `assist.bounded-output` are independent. Enabling
356
+ `bounded-output` alone bounds read-only tool results inside native specialists, research helpers,
357
+ and nested delegates before the next model continuation, and bounds parent reply transport too;
358
+ `deterministic-tools` controls the deterministic filesystem assistance without being a prerequisite
359
+ for output bounds. The fixed bounds are 500 inventory entries per page, 64 KiB per content/reply,
360
+ and 180 Unicode characters per preview; truncation always names a retained full-output path and
361
+ retrieval handle. With `bounded-output` off, legacy transport is preserved regardless of the
362
+ `deterministic-tools` setting. Inventory records an escaping or unavailable symlink as a denied
363
+ entry without traversing it or disclosing its target outside the authorized inventory.
364
+ T5 does not consume `assist.write-isolation`; the separate T6c native launch boundary does.
365
+ `assist.return-extraction` is opt-in help for models that forget `submit_result`: a native
366
+ specialist with tracked assertions that never submits gets the cheap read-only extraction pass
367
+ over its written report. The recovered block is labelled extracted, `resultProtocol` stays
368
+ `submission_missing`, and acceptance still depends on runtime evidence.
369
+
370
+ Invocation preflight for `dispatch_agent` and `spawn_research` validates the original
371
+ shape before normalization. Invalid input reports bounded safe field locations and
372
+ expected/actual types or reasons (`invalid_invocation_shape`), without raw values or
373
+ private payloads; unsafe unknown-key locations are redacted. This is distinct from
374
+ `invocation_persistence_failed`, where valid input could not be durably retained.
375
+ Both refuse before executor launch; persistence refusal releases the in-memory
376
+ reservation even when storage cannot retain failure evidence. Correct the named input
377
+ or storage prerequisite and re-invoke explicitly under unchanged gates and budgets.
378
+
379
+ Recovery remains the single T1 contract: no automatic retry, queue, model fallback, or new
380
+ numeric allowance. Busy work is refused before execution accounting or history mutation and is
381
+ not recorded as no-progress failure. Runtime-owned preflight refusals (`not_started`,
382
+ `started:false`, `effects:none`) never launched a process and never become indeterminate
383
+ attempts: correcting the input/prerequisite (tier, scope, artifacts, catalog, process) and
384
+ re-invoking explicitly proceeds without slash reset, grant, or reconcile, with 0 physical
385
+ launches and 0 indeterminate attempts. Refusals use separate accounting and never consume
386
+ turn/task launch counters; the anti-loop boundary stays in the guard (unchanged fingerprint
387
+ stays refused) while budgets still fail closed on real launches. A settled indeterminate failure permits at most one
388
+ explicit, warned, human-authorized retry per logical operation after the prior process is
389
+ confirmed finished and the executor is idle; partial side effects may be duplicated. Neither
390
+ `/af-recover retry <operationId> <attemptId>` nor legacy `/af-retry <dispatchId>` executes work:
391
+ both use the same authorization lane and offer a stored original-contract invocation for a
392
+ separate explicit tool call under unchanged budgets and safety gates. Pending/unknown process,
393
+ second grant, stale IDs, and missing/invalid/abandoned contracts each fail closed with their
394
+ own reason and next actions (independent inspection stays allowed; replay without a validated
395
+ contract does not). `/af-recover inspect` is
396
+ read-only and reports `not_started` history as needing no slash reset; `reconcile` clears only a technical block when independent current-revision
397
+ readback and nonblocking reviewer evidence cover the failed attempt, leaving the immutable
398
+ failure and open T2/T11 requirements intact; `abandon` never satisfies dependent work.
399
+ Wrapper and evidence producers share one canonical executor identity
400
+ (`canonical([cwd, actor])`), so production reconcile matches; task-scoped logical identity is
401
+ separate from the persistent effect fence (phantom `not_started` from another task is never
402
+ inherited, while cancel/unknown-write/indeterminate fences survive task/model/scope changes).
403
+ Launch/close/termination facts travel separately from exit/acceptance: safety refusal and
404
+ spawn failure never launched, timeout without close stays uncertain, and integer exit alone
405
+ never proves settlement. Unknown shell/backend stays a potential effect with no regex
406
+ exemption; the usable inspection route is the effective catalog's read/grep/find/ls (or the
407
+ opt-in filesystem tool) with an explicit target path. Tool availability is never gate
408
+ admission. Legacy preflight history is freed only with positive runtime-owned no-launch
409
+ evidence, never by missing records; unsupported schemas refuse effects without state deletion.
410
+ Operator cancellation fences the same agent identity until a fresh, one-use authorization is consumed.
411
+ Other agent identities—including the anonymous, read-only research actor—remain independent,
412
+ and a task reset does not erase the cancellation fence. Native session reuse is bound to an exact,
413
+ normalized current-task contract (task identity, instructions, scope, deliverables, input artifacts,
414
+ effective model, and permissions). A different/narrower task starts with a fresh session and
415
+ replacement manifest; only an exact continuation, including the auto-research continuation path,
416
+ receives Pi resume transport. This remains context hygiene rather than confinement.
417
+
418
+ When `assist.write-isolation` is explicitly true, dispatch snapshots that effective setting before
419
+ routing and forces a native child. Explicit coms is refused because remote isolation cannot be
420
+ claimed. The complete Pi process and descendants run under Linux bubblewrap or macOS Seatbelt;
421
+ the repository/root view is read-only except for existing exact relative files, expressly allowed
422
+ existing recursive directories, and separate current-run runtime/artifact/temp roots. Glob scope,
423
+ absolute/escaping scope, symlinked grants, an empty writable grant set, absent or wrong-platform
424
+ backends, and sandbox launch failure all fail closed without an unsandboxed retry. Damage-control remains the policy/audit/
425
+ approval overlay, but an approval cannot widen the OS boundary already created for a run; a wider
426
+ path requires a new explicitly authorized dispatch contract. Network, model, and read access are
427
+ otherwise unchanged. Turning the profile flag off does not dismantle an
428
+ active process boundary; the next run takes a new snapshot. Opt-out retains the legacy spawn path.
429
+ The sandbox never rolls back or deletes user edits, and it cannot protect an allowlisted file from
430
+ a concurrent writer. Exact-file grants support direct writes to the existing inode but intentionally
431
+ block temp-file-plus-rename atomic saves; callers must explicitly grant the containing directory for
432
+ that behavior, and the runtime never widens the grant automatically. Sandboxed spawn uses exactly
433
+ three pipe stdio entries and rejects extra inherited descriptors, closing the known writable-FD
434
+ bypass. Linux deliberately preserves the Hub-owned process group instead of adding a PID namespace,
435
+ and `/dev/tty` remains narrowly available; confinement therefore assumes host ptrace and terminal
436
+ injection controls prevent same-uid cross-process escape (for example Linux Yama ptrace restrictions
437
+ and disabled legacy TIOCSTI). Linux enforcement is exercised on a real bubblewrap host. Seatbelt
438
+ canonicalizes only trusted runtime/artifact/temp aliases such as `/tmp` → `/private/tmp`, while user
439
+ scope grants retain strict symlink rejection; its only device write exceptions are literal
440
+ `/dev/null` and `/dev/tty`, never a blanket `/dev` grant. The Seatbelt profile has contract coverage
441
+ but still requires a Darwin runtime check before T6c is fully verified.
442
+
443
+ T4 adds a code-owned effective-tool catalog without creating another recovery policy. Every
444
+ application of work-mode tools compares the actual active catalog before and after
445
+ `setActiveTools` and can emit `agent-fleet.tool-catalog-delta/v1`: removed, added/available,
446
+ active substitutes with explicit limitations, `permissionExpansion: false`, and SHA-256 catalog
447
+ identities. The delta is persisted as a trusted session entry and included in the next system
448
+ prompt. Orchestrator mode still excludes direct `write`, `edit`, and `bash`; a substitute is only
449
+ an already-active path such as `dispatch_agent` or read-only inspection, and is never invoked by
450
+ the catalog machinery.
451
+
452
+ The runtime latches the effective catalog at `before_agent_start`. Actual assistant tool-call
453
+ blocks are compared to that originating-turn catalog on the real `message_end` path, so a
454
+ next-turn mode switch cannot charge an unknown-tool refusal for a call that was legal when the
455
+ turn began; text blocks are ignored and no pseudo-tool text is executed. On `session_compact`,
456
+ the runtime reconciles the restored `agent-fleet.tool-catalog-state/v1` identity with Pi's current
457
+ active tools, persists restore evidence, and retains the task-scoped unknown-tool counter. Catalog
458
+ errors are recorded fail-closed but cannot skip the existing compaction settlement/deferred-input
459
+ lifecycle.
460
+
461
+ Each unavailable tool refusal is keyed by normalized task and tool, while normalized arguments
462
+ and catalog identity record whether the request or availability was reevaluated. The
463
+ operator-approved limit is exactly three counted refusals, including the first. Mode switches,
464
+ compaction, prose, and real catalog changes never refill it; only the explicit new-task lifecycle
465
+ resets it. A real `unknown_tool` dispatch failure is stamped by the Hub with the latched,
466
+ code-owned catalog identity; a result-supplied identity is ignored. A later successfully persisted
467
+ effective-catalog event can establish `toolStateChanged` evidence for the existing T1
468
+ `unknown_tool` `recoveryDecision`, but still requires explicit reinvocation and existing general
469
+ budgets; it never schedules an automatic retry.
470
+
471
+ Qualitative guardrails remain separate from usage accounting. **Task triage** classifies
472
+ the current task (`trivial`/`small`/`feature`/`project`) for delegation, role and
473
+ individual-process resource policy. It survives follow-ups; lowering is free and
474
+ raising needs a recorded reason. Skipped triage assumes small. Near-identical
475
+ dispatches retain the duplicate guard. Architect, security-auditor and deep-researcher
476
+ retain the trivial/small persona gate; Planner and plan-reviewer are optional at
477
+ every tier. Review rounds are uncapped. Review findings retain their advisory
478
+ budget and source-invariant rule; findings are never silently demoted by position.
479
+ **Process obligations (T11)** are task-scoped and independent of that budget tier. The
480
+ `set_task_tier` tool accepts explicit `risk` (`unknown | low | high`) and process `scope`
481
+ (`read-only | small | wide`); neither is inferred from task prose. Legacy/omitted risk is
482
+ `unknown`, risk changes require a reason, and scope expansion requires a reason plus an
483
+ explicit risk reassessment. Unknown permits read-only research but cannot accept changed
484
+ work. Confirmed low-risk small work uses the existing T2 minimal acceptance path; high risk
485
+ adds a separate review stage; wide work also requires independent review. Planning
486
+ is optional and never a pre-effect gate. Current stage evidence names an artifact
487
+ and revision, without claiming that a model review is semantically adequate. A
488
+ requested Planner still needs genuine declared artifact readback to record plan
489
+ occurrence. Missing optional planning cannot block an authorized builder, direct
490
+ operator or coms peer. Exact-action authorization, independent review, current
491
+ verification and task-transition fencing still govern their respective effects.
492
+ Exit 0, prompt echoes, pending transport and stale evidence cannot replace them.
493
+
494
+ Sensitive-work prohibitions remain distinct from positive requests in handoff
495
+ advice; neither positive nor ambiguous wording mandates a Planner. Resolve factual
496
+ gaps with focused research and additional decisions with `ask_user` grilling.
497
+
498
+ Dispatch observation preserves the existing snapshot when the session cwd is a Git
499
+ worktree. For a non-Git parent it resolves only the literal anchors of declared scopes to
500
+ their nearest nested Git roots, rejects roots outside the workspace, and runs path-bounded
501
+ status there without recursive discovery or file-content capture. Each repository retains
502
+ its HEAD and file metadata separately. Deltas and compiler diagnostics are reported with
503
+ workspace-relative paths; compiler discovery runs at the owning repository. Missing roots
504
+ and changed HEADs create scope-specific gaps while other roots remain observable. Partial
505
+ observation or unavailable compiler coverage cannot establish acceptance through a passing
506
+ sibling repository. Runtime session outputs are excluded from nested observation. These
507
+ are local source guarantees, not evidence that an installed workspace copy was upgraded.
508
+
509
+ The same code-owned state is consumed by dispatch acceptance in operator and orchestrator
510
+ modes, appended as `agent-hub-process-state`, restored from the session log, and retained
511
+ through compaction and mode changes. Only `set_task_tier(new_task: true)` creates fresh
512
+ unknown-risk process state. `/af-audit` exports allowlisted satisfied/open/unsupported
513
+ obligation statuses and explains that the budget tier limits spend rather than correctness;
514
+ reasons and task prose are not copied. This extends the existing task/acceptance/audit paths
515
+ and is not a second workflow engine.
516
+
517
+ **Docs lane** (`docs-lane.js`): a dispatch whose whole declared `scope` is documentation
518
+ refuses review personas (overridable with `review_reason`) and tells the dispatcher not to
519
+ open a review gate; an absent scope is never the lighter lane. **External-blocker stop**
520
+ (`external-blocker.js`): a specialist emits `EXTERNAL_BLOCKED: …` when it needs something
521
+ outside the fleet's reach (account, permission, credential, telemetry destination), and the
522
+ hub refuses the next dispatch with an owner-escalation packet until the human is addressed —
523
+ the alternative, observed, is hours spent approximating the missing fact with scripts,
524
+ manifests and fixtures while the assertion still ends UNPROVEN. **Drift watchdog**
525
+ (`drift-watchdog.js`): armed dispatches are
526
+ observed in-flight from the JSON event stream — deterministic rules (out-of-scope writes
527
+ against the declared `scope` globs, tool-call loops, consecutive failures, tool-call cap)
528
+ escalate to a one-shot cheap LLM judge whose DRIFTING/STUCK verdict terminates the run as
529
+ `drift_stop` (exit 125, partial output preserved); enabled per hub/agent/dispatch
530
+ (`watchdog` key, `/af-watchdog`, `watchdog` param). Orchestrator work mode auto-arms the
531
+ watchdog when the hub setting is `auto`/`on`; a dispatch `watchdog: false` cannot disarm it
532
+ there. Hub or per-agent `off` remains the opt-out. Two rules about scope: the session's
533
+ own `artifacts/`, `findings/`, and `delegations/` subtrees are implicitly in scope (the
534
+ deliverable protocol *orders* specialists to write there, and the judge is told so), and the
535
+ `scope` rule is non-terminal — it reports a drift advisory on the result and never stops a
536
+ run by itself, matching the post-run scope gate, which reverts nothing. **Dynamic teams**: `/af-agents-add`,
537
+ `/af-agents-drop`, `/af-agents-save` restructure the roster live (the system prompt rebuilds
538
+ every turn), and the gated `team_adjust` tool lets the dispatcher itself adjust the roster
539
+ when nested delegation is on (feature/project), with user notification. `/af-hub-report` accounts each turn's dispatches,
540
+ tokens (billed = input + cacheRead + cacheWrite), recycles, drift stops, and refusals.
541
+
542
+ ## Runtime stack (tools the fleet sits on)
543
+
544
+ ```mermaid
545
+ flowchart TD
546
+ AF["<b>Agent Fleet</b><br/>agent-hub · personas · skills · coms · bridges · CLI"]
547
+ AF -->|primary runtime| PI["<b>pi</b><br/>coding agent — loads harnesses,<br/>extensions, prompts, personas"]
548
+ AF -->|control plane| HERDR["<b>herdr</b><br/>tiled peer workspaces,<br/>presence, snapshot/resume"]
549
+ AF -->|coms peer only| CC["<b>Claude Code</b><br/>bidirectional peer via<br/>the coms bridge<br/><i>not an install target</i>"]
550
+ AF -->|remote human| HERMES["<b>Hermes</b><br/>hub questions relayed to your phone,<br/>plus the Desktop fleet panel"]
551
+ AF -->|ChatGPT-initiated session client| CODEX["<b>ChatGPT Fleet session client</b><br/>existing Pi session via<br/>opt-in chatgpt-client (experimental)"]
552
+ ```
553
+
554
+ ### External dependencies
555
+
556
+ These are the external systems Agent Fleet assumes or integrates with — not npm packages, but the **runtime stack** the fleet operates on top of.
557
+
558
+ | Dependency | Role | Required? |
559
+ | --- | --- | --- |
560
+ | **[pi](https://github.com/badlogic/pi-mono)** (or your pi install) | Primary coding-agent runtime; loads harnesses, extensions, prompts, and personas | Yes for `just fleet` |
561
+ | **[herdr](https://herdr.dev)** | Workspace control plane: Hub/peer panes, presence push events, team snapshot/resume | Required for `--herdr` or `--peers`; optional for bare `just fleet` |
562
+ | **[Claude Code](https://docs.anthropic.com/en/docs/claude-code)** | First-class coms peer via the [coms bridge](claude-code-coms-bridge.md) — cross-model review and analysis. Never an install target: it hosts no skills, commands, or personas | Optional peer |
563
+ | **Hermes** | Remote human-in-the-loop (Telegram relay for hub questions — [coms-hermes-bridge](coms-hermes-bridge.md)) and the Desktop fleet panel ([hermes-desktop-plugins](hermes-desktop-plugins.md), needs v0.19.0+ and the Desktop app) | Optional |
564
+ | **ChatGPT Desktop/Android** | Experimental opt-in Fleet session client for an existing Pi session; Node 22.18+, Python 3.10+, local herdr/coms access — [runbook](codex-session-bridge.md) | Optional experimental feature `chatgpt-client` |
565
+ | **[addyosmani/agent-skills](https://github.com/addyosmani/agent-skills)** | Upstream skill library (manually vendored) | Bundled (vendored) |
566
+ | **[disler/pi-vs-claude-code](https://github.com/disler/pi-vs-claude-code)** | Source inspiration / MIT port origin for pi harnesses | Design lineage (ported in-repo) |
567
+ | **LLM providers** | Models per persona (`model:` / `models:` in agent frontmatter) — e.g. OpenAI Codex, GitHub Copilot, Ollama, … | Yes (at least one provider your agents can call) |
568
+ | **Chrome DevTools MCP** / **Playwright Agent CLI** | Browser verify (`browser-testing-with-devtools`) and headless automation (`bowser`) | Optional, feature-specific |
569
+ | **Node.js + npm** | CLI (`npx @chankov/agent-fleet`), package install, `just` recipes | Yes for install & tooling |
570
+
571
+ The existing `agent-fleet doctor` command also performs a read-only manifest preflight. It reports exact selected installation files and manifest-declared tool probes as environment readiness, distinguishes missing installation from unknown or unavailable platforms, and names the existing explicit remediation path. Bare doctor never repairs or installs; `doctor --fix` remains the only repair activation, and package/tool installation remains behind its existing explicit consent path.
572
+
573
+ ### System 1 watchdog consumer (off by default)
574
+
575
+ The native specialist Layer 1 drift watchdog can use the shared System 1 runtime
576
+ only after explicit `watchdog-system1: shadow|active` in `## agent-hub`, feature selection,
577
+ valid provider configuration, an available key and an armed watchdog. It takes a
578
+ session snapshot; setup and doctor do not infer. Shadow starts the LLM judge at
579
+ once and separately observes the same bounded state with Jev. Only the LLM
580
+ verdict may terminate a child; an unavailable LLM judge is recorded as
581
+ `judge_unavailable` and gets one revalidated retry at 5 s, not a successful
582
+ 90 s cooldown. Successful decisions keep 90 s. Every physical attempt has
583
+ separate identities; D1 retries create a new snapshot and do not reuse or
584
+ repeat the previous System 1 evaluation.
585
+
586
+ The state carries a redacted task, relative scope/paths, up to 40 structured
587
+ kinds/outcomes/repeat counts, rule facts and coverage, not raw arguments,
588
+ commands, edit bodies or outputs. This limit applies to System 1 only: the
589
+ existing parallel LLM judge prompt contains the original task, scope and a
590
+ recent trail with up to 120 characters of raw tool arguments per call. Use
591
+ only reviewed nonsecret pilot inputs; manual review does not rule out
592
+ unexpected agent actions. The native spawn boundary removes
593
+ `TYPESAFE_API_KEY` after env overrides. This cannot prevent file reads or
594
+ requests from other launchers. The append-only session watchdog trace stores
595
+ only safe metadata, with explicit unknown usage and interrupted readback.
596
+ The below-chat Fleet strip and `/af-agents` owner detail share a projection;
597
+ `/af-watchdog` shows readiness/active blocking, `/af-hub-report` separates
598
+ watchdog checks, S1 evaluations and LLM attempts, and `/af-audit` lists safe
599
+ read-only lifecycle outcomes. UI/trace failure does not change judgment.
600
+
601
+ `watchdog-system1: active` explicitly opts into an **uncalibrated experimental**
602
+ shortcut available in installed workspaces: only advisory `scope` may skip LLM
603
+ when Jev `jev-1.13.0` reports provider on-track with confidence and on-track
604
+ distribution ≥0.95 and all three contradiction probabilities ≤0.05. Terminal
605
+ rules always use the LLM; System 1 cannot stop a child. The watchdog status
606
+ labels the mode `experimental: scope only; G2 not validated`; default remains
607
+ off and production approved profiles remain empty. Human snapshot labels,
608
+ session-separated held-out measurement and independent maintainer G2 approval
609
+ are still required before calling this calibrated or expanding its authority. Offline tests and installed-package checks do not
610
+ constitute a live pilot (G1) or active approval (G2). Roll back with
611
+ `watchdog-system1: off` and restart Hub; cancel the current run if needed.
612
+
613
+ ### Proactive turn review (separate opt-in consumer)
614
+
615
+ The Hub's `proactive-*` modules compose a separate, off-by-default consumer of the
616
+ existing shared System 1 library and its provider/key; they do not create another
617
+ provider owner or change watchdog authority. A human-owned per-repository
618
+ `consumers.proactiveReview` in `.ai/system1.json` selects `off`, `shadow`, or `advisory` and exact
619
+ repository-relative include scope. Missing/off means **zero proactive capture,
620
+ inference, and feedback**. Enabled config with `remoteContext: "disabled"` is
621
+ local-only: bounded source/rule capture and reviewed local validators may run,
622
+ but no semantic provider assessment. `selected-excerpts` separately permits
623
+ bounded selected source/assistant excerpts to the shared System 1 service when
624
+ it is ready; shadow records findings without delivery, advisory may deliver
625
+ feedback at the next *already-occurring* context hook for the same owner,
626
+ attempt, task, and bound rule/source revision. It never creates a turn, fixes
627
+ code, terminates work, changes acceptance gates, or suppresses the watchdog.
628
+ No activation, outbound transmission, or remote repository authorization is
629
+ conferred by installing this code or reading this documentation.
630
+
631
+ At `turn_start`/`turn_end`, Hub and supported native Pi specialists bind the
632
+ explicit task/plan and session rule catalog, collect bounded immutable
633
+ before/after worktree and text evidence, and retain private snapshots separately
634
+ from metadata-only finding/report projections. Source-backed rules come from
635
+ `rules:` folders in `## agent-hub` (legacy `## agent-team`), with index-first
636
+ Markdown discovery, explicit linked sections, and bounded fallback; discovery
637
+ is read-only and never executes rule instructions. Rule identity includes path,
638
+ heading occurrence and hash. Incomplete discovery, unselected sections,
639
+ unsupported Markdown, missing plan (`task_only`), concurrent edits, and
640
+ changed source stays partial, unsupported, uncertain or stale—not
641
+ confirmed passes. Rule references use the session-bound revision: on-disk rule
642
+ edits do not themselves stale a finding, and a restart is required to adopt them. Only explicitly reviewed bindings support deterministic
643
+ local link-form and new-file-placement checks; model findings remain
644
+ suspicions, not validated bugs. Rules are **bound per session**: editing a rule
645
+ in a running session does not reload it; restart to adopt edits. Research
646
+ helpers, nested delegates, coms peers and Hermes are not instrumented by this
647
+ consumer. Native observer hooks/integration were checked with repo-local Pi
648
+ 0.84.2; Node 18 compatibility concerns the extracted installer CLI/doctor,
649
+ not running the TypeScript observer under Node 18.
650
+
651
+ Limits and exclusions, exact config, local report/labels usage, and consent
652
+ sequence are in [Project Files — Proactive turn review](agent-fleet-setup.md#proactive-turn-review-experimental).
653
+ Offline/installed tests and C5 operator visibility establish neither live-pilot
654
+ utility nor universal correctness. The finding-label source fix passed final independent source/docs review;
655
+ this establishes offline/package readiness, not human-labelled semantic acceptance. Only retained finding keys
656
+ are exposed for human labels: checked-clear units lack an operator-accessible
657
+ key, so miss/true-negative labeling and full recall evaluation are not operational.
658
+ C7 human acceptance and any release/deployment remain separate. Current caveats include
659
+ unknown native delivery without a receipt and a rare async-close error risk.
660
+
661
+ ### Experimental System 1 foundation
662
+
663
+ System 1 is a shared Fleet library for bounded structured judgments, not a Pi
664
+ model and not a workflow stage. Its provider-neutral contract exposes
665
+ `choice`, `predicate`, and `ordinal` questions with explicit `ok`, `skipped`,
666
+ `unavailable`, `unsupported`, and `cancelled` outcomes. A valid judgment never
667
+ grants action authority. The contract retains distributions, predicate
668
+ probabilities, and provider confidence when supplied and required, but never
669
+ invents missing uncertainty or treats provider confidence as universal
670
+ calibration.
671
+
672
+ The shared service requires saved desired selection of experimental `system1`,
673
+ directly or via its `system1-task-triage` feature dependency; automatic Full
674
+ excludes both. Use `--save-desired` for permanent CLI changes over an existing
675
+ human-owned `.ai/agent-fleet.json`. Provider configuration is a
676
+ separate human-owned `.ai/system1.json` with exactly this version-1 contract:
677
+
678
+ ```json
679
+ {
680
+ "version": 2,
681
+ "mode": "auto",
682
+ "provider": "typesafe",
683
+ "model": "jev-1.13.0",
684
+ "apiKeyEnv": "TYPESAFE_API_KEY",
685
+ "consumers": {}
686
+ }
687
+ ```
688
+
689
+ Selection, valid `mode: "auto"` configuration, and a nonempty key in the
690
+ caller's environment are all required. `mode: "off"` wins, and key presence by
691
+ itself never activates the service. The runtime and imports do not load `.env`
692
+ or mutate global environment. Managed `just` launches may load the workspace
693
+ root `.env`; direct Node launches must export or inject the key themselves.
694
+
695
+ The only phase-0 production adapter uses the fixed official TypeSafe endpoint
696
+ and pinned `jev-1.13.0` model. It has a 2,000 ms total deadline, including body
697
+ collection and at most one budget-fitting retry for 429/529, rejects redirects,
698
+ and bounds request and response bodies at 1 MiB without truncation. Cancellation
699
+ prevents retry and late-result use; a 401 latches that service instance. Normal
700
+ failures return structured, sanitized outcomes rather than raw response bodies.
701
+ There is no arbitrary endpoint, SDK dependency, Pi/local-model fallback, daemon,
702
+ or local-model installation.
703
+
704
+ Doctor reuses the shared configuration validator and is advisory, read-only,
705
+ and offline—even with `--fix`. It does not inspect or load `.env`; key presence
706
+ in its current process remains local readiness, never API validity. The standalone
707
+ demo is also offline by default; only explicit `--live` sends its embedded
708
+ synthetic Bulgarian/English examples. Public setup and commands are documented
709
+ in [Install and lifecycle](npm-install.md#experimental-system-1-foundation).
710
+
711
+ Consumers own their field allowlists, data consent and policy separately. The
712
+ native managed child spawn filters the shared key, but this is not universal
713
+ file/environment isolation for arbitrary launchers. Watchdog's active scope
714
+ shortcut, profile-gated dispatch advice and active uncalibrated task triage are
715
+ different contracts; one consumer's profile/consent cannot enable another.
716
+
717
+ Evidence stays split: Node 18 verifies installer/doctor portability, real-Pi
718
+ synthetic sessions verify registered runtime hooks, and an extracted tarball
719
+ verifies install/import closure and disable/resume gates. Human UI observation
720
+ and independent checkpoint reviews are separate. None proves live Jev accuracy,
721
+ calibration, semantic assertion adequacy or universal remote effects.
722
+
723
+ ### Task triage: additive process evidence, not spend authority
724
+
725
+ The separately consented `system1-task-triage` consumer evaluates accepted user
726
+ input before the first Hub model turn, using the existing shared service even
727
+ with watchdog off. It supplies bounded user text and declared scope, not file
728
+ bodies, environment, transcripts or tool output. Runtime limits are 40 KiB
729
+ aggregate task/clarifications, 64 KiB serialized state, 100 logical evaluations
730
+ per saved session and a 2,000 ms deadline including adapter retries. Cache keys
731
+ bind input/scope/version; task adoption and compaction/resume cannot refill the
732
+ allowance. Physical attempts and unknown usage remain distinct from logical calls.
733
+
734
+ Independent intent-aware predicates at inclusive thresholds add review
735
+ (`security_change` ≥0.80), review (`wide_change` ≥0.85), or exact-action human
736
+ confirmation (`irreversible_execution` ≥0.80). They do not set risk/tier, select
737
+ a model/roster, increase spend or weaken baseline protections. Low probabilities
738
+ are not clearance; missing/invalid/provider-failed results add nothing while
739
+ existing obligations persist. This is active experimental policy, not calibrated
740
+ persona advice or a watchdog stop profile.
741
+
742
+ Source additions retain task/evaluation/input provenance and union with baseline
743
+ requirements. New scope invalidates uncovered evidence. A narrow correlated
744
+ human waiver releases one bound addition as `waived`, not `satisfied`; baseline
745
+ and other-source requirements survive. Pending task transition and authoritative
746
+ state/grant/consumption persistence refusal fence dependent effects. While that fence is up, `set_task_tier` and `ask_user` remain callable; any other tool is a diversion. The first assistant step that calls another tool is refused with the bind hint on every tool in that step and is not aborted, so the model can call `set_task_tier` next. A later step that still does not bind stops the turn, including its parallel batch, by aborting the run instead of repeating the same retryable refusal. The fence is persisted and restored on resume until `set_task_tier` clears it. Supported
747
+ Optional native planning and required review use the existing evidence path; exact-action
748
+ confirmation supports Hub direct bash/edit/write, not arbitrary child/remote/coms
749
+ execution. The human question shows complete tool inputs as JSON and cwd with
750
+ an **8 KiB (8192 bytes)** full-detail cap: invalid, missing, sensitive,
751
+ terminal/bidi-control, oversized or mismatched details refuse **without
752
+ truncation or partial redaction**. JSON preserves non-ASCII input through escapes;
753
+ sensitive-text detection remains heuristic. The one-use binding and pre-effect
754
+ recheck include task/revision, tool call, operation, input hash and cwd.
755
+ The question is **not local-only**: configured ask-user local/remote human routes
756
+ can carry action paths/content. Normal Pi tool/session rendering, human-route
757
+ records and clipboard are separate from metadata-only audit and its caps.
758
+ Unsupported bindings refuse the affected operation.
759
+
760
+ The full Fleet dashboard and `/af-audit` separate declared classification,
761
+ assessment, effective obligations, source waivers, blockers, logical calls,
762
+ physical attempts and recorded action grant/consumption/tool result. None means
763
+ semantic task acceptance by itself. New persistent trace/audit projections are
764
+ metadata-only; optional observation failure cannot alter enforcement. The
765
+ communication viewer stays separately opt-in, memory-only and capped at 32 KiB;
766
+ a larger valid task payload is withheld, not truncated. Task-triage presentation
767
+ is session-level and does not fabricate worker rows or a second dashboard.
768
+
769
+ Setup creates absent nonsecret consumer/provider templates transactionally only
770
+ with explicit task-context consent; it preserves existing configs/off. Disable
771
+ and restart stop future calls without deleting resumed obligations. Detailed
772
+ schema, saved desired selection, role/budget recovery, narrow waiver and rollback
773
+ are in [Project Files](agent-fleet-setup.md#task-triage-active-experimental-off-by-default).
774
+
775
+ ### Execution tracing and baseline policy classification
776
+
777
+ The Hub records `agent-hub-execution-trace` custom entries in the existing Pi
778
+ session JSONL journal. By default Pi keeps it under `~/.pi/agent/sessions/`, in a
779
+ directory named after the workspace's absolute path (for `/home/user/project`:
780
+ `--home-user-project--`); a configured Pi session directory may differ. These entries complement the Fleet session directory under
781
+ `.pi/agent-sessions/sessions/<fleet-session-id>/` and existing coms/Herdr logs.
782
+ `/af-audit` exposes their sanitized chronological `executionTrace` projection.
783
+ Schema v2 writes one row per finished span (start, end and outcome together);
784
+ turn and child spans also journal their start so an interrupted session still shows
785
+ what was in flight, and other unfinished spans appear in the live audit only. Older
786
+ v1 journals with separate start and end rows remain readable.
787
+
788
+ Root Pi hooks record input, turns, model rounds and tool requests/results. Existing
789
+ native callbacks link children to their dispatch and report child tool activity.
790
+ The shared Pi event bus connects process/baseline/semantic guard decisions and
791
+ runtime/model questions across isolated extension loaders. Native semantic-broker
792
+ requests join a tool only for one exact input fingerprint, owner and time range;
793
+ ambiguous requests stay visibly unlinked. Remote peers without these callbacks do
794
+ not acquire complete telemetry automatically.
795
+
796
+ Pi emits tool start before permission hooks. A denied request therefore has tool
797
+ activity but no fabricated execution duration. Actual execution duration comes
798
+ from the SDK; human waits and queue waits are separate observations. Overlapping
799
+ intervals count once. Model-round timing includes preparation and is not provider
800
+ latency alone. All aggregates cover only the retained 5,000-row trace window;
801
+ dropped, open, interrupted, invalid and unlinked records remain explicit. Old
802
+ journals without trace return `not_recorded` and unknown timing. Persistence
803
+ failure cannot block work: the live audit uses available memory and reports
804
+ `live_degraded`. Session shutdown releases the bus listener and fences late
805
+ completions; a proposed switch that is subsequently cancelled keeps its spans.
806
+
807
+ Only allowlisted metadata and hashed task/input/call/rule identities are stored
808
+ in the new trace. Commands, paths, user prose, answers, results and credentials
809
+ are excluded. Other existing Pi/session/coms logs retain their own payload rules.
810
+ Trace never grants permission, proves progress or accepts a task.
811
+
812
+ Baseline Bash policy now distinguishes supported static operands from literal
813
+ data. This fixes repository-relative `/bin/` collisions, read-only inspection of
814
+ `dist/` or lockfiles and quoted cat/tee heredoc fixtures containing protected-path
815
+ or deletion examples. Real redirects, writes, deletion and compound effects stay
816
+ guarded. Expanding shell syntax, interpreters, `sed`, `file` and ambiguous attached
817
+ short options retain conservative text checks; the trace labels which analysis was
818
+ used. This is a narrow classifier, not a shell sandbox or a guarantee against all
819
+ future false positives. Reload/restart the harness to activate updated sources;
820
+ separate copied installations still need their normal workspace update.
821
+
822
+ ## Repository module map
823
+
824
+ ### Agent Hub composition
825
+
826
+ `.pi/harnesses/agent-hub/index.ts` owns mutable Hub state and composes the extracted concerns without merging their context contracts:
827
+
828
+ ```text
829
+ agent-hub/
830
+ ├── index.ts # bounded composition root; constructs root-owned mutable ports
831
+ ├── types.ts # shared Hub agent/state contracts
832
+ ├── config/ # agent/frontmatter, teams, profiles, dispatch policy, overrides
833
+ ├── context/ # state, budgets, assertions/artifacts, session-health factories
834
+ ├── commands/ # 27 typed /af-* command registrars
835
+ ├── tools/ # 16 tools plus dispatch/research execution orchestration
836
+ ├── dispatch-core.ts # facade over native, coms, and observability dispatch
837
+ ├── dispatch-*.ts # native preparation/spawn/completion and backend adapters
838
+ ├── acceptance.ts # agent-fleet.runtime-result/v1 and minimal acceptance evaluation
839
+ ├── runtime-test-check.ts # code-owned native bash observer for trusted runtime checks
840
+ ├── tool-protocol.ts # T3 event/readback correlation and shared diagnostic schema
841
+ ├── recovery-contract.ts # shared typed failure/recovery policy
842
+ ├── damage-guard-*.ts # D6 parent state, approval, ownership and broker (acceptance open)
843
+ ├── policy/ # model, roster, capability, and work-mode decisions
844
+ ├── research/ # helper runtime, spawn transitions, and controls
845
+ ├── ui/ # grid, dashboard, detail, context, pool, zoom, and history
846
+ ├── input/ # shortcuts and completion derivation
847
+ ├── lifecycle/ # turn, pressure, monitor, session, and shutdown orchestration
848
+ ├── prompts/ # data-oriented system/session templates + HubPromptContext
849
+ ├── session-start.ts # typed ordered session_start step runner
850
+ ├── presentation.ts # marker, name, thinking, and delegate-path helpers
851
+ ├── timeline.ts # bounded transcript/timeline append helpers
852
+ ├── monitor-*.ts # local monitor transport and recovery primitives
853
+ └── *.test.{ts,js} # registration, loader, parity, and behavior contracts
854
+ ```
855
+
856
+ Cross-harness coms lifecycle remains shared in `.pi/harnesses/lib/coms-core.ts` and `coms-core-io.ts`; it is not owned by the Hub composition root.
857
+
858
+ ```text
859
+ .pi/ # Pi runtime: harnesses, extensions, agents config, prompts
860
+ .pi/agent-fleet/ # The fleet runtime, mirrored verbatim into a workspace:
861
+ scripts/ # CLI helpers, bridges, team + one-off peer launchers (pure logic in scripts/lib/)
862
+ scripts/workflows/ # deterministic flow graphs + phase/gate/permission/quality runtime
863
+ hermes/ # Hermes-facing skills/integration assets
864
+ hooks/ # the coms bridge Stop hook
865
+ docs/ # the one doc that installs into a workspace (workflows.md)
866
+ skills/ # Agent Fleet-native skills (shadow vendored names)
867
+ agents/ # Personas/subagents; installed to a workspace's .pi/agents/personas/
868
+ codex/ # Canonical Codex conductor contract (runtime copy lives outside checkout)
869
+ systemd/user/ # Owned user-unit template for Codex remote control
870
+ vendor/agent-skills-upstream/ # Manually imported upstream skills (pinned SHA)
871
+ bin/ # npm CLI: init/update/doctor + the installer engine
872
+ references/ # Supplementary checklists, installed with the skills that cite them
873
+ docs/ # This file, setup guides, bridge references, vendoring policy
874
+ ```
875
+
876
+ The fleet runtime keeps its *source* layout identical to its *installed* layout.
877
+ That is not cosmetic: `companion:harness-runtime-closure` and its siblings copy
878
+ with `preserveLayout`, so a relative import written here resolves the same way in
879
+ a workspace — including the ones reaching from the stationary `.pi/harnesses/`
880
+ into the movable `.pi/agent-fleet/scripts/`. `bin/test/path-boundaries.test.js`
881
+ holds that invariant.
882
+
883
+ Reserved for future modules (do not repurpose these paths):
884
+
885
+ ```text
886
+ apps/dashboard/ # future dashboard: Kanban state, Herdr workspaces, peer status
887
+ packages/fleet-core/ # future extracted core orchestration library
888
+ packages/herdr-bridge/ # future Herdr integration package
889
+ packages/hermes-bridge/ # future Hermes integration package
890
+ ```
891
+
892
+ ## Design rules
893
+
894
+ - **Workflow engine remains single-sourced.** `just flow` owns deterministic phase order, retries, executable gates, post-hoc writes enforcement, and one flow acceptance decision. It uses the clean spawn/context seams and keeps its clean-tree guard while staying on the current branch by default; creating a flow branch requires explicit `--branch`; normal traces live under `.pi/flow-sessions/`. Explicit flow branches retain source/result metadata, while reserved `cleanup` and `merge` delegate safe removal and squash integration to Worktrunk. The initial Hub `run_flow` adapter calls the same exported dispatcher directly and permits only read-only `scout`: it runs in a stable detached snapshot with no flow branch, stores trace/manifest in the current Hub session, and has one Hub budget/cancellation owner. Snapshot overlay operations validate plain parents before mutation and never follow a HEAD symlink leaf. The native process and descendants use `confineNativeChild`, with only the session-owned phase directory writable; the actual `read`/`grep`/`find`/`ls` data paths are separately limited to the snapshot while damage-control remains loaded. Runtime/model libraries and provider configuration remain readable for Pi startup, so this is intentionally not a global no-read claim. Duplicate identity is idempotent; stale/busy calls are uncharged. All setup/result exceptions settle as structured failures, release active ownership, and preserve honest charged/started state. Owned scout snapshots are cleaned on settlement, with visible cleanup status/errors; traces and explicit branches are retained. Flow acceptance never promotes parent assertions or closes T11 obligations. Writable/committing flows remain outside this adapter pending a separate review.
895
+ - **Thin dispatcher context.** Nothing lands persistently in the dispatcher's
896
+ context if it can live on disk or in a one-line status. Research findings,
897
+ the Verification Contract ledger, and team snapshots are all disk-first.
898
+ - **A harness fault must never look like a specialist fault.** The hub passes
899
+ `--session <file>` on every run, so one corrupt session file used to fail a
900
+ persona in ~1s with no output — indistinguishable from a bad agent, and
901
+ unrecoverable by drop + re-add. Unusable session files are now validated and
902
+ quarantined (`session-health.js`) with the reset named in the result. Same rule
903
+ for the return contract: a report the parser cannot read gets one cheap
904
+ read-only extraction pass (`return-extract.js`) before its assertions are
905
+ written off as unproven, and extracted evidence is always labelled as weaker
906
+ than declared evidence. The converse also holds: a run that errored or timed
907
+ out writes to `artifacts/failures/`, never `returns/` — an error stub filed
908
+ as a return reads as a specialist verdict and gets acted on as one.
909
+ - **A pool status field beats reading the screen.** `coms_list` publishes each
910
+ peer's `pane_id`, waiting-only `queue_depth`, and `status`
911
+ (`idle`/`queued`/`working`/`booting`). `working` means an active turn;
912
+ `queued` means accepted work is waiting to start. `herdr_spawn_peer` waits
913
+ for the peer to register and returns `peer_ready`
914
+ rather than a bare pane id. A spawned peer boots idle and does nothing until
915
+ addressed, so peers spawned and never sent to are named at turn end and in
916
+ `/af-hub-report` (`spawned-peers.js`); closing stays the human's call.
917
+ - **A declared requirement carries its origin.** Every assertion in the ledger
918
+ names its source (`assertion-ledger.js`), and the open ledger is soft-capped
919
+ at 8 — an id nobody can trace back to a plan line costs a dispatch and an
920
+ ASK_USER cycle to re-derive.
921
+ - **Pre-flight validation is free.** Anything the hub can reject before spawning
922
+ — an unresolvable artifact path, an unknown research persona, a heavy persona
923
+ at a low tier, a reviewer on a docs-only scope — is refused without spending a
924
+ budget slot. Artifact paths also resolve across artifact kinds when the name is
925
+ unique, since the hub writes every auto-return under `returns/` while
926
+ dispatchers reasonably guess `reviews/`.
927
+ - **Evidence is archived, never overwritten.** Session start moves the previous
928
+ session's `artifacts/` into an immutable `.pi/agent-sessions/runs/<runId>/`
929
+ namespace with a read-only `meta.json` and an appended `runs/index.json`
930
+ (`run-namespace.js`), retained per `run-history-keep` (default 10). The old
931
+ behaviour — delete `artifacts/` at start, name returns by a per-session counter
932
+ — collided two ways at once and made a post-mortem record eleven specialist
933
+ returns and two reviews as NOT RECOVERABLE. A failed archive leaves the
934
+ artifacts in place: a stale tree is recoverable, a deleted one is not.
935
+ - **Herdr owns panes, presence, and lifecycle; coms owns messages.** Herdr
936
+ topology recipes (`--herdr` or `--peers`) require a running server and refuse
937
+ with an actionable message otherwise. Bare Fleet does not require Herdr.
938
+ `--no-coms` leaves direct/native execution available but disables peer
939
+ messaging, peer-backed dispatch, and handoff from the Hub.
940
+ - **External agents are peers, not plugins.** Claude Code (and future CLI
941
+ agents) join the fleet through bridge adaptors that speak coms envelopes —
942
+ the fleet core stays agent-agnostic. Hermes remains the inbound `ask_user`/
943
+ Telegram route; the experimental Codex conductor is outbound-initiated only,
944
+ approval-gated, and restricted to listed peers through the validated wrapper.
945
+ - **Hermes monitor presentation is outside the fleet core.** Agent Fleet exposes owner-only
946
+ local monitor operations for Hub-owned state; a consumer owns its UI and lifecycle. The
947
+ worktree contains additive monitor/event/invoke code, but that implementation and its local
948
+ tests are not proof of a durable external identity or live delivery contract. `invoke`, where
949
+ available, is Hub-owned and queues dispatcher work rather than exposing tools directly.
950
+ - **Packaged Hermes source is opt-in, never auto-installed.** The npm tarball carries the
951
+ `hub-watchdog` skill (`.pi/agent-fleet/hermes/skills/`) plus the backend and Desktop monitor plugin source
952
+ (`.pi/agent-fleet/hermes/plugins/`, `.pi/agent-fleet/hermes/desktop-plugins/`) as runtime-only source. Shipping that source
953
+ makes it available to an operator; installing it into a Hermes profile is always an explicit
954
+ action through `agent-fleet set-hermes-watchdog` (skill) or the consumer's own flow (plugins).
955
+ Nothing is enabled, launched, or configured by installing the package.
956
+ - **Watchdog delivery is capability-gated and currently unproven.** No checked-in
957
+ Gate O live artifact proves Hermes origin identity, updates, reconnect, or two-chat isolation,
958
+ so its supported posture is journal-only/dormant: no delivery, steering, or surgical use. It
959
+ never manages services, gateways, Herdr, or shell commands. Local runtime evidence — including
960
+ a real foreground watcher against a disposable Hub UDS — is `synthetic-local` and proves none of
961
+ those capabilities; see [the watchdog runbook](hermes-watchdog-supervisor.md).
962
+ - **External conductor contracts are advisory.** Pi damage-control wraps Pi
963
+ tool calls, not Hermes or Codex processes; human approvals and their
964
+ contracts reduce risk but do not provide an OS command allowlist.
965
+ - **Destructive fleet verbs are damage-control-guarded.** Specialists cannot
966
+ spawn/close herdr panes; the human confirms destructive actions.
967
+ - **Native-over-vendored skills.** The skill catalogue resolves `skills/`
968
+ first, then the vendored upstream import; upstream updates are explicit
969
+ maintainer actions ([UPSTREAM-SKILLS.md](UPSTREAM-SKILLS.md)).
970
+
971
+ ## History
972
+
973
+ Agent Fleet began as a fork of `addyosmani/agent-skills` and was split into a
974
+ standalone repository in July 2026, with upstream demoted to vendored content.
975
+ The one-time migration record, including the history-filtering commands, lives
976
+ in [MIGRATION-agent-fleet.md](MIGRATION-agent-fleet.md). The product
977
+ requirements that drove the split were a one-off planning document and are no
978
+ longer maintained.
979
+
980
+ ## Unified System 1 v2 configuration
981
+
982
+ The runtime source is `.ai/system1.json` version 2 with independent consumer sections, one immutable session snapshot and a shared service. Installation selection remains separate. See [the unified configuration contract](system1-config.md) for setup, explicit migration, retained backups, diagnostics and remote/local off semantics. Legacy JSON files and `watchdog-system1` in Markdown are not runtime sources. v1 requires explicit migration and cannot start inference. Persisted Task Triage obligations remain enforced when inference is off or unavailable. D10 is not activated by this change.