@chankov/agent-fleet 2.1.2 → 2.2.2

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 (2330) hide show
  1. package/.pi/agent-fleet/hooks/coms-stop-hook.mjs +53 -13
  2. package/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/README.md +223 -0
  3. package/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile-0.167.json +5627 -0
  4. package/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +4 -0
  5. package/.pi/agent-fleet/scripts/fleet.ts +13 -17
  6. package/.pi/agent-fleet/scripts/flow.ts +2 -2
  7. package/.pi/agent-fleet/scripts/lib/codex-bootstrap-files.ts +46 -0
  8. package/.pi/agent-fleet/scripts/lib/codex-bootstrap-probe.ts +52 -0
  9. package/.pi/agent-fleet/scripts/lib/codex-bootstrap-producer.ts +131 -0
  10. package/.pi/agent-fleet/scripts/lib/codex-connection-history.ts +51 -0
  11. package/.pi/agent-fleet/scripts/lib/codex-daemon-observer.ts +137 -0
  12. package/.pi/agent-fleet/scripts/lib/codex-desktop-discovery.ts +84 -0
  13. package/.pi/agent-fleet/scripts/lib/codex-desktop-preflight.ts +130 -0
  14. package/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +20 -13
  15. package/.pi/agent-fleet/scripts/lib/codex-measurement.ts +218 -0
  16. package/.pi/agent-fleet/scripts/lib/codex-native-presence.ts +61 -0
  17. package/.pi/agent-fleet/scripts/lib/codex-probe-transcript.ts +135 -0
  18. package/.pi/agent-fleet/scripts/lib/codex-send-lineage.ts +72 -0
  19. package/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +23 -13
  20. package/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +100 -14
  21. package/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +1 -1
  22. package/.pi/agent-fleet/scripts/lib/fleet-codex-bootstrap.ts +207 -0
  23. package/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +9 -3
  24. package/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +32 -16
  25. package/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +41 -21
  26. package/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +21 -0
  27. package/.pi/agent-fleet/scripts/lib/fleet-command.ts +4 -8
  28. package/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +2 -1
  29. package/.pi/agent-fleet/scripts/lib/team-project.ts +0 -2
  30. package/.pi/agent-fleet/scripts/team-up.ts +5 -12
  31. package/.pi/agent-fleet/scripts/workflows/lib/git.ts +9 -0
  32. package/.pi/agent-fleet/scripts/workflows/lib/quality.ts +17 -4
  33. package/.pi/agents/model-profiles.yaml +0 -2
  34. package/.pi/harnesses/agent-hub/README.md +124 -67
  35. package/.pi/harnesses/agent-hub/capability-packs.ts +7 -4
  36. package/.pi/harnesses/agent-hub/codex-bootstrap.ts +117 -0
  37. package/.pi/harnesses/agent-hub/commands/context.ts +0 -4
  38. package/.pi/harnesses/agent-hub/commands/recover.ts +2 -1
  39. package/.pi/harnesses/agent-hub/config/agents.ts +3 -1
  40. package/.pi/harnesses/agent-hub/config/model-profiles.ts +3 -0
  41. package/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +14 -1
  42. package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +17 -0
  43. package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +3 -1
  44. package/.pi/harnesses/agent-hub/dispatch-native-types.ts +4 -0
  45. package/.pi/harnesses/agent-hub/dispatch-native.ts +9 -3
  46. package/.pi/harnesses/agent-hub/drift-watchdog.js +5 -10
  47. package/.pi/harnesses/agent-hub/execution-trace.ts +1 -1
  48. package/.pi/harnesses/agent-hub/filesystem-tool.ts +1 -1
  49. package/.pi/harnesses/agent-hub/footer.ts +2 -3
  50. package/.pi/harnesses/agent-hub/helpers.ts +4 -5
  51. package/.pi/harnesses/agent-hub/history-projection.ts +1 -1
  52. package/.pi/harnesses/agent-hub/index.ts +213 -196
  53. package/.pi/harnesses/agent-hub/input/shortcuts.ts +0 -7
  54. package/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +0 -2
  55. package/.pi/harnesses/agent-hub/no-progress.ts +14 -9
  56. package/.pi/harnesses/agent-hub/operator-current-state.ts +5 -1
  57. package/.pi/harnesses/agent-hub/package.json +1 -1
  58. package/.pi/harnesses/agent-hub/policy/roster.ts +12 -3
  59. package/.pi/harnesses/agent-hub/policy/work-mode.ts +10 -49
  60. package/.pi/harnesses/agent-hub/poll-command.ts +12 -4
  61. package/.pi/harnesses/agent-hub/proactive-snapshot.ts +12 -4
  62. package/.pi/harnesses/agent-hub/process-obligations.ts +42 -9
  63. package/.pi/harnesses/agent-hub/prompts/context.ts +17 -0
  64. package/.pi/harnesses/agent-hub/prompts/fragments.ts +9 -1
  65. package/.pi/harnesses/agent-hub/prompts/session-start.ts +2 -3
  66. package/.pi/harnesses/agent-hub/prompts/system-prompt.ts +25 -8
  67. package/.pi/harnesses/agent-hub/provider-semaphore.js +5 -0
  68. package/.pi/harnesses/agent-hub/review-continuity.ts +5 -2
  69. package/.pi/harnesses/agent-hub/review-reuse.ts +2 -1
  70. package/.pi/harnesses/agent-hub/run-budget.js +22 -2
  71. package/.pi/harnesses/agent-hub/scope-gate.js +38 -0
  72. package/.pi/harnesses/agent-hub/scope-overlap.ts +46 -0
  73. package/.pi/harnesses/agent-hub/task-brief.ts +98 -0
  74. package/.pi/harnesses/agent-hub/task-triage-runtime.ts +3 -1
  75. package/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +4 -0
  76. package/.pi/harnesses/agent-hub/tool-catalog-state.ts +5 -3
  77. package/.pi/harnesses/agent-hub/tools/action-executors.ts +7 -7
  78. package/.pi/harnesses/agent-hub/tools/context.ts +2 -0
  79. package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +2 -1
  80. package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +184 -33
  81. package/.pi/harnesses/agent-hub/tools/poll-panel-core.ts +30 -0
  82. package/.pi/harnesses/agent-hub/tools/poll-panel.ts +33 -0
  83. package/.pi/harnesses/agent-hub/tools/run-flow.ts +41 -10
  84. package/.pi/harnesses/agent-hub/tools/team-adjust.ts +1 -1
  85. package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +12 -2
  86. package/.pi/harnesses/agent-hub/work-mode.ts +44 -49
  87. package/.pi/harnesses/agent-hub/write-isolation.ts +53 -8
  88. package/.pi/harnesses/coms/package.json +1 -1
  89. package/.pi/harnesses/damage-control-continue/package.json +1 -1
  90. package/.pi/harnesses/lib/codex-compat.ts +97 -0
  91. package/.pi/harnesses/lib/codex-contract.ts +259 -0
  92. package/.pi/harnesses/lib/codex-notification-profile.ts +75 -0
  93. package/.pi/harnesses/lib/coms-core.ts +8 -4
  94. package/.pi/harnesses/lib/context-budget-child-prompt.ts +1 -1
  95. package/.pi/harnesses/lib/context-budget-hub-prompt.ts +6 -3
  96. package/.pi/harnesses/lib/fleet-bootstrap-channel.ts +148 -0
  97. package/.pi/harnesses/lib/fleet-codex-catalog.ts +30 -0
  98. package/.pi/harnesses/lib/fleet-codex-chat-view.ts +55 -0
  99. package/.pi/harnesses/lib/fleet-codex-namespace.ts +2 -0
  100. package/.pi/harnesses/lib/fleet-codex-policy-snapshot.ts +10 -0
  101. package/.pi/harnesses/lib/fleet-connection-control.ts +20 -3
  102. package/.pi/harnesses/lib/fleet-connection-diagnostics.ts +7 -0
  103. package/.pi/harnesses/lib/fleet-notification-admission.ts +32 -0
  104. package/.pi/harnesses/lib/fleet-notification-bootstrap.ts +172 -0
  105. package/.pi/harnesses/lib/fleet-notification-validation.ts +80 -25
  106. package/.pi/harnesses/lib/fleet-target-identity.ts +9 -0
  107. package/.versions/2.2.0/.pi/agent-fleet/hermes/README.md +347 -0
  108. package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
  109. package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
  110. package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
  111. package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
  112. package/.versions/2.2.0/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
  113. package/.versions/2.2.0/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
  114. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
  115. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
  116. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
  117. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
  118. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
  119. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
  120. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
  121. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
  122. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
  123. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
  124. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
  125. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
  126. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
  127. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
  128. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
  129. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
  130. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
  131. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
  132. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
  133. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
  134. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
  135. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
  136. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
  137. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
  138. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
  139. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
  140. package/.versions/2.2.0/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
  141. package/.versions/2.2.0/.pi/agent-fleet/hooks/coms-stop-hook.mjs +124 -0
  142. package/.versions/2.2.0/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
  143. package/.versions/2.2.0/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
  144. package/.versions/2.2.0/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
  145. package/.versions/2.2.0/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
  146. package/.versions/2.2.0/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
  147. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/0.167-shared.json +1900 -0
  148. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/README.md +223 -0
  149. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/assessment.md +83 -0
  150. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile-0.167.json +5627 -0
  151. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile.md +43 -0
  152. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap.md +45 -0
  153. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture-profile.ts +53 -0
  154. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture.ts +102 -0
  155. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/catalog.md +91 -0
  156. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/channel.md +21 -0
  157. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurement.md +133 -0
  158. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurements.json +74 -0
  159. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/notification-profile-0.167.json +2679 -0
  160. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/observer.md +101 -0
  161. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/opaque-response.md +57 -0
  162. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/open-sent.md +68 -0
  163. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/probe-reader.md +51 -0
  164. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/profile.md +71 -0
  165. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/projection.md +147 -0
  166. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/reconnect.md +40 -0
  167. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/response-unions.md +74 -0
  168. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/semver.md +124 -0
  169. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/surface.md +73 -0
  170. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/fleet-codex-allowlist-store-child.ts +31 -0
  171. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/response-fixture.ts +23 -0
  172. package/.versions/2.2.0/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
  173. package/.versions/2.2.0/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +63 -0
  174. package/.versions/2.2.0/.pi/agent-fleet/scripts/fleet.ts +244 -0
  175. package/.versions/2.2.0/.pi/agent-fleet/scripts/flow.ts +166 -0
  176. package/.versions/2.2.0/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
  177. package/.versions/2.2.0/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
  178. package/.versions/2.2.0/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
  179. package/.versions/2.2.0/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
  180. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
  181. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-bootstrap-files.ts +46 -0
  182. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-bootstrap-probe.ts +44 -0
  183. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-bootstrap-producer.ts +131 -0
  184. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-daemon-observer.ts +137 -0
  185. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-desktop-discovery.ts +84 -0
  186. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-desktop-preflight.ts +130 -0
  187. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +113 -0
  188. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-measurement.ts +218 -0
  189. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-native-presence.ts +61 -0
  190. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-probe-transcript.ts +135 -0
  191. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-send-lineage.ts +72 -0
  192. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +101 -0
  193. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
  194. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
  195. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +453 -0
  196. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
  197. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +73 -0
  198. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
  199. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-bootstrap.ts +204 -0
  200. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +76 -0
  201. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +58 -0
  202. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +132 -0
  203. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
  204. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
  205. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +175 -0
  206. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +435 -0
  207. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
  208. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
  209. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
  210. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
  211. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
  212. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +44 -0
  213. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +83 -0
  214. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
  215. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
  216. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-response-read.ts +26 -0
  217. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-response-transport.ts +38 -0
  218. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
  219. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-command.ts +264 -0
  220. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
  221. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +239 -0
  222. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
  223. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
  224. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
  225. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
  226. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
  227. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
  228. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
  229. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
  230. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
  231. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
  232. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
  233. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
  234. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
  235. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
  236. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
  237. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
  238. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
  239. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/team-project.ts +176 -0
  240. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
  241. package/.versions/2.2.0/.pi/agent-fleet/scripts/package-lock.json +57 -0
  242. package/.versions/2.2.0/.pi/agent-fleet/scripts/package.json +10 -0
  243. package/.versions/2.2.0/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
  244. package/.versions/2.2.0/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
  245. package/.versions/2.2.0/.pi/agent-fleet/scripts/pi-session.ts +9 -0
  246. package/.versions/2.2.0/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
  247. package/.versions/2.2.0/.pi/agent-fleet/scripts/team-up.ts +378 -0
  248. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
  249. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
  250. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
  251. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
  252. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
  253. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
  254. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/git.ts +108 -0
  255. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
  256. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
  257. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
  258. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
  259. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
  260. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
  261. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
  262. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
  263. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/quality.ts +78 -0
  264. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
  265. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
  266. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
  267. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
  268. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
  269. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
  270. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
  271. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
  272. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
  273. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
  274. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
  275. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
  276. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
  277. package/.versions/2.2.0/.pi/agents/dispatch-policy.yaml +32 -0
  278. package/.versions/2.2.0/.pi/agents/model-profiles.yaml +132 -0
  279. package/.versions/2.2.0/.pi/agents/peers.yaml +147 -0
  280. package/.versions/2.2.0/.pi/agents/teams.yaml +41 -0
  281. package/.versions/2.2.0/.pi/agents/voices.yaml +13 -0
  282. package/.versions/2.2.0/.pi/damage-control-rules.yaml +297 -0
  283. package/.versions/2.2.0/.pi/extensions/btw/README.md +120 -0
  284. package/.versions/2.2.0/.pi/extensions/btw/index.ts +916 -0
  285. package/.versions/2.2.0/.pi/extensions/btw/package.json +6 -0
  286. package/.versions/2.2.0/.pi/extensions/btw/state.js +179 -0
  287. package/.versions/2.2.0/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
  288. package/.versions/2.2.0/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
  289. package/.versions/2.2.0/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  290. package/.versions/2.2.0/.pi/extensions/compact-and-continue/README.md +42 -0
  291. package/.versions/2.2.0/.pi/extensions/compact-and-continue/index.ts +136 -0
  292. package/.versions/2.2.0/.pi/extensions/compact-and-continue/package.json +6 -0
  293. package/.versions/2.2.0/.pi/extensions/mcp-bridge/README.md +46 -0
  294. package/.versions/2.2.0/.pi/extensions/mcp-bridge/index.ts +206 -0
  295. package/.versions/2.2.0/.pi/extensions/mcp-bridge/package.json +6 -0
  296. package/.versions/2.2.0/.pi/extensions/package-lock.json +1175 -0
  297. package/.versions/2.2.0/.pi/extensions/package.json +9 -0
  298. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/README.md +224 -0
  299. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/config.ts +199 -0
  300. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
  301. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/index.ts +248 -0
  302. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/package.json +6 -0
  303. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/providers.ts +214 -0
  304. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
  305. package/.versions/2.2.0/.pi/harnesses/agent-hub/README.md +1633 -0
  306. package/.versions/2.2.0/.pi/harnesses/agent-hub/acceptance.ts +204 -0
  307. package/.versions/2.2.0/.pi/harnesses/agent-hub/access-approval.ts +266 -0
  308. package/.versions/2.2.0/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
  309. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
  310. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
  311. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
  312. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
  313. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
  314. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
  315. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
  316. package/.versions/2.2.0/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
  317. package/.versions/2.2.0/.pi/harnesses/agent-hub/artifacts.js +146 -0
  318. package/.versions/2.2.0/.pi/harnesses/agent-hub/assertion-ledger.js +68 -0
  319. package/.versions/2.2.0/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
  320. package/.versions/2.2.0/.pi/harnesses/agent-hub/backend-policy.js +174 -0
  321. package/.versions/2.2.0/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
  322. package/.versions/2.2.0/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
  323. package/.versions/2.2.0/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
  324. package/.versions/2.2.0/.pi/harnesses/agent-hub/capability-packs.ts +187 -0
  325. package/.versions/2.2.0/.pi/harnesses/agent-hub/codex-bootstrap.ts +117 -0
  326. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
  327. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
  328. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
  329. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
  330. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
  331. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
  332. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
  333. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
  334. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
  335. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
  336. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
  337. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
  338. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
  339. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
  340. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/config.ts +9 -0
  341. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
  342. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/context.ts +43 -0
  343. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
  344. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
  345. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
  346. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
  347. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/models.ts +10 -0
  348. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
  349. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/recover.ts +62 -0
  350. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
  351. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
  352. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
  353. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
  354. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
  355. package/.versions/2.2.0/.pi/harnesses/agent-hub/config/agents.ts +183 -0
  356. package/.versions/2.2.0/.pi/harnesses/agent-hub/config/model-profiles.ts +240 -0
  357. package/.versions/2.2.0/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
  358. package/.versions/2.2.0/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
  359. package/.versions/2.2.0/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +234 -0
  360. package/.versions/2.2.0/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
  361. package/.versions/2.2.0/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
  362. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
  363. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
  364. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
  365. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
  366. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
  367. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
  368. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
  369. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
  370. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-compat.ts +45 -0
  371. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
  372. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
  373. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
  374. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
  375. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-window.js +108 -0
  376. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-approval.ts +83 -0
  377. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
  378. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
  379. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
  380. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-hub.ts +263 -0
  381. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
  382. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
  383. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
  384. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
  385. package/.versions/2.2.0/.pi/harnesses/agent-hub/debate-command.ts +176 -0
  386. package/.versions/2.2.0/.pi/harnesses/agent-hub/delegate.ts +478 -0
  387. package/.versions/2.2.0/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
  388. package/.versions/2.2.0/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
  389. package/.versions/2.2.0/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
  390. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
  391. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
  392. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-complete.ts +176 -0
  393. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +318 -0
  394. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +264 -0
  395. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-types.ts +297 -0
  396. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native.ts +242 -0
  397. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
  398. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
  399. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
  400. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
  401. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
  402. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
  403. package/.versions/2.2.0/.pi/harnesses/agent-hub/docs-lane.js +123 -0
  404. package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
  405. package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
  406. package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
  407. package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
  408. package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-watchdog.js +344 -0
  409. package/.versions/2.2.0/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
  410. package/.versions/2.2.0/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
  411. package/.versions/2.2.0/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
  412. package/.versions/2.2.0/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
  413. package/.versions/2.2.0/.pi/harnesses/agent-hub/external-blocker.js +92 -0
  414. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
  415. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
  416. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
  417. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
  418. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
  419. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
  420. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
  421. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
  422. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
  423. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
  424. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
  425. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
  426. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
  427. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
  428. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
  429. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
  430. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
  431. package/.versions/2.2.0/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
  432. package/.versions/2.2.0/.pi/harnesses/agent-hub/fixtures/registration-surface.json +68 -0
  433. package/.versions/2.2.0/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
  434. package/.versions/2.2.0/.pi/harnesses/agent-hub/footer.ts +29 -0
  435. package/.versions/2.2.0/.pi/harnesses/agent-hub/helpers.ts +269 -0
  436. package/.versions/2.2.0/.pi/harnesses/agent-hub/history-projection.ts +116 -0
  437. package/.versions/2.2.0/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
  438. package/.versions/2.2.0/.pi/harnesses/agent-hub/index.ts +2722 -0
  439. package/.versions/2.2.0/.pi/harnesses/agent-hub/input/completions.ts +82 -0
  440. package/.versions/2.2.0/.pi/harnesses/agent-hub/input/shortcuts.ts +16 -0
  441. package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
  442. package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
  443. package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
  444. package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
  445. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
  446. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
  447. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
  448. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
  449. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
  450. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
  451. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
  452. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
  453. package/.versions/2.2.0/.pi/harnesses/agent-hub/no-progress.ts +627 -0
  454. package/.versions/2.2.0/.pi/harnesses/agent-hub/operator-current-state.ts +57 -0
  455. package/.versions/2.2.0/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
  456. package/.versions/2.2.0/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
  457. package/.versions/2.2.0/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
  458. package/.versions/2.2.0/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
  459. package/.versions/2.2.0/.pi/harnesses/agent-hub/package.json +7 -0
  460. package/.versions/2.2.0/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
  461. package/.versions/2.2.0/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
  462. package/.versions/2.2.0/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
  463. package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/models.ts +153 -0
  464. package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
  465. package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
  466. package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/roster.ts +103 -0
  467. package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/work-mode.ts +103 -0
  468. package/.versions/2.2.0/.pi/harnesses/agent-hub/poll-command.ts +184 -0
  469. package/.versions/2.2.0/.pi/harnesses/agent-hub/presentation.ts +54 -0
  470. package/.versions/2.2.0/.pi/harnesses/agent-hub/private-config-current-state.ts +81 -0
  471. package/.versions/2.2.0/.pi/harnesses/agent-hub/private-config-fixtures.ts +26 -0
  472. package/.versions/2.2.0/.pi/harnesses/agent-hub/private-config-review.ts +100 -0
  473. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
  474. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
  475. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
  476. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
  477. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
  478. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
  479. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
  480. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
  481. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
  482. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
  483. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
  484. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
  485. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-snapshot.ts +287 -0
  486. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
  487. package/.versions/2.2.0/.pi/harnesses/agent-hub/process-obligations.ts +210 -0
  488. package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/context.ts +72 -0
  489. package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/fragments.ts +94 -0
  490. package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/session-start.ts +89 -0
  491. package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/system-prompt.ts +142 -0
  492. package/.versions/2.2.0/.pi/harnesses/agent-hub/provider-semaphore.js +143 -0
  493. package/.versions/2.2.0/.pi/harnesses/agent-hub/reconcile.ts +26 -0
  494. package/.versions/2.2.0/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
  495. package/.versions/2.2.0/.pi/harnesses/agent-hub/recover-state.ts +104 -0
  496. package/.versions/2.2.0/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
  497. package/.versions/2.2.0/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
  498. package/.versions/2.2.0/.pi/harnesses/agent-hub/research/controls.ts +74 -0
  499. package/.versions/2.2.0/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
  500. package/.versions/2.2.0/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
  501. package/.versions/2.2.0/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
  502. package/.versions/2.2.0/.pi/harnesses/agent-hub/return-contract.js +371 -0
  503. package/.versions/2.2.0/.pi/harnesses/agent-hub/return-extract.js +77 -0
  504. package/.versions/2.2.0/.pi/harnesses/agent-hub/review-closure.ts +43 -0
  505. package/.versions/2.2.0/.pi/harnesses/agent-hub/review-continuity.ts +76 -0
  506. package/.versions/2.2.0/.pi/harnesses/agent-hub/review-findings.js +96 -0
  507. package/.versions/2.2.0/.pi/harnesses/agent-hub/review-reuse.ts +48 -0
  508. package/.versions/2.2.0/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
  509. package/.versions/2.2.0/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
  510. package/.versions/2.2.0/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
  511. package/.versions/2.2.0/.pi/harnesses/agent-hub/run-budget.js +362 -0
  512. package/.versions/2.2.0/.pi/harnesses/agent-hub/run-namespace.js +93 -0
  513. package/.versions/2.2.0/.pi/harnesses/agent-hub/runtime-receipts.ts +63 -0
  514. package/.versions/2.2.0/.pi/harnesses/agent-hub/runtime-test-check.ts +85 -0
  515. package/.versions/2.2.0/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
  516. package/.versions/2.2.0/.pi/harnesses/agent-hub/scope-gate.js +271 -0
  517. package/.versions/2.2.0/.pi/harnesses/agent-hub/scope-overlap.ts +46 -0
  518. package/.versions/2.2.0/.pi/harnesses/agent-hub/session-audit.ts +331 -0
  519. package/.versions/2.2.0/.pi/harnesses/agent-hub/session-health.js +110 -0
  520. package/.versions/2.2.0/.pi/harnesses/agent-hub/session-start.ts +42 -0
  521. package/.versions/2.2.0/.pi/harnesses/agent-hub/spawn.ts +702 -0
  522. package/.versions/2.2.0/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
  523. package/.versions/2.2.0/.pi/harnesses/agent-hub/specialist-result.ts +78 -0
  524. package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
  525. package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-communication-store.ts +225 -0
  526. package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-report.ts +275 -0
  527. package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
  528. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-brief.ts +98 -0
  529. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
  530. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-resume-contract.ts +80 -0
  531. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-authorization.ts +170 -0
  532. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
  533. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
  534. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
  535. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
  536. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
  537. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
  538. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
  539. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
  540. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
  541. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
  542. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
  543. package/.versions/2.2.0/.pi/harnesses/agent-hub/timeline.ts +72 -0
  544. package/.versions/2.2.0/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +83 -0
  545. package/.versions/2.2.0/.pi/harnesses/agent-hub/tool-catalog-state.ts +125 -0
  546. package/.versions/2.2.0/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
  547. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/action-executors.ts +214 -0
  548. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
  549. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
  550. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
  551. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/context.ts +149 -0
  552. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +93 -0
  553. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +928 -0
  554. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
  555. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
  556. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
  557. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
  558. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/poll-panel-core.ts +30 -0
  559. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/poll-panel.ts +33 -0
  560. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/run-flow.ts +177 -0
  561. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
  562. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
  563. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
  564. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/verification-contract.ts +81 -0
  565. package/.versions/2.2.0/.pi/harnesses/agent-hub/tsconfig.json +22 -0
  566. package/.versions/2.2.0/.pi/harnesses/agent-hub/types.ts +66 -0
  567. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
  568. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
  569. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
  570. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
  571. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +173 -0
  572. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
  573. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
  574. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
  575. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
  576. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/history.ts +234 -0
  577. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
  578. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
  579. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
  580. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
  581. package/.versions/2.2.0/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
  582. package/.versions/2.2.0/.pi/harnesses/agent-hub/version.ts +42 -0
  583. package/.versions/2.2.0/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
  584. package/.versions/2.2.0/.pi/harnesses/agent-hub/work-mode.ts +183 -0
  585. package/.versions/2.2.0/.pi/harnesses/agent-hub/write-isolation.ts +232 -0
  586. package/.versions/2.2.0/.pi/harnesses/ask-user-remote/README.md +59 -0
  587. package/.versions/2.2.0/.pi/harnesses/ask-user-remote/index.ts +571 -0
  588. package/.versions/2.2.0/.pi/harnesses/ask-user-remote/questions.ts +206 -0
  589. package/.versions/2.2.0/.pi/harnesses/ask-user-remote/race-core.js +124 -0
  590. package/.versions/2.2.0/.pi/harnesses/ask-user-remote/runtime-ask.ts +90 -0
  591. package/.versions/2.2.0/.pi/harnesses/coms/README.md +105 -0
  592. package/.versions/2.2.0/.pi/harnesses/coms/index.ts +308 -0
  593. package/.versions/2.2.0/.pi/harnesses/coms/package.json +7 -0
  594. package/.versions/2.2.0/.pi/harnesses/coms/version.ts +42 -0
  595. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/README.md +161 -0
  596. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/index.ts +659 -0
  597. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/package.json +7 -0
  598. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
  599. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
  600. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
  601. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
  602. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/version.ts +42 -0
  603. package/.versions/2.2.0/.pi/harnesses/lib/approval-wait.ts +17 -0
  604. package/.versions/2.2.0/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
  605. package/.versions/2.2.0/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
  606. package/.versions/2.2.0/.pi/harnesses/lib/clarification-policy.ts +9 -0
  607. package/.versions/2.2.0/.pi/harnesses/lib/codex-compat.ts +97 -0
  608. package/.versions/2.2.0/.pi/harnesses/lib/codex-contract.ts +259 -0
  609. package/.versions/2.2.0/.pi/harnesses/lib/codex-notification-profile.ts +75 -0
  610. package/.versions/2.2.0/.pi/harnesses/lib/coms-core-io.ts +422 -0
  611. package/.versions/2.2.0/.pi/harnesses/lib/coms-core.ts +738 -0
  612. package/.versions/2.2.0/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
  613. package/.versions/2.2.0/.pi/harnesses/lib/coms-observation.ts +74 -0
  614. package/.versions/2.2.0/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
  615. package/.versions/2.2.0/.pi/harnesses/lib/coms-response-read.ts +107 -0
  616. package/.versions/2.2.0/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
  617. package/.versions/2.2.0/.pi/harnesses/lib/context-budget-hub-prompt.ts +124 -0
  618. package/.versions/2.2.0/.pi/harnesses/lib/context-budget-view.ts +112 -0
  619. package/.versions/2.2.0/.pi/harnesses/lib/context-budget.ts +114 -0
  620. package/.versions/2.2.0/.pi/harnesses/lib/context-compaction-policy.js +35 -0
  621. package/.versions/2.2.0/.pi/harnesses/lib/damage-action-hash.ts +28 -0
  622. package/.versions/2.2.0/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
  623. package/.versions/2.2.0/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
  624. package/.versions/2.2.0/.pi/harnesses/lib/damage-control-shared.ts +276 -0
  625. package/.versions/2.2.0/.pi/harnesses/lib/damage-guard-port.ts +25 -0
  626. package/.versions/2.2.0/.pi/harnesses/lib/damage-policy.ts +35 -0
  627. package/.versions/2.2.0/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
  628. package/.versions/2.2.0/.pi/harnesses/lib/damage-result-view.ts +16 -0
  629. package/.versions/2.2.0/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
  630. package/.versions/2.2.0/.pi/harnesses/lib/exact-permission-port.ts +38 -0
  631. package/.versions/2.2.0/.pi/harnesses/lib/execution-trace.ts +45 -0
  632. package/.versions/2.2.0/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
  633. package/.versions/2.2.0/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
  634. package/.versions/2.2.0/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
  635. package/.versions/2.2.0/.pi/harnesses/lib/fleet-bootstrap-channel.ts +148 -0
  636. package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-catalog.ts +30 -0
  637. package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-chat-view.ts +43 -0
  638. package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-event-bridge.ts +82 -0
  639. package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-namespace.ts +2 -0
  640. package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-policy-snapshot.ts +10 -0
  641. package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
  642. package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
  643. package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
  644. package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
  645. package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
  646. package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/view.ts +338 -0
  647. package/.versions/2.2.0/.pi/harnesses/lib/fleet-connection-control.ts +94 -0
  648. package/.versions/2.2.0/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
  649. package/.versions/2.2.0/.pi/harnesses/lib/fleet-dashboard-view.ts +174 -0
  650. package/.versions/2.2.0/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
  651. package/.versions/2.2.0/.pi/harnesses/lib/fleet-event-source.ts +21 -0
  652. package/.versions/2.2.0/.pi/harnesses/lib/fleet-notification-admission.ts +32 -0
  653. package/.versions/2.2.0/.pi/harnesses/lib/fleet-notification-bootstrap.ts +152 -0
  654. package/.versions/2.2.0/.pi/harnesses/lib/fleet-notification-validation.ts +122 -0
  655. package/.versions/2.2.0/.pi/harnesses/lib/fleet-overlay.ts +26 -0
  656. package/.versions/2.2.0/.pi/harnesses/lib/fleet-panel.ts +34 -0
  657. package/.versions/2.2.0/.pi/harnesses/lib/fleet-question-reference.ts +42 -0
  658. package/.versions/2.2.0/.pi/harnesses/lib/fleet-read-model.ts +609 -0
  659. package/.versions/2.2.0/.pi/harnesses/lib/fleet-selection.ts +24 -0
  660. package/.versions/2.2.0/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
  661. package/.versions/2.2.0/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
  662. package/.versions/2.2.0/.pi/harnesses/lib/fleet-target-identity.ts +9 -0
  663. package/.versions/2.2.0/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
  664. package/.versions/2.2.0/.pi/harnesses/lib/herdr-client.ts +472 -0
  665. package/.versions/2.2.0/.pi/harnesses/lib/herdr-presence.ts +399 -0
  666. package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
  667. package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
  668. package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
  669. package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
  670. package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
  671. package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
  672. package/.versions/2.2.0/.pi/harnesses/lib/identical-dialog.ts +27 -0
  673. package/.versions/2.2.0/.pi/harnesses/lib/installation-state.js +62 -0
  674. package/.versions/2.2.0/.pi/harnesses/lib/peer-target.ts +24 -0
  675. package/.versions/2.2.0/.pi/harnesses/lib/policy-roots.js +117 -0
  676. package/.versions/2.2.0/.pi/harnesses/lib/policy-roots.ts +32 -0
  677. package/.versions/2.2.0/.pi/harnesses/lib/process-shared.ts +9 -0
  678. package/.versions/2.2.0/.pi/harnesses/lib/resource-closure.js +26 -0
  679. package/.versions/2.2.0/.pi/harnesses/lib/safe-source-read.js +29 -0
  680. package/.versions/2.2.0/.pi/harnesses/lib/semantic-approval.ts +80 -0
  681. package/.versions/2.2.0/.pi/harnesses/lib/session-target.ts +62 -0
  682. package/.versions/2.2.0/.pi/harnesses/lib/spawned-peers.js +191 -0
  683. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-agentic.js +15 -0
  684. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
  685. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
  686. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
  687. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-json.js +37 -0
  688. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-loader.js +53 -0
  689. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-proactive.js +68 -0
  690. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-triage.js +42 -0
  691. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-v2.js +112 -0
  692. package/.versions/2.2.0/.pi/harnesses/lib/system1/config.js +50 -0
  693. package/.versions/2.2.0/.pi/harnesses/lib/system1/contracts.ts +154 -0
  694. package/.versions/2.2.0/.pi/harnesses/lib/system1/demo.ts +95 -0
  695. package/.versions/2.2.0/.pi/harnesses/lib/system1/jev.ts +503 -0
  696. package/.versions/2.2.0/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
  697. package/.versions/2.2.0/.pi/harnesses/lib/system1/selection.js +11 -0
  698. package/.versions/2.2.0/.pi/harnesses/lib/system1/service.ts +245 -0
  699. package/.versions/2.2.0/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
  700. package/.versions/2.2.0/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
  701. package/.versions/2.2.0/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
  702. package/.versions/2.2.0/.pi/harnesses/lib/target-capabilities.js +7 -0
  703. package/.versions/2.2.0/.pi/harnesses/lib/update-check.ts +227 -0
  704. package/.versions/2.2.0/.pi/harnesses/lib/workspace-context.js +115 -0
  705. package/.versions/2.2.0/.pi/harnesses/lib/workspace-context.ts +22 -0
  706. package/.versions/2.2.0/.pi/harnesses/package-lock.json +2121 -0
  707. package/.versions/2.2.0/.pi/harnesses/package.json +13 -0
  708. package/.versions/2.2.0/.pi/prompts/af-build.md +27 -0
  709. package/.versions/2.2.0/.pi/prompts/af-code-simplify.md +22 -0
  710. package/.versions/2.2.0/.pi/prompts/af-constraints.md +31 -0
  711. package/.versions/2.2.0/.pi/prompts/af-plan.md +17 -0
  712. package/.versions/2.2.0/.pi/prompts/af-review.md +16 -0
  713. package/.versions/2.2.0/.pi/prompts/af-set-hermes-telegram.md +15 -0
  714. package/.versions/2.2.0/.pi/prompts/af-set-hermes-watchdog.md +6 -0
  715. package/.versions/2.2.0/.pi/prompts/af-setup-rules.md +20 -0
  716. package/.versions/2.2.0/.pi/prompts/af-ship.md +17 -0
  717. package/.versions/2.2.0/.pi/prompts/af-spec.md +15 -0
  718. package/.versions/2.2.0/.pi/prompts/af-test.md +19 -0
  719. package/.versions/2.2.0/.pi/skills/bowser/SKILL.md +145 -0
  720. package/.versions/2.2.0/.version +1 -0
  721. package/.versions/2.2.0/agents/architect.md +24 -0
  722. package/.versions/2.2.0/agents/bowser.md +28 -0
  723. package/.versions/2.2.0/agents/builder.md +55 -0
  724. package/.versions/2.2.0/agents/code-reviewer.md +209 -0
  725. package/.versions/2.2.0/agents/deep-researcher.md +32 -0
  726. package/.versions/2.2.0/agents/documenter.md +22 -0
  727. package/.versions/2.2.0/agents/plan-reviewer.md +83 -0
  728. package/.versions/2.2.0/agents/planner.md +107 -0
  729. package/.versions/2.2.0/agents/releaser.md +24 -0
  730. package/.versions/2.2.0/agents/researcher.md +30 -0
  731. package/.versions/2.2.0/agents/security-auditor.md +167 -0
  732. package/.versions/2.2.0/agents/test-engineer.md +153 -0
  733. package/.versions/2.2.0/agents/web-debugger.md +44 -0
  734. package/.versions/2.2.0/agents/web-performance-auditor.md +194 -0
  735. package/.versions/2.2.0/bin/catalog/harness-runtime-closure.json +85 -0
  736. package/.versions/2.2.0/docs/ARCHITECTURE.md +1291 -0
  737. package/.versions/2.2.0/docs/agent-fleet-setup.md +1161 -0
  738. package/.versions/2.2.0/docs/claude-code-coms-bridge.md +147 -0
  739. package/.versions/2.2.0/docs/codex-local-mcp.md +520 -0
  740. package/.versions/2.2.0/docs/codex-session-bridge.md +44 -0
  741. package/.versions/2.2.0/docs/codex-setup.md +183 -0
  742. package/.versions/2.2.0/docs/coms-hermes-bridge.md +188 -0
  743. package/.versions/2.2.0/docs/fleet-native-voice.md +151 -0
  744. package/.versions/2.2.0/docs/getting-started.md +126 -0
  745. package/.versions/2.2.0/docs/npm-install.md +535 -0
  746. package/.versions/2.2.0/docs/pi-extensions.md +450 -0
  747. package/.versions/2.2.0/docs/pi-setup.md +92 -0
  748. package/.versions/2.2.0/docs/skill-anatomy.md +150 -0
  749. package/.versions/2.2.0/install-manifest.json +3226 -0
  750. package/.versions/2.2.0/justfile +246 -0
  751. package/.versions/2.2.0/manifest-meta.json +1098 -0
  752. package/.versions/2.2.0/references/accessibility-checklist.md +160 -0
  753. package/.versions/2.2.0/references/communication-contract.md +26 -0
  754. package/.versions/2.2.0/references/definition-of-done.md +67 -0
  755. package/.versions/2.2.0/references/fleet-coordination-patterns.md +171 -0
  756. package/.versions/2.2.0/references/observability-checklist.md +92 -0
  757. package/.versions/2.2.0/references/orchestration-patterns.md +370 -0
  758. package/.versions/2.2.0/references/performance-checklist.md +236 -0
  759. package/.versions/2.2.0/references/prompting-patterns.md +380 -0
  760. package/.versions/2.2.0/references/security-checklist.md +245 -0
  761. package/.versions/2.2.0/references/testing-patterns.md +235 -0
  762. package/.versions/2.2.0/references/workflow-authoring.md +304 -0
  763. package/.versions/2.2.0/skills/_internal/grilling.md +59 -0
  764. package/.versions/2.2.0/skills/browser-testing-with-devtools/SKILL.md +351 -0
  765. package/.versions/2.2.0/skills/code-review-and-quality/SKILL.md +396 -0
  766. package/.versions/2.2.0/skills/compound-learning/SKILL.md +137 -0
  767. package/.versions/2.2.0/skills/constraint-driven-development/SKILL.md +338 -0
  768. package/.versions/2.2.0/skills/constraint-driven-development/references/floor-guard.md +99 -0
  769. package/.versions/2.2.0/skills/context-engineering/SKILL.md +341 -0
  770. package/.versions/2.2.0/skills/deprecation-and-migration/SKILL.md +247 -0
  771. package/.versions/2.2.0/skills/designing-agents/SKILL.md +394 -0
  772. package/.versions/2.2.0/skills/designing-agents/pi-harness-authoring.md +222 -0
  773. package/.versions/2.2.0/skills/drafting-workflows/SKILL.md +143 -0
  774. package/.versions/2.2.0/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
  775. package/.versions/2.2.0/skills/fleet-connect/SKILL.md +29 -0
  776. package/.versions/2.2.0/skills/fleet-connect.zip +0 -0
  777. package/.versions/2.2.0/skills/fleet-native-voice/SKILL.md +103 -0
  778. package/.versions/2.2.0/skills/fleet-native-voice/agents/openai.yaml +4 -0
  779. package/.versions/2.2.0/skills/fleet-native-voice.zip +0 -0
  780. package/.versions/2.2.0/skills/frontend-ui-engineering/SKILL.md +328 -0
  781. package/.versions/2.2.0/skills/git-workflow-and-versioning/SKILL.md +316 -0
  782. package/.versions/2.2.0/skills/idea-refine/SKILL.md +182 -0
  783. package/.versions/2.2.0/skills/idea-refine/examples.md +238 -0
  784. package/.versions/2.2.0/skills/idea-refine/frameworks.md +99 -0
  785. package/.versions/2.2.0/skills/idea-refine/refinement-criteria.md +113 -0
  786. package/.versions/2.2.0/skills/idea-refine/scripts/idea-refine.sh +15 -0
  787. package/.versions/2.2.0/skills/incremental-implementation/SKILL.md +353 -0
  788. package/.versions/2.2.0/skills/incremental-implementation.zip +0 -0
  789. package/.versions/2.2.0/skills/interview-me/SKILL.md +226 -0
  790. package/.versions/2.2.0/skills/orchestration-verification/SKILL.md +182 -0
  791. package/.versions/2.2.0/skills/peer-coms/SKILL.md +90 -0
  792. package/.versions/2.2.0/skills/performance-optimization/SKILL.md +496 -0
  793. package/.versions/2.2.0/skills/planning-and-task-breakdown/SKILL.md +318 -0
  794. package/.versions/2.2.0/skills/planning-and-task-breakdown.zip +0 -0
  795. package/.versions/2.2.0/skills/repository-ai-setup/SKILL.md +135 -0
  796. package/.versions/2.2.0/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
  797. package/.versions/2.2.0/skills/repository-ai-setup/references/apply-contract.md +74 -0
  798. package/.versions/2.2.0/skills/repository-ai-setup/references/provenance-template.md +16 -0
  799. package/.versions/2.2.0/skills/repository-ai-setup/references/setup-flow.md +108 -0
  800. package/.versions/2.2.0/skills/repository-ai-setup/references/verify-setup.md +20 -0
  801. package/.versions/2.2.0/skills/repository-ai-setup.zip +0 -0
  802. package/.versions/2.2.0/skills/security-and-hardening/SKILL.md +524 -0
  803. package/.versions/2.2.0/skills/spec-driven-development/SKILL.md +295 -0
  804. package/.versions/2.2.0/skills/spec-driven-development.zip +0 -0
  805. package/.versions/2.2.0/skills/using-agent-skills/SKILL.md +198 -0
  806. package/.versions/2.2.0/vendor/agent-skills-upstream/LICENSE +21 -0
  807. package/.versions/2.2.0/vendor/agent-skills-upstream/README.md +430 -0
  808. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
  809. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
  810. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
  811. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
  812. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
  813. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
  814. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
  815. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
  816. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
  817. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
  818. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
  819. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
  820. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
  821. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
  822. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
  823. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
  824. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
  825. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
  826. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
  827. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
  828. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
  829. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
  830. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
  831. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
  832. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
  833. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
  834. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
  835. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
  836. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
  837. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
  838. package/.versions/2.2.1/.pi/agent-fleet/hermes/README.md +347 -0
  839. package/.versions/2.2.1/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
  840. package/.versions/2.2.1/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
  841. package/.versions/2.2.1/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
  842. package/.versions/2.2.1/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
  843. package/.versions/2.2.1/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
  844. package/.versions/2.2.1/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
  845. package/.versions/2.2.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
  846. package/.versions/2.2.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
  847. package/.versions/2.2.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
  848. package/.versions/2.2.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
  849. package/.versions/2.2.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
  850. package/.versions/2.2.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
  851. package/.versions/2.2.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
  852. package/.versions/2.2.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
  853. package/.versions/2.2.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
  854. package/.versions/2.2.1/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
  855. package/.versions/2.2.1/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
  856. package/.versions/2.2.1/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
  857. package/.versions/2.2.1/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
  858. package/.versions/2.2.1/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
  859. package/.versions/2.2.1/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
  860. package/.versions/2.2.1/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
  861. package/.versions/2.2.1/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
  862. package/.versions/2.2.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
  863. package/.versions/2.2.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
  864. package/.versions/2.2.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
  865. package/.versions/2.2.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
  866. package/.versions/2.2.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
  867. package/.versions/2.2.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
  868. package/.versions/2.2.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
  869. package/.versions/2.2.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
  870. package/.versions/2.2.1/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
  871. package/.versions/2.2.1/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
  872. package/.versions/2.2.1/.pi/agent-fleet/hooks/coms-stop-hook.mjs +124 -0
  873. package/.versions/2.2.1/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
  874. package/.versions/2.2.1/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
  875. package/.versions/2.2.1/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
  876. package/.versions/2.2.1/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
  877. package/.versions/2.2.1/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
  878. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/0.167-shared.json +1900 -0
  879. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/README.md +223 -0
  880. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/assessment.md +83 -0
  881. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile-0.167.json +5627 -0
  882. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile.md +43 -0
  883. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap.md +45 -0
  884. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture-profile.ts +53 -0
  885. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture.ts +102 -0
  886. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/catalog.md +91 -0
  887. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/channel.md +21 -0
  888. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurement.md +133 -0
  889. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurements.json +74 -0
  890. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/notification-profile-0.167.json +2679 -0
  891. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/observer.md +101 -0
  892. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/opaque-response.md +57 -0
  893. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/open-sent.md +68 -0
  894. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/probe-reader.md +51 -0
  895. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/profile.md +71 -0
  896. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/projection.md +147 -0
  897. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/reconnect.md +40 -0
  898. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/response-unions.md +74 -0
  899. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/semver.md +124 -0
  900. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/surface.md +73 -0
  901. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/fleet-codex-allowlist-store-child.ts +31 -0
  902. package/.versions/2.2.1/.pi/agent-fleet/scripts/fixtures/response-fixture.ts +23 -0
  903. package/.versions/2.2.1/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
  904. package/.versions/2.2.1/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +63 -0
  905. package/.versions/2.2.1/.pi/agent-fleet/scripts/fleet.ts +244 -0
  906. package/.versions/2.2.1/.pi/agent-fleet/scripts/flow.ts +166 -0
  907. package/.versions/2.2.1/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
  908. package/.versions/2.2.1/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
  909. package/.versions/2.2.1/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
  910. package/.versions/2.2.1/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
  911. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
  912. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/codex-bootstrap-files.ts +46 -0
  913. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/codex-bootstrap-probe.ts +52 -0
  914. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/codex-bootstrap-producer.ts +131 -0
  915. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/codex-connection-history.ts +51 -0
  916. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/codex-daemon-observer.ts +137 -0
  917. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/codex-desktop-discovery.ts +84 -0
  918. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/codex-desktop-preflight.ts +130 -0
  919. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +113 -0
  920. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/codex-measurement.ts +218 -0
  921. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/codex-native-presence.ts +61 -0
  922. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/codex-probe-transcript.ts +135 -0
  923. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/codex-send-lineage.ts +72 -0
  924. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +101 -0
  925. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
  926. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
  927. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +453 -0
  928. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
  929. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +73 -0
  930. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
  931. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-bootstrap.ts +207 -0
  932. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +76 -0
  933. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +58 -0
  934. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +132 -0
  935. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
  936. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
  937. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +175 -0
  938. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +435 -0
  939. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
  940. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
  941. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
  942. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
  943. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
  944. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +44 -0
  945. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +83 -0
  946. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
  947. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
  948. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-response-read.ts +26 -0
  949. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-response-transport.ts +38 -0
  950. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
  951. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/fleet-command.ts +264 -0
  952. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
  953. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +239 -0
  954. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
  955. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
  956. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
  957. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
  958. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
  959. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
  960. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
  961. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
  962. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
  963. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
  964. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
  965. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
  966. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
  967. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
  968. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
  969. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
  970. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
  971. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/team-project.ts +176 -0
  972. package/.versions/2.2.1/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
  973. package/.versions/2.2.1/.pi/agent-fleet/scripts/package-lock.json +57 -0
  974. package/.versions/2.2.1/.pi/agent-fleet/scripts/package.json +10 -0
  975. package/.versions/2.2.1/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
  976. package/.versions/2.2.1/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
  977. package/.versions/2.2.1/.pi/agent-fleet/scripts/pi-session.ts +9 -0
  978. package/.versions/2.2.1/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
  979. package/.versions/2.2.1/.pi/agent-fleet/scripts/team-up.ts +378 -0
  980. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
  981. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
  982. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
  983. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
  984. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
  985. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
  986. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/git.ts +108 -0
  987. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
  988. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
  989. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
  990. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
  991. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
  992. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
  993. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
  994. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
  995. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/quality.ts +78 -0
  996. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
  997. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
  998. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
  999. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
  1000. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
  1001. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
  1002. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
  1003. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
  1004. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
  1005. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
  1006. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
  1007. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
  1008. package/.versions/2.2.1/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
  1009. package/.versions/2.2.1/.pi/agents/dispatch-policy.yaml +32 -0
  1010. package/.versions/2.2.1/.pi/agents/model-profiles.yaml +132 -0
  1011. package/.versions/2.2.1/.pi/agents/peers.yaml +147 -0
  1012. package/.versions/2.2.1/.pi/agents/teams.yaml +41 -0
  1013. package/.versions/2.2.1/.pi/agents/voices.yaml +13 -0
  1014. package/.versions/2.2.1/.pi/damage-control-rules.yaml +297 -0
  1015. package/.versions/2.2.1/.pi/extensions/btw/README.md +120 -0
  1016. package/.versions/2.2.1/.pi/extensions/btw/index.ts +916 -0
  1017. package/.versions/2.2.1/.pi/extensions/btw/package.json +6 -0
  1018. package/.versions/2.2.1/.pi/extensions/btw/state.js +179 -0
  1019. package/.versions/2.2.1/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
  1020. package/.versions/2.2.1/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
  1021. package/.versions/2.2.1/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  1022. package/.versions/2.2.1/.pi/extensions/compact-and-continue/README.md +42 -0
  1023. package/.versions/2.2.1/.pi/extensions/compact-and-continue/index.ts +136 -0
  1024. package/.versions/2.2.1/.pi/extensions/compact-and-continue/package.json +6 -0
  1025. package/.versions/2.2.1/.pi/extensions/mcp-bridge/README.md +46 -0
  1026. package/.versions/2.2.1/.pi/extensions/mcp-bridge/index.ts +206 -0
  1027. package/.versions/2.2.1/.pi/extensions/mcp-bridge/package.json +6 -0
  1028. package/.versions/2.2.1/.pi/extensions/package-lock.json +1175 -0
  1029. package/.versions/2.2.1/.pi/extensions/package.json +9 -0
  1030. package/.versions/2.2.1/.pi/extensions/pi-voice-stt/README.md +224 -0
  1031. package/.versions/2.2.1/.pi/extensions/pi-voice-stt/config.ts +199 -0
  1032. package/.versions/2.2.1/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
  1033. package/.versions/2.2.1/.pi/extensions/pi-voice-stt/index.ts +248 -0
  1034. package/.versions/2.2.1/.pi/extensions/pi-voice-stt/package.json +6 -0
  1035. package/.versions/2.2.1/.pi/extensions/pi-voice-stt/providers.ts +214 -0
  1036. package/.versions/2.2.1/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
  1037. package/.versions/2.2.1/.pi/harnesses/agent-hub/README.md +1641 -0
  1038. package/.versions/2.2.1/.pi/harnesses/agent-hub/acceptance.ts +204 -0
  1039. package/.versions/2.2.1/.pi/harnesses/agent-hub/access-approval.ts +266 -0
  1040. package/.versions/2.2.1/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
  1041. package/.versions/2.2.1/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
  1042. package/.versions/2.2.1/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
  1043. package/.versions/2.2.1/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
  1044. package/.versions/2.2.1/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
  1045. package/.versions/2.2.1/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
  1046. package/.versions/2.2.1/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
  1047. package/.versions/2.2.1/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
  1048. package/.versions/2.2.1/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
  1049. package/.versions/2.2.1/.pi/harnesses/agent-hub/artifacts.js +146 -0
  1050. package/.versions/2.2.1/.pi/harnesses/agent-hub/assertion-ledger.js +68 -0
  1051. package/.versions/2.2.1/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
  1052. package/.versions/2.2.1/.pi/harnesses/agent-hub/backend-policy.js +174 -0
  1053. package/.versions/2.2.1/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
  1054. package/.versions/2.2.1/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
  1055. package/.versions/2.2.1/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
  1056. package/.versions/2.2.1/.pi/harnesses/agent-hub/capability-packs.ts +187 -0
  1057. package/.versions/2.2.1/.pi/harnesses/agent-hub/codex-bootstrap.ts +117 -0
  1058. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
  1059. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
  1060. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
  1061. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
  1062. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
  1063. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
  1064. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
  1065. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
  1066. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
  1067. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
  1068. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
  1069. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
  1070. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
  1071. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
  1072. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/config.ts +9 -0
  1073. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
  1074. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/context.ts +43 -0
  1075. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
  1076. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
  1077. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
  1078. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
  1079. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/models.ts +10 -0
  1080. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
  1081. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/recover.ts +62 -0
  1082. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
  1083. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
  1084. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
  1085. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
  1086. package/.versions/2.2.1/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
  1087. package/.versions/2.2.1/.pi/harnesses/agent-hub/config/agents.ts +183 -0
  1088. package/.versions/2.2.1/.pi/harnesses/agent-hub/config/model-profiles.ts +240 -0
  1089. package/.versions/2.2.1/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
  1090. package/.versions/2.2.1/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
  1091. package/.versions/2.2.1/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +234 -0
  1092. package/.versions/2.2.1/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
  1093. package/.versions/2.2.1/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
  1094. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
  1095. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
  1096. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
  1097. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
  1098. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
  1099. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
  1100. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
  1101. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
  1102. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-continuity-compat.ts +45 -0
  1103. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
  1104. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
  1105. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
  1106. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
  1107. package/.versions/2.2.1/.pi/harnesses/agent-hub/context-window.js +108 -0
  1108. package/.versions/2.2.1/.pi/harnesses/agent-hub/damage-guard-approval.ts +83 -0
  1109. package/.versions/2.2.1/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
  1110. package/.versions/2.2.1/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
  1111. package/.versions/2.2.1/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
  1112. package/.versions/2.2.1/.pi/harnesses/agent-hub/damage-guard-hub.ts +263 -0
  1113. package/.versions/2.2.1/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
  1114. package/.versions/2.2.1/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
  1115. package/.versions/2.2.1/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
  1116. package/.versions/2.2.1/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
  1117. package/.versions/2.2.1/.pi/harnesses/agent-hub/debate-command.ts +176 -0
  1118. package/.versions/2.2.1/.pi/harnesses/agent-hub/delegate.ts +478 -0
  1119. package/.versions/2.2.1/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
  1120. package/.versions/2.2.1/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
  1121. package/.versions/2.2.1/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
  1122. package/.versions/2.2.1/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
  1123. package/.versions/2.2.1/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
  1124. package/.versions/2.2.1/.pi/harnesses/agent-hub/dispatch-native-complete.ts +176 -0
  1125. package/.versions/2.2.1/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +318 -0
  1126. package/.versions/2.2.1/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +264 -0
  1127. package/.versions/2.2.1/.pi/harnesses/agent-hub/dispatch-native-types.ts +297 -0
  1128. package/.versions/2.2.1/.pi/harnesses/agent-hub/dispatch-native.ts +242 -0
  1129. package/.versions/2.2.1/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
  1130. package/.versions/2.2.1/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
  1131. package/.versions/2.2.1/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
  1132. package/.versions/2.2.1/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
  1133. package/.versions/2.2.1/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
  1134. package/.versions/2.2.1/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
  1135. package/.versions/2.2.1/.pi/harnesses/agent-hub/docs-lane.js +123 -0
  1136. package/.versions/2.2.1/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
  1137. package/.versions/2.2.1/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
  1138. package/.versions/2.2.1/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
  1139. package/.versions/2.2.1/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
  1140. package/.versions/2.2.1/.pi/harnesses/agent-hub/drift-watchdog.js +344 -0
  1141. package/.versions/2.2.1/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
  1142. package/.versions/2.2.1/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
  1143. package/.versions/2.2.1/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
  1144. package/.versions/2.2.1/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
  1145. package/.versions/2.2.1/.pi/harnesses/agent-hub/external-blocker.js +92 -0
  1146. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
  1147. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
  1148. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
  1149. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
  1150. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
  1151. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
  1152. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
  1153. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
  1154. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
  1155. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
  1156. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
  1157. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
  1158. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
  1159. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
  1160. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
  1161. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
  1162. package/.versions/2.2.1/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
  1163. package/.versions/2.2.1/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
  1164. package/.versions/2.2.1/.pi/harnesses/agent-hub/fixtures/registration-surface.json +68 -0
  1165. package/.versions/2.2.1/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
  1166. package/.versions/2.2.1/.pi/harnesses/agent-hub/footer.ts +29 -0
  1167. package/.versions/2.2.1/.pi/harnesses/agent-hub/helpers.ts +269 -0
  1168. package/.versions/2.2.1/.pi/harnesses/agent-hub/history-projection.ts +116 -0
  1169. package/.versions/2.2.1/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
  1170. package/.versions/2.2.1/.pi/harnesses/agent-hub/index.ts +2722 -0
  1171. package/.versions/2.2.1/.pi/harnesses/agent-hub/input/completions.ts +82 -0
  1172. package/.versions/2.2.1/.pi/harnesses/agent-hub/input/shortcuts.ts +16 -0
  1173. package/.versions/2.2.1/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
  1174. package/.versions/2.2.1/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
  1175. package/.versions/2.2.1/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
  1176. package/.versions/2.2.1/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
  1177. package/.versions/2.2.1/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
  1178. package/.versions/2.2.1/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
  1179. package/.versions/2.2.1/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
  1180. package/.versions/2.2.1/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
  1181. package/.versions/2.2.1/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
  1182. package/.versions/2.2.1/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
  1183. package/.versions/2.2.1/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
  1184. package/.versions/2.2.1/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
  1185. package/.versions/2.2.1/.pi/harnesses/agent-hub/no-progress.ts +627 -0
  1186. package/.versions/2.2.1/.pi/harnesses/agent-hub/operator-current-state.ts +57 -0
  1187. package/.versions/2.2.1/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
  1188. package/.versions/2.2.1/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
  1189. package/.versions/2.2.1/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
  1190. package/.versions/2.2.1/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
  1191. package/.versions/2.2.1/.pi/harnesses/agent-hub/package.json +7 -0
  1192. package/.versions/2.2.1/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
  1193. package/.versions/2.2.1/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
  1194. package/.versions/2.2.1/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
  1195. package/.versions/2.2.1/.pi/harnesses/agent-hub/policy/models.ts +153 -0
  1196. package/.versions/2.2.1/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
  1197. package/.versions/2.2.1/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
  1198. package/.versions/2.2.1/.pi/harnesses/agent-hub/policy/roster.ts +103 -0
  1199. package/.versions/2.2.1/.pi/harnesses/agent-hub/policy/work-mode.ts +103 -0
  1200. package/.versions/2.2.1/.pi/harnesses/agent-hub/poll-command.ts +184 -0
  1201. package/.versions/2.2.1/.pi/harnesses/agent-hub/presentation.ts +54 -0
  1202. package/.versions/2.2.1/.pi/harnesses/agent-hub/private-config-current-state.ts +81 -0
  1203. package/.versions/2.2.1/.pi/harnesses/agent-hub/private-config-fixtures.ts +26 -0
  1204. package/.versions/2.2.1/.pi/harnesses/agent-hub/private-config-review.ts +100 -0
  1205. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
  1206. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
  1207. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
  1208. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
  1209. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
  1210. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
  1211. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
  1212. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
  1213. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
  1214. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
  1215. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
  1216. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
  1217. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-snapshot.ts +287 -0
  1218. package/.versions/2.2.1/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
  1219. package/.versions/2.2.1/.pi/harnesses/agent-hub/process-obligations.ts +210 -0
  1220. package/.versions/2.2.1/.pi/harnesses/agent-hub/prompts/context.ts +72 -0
  1221. package/.versions/2.2.1/.pi/harnesses/agent-hub/prompts/fragments.ts +94 -0
  1222. package/.versions/2.2.1/.pi/harnesses/agent-hub/prompts/session-start.ts +89 -0
  1223. package/.versions/2.2.1/.pi/harnesses/agent-hub/prompts/system-prompt.ts +142 -0
  1224. package/.versions/2.2.1/.pi/harnesses/agent-hub/provider-semaphore.js +143 -0
  1225. package/.versions/2.2.1/.pi/harnesses/agent-hub/reconcile.ts +26 -0
  1226. package/.versions/2.2.1/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
  1227. package/.versions/2.2.1/.pi/harnesses/agent-hub/recover-state.ts +104 -0
  1228. package/.versions/2.2.1/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
  1229. package/.versions/2.2.1/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
  1230. package/.versions/2.2.1/.pi/harnesses/agent-hub/research/controls.ts +74 -0
  1231. package/.versions/2.2.1/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
  1232. package/.versions/2.2.1/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
  1233. package/.versions/2.2.1/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
  1234. package/.versions/2.2.1/.pi/harnesses/agent-hub/return-contract.js +371 -0
  1235. package/.versions/2.2.1/.pi/harnesses/agent-hub/return-extract.js +77 -0
  1236. package/.versions/2.2.1/.pi/harnesses/agent-hub/review-closure.ts +43 -0
  1237. package/.versions/2.2.1/.pi/harnesses/agent-hub/review-continuity.ts +76 -0
  1238. package/.versions/2.2.1/.pi/harnesses/agent-hub/review-findings.js +96 -0
  1239. package/.versions/2.2.1/.pi/harnesses/agent-hub/review-reuse.ts +48 -0
  1240. package/.versions/2.2.1/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
  1241. package/.versions/2.2.1/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
  1242. package/.versions/2.2.1/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
  1243. package/.versions/2.2.1/.pi/harnesses/agent-hub/run-budget.js +362 -0
  1244. package/.versions/2.2.1/.pi/harnesses/agent-hub/run-namespace.js +93 -0
  1245. package/.versions/2.2.1/.pi/harnesses/agent-hub/runtime-receipts.ts +63 -0
  1246. package/.versions/2.2.1/.pi/harnesses/agent-hub/runtime-test-check.ts +85 -0
  1247. package/.versions/2.2.1/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
  1248. package/.versions/2.2.1/.pi/harnesses/agent-hub/scope-gate.js +271 -0
  1249. package/.versions/2.2.1/.pi/harnesses/agent-hub/scope-overlap.ts +46 -0
  1250. package/.versions/2.2.1/.pi/harnesses/agent-hub/session-audit.ts +331 -0
  1251. package/.versions/2.2.1/.pi/harnesses/agent-hub/session-health.js +110 -0
  1252. package/.versions/2.2.1/.pi/harnesses/agent-hub/session-start.ts +42 -0
  1253. package/.versions/2.2.1/.pi/harnesses/agent-hub/spawn.ts +702 -0
  1254. package/.versions/2.2.1/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
  1255. package/.versions/2.2.1/.pi/harnesses/agent-hub/specialist-result.ts +78 -0
  1256. package/.versions/2.2.1/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
  1257. package/.versions/2.2.1/.pi/harnesses/agent-hub/system1-communication-store.ts +225 -0
  1258. package/.versions/2.2.1/.pi/harnesses/agent-hub/system1-report.ts +275 -0
  1259. package/.versions/2.2.1/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
  1260. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-brief.ts +98 -0
  1261. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
  1262. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-resume-contract.ts +80 -0
  1263. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-triage-authorization.ts +170 -0
  1264. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
  1265. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
  1266. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
  1267. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
  1268. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
  1269. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
  1270. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
  1271. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
  1272. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-triage-runtime.ts +132 -0
  1273. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
  1274. package/.versions/2.2.1/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
  1275. package/.versions/2.2.1/.pi/harnesses/agent-hub/timeline.ts +72 -0
  1276. package/.versions/2.2.1/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +83 -0
  1277. package/.versions/2.2.1/.pi/harnesses/agent-hub/tool-catalog-state.ts +125 -0
  1278. package/.versions/2.2.1/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
  1279. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/action-executors.ts +216 -0
  1280. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
  1281. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
  1282. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
  1283. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/context.ts +149 -0
  1284. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +93 -0
  1285. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +928 -0
  1286. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
  1287. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
  1288. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
  1289. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
  1290. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/poll-panel-core.ts +30 -0
  1291. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/poll-panel.ts +33 -0
  1292. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/run-flow.ts +177 -0
  1293. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
  1294. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
  1295. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
  1296. package/.versions/2.2.1/.pi/harnesses/agent-hub/tools/verification-contract.ts +81 -0
  1297. package/.versions/2.2.1/.pi/harnesses/agent-hub/tsconfig.json +22 -0
  1298. package/.versions/2.2.1/.pi/harnesses/agent-hub/types.ts +66 -0
  1299. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
  1300. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
  1301. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
  1302. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
  1303. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +173 -0
  1304. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
  1305. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
  1306. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
  1307. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
  1308. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/history.ts +234 -0
  1309. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
  1310. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
  1311. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
  1312. package/.versions/2.2.1/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
  1313. package/.versions/2.2.1/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
  1314. package/.versions/2.2.1/.pi/harnesses/agent-hub/version.ts +42 -0
  1315. package/.versions/2.2.1/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
  1316. package/.versions/2.2.1/.pi/harnesses/agent-hub/work-mode.ts +183 -0
  1317. package/.versions/2.2.1/.pi/harnesses/agent-hub/write-isolation.ts +232 -0
  1318. package/.versions/2.2.1/.pi/harnesses/ask-user-remote/README.md +59 -0
  1319. package/.versions/2.2.1/.pi/harnesses/ask-user-remote/index.ts +571 -0
  1320. package/.versions/2.2.1/.pi/harnesses/ask-user-remote/questions.ts +206 -0
  1321. package/.versions/2.2.1/.pi/harnesses/ask-user-remote/race-core.js +124 -0
  1322. package/.versions/2.2.1/.pi/harnesses/ask-user-remote/runtime-ask.ts +90 -0
  1323. package/.versions/2.2.1/.pi/harnesses/coms/README.md +105 -0
  1324. package/.versions/2.2.1/.pi/harnesses/coms/index.ts +308 -0
  1325. package/.versions/2.2.1/.pi/harnesses/coms/package.json +7 -0
  1326. package/.versions/2.2.1/.pi/harnesses/coms/version.ts +42 -0
  1327. package/.versions/2.2.1/.pi/harnesses/damage-control-continue/README.md +161 -0
  1328. package/.versions/2.2.1/.pi/harnesses/damage-control-continue/index.ts +659 -0
  1329. package/.versions/2.2.1/.pi/harnesses/damage-control-continue/package.json +7 -0
  1330. package/.versions/2.2.1/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
  1331. package/.versions/2.2.1/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
  1332. package/.versions/2.2.1/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
  1333. package/.versions/2.2.1/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
  1334. package/.versions/2.2.1/.pi/harnesses/damage-control-continue/version.ts +42 -0
  1335. package/.versions/2.2.1/.pi/harnesses/lib/approval-wait.ts +17 -0
  1336. package/.versions/2.2.1/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
  1337. package/.versions/2.2.1/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
  1338. package/.versions/2.2.1/.pi/harnesses/lib/clarification-policy.ts +9 -0
  1339. package/.versions/2.2.1/.pi/harnesses/lib/codex-compat.ts +97 -0
  1340. package/.versions/2.2.1/.pi/harnesses/lib/codex-contract.ts +259 -0
  1341. package/.versions/2.2.1/.pi/harnesses/lib/codex-notification-profile.ts +75 -0
  1342. package/.versions/2.2.1/.pi/harnesses/lib/coms-core-io.ts +422 -0
  1343. package/.versions/2.2.1/.pi/harnesses/lib/coms-core.ts +738 -0
  1344. package/.versions/2.2.1/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
  1345. package/.versions/2.2.1/.pi/harnesses/lib/coms-observation.ts +74 -0
  1346. package/.versions/2.2.1/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
  1347. package/.versions/2.2.1/.pi/harnesses/lib/coms-response-read.ts +107 -0
  1348. package/.versions/2.2.1/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
  1349. package/.versions/2.2.1/.pi/harnesses/lib/context-budget-hub-prompt.ts +124 -0
  1350. package/.versions/2.2.1/.pi/harnesses/lib/context-budget-view.ts +112 -0
  1351. package/.versions/2.2.1/.pi/harnesses/lib/context-budget.ts +114 -0
  1352. package/.versions/2.2.1/.pi/harnesses/lib/context-compaction-policy.js +35 -0
  1353. package/.versions/2.2.1/.pi/harnesses/lib/damage-action-hash.ts +28 -0
  1354. package/.versions/2.2.1/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
  1355. package/.versions/2.2.1/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
  1356. package/.versions/2.2.1/.pi/harnesses/lib/damage-control-shared.ts +276 -0
  1357. package/.versions/2.2.1/.pi/harnesses/lib/damage-guard-port.ts +25 -0
  1358. package/.versions/2.2.1/.pi/harnesses/lib/damage-policy.ts +35 -0
  1359. package/.versions/2.2.1/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
  1360. package/.versions/2.2.1/.pi/harnesses/lib/damage-result-view.ts +16 -0
  1361. package/.versions/2.2.1/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
  1362. package/.versions/2.2.1/.pi/harnesses/lib/exact-permission-port.ts +38 -0
  1363. package/.versions/2.2.1/.pi/harnesses/lib/execution-trace.ts +45 -0
  1364. package/.versions/2.2.1/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
  1365. package/.versions/2.2.1/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
  1366. package/.versions/2.2.1/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
  1367. package/.versions/2.2.1/.pi/harnesses/lib/fleet-bootstrap-channel.ts +148 -0
  1368. package/.versions/2.2.1/.pi/harnesses/lib/fleet-codex-catalog.ts +30 -0
  1369. package/.versions/2.2.1/.pi/harnesses/lib/fleet-codex-chat-view.ts +55 -0
  1370. package/.versions/2.2.1/.pi/harnesses/lib/fleet-codex-event-bridge.ts +82 -0
  1371. package/.versions/2.2.1/.pi/harnesses/lib/fleet-codex-namespace.ts +2 -0
  1372. package/.versions/2.2.1/.pi/harnesses/lib/fleet-codex-policy-snapshot.ts +10 -0
  1373. package/.versions/2.2.1/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
  1374. package/.versions/2.2.1/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
  1375. package/.versions/2.2.1/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
  1376. package/.versions/2.2.1/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
  1377. package/.versions/2.2.1/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
  1378. package/.versions/2.2.1/.pi/harnesses/lib/fleet-config/view.ts +338 -0
  1379. package/.versions/2.2.1/.pi/harnesses/lib/fleet-connection-control.ts +94 -0
  1380. package/.versions/2.2.1/.pi/harnesses/lib/fleet-connection-diagnostics.ts +7 -0
  1381. package/.versions/2.2.1/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
  1382. package/.versions/2.2.1/.pi/harnesses/lib/fleet-dashboard-view.ts +174 -0
  1383. package/.versions/2.2.1/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
  1384. package/.versions/2.2.1/.pi/harnesses/lib/fleet-event-source.ts +21 -0
  1385. package/.versions/2.2.1/.pi/harnesses/lib/fleet-notification-admission.ts +32 -0
  1386. package/.versions/2.2.1/.pi/harnesses/lib/fleet-notification-bootstrap.ts +172 -0
  1387. package/.versions/2.2.1/.pi/harnesses/lib/fleet-notification-validation.ts +122 -0
  1388. package/.versions/2.2.1/.pi/harnesses/lib/fleet-overlay.ts +26 -0
  1389. package/.versions/2.2.1/.pi/harnesses/lib/fleet-panel.ts +34 -0
  1390. package/.versions/2.2.1/.pi/harnesses/lib/fleet-question-reference.ts +42 -0
  1391. package/.versions/2.2.1/.pi/harnesses/lib/fleet-read-model.ts +609 -0
  1392. package/.versions/2.2.1/.pi/harnesses/lib/fleet-selection.ts +24 -0
  1393. package/.versions/2.2.1/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
  1394. package/.versions/2.2.1/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
  1395. package/.versions/2.2.1/.pi/harnesses/lib/fleet-target-identity.ts +9 -0
  1396. package/.versions/2.2.1/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
  1397. package/.versions/2.2.1/.pi/harnesses/lib/herdr-client.ts +472 -0
  1398. package/.versions/2.2.1/.pi/harnesses/lib/herdr-presence.ts +399 -0
  1399. package/.versions/2.2.1/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
  1400. package/.versions/2.2.1/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
  1401. package/.versions/2.2.1/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
  1402. package/.versions/2.2.1/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
  1403. package/.versions/2.2.1/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
  1404. package/.versions/2.2.1/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
  1405. package/.versions/2.2.1/.pi/harnesses/lib/identical-dialog.ts +27 -0
  1406. package/.versions/2.2.1/.pi/harnesses/lib/installation-state.js +62 -0
  1407. package/.versions/2.2.1/.pi/harnesses/lib/peer-target.ts +24 -0
  1408. package/.versions/2.2.1/.pi/harnesses/lib/policy-roots.js +117 -0
  1409. package/.versions/2.2.1/.pi/harnesses/lib/policy-roots.ts +32 -0
  1410. package/.versions/2.2.1/.pi/harnesses/lib/process-shared.ts +9 -0
  1411. package/.versions/2.2.1/.pi/harnesses/lib/resource-closure.js +26 -0
  1412. package/.versions/2.2.1/.pi/harnesses/lib/safe-source-read.js +29 -0
  1413. package/.versions/2.2.1/.pi/harnesses/lib/semantic-approval.ts +80 -0
  1414. package/.versions/2.2.1/.pi/harnesses/lib/session-target.ts +62 -0
  1415. package/.versions/2.2.1/.pi/harnesses/lib/spawned-peers.js +191 -0
  1416. package/.versions/2.2.1/.pi/harnesses/lib/system1/config-agentic.js +15 -0
  1417. package/.versions/2.2.1/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
  1418. package/.versions/2.2.1/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
  1419. package/.versions/2.2.1/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
  1420. package/.versions/2.2.1/.pi/harnesses/lib/system1/config-json.js +37 -0
  1421. package/.versions/2.2.1/.pi/harnesses/lib/system1/config-loader.js +53 -0
  1422. package/.versions/2.2.1/.pi/harnesses/lib/system1/config-proactive.js +68 -0
  1423. package/.versions/2.2.1/.pi/harnesses/lib/system1/config-triage.js +42 -0
  1424. package/.versions/2.2.1/.pi/harnesses/lib/system1/config-v2.js +112 -0
  1425. package/.versions/2.2.1/.pi/harnesses/lib/system1/config.js +50 -0
  1426. package/.versions/2.2.1/.pi/harnesses/lib/system1/contracts.ts +154 -0
  1427. package/.versions/2.2.1/.pi/harnesses/lib/system1/demo.ts +95 -0
  1428. package/.versions/2.2.1/.pi/harnesses/lib/system1/jev.ts +503 -0
  1429. package/.versions/2.2.1/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
  1430. package/.versions/2.2.1/.pi/harnesses/lib/system1/selection.js +11 -0
  1431. package/.versions/2.2.1/.pi/harnesses/lib/system1/service.ts +245 -0
  1432. package/.versions/2.2.1/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
  1433. package/.versions/2.2.1/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
  1434. package/.versions/2.2.1/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
  1435. package/.versions/2.2.1/.pi/harnesses/lib/target-capabilities.js +7 -0
  1436. package/.versions/2.2.1/.pi/harnesses/lib/update-check.ts +227 -0
  1437. package/.versions/2.2.1/.pi/harnesses/lib/workspace-context.js +115 -0
  1438. package/.versions/2.2.1/.pi/harnesses/lib/workspace-context.ts +22 -0
  1439. package/.versions/2.2.1/.pi/harnesses/package-lock.json +2121 -0
  1440. package/.versions/2.2.1/.pi/harnesses/package.json +13 -0
  1441. package/.versions/2.2.1/.pi/prompts/af-build.md +27 -0
  1442. package/.versions/2.2.1/.pi/prompts/af-code-simplify.md +22 -0
  1443. package/.versions/2.2.1/.pi/prompts/af-constraints.md +31 -0
  1444. package/.versions/2.2.1/.pi/prompts/af-plan.md +17 -0
  1445. package/.versions/2.2.1/.pi/prompts/af-review.md +16 -0
  1446. package/.versions/2.2.1/.pi/prompts/af-set-hermes-telegram.md +15 -0
  1447. package/.versions/2.2.1/.pi/prompts/af-set-hermes-watchdog.md +6 -0
  1448. package/.versions/2.2.1/.pi/prompts/af-setup-rules.md +20 -0
  1449. package/.versions/2.2.1/.pi/prompts/af-ship.md +17 -0
  1450. package/.versions/2.2.1/.pi/prompts/af-spec.md +15 -0
  1451. package/.versions/2.2.1/.pi/prompts/af-test.md +19 -0
  1452. package/.versions/2.2.1/.pi/skills/bowser/SKILL.md +145 -0
  1453. package/.versions/2.2.1/.version +1 -0
  1454. package/.versions/2.2.1/agents/architect.md +24 -0
  1455. package/.versions/2.2.1/agents/bowser.md +28 -0
  1456. package/.versions/2.2.1/agents/builder.md +55 -0
  1457. package/.versions/2.2.1/agents/code-reviewer.md +209 -0
  1458. package/.versions/2.2.1/agents/deep-researcher.md +32 -0
  1459. package/.versions/2.2.1/agents/documenter.md +22 -0
  1460. package/.versions/2.2.1/agents/plan-reviewer.md +83 -0
  1461. package/.versions/2.2.1/agents/planner.md +107 -0
  1462. package/.versions/2.2.1/agents/releaser.md +24 -0
  1463. package/.versions/2.2.1/agents/researcher.md +30 -0
  1464. package/.versions/2.2.1/agents/security-auditor.md +167 -0
  1465. package/.versions/2.2.1/agents/test-engineer.md +153 -0
  1466. package/.versions/2.2.1/agents/web-debugger.md +44 -0
  1467. package/.versions/2.2.1/agents/web-performance-auditor.md +194 -0
  1468. package/.versions/2.2.1/bin/catalog/harness-runtime-closure.json +85 -0
  1469. package/.versions/2.2.1/docs/ARCHITECTURE.md +1291 -0
  1470. package/.versions/2.2.1/docs/agent-fleet-setup.md +1161 -0
  1471. package/.versions/2.2.1/docs/claude-code-coms-bridge.md +147 -0
  1472. package/.versions/2.2.1/docs/codex-local-mcp.md +520 -0
  1473. package/.versions/2.2.1/docs/codex-session-bridge.md +44 -0
  1474. package/.versions/2.2.1/docs/codex-setup.md +183 -0
  1475. package/.versions/2.2.1/docs/coms-hermes-bridge.md +188 -0
  1476. package/.versions/2.2.1/docs/fleet-native-voice.md +151 -0
  1477. package/.versions/2.2.1/docs/getting-started.md +126 -0
  1478. package/.versions/2.2.1/docs/npm-install.md +535 -0
  1479. package/.versions/2.2.1/docs/pi-extensions.md +450 -0
  1480. package/.versions/2.2.1/docs/pi-setup.md +92 -0
  1481. package/.versions/2.2.1/docs/skill-anatomy.md +150 -0
  1482. package/.versions/2.2.1/install-manifest.json +3227 -0
  1483. package/.versions/2.2.1/justfile +246 -0
  1484. package/.versions/2.2.1/manifest-meta.json +1099 -0
  1485. package/.versions/2.2.1/references/accessibility-checklist.md +160 -0
  1486. package/.versions/2.2.1/references/communication-contract.md +26 -0
  1487. package/.versions/2.2.1/references/definition-of-done.md +67 -0
  1488. package/.versions/2.2.1/references/fleet-coordination-patterns.md +171 -0
  1489. package/.versions/2.2.1/references/observability-checklist.md +92 -0
  1490. package/.versions/2.2.1/references/orchestration-patterns.md +370 -0
  1491. package/.versions/2.2.1/references/performance-checklist.md +236 -0
  1492. package/.versions/2.2.1/references/prompting-patterns.md +380 -0
  1493. package/.versions/2.2.1/references/security-checklist.md +245 -0
  1494. package/.versions/2.2.1/references/testing-patterns.md +235 -0
  1495. package/.versions/2.2.1/references/workflow-authoring.md +304 -0
  1496. package/.versions/2.2.1/skills/_internal/grilling.md +59 -0
  1497. package/.versions/2.2.1/skills/browser-testing-with-devtools/SKILL.md +351 -0
  1498. package/.versions/2.2.1/skills/code-review-and-quality/SKILL.md +396 -0
  1499. package/.versions/2.2.1/skills/compound-learning/SKILL.md +137 -0
  1500. package/.versions/2.2.1/skills/constraint-driven-development/SKILL.md +338 -0
  1501. package/.versions/2.2.1/skills/constraint-driven-development/references/floor-guard.md +99 -0
  1502. package/.versions/2.2.1/skills/context-engineering/SKILL.md +341 -0
  1503. package/.versions/2.2.1/skills/deprecation-and-migration/SKILL.md +247 -0
  1504. package/.versions/2.2.1/skills/designing-agents/SKILL.md +394 -0
  1505. package/.versions/2.2.1/skills/designing-agents/pi-harness-authoring.md +222 -0
  1506. package/.versions/2.2.1/skills/drafting-workflows/SKILL.md +143 -0
  1507. package/.versions/2.2.1/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
  1508. package/.versions/2.2.1/skills/fleet-connect/SKILL.md +29 -0
  1509. package/.versions/2.2.1/skills/fleet-connect.zip +0 -0
  1510. package/.versions/2.2.1/skills/fleet-native-voice/SKILL.md +103 -0
  1511. package/.versions/2.2.1/skills/fleet-native-voice/agents/openai.yaml +4 -0
  1512. package/.versions/2.2.1/skills/fleet-native-voice.zip +0 -0
  1513. package/.versions/2.2.1/skills/frontend-ui-engineering/SKILL.md +328 -0
  1514. package/.versions/2.2.1/skills/git-workflow-and-versioning/SKILL.md +316 -0
  1515. package/.versions/2.2.1/skills/idea-refine/SKILL.md +182 -0
  1516. package/.versions/2.2.1/skills/idea-refine/examples.md +238 -0
  1517. package/.versions/2.2.1/skills/idea-refine/frameworks.md +99 -0
  1518. package/.versions/2.2.1/skills/idea-refine/refinement-criteria.md +113 -0
  1519. package/.versions/2.2.1/skills/idea-refine/scripts/idea-refine.sh +15 -0
  1520. package/.versions/2.2.1/skills/incremental-implementation/SKILL.md +353 -0
  1521. package/.versions/2.2.1/skills/incremental-implementation.zip +0 -0
  1522. package/.versions/2.2.1/skills/interview-me/SKILL.md +226 -0
  1523. package/.versions/2.2.1/skills/orchestration-verification/SKILL.md +182 -0
  1524. package/.versions/2.2.1/skills/peer-coms/SKILL.md +90 -0
  1525. package/.versions/2.2.1/skills/performance-optimization/SKILL.md +496 -0
  1526. package/.versions/2.2.1/skills/planning-and-task-breakdown/SKILL.md +318 -0
  1527. package/.versions/2.2.1/skills/planning-and-task-breakdown.zip +0 -0
  1528. package/.versions/2.2.1/skills/repository-ai-setup/SKILL.md +135 -0
  1529. package/.versions/2.2.1/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
  1530. package/.versions/2.2.1/skills/repository-ai-setup/references/apply-contract.md +74 -0
  1531. package/.versions/2.2.1/skills/repository-ai-setup/references/provenance-template.md +16 -0
  1532. package/.versions/2.2.1/skills/repository-ai-setup/references/setup-flow.md +108 -0
  1533. package/.versions/2.2.1/skills/repository-ai-setup/references/verify-setup.md +20 -0
  1534. package/.versions/2.2.1/skills/repository-ai-setup.zip +0 -0
  1535. package/.versions/2.2.1/skills/security-and-hardening/SKILL.md +524 -0
  1536. package/.versions/2.2.1/skills/spec-driven-development/SKILL.md +295 -0
  1537. package/.versions/2.2.1/skills/spec-driven-development.zip +0 -0
  1538. package/.versions/2.2.1/skills/using-agent-skills/SKILL.md +198 -0
  1539. package/.versions/2.2.1/vendor/agent-skills-upstream/LICENSE +21 -0
  1540. package/.versions/2.2.1/vendor/agent-skills-upstream/README.md +430 -0
  1541. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
  1542. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
  1543. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
  1544. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
  1545. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
  1546. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
  1547. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
  1548. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
  1549. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
  1550. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
  1551. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
  1552. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
  1553. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
  1554. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
  1555. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
  1556. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
  1557. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
  1558. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
  1559. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
  1560. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
  1561. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
  1562. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
  1563. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
  1564. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
  1565. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
  1566. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
  1567. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
  1568. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
  1569. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
  1570. package/.versions/2.2.1/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
  1571. package/.versions/2.2.2/.pi/agent-fleet/hermes/README.md +347 -0
  1572. package/.versions/2.2.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
  1573. package/.versions/2.2.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
  1574. package/.versions/2.2.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
  1575. package/.versions/2.2.2/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
  1576. package/.versions/2.2.2/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
  1577. package/.versions/2.2.2/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
  1578. package/.versions/2.2.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
  1579. package/.versions/2.2.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
  1580. package/.versions/2.2.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
  1581. package/.versions/2.2.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
  1582. package/.versions/2.2.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
  1583. package/.versions/2.2.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
  1584. package/.versions/2.2.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
  1585. package/.versions/2.2.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
  1586. package/.versions/2.2.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
  1587. package/.versions/2.2.2/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
  1588. package/.versions/2.2.2/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
  1589. package/.versions/2.2.2/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
  1590. package/.versions/2.2.2/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
  1591. package/.versions/2.2.2/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
  1592. package/.versions/2.2.2/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
  1593. package/.versions/2.2.2/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
  1594. package/.versions/2.2.2/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
  1595. package/.versions/2.2.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
  1596. package/.versions/2.2.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
  1597. package/.versions/2.2.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
  1598. package/.versions/2.2.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
  1599. package/.versions/2.2.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
  1600. package/.versions/2.2.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
  1601. package/.versions/2.2.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
  1602. package/.versions/2.2.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
  1603. package/.versions/2.2.2/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
  1604. package/.versions/2.2.2/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
  1605. package/.versions/2.2.2/.pi/agent-fleet/hooks/coms-stop-hook.mjs +124 -0
  1606. package/.versions/2.2.2/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
  1607. package/.versions/2.2.2/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
  1608. package/.versions/2.2.2/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
  1609. package/.versions/2.2.2/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
  1610. package/.versions/2.2.2/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
  1611. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/0.167-shared.json +1900 -0
  1612. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/README.md +223 -0
  1613. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/assessment.md +83 -0
  1614. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile-0.167.json +5627 -0
  1615. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile.md +43 -0
  1616. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap.md +45 -0
  1617. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture-profile.ts +53 -0
  1618. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture.ts +102 -0
  1619. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/catalog.md +91 -0
  1620. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/channel.md +21 -0
  1621. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurement.md +133 -0
  1622. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurements.json +74 -0
  1623. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/notification-profile-0.167.json +2679 -0
  1624. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/observer.md +101 -0
  1625. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/opaque-response.md +57 -0
  1626. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/open-sent.md +68 -0
  1627. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/probe-reader.md +51 -0
  1628. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/profile.md +71 -0
  1629. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/projection.md +147 -0
  1630. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/reconnect.md +40 -0
  1631. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/response-unions.md +74 -0
  1632. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/semver.md +124 -0
  1633. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/surface.md +73 -0
  1634. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/fleet-codex-allowlist-store-child.ts +31 -0
  1635. package/.versions/2.2.2/.pi/agent-fleet/scripts/fixtures/response-fixture.ts +23 -0
  1636. package/.versions/2.2.2/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
  1637. package/.versions/2.2.2/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +63 -0
  1638. package/.versions/2.2.2/.pi/agent-fleet/scripts/fleet.ts +244 -0
  1639. package/.versions/2.2.2/.pi/agent-fleet/scripts/flow.ts +166 -0
  1640. package/.versions/2.2.2/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
  1641. package/.versions/2.2.2/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
  1642. package/.versions/2.2.2/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
  1643. package/.versions/2.2.2/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
  1644. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
  1645. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/codex-bootstrap-files.ts +46 -0
  1646. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/codex-bootstrap-probe.ts +52 -0
  1647. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/codex-bootstrap-producer.ts +131 -0
  1648. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/codex-connection-history.ts +51 -0
  1649. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/codex-daemon-observer.ts +137 -0
  1650. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/codex-desktop-discovery.ts +84 -0
  1651. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/codex-desktop-preflight.ts +130 -0
  1652. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +113 -0
  1653. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/codex-measurement.ts +218 -0
  1654. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/codex-native-presence.ts +61 -0
  1655. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/codex-probe-transcript.ts +135 -0
  1656. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/codex-send-lineage.ts +72 -0
  1657. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +101 -0
  1658. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
  1659. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
  1660. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +453 -0
  1661. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
  1662. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +73 -0
  1663. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
  1664. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-bootstrap.ts +207 -0
  1665. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +76 -0
  1666. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +58 -0
  1667. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +132 -0
  1668. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
  1669. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
  1670. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +175 -0
  1671. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +435 -0
  1672. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
  1673. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
  1674. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
  1675. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
  1676. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
  1677. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +44 -0
  1678. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +83 -0
  1679. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
  1680. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
  1681. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-response-read.ts +26 -0
  1682. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-response-transport.ts +38 -0
  1683. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
  1684. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/fleet-command.ts +264 -0
  1685. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
  1686. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +239 -0
  1687. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
  1688. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
  1689. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
  1690. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
  1691. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
  1692. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
  1693. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
  1694. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
  1695. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
  1696. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
  1697. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
  1698. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
  1699. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
  1700. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
  1701. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
  1702. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
  1703. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
  1704. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/team-project.ts +176 -0
  1705. package/.versions/2.2.2/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
  1706. package/.versions/2.2.2/.pi/agent-fleet/scripts/package-lock.json +57 -0
  1707. package/.versions/2.2.2/.pi/agent-fleet/scripts/package.json +10 -0
  1708. package/.versions/2.2.2/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
  1709. package/.versions/2.2.2/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
  1710. package/.versions/2.2.2/.pi/agent-fleet/scripts/pi-session.ts +9 -0
  1711. package/.versions/2.2.2/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
  1712. package/.versions/2.2.2/.pi/agent-fleet/scripts/team-up.ts +378 -0
  1713. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
  1714. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
  1715. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
  1716. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
  1717. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
  1718. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
  1719. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/git.ts +108 -0
  1720. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
  1721. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
  1722. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
  1723. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
  1724. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
  1725. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
  1726. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
  1727. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
  1728. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/quality.ts +78 -0
  1729. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
  1730. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
  1731. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
  1732. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
  1733. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
  1734. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
  1735. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
  1736. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
  1737. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
  1738. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
  1739. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
  1740. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
  1741. package/.versions/2.2.2/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
  1742. package/.versions/2.2.2/.pi/agents/dispatch-policy.yaml +32 -0
  1743. package/.versions/2.2.2/.pi/agents/model-profiles.yaml +132 -0
  1744. package/.versions/2.2.2/.pi/agents/peers.yaml +147 -0
  1745. package/.versions/2.2.2/.pi/agents/teams.yaml +41 -0
  1746. package/.versions/2.2.2/.pi/agents/voices.yaml +13 -0
  1747. package/.versions/2.2.2/.pi/damage-control-rules.yaml +297 -0
  1748. package/.versions/2.2.2/.pi/extensions/btw/README.md +120 -0
  1749. package/.versions/2.2.2/.pi/extensions/btw/index.ts +916 -0
  1750. package/.versions/2.2.2/.pi/extensions/btw/package.json +6 -0
  1751. package/.versions/2.2.2/.pi/extensions/btw/state.js +179 -0
  1752. package/.versions/2.2.2/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
  1753. package/.versions/2.2.2/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
  1754. package/.versions/2.2.2/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  1755. package/.versions/2.2.2/.pi/extensions/compact-and-continue/README.md +42 -0
  1756. package/.versions/2.2.2/.pi/extensions/compact-and-continue/index.ts +136 -0
  1757. package/.versions/2.2.2/.pi/extensions/compact-and-continue/package.json +6 -0
  1758. package/.versions/2.2.2/.pi/extensions/mcp-bridge/README.md +46 -0
  1759. package/.versions/2.2.2/.pi/extensions/mcp-bridge/index.ts +206 -0
  1760. package/.versions/2.2.2/.pi/extensions/mcp-bridge/package.json +6 -0
  1761. package/.versions/2.2.2/.pi/extensions/package-lock.json +1175 -0
  1762. package/.versions/2.2.2/.pi/extensions/package.json +9 -0
  1763. package/.versions/2.2.2/.pi/extensions/pi-voice-stt/README.md +224 -0
  1764. package/.versions/2.2.2/.pi/extensions/pi-voice-stt/config.ts +199 -0
  1765. package/.versions/2.2.2/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
  1766. package/.versions/2.2.2/.pi/extensions/pi-voice-stt/index.ts +248 -0
  1767. package/.versions/2.2.2/.pi/extensions/pi-voice-stt/package.json +6 -0
  1768. package/.versions/2.2.2/.pi/extensions/pi-voice-stt/providers.ts +214 -0
  1769. package/.versions/2.2.2/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
  1770. package/.versions/2.2.2/.pi/harnesses/agent-hub/README.md +1641 -0
  1771. package/.versions/2.2.2/.pi/harnesses/agent-hub/acceptance.ts +204 -0
  1772. package/.versions/2.2.2/.pi/harnesses/agent-hub/access-approval.ts +266 -0
  1773. package/.versions/2.2.2/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
  1774. package/.versions/2.2.2/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
  1775. package/.versions/2.2.2/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
  1776. package/.versions/2.2.2/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
  1777. package/.versions/2.2.2/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
  1778. package/.versions/2.2.2/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
  1779. package/.versions/2.2.2/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
  1780. package/.versions/2.2.2/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
  1781. package/.versions/2.2.2/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
  1782. package/.versions/2.2.2/.pi/harnesses/agent-hub/artifacts.js +146 -0
  1783. package/.versions/2.2.2/.pi/harnesses/agent-hub/assertion-ledger.js +68 -0
  1784. package/.versions/2.2.2/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
  1785. package/.versions/2.2.2/.pi/harnesses/agent-hub/backend-policy.js +174 -0
  1786. package/.versions/2.2.2/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
  1787. package/.versions/2.2.2/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
  1788. package/.versions/2.2.2/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
  1789. package/.versions/2.2.2/.pi/harnesses/agent-hub/capability-packs.ts +187 -0
  1790. package/.versions/2.2.2/.pi/harnesses/agent-hub/codex-bootstrap.ts +117 -0
  1791. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
  1792. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
  1793. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
  1794. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
  1795. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
  1796. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
  1797. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
  1798. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
  1799. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
  1800. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
  1801. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
  1802. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
  1803. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
  1804. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
  1805. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/config.ts +9 -0
  1806. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
  1807. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/context.ts +43 -0
  1808. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
  1809. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
  1810. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
  1811. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
  1812. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/models.ts +10 -0
  1813. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
  1814. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/recover.ts +62 -0
  1815. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
  1816. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
  1817. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
  1818. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
  1819. package/.versions/2.2.2/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
  1820. package/.versions/2.2.2/.pi/harnesses/agent-hub/config/agents.ts +183 -0
  1821. package/.versions/2.2.2/.pi/harnesses/agent-hub/config/model-profiles.ts +240 -0
  1822. package/.versions/2.2.2/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
  1823. package/.versions/2.2.2/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
  1824. package/.versions/2.2.2/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +234 -0
  1825. package/.versions/2.2.2/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
  1826. package/.versions/2.2.2/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
  1827. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
  1828. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
  1829. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
  1830. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
  1831. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
  1832. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
  1833. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
  1834. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
  1835. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-continuity-compat.ts +45 -0
  1836. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
  1837. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
  1838. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
  1839. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
  1840. package/.versions/2.2.2/.pi/harnesses/agent-hub/context-window.js +108 -0
  1841. package/.versions/2.2.2/.pi/harnesses/agent-hub/damage-guard-approval.ts +83 -0
  1842. package/.versions/2.2.2/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
  1843. package/.versions/2.2.2/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
  1844. package/.versions/2.2.2/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
  1845. package/.versions/2.2.2/.pi/harnesses/agent-hub/damage-guard-hub.ts +263 -0
  1846. package/.versions/2.2.2/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
  1847. package/.versions/2.2.2/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
  1848. package/.versions/2.2.2/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
  1849. package/.versions/2.2.2/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
  1850. package/.versions/2.2.2/.pi/harnesses/agent-hub/debate-command.ts +176 -0
  1851. package/.versions/2.2.2/.pi/harnesses/agent-hub/delegate.ts +478 -0
  1852. package/.versions/2.2.2/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
  1853. package/.versions/2.2.2/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
  1854. package/.versions/2.2.2/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
  1855. package/.versions/2.2.2/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
  1856. package/.versions/2.2.2/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
  1857. package/.versions/2.2.2/.pi/harnesses/agent-hub/dispatch-native-complete.ts +176 -0
  1858. package/.versions/2.2.2/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +318 -0
  1859. package/.versions/2.2.2/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +264 -0
  1860. package/.versions/2.2.2/.pi/harnesses/agent-hub/dispatch-native-types.ts +297 -0
  1861. package/.versions/2.2.2/.pi/harnesses/agent-hub/dispatch-native.ts +242 -0
  1862. package/.versions/2.2.2/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
  1863. package/.versions/2.2.2/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
  1864. package/.versions/2.2.2/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
  1865. package/.versions/2.2.2/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
  1866. package/.versions/2.2.2/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
  1867. package/.versions/2.2.2/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
  1868. package/.versions/2.2.2/.pi/harnesses/agent-hub/docs-lane.js +123 -0
  1869. package/.versions/2.2.2/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
  1870. package/.versions/2.2.2/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
  1871. package/.versions/2.2.2/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
  1872. package/.versions/2.2.2/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
  1873. package/.versions/2.2.2/.pi/harnesses/agent-hub/drift-watchdog.js +344 -0
  1874. package/.versions/2.2.2/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
  1875. package/.versions/2.2.2/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
  1876. package/.versions/2.2.2/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
  1877. package/.versions/2.2.2/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
  1878. package/.versions/2.2.2/.pi/harnesses/agent-hub/external-blocker.js +92 -0
  1879. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
  1880. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
  1881. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
  1882. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
  1883. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
  1884. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
  1885. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
  1886. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
  1887. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
  1888. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
  1889. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
  1890. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
  1891. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
  1892. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
  1893. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
  1894. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
  1895. package/.versions/2.2.2/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
  1896. package/.versions/2.2.2/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
  1897. package/.versions/2.2.2/.pi/harnesses/agent-hub/fixtures/registration-surface.json +68 -0
  1898. package/.versions/2.2.2/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
  1899. package/.versions/2.2.2/.pi/harnesses/agent-hub/footer.ts +29 -0
  1900. package/.versions/2.2.2/.pi/harnesses/agent-hub/helpers.ts +269 -0
  1901. package/.versions/2.2.2/.pi/harnesses/agent-hub/history-projection.ts +116 -0
  1902. package/.versions/2.2.2/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
  1903. package/.versions/2.2.2/.pi/harnesses/agent-hub/index.ts +2722 -0
  1904. package/.versions/2.2.2/.pi/harnesses/agent-hub/input/completions.ts +82 -0
  1905. package/.versions/2.2.2/.pi/harnesses/agent-hub/input/shortcuts.ts +16 -0
  1906. package/.versions/2.2.2/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
  1907. package/.versions/2.2.2/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
  1908. package/.versions/2.2.2/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
  1909. package/.versions/2.2.2/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
  1910. package/.versions/2.2.2/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
  1911. package/.versions/2.2.2/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
  1912. package/.versions/2.2.2/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
  1913. package/.versions/2.2.2/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
  1914. package/.versions/2.2.2/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
  1915. package/.versions/2.2.2/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
  1916. package/.versions/2.2.2/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
  1917. package/.versions/2.2.2/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
  1918. package/.versions/2.2.2/.pi/harnesses/agent-hub/no-progress.ts +627 -0
  1919. package/.versions/2.2.2/.pi/harnesses/agent-hub/operator-current-state.ts +57 -0
  1920. package/.versions/2.2.2/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
  1921. package/.versions/2.2.2/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
  1922. package/.versions/2.2.2/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
  1923. package/.versions/2.2.2/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
  1924. package/.versions/2.2.2/.pi/harnesses/agent-hub/package.json +7 -0
  1925. package/.versions/2.2.2/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
  1926. package/.versions/2.2.2/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
  1927. package/.versions/2.2.2/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
  1928. package/.versions/2.2.2/.pi/harnesses/agent-hub/policy/models.ts +153 -0
  1929. package/.versions/2.2.2/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
  1930. package/.versions/2.2.2/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
  1931. package/.versions/2.2.2/.pi/harnesses/agent-hub/policy/roster.ts +103 -0
  1932. package/.versions/2.2.2/.pi/harnesses/agent-hub/policy/work-mode.ts +103 -0
  1933. package/.versions/2.2.2/.pi/harnesses/agent-hub/poll-command.ts +184 -0
  1934. package/.versions/2.2.2/.pi/harnesses/agent-hub/presentation.ts +54 -0
  1935. package/.versions/2.2.2/.pi/harnesses/agent-hub/private-config-current-state.ts +81 -0
  1936. package/.versions/2.2.2/.pi/harnesses/agent-hub/private-config-fixtures.ts +26 -0
  1937. package/.versions/2.2.2/.pi/harnesses/agent-hub/private-config-review.ts +100 -0
  1938. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
  1939. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
  1940. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
  1941. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
  1942. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
  1943. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
  1944. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
  1945. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
  1946. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
  1947. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
  1948. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
  1949. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
  1950. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-snapshot.ts +287 -0
  1951. package/.versions/2.2.2/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
  1952. package/.versions/2.2.2/.pi/harnesses/agent-hub/process-obligations.ts +210 -0
  1953. package/.versions/2.2.2/.pi/harnesses/agent-hub/prompts/context.ts +72 -0
  1954. package/.versions/2.2.2/.pi/harnesses/agent-hub/prompts/fragments.ts +94 -0
  1955. package/.versions/2.2.2/.pi/harnesses/agent-hub/prompts/session-start.ts +89 -0
  1956. package/.versions/2.2.2/.pi/harnesses/agent-hub/prompts/system-prompt.ts +142 -0
  1957. package/.versions/2.2.2/.pi/harnesses/agent-hub/provider-semaphore.js +143 -0
  1958. package/.versions/2.2.2/.pi/harnesses/agent-hub/reconcile.ts +26 -0
  1959. package/.versions/2.2.2/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
  1960. package/.versions/2.2.2/.pi/harnesses/agent-hub/recover-state.ts +104 -0
  1961. package/.versions/2.2.2/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
  1962. package/.versions/2.2.2/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
  1963. package/.versions/2.2.2/.pi/harnesses/agent-hub/research/controls.ts +74 -0
  1964. package/.versions/2.2.2/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
  1965. package/.versions/2.2.2/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
  1966. package/.versions/2.2.2/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
  1967. package/.versions/2.2.2/.pi/harnesses/agent-hub/return-contract.js +371 -0
  1968. package/.versions/2.2.2/.pi/harnesses/agent-hub/return-extract.js +77 -0
  1969. package/.versions/2.2.2/.pi/harnesses/agent-hub/review-closure.ts +43 -0
  1970. package/.versions/2.2.2/.pi/harnesses/agent-hub/review-continuity.ts +76 -0
  1971. package/.versions/2.2.2/.pi/harnesses/agent-hub/review-findings.js +96 -0
  1972. package/.versions/2.2.2/.pi/harnesses/agent-hub/review-reuse.ts +48 -0
  1973. package/.versions/2.2.2/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
  1974. package/.versions/2.2.2/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
  1975. package/.versions/2.2.2/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
  1976. package/.versions/2.2.2/.pi/harnesses/agent-hub/run-budget.js +362 -0
  1977. package/.versions/2.2.2/.pi/harnesses/agent-hub/run-namespace.js +93 -0
  1978. package/.versions/2.2.2/.pi/harnesses/agent-hub/runtime-receipts.ts +63 -0
  1979. package/.versions/2.2.2/.pi/harnesses/agent-hub/runtime-test-check.ts +85 -0
  1980. package/.versions/2.2.2/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
  1981. package/.versions/2.2.2/.pi/harnesses/agent-hub/scope-gate.js +271 -0
  1982. package/.versions/2.2.2/.pi/harnesses/agent-hub/scope-overlap.ts +46 -0
  1983. package/.versions/2.2.2/.pi/harnesses/agent-hub/session-audit.ts +331 -0
  1984. package/.versions/2.2.2/.pi/harnesses/agent-hub/session-health.js +110 -0
  1985. package/.versions/2.2.2/.pi/harnesses/agent-hub/session-start.ts +42 -0
  1986. package/.versions/2.2.2/.pi/harnesses/agent-hub/spawn.ts +702 -0
  1987. package/.versions/2.2.2/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
  1988. package/.versions/2.2.2/.pi/harnesses/agent-hub/specialist-result.ts +78 -0
  1989. package/.versions/2.2.2/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
  1990. package/.versions/2.2.2/.pi/harnesses/agent-hub/system1-communication-store.ts +225 -0
  1991. package/.versions/2.2.2/.pi/harnesses/agent-hub/system1-report.ts +275 -0
  1992. package/.versions/2.2.2/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
  1993. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-brief.ts +98 -0
  1994. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
  1995. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-resume-contract.ts +80 -0
  1996. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-triage-authorization.ts +170 -0
  1997. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
  1998. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
  1999. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
  2000. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
  2001. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
  2002. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
  2003. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
  2004. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
  2005. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-triage-runtime.ts +132 -0
  2006. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
  2007. package/.versions/2.2.2/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
  2008. package/.versions/2.2.2/.pi/harnesses/agent-hub/timeline.ts +72 -0
  2009. package/.versions/2.2.2/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +83 -0
  2010. package/.versions/2.2.2/.pi/harnesses/agent-hub/tool-catalog-state.ts +125 -0
  2011. package/.versions/2.2.2/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
  2012. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/action-executors.ts +216 -0
  2013. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
  2014. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
  2015. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
  2016. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/context.ts +149 -0
  2017. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +93 -0
  2018. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +928 -0
  2019. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
  2020. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
  2021. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
  2022. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
  2023. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/poll-panel-core.ts +30 -0
  2024. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/poll-panel.ts +33 -0
  2025. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/run-flow.ts +177 -0
  2026. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
  2027. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
  2028. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
  2029. package/.versions/2.2.2/.pi/harnesses/agent-hub/tools/verification-contract.ts +81 -0
  2030. package/.versions/2.2.2/.pi/harnesses/agent-hub/tsconfig.json +22 -0
  2031. package/.versions/2.2.2/.pi/harnesses/agent-hub/types.ts +66 -0
  2032. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
  2033. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
  2034. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
  2035. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
  2036. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +173 -0
  2037. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
  2038. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
  2039. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
  2040. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
  2041. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/history.ts +234 -0
  2042. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
  2043. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
  2044. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
  2045. package/.versions/2.2.2/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
  2046. package/.versions/2.2.2/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
  2047. package/.versions/2.2.2/.pi/harnesses/agent-hub/version.ts +42 -0
  2048. package/.versions/2.2.2/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
  2049. package/.versions/2.2.2/.pi/harnesses/agent-hub/work-mode.ts +183 -0
  2050. package/.versions/2.2.2/.pi/harnesses/agent-hub/write-isolation.ts +232 -0
  2051. package/.versions/2.2.2/.pi/harnesses/ask-user-remote/README.md +59 -0
  2052. package/.versions/2.2.2/.pi/harnesses/ask-user-remote/index.ts +571 -0
  2053. package/.versions/2.2.2/.pi/harnesses/ask-user-remote/questions.ts +206 -0
  2054. package/.versions/2.2.2/.pi/harnesses/ask-user-remote/race-core.js +124 -0
  2055. package/.versions/2.2.2/.pi/harnesses/ask-user-remote/runtime-ask.ts +90 -0
  2056. package/.versions/2.2.2/.pi/harnesses/coms/README.md +105 -0
  2057. package/.versions/2.2.2/.pi/harnesses/coms/index.ts +308 -0
  2058. package/.versions/2.2.2/.pi/harnesses/coms/package.json +7 -0
  2059. package/.versions/2.2.2/.pi/harnesses/coms/version.ts +42 -0
  2060. package/.versions/2.2.2/.pi/harnesses/damage-control-continue/README.md +161 -0
  2061. package/.versions/2.2.2/.pi/harnesses/damage-control-continue/index.ts +659 -0
  2062. package/.versions/2.2.2/.pi/harnesses/damage-control-continue/package.json +7 -0
  2063. package/.versions/2.2.2/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
  2064. package/.versions/2.2.2/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
  2065. package/.versions/2.2.2/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
  2066. package/.versions/2.2.2/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
  2067. package/.versions/2.2.2/.pi/harnesses/damage-control-continue/version.ts +42 -0
  2068. package/.versions/2.2.2/.pi/harnesses/lib/approval-wait.ts +17 -0
  2069. package/.versions/2.2.2/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
  2070. package/.versions/2.2.2/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
  2071. package/.versions/2.2.2/.pi/harnesses/lib/clarification-policy.ts +9 -0
  2072. package/.versions/2.2.2/.pi/harnesses/lib/codex-compat.ts +97 -0
  2073. package/.versions/2.2.2/.pi/harnesses/lib/codex-contract.ts +259 -0
  2074. package/.versions/2.2.2/.pi/harnesses/lib/codex-notification-profile.ts +75 -0
  2075. package/.versions/2.2.2/.pi/harnesses/lib/coms-core-io.ts +422 -0
  2076. package/.versions/2.2.2/.pi/harnesses/lib/coms-core.ts +738 -0
  2077. package/.versions/2.2.2/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
  2078. package/.versions/2.2.2/.pi/harnesses/lib/coms-observation.ts +74 -0
  2079. package/.versions/2.2.2/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
  2080. package/.versions/2.2.2/.pi/harnesses/lib/coms-response-read.ts +107 -0
  2081. package/.versions/2.2.2/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
  2082. package/.versions/2.2.2/.pi/harnesses/lib/context-budget-hub-prompt.ts +124 -0
  2083. package/.versions/2.2.2/.pi/harnesses/lib/context-budget-view.ts +112 -0
  2084. package/.versions/2.2.2/.pi/harnesses/lib/context-budget.ts +114 -0
  2085. package/.versions/2.2.2/.pi/harnesses/lib/context-compaction-policy.js +35 -0
  2086. package/.versions/2.2.2/.pi/harnesses/lib/damage-action-hash.ts +28 -0
  2087. package/.versions/2.2.2/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
  2088. package/.versions/2.2.2/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
  2089. package/.versions/2.2.2/.pi/harnesses/lib/damage-control-shared.ts +276 -0
  2090. package/.versions/2.2.2/.pi/harnesses/lib/damage-guard-port.ts +25 -0
  2091. package/.versions/2.2.2/.pi/harnesses/lib/damage-policy.ts +35 -0
  2092. package/.versions/2.2.2/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
  2093. package/.versions/2.2.2/.pi/harnesses/lib/damage-result-view.ts +16 -0
  2094. package/.versions/2.2.2/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
  2095. package/.versions/2.2.2/.pi/harnesses/lib/exact-permission-port.ts +38 -0
  2096. package/.versions/2.2.2/.pi/harnesses/lib/execution-trace.ts +45 -0
  2097. package/.versions/2.2.2/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
  2098. package/.versions/2.2.2/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
  2099. package/.versions/2.2.2/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
  2100. package/.versions/2.2.2/.pi/harnesses/lib/fleet-bootstrap-channel.ts +148 -0
  2101. package/.versions/2.2.2/.pi/harnesses/lib/fleet-codex-catalog.ts +30 -0
  2102. package/.versions/2.2.2/.pi/harnesses/lib/fleet-codex-chat-view.ts +55 -0
  2103. package/.versions/2.2.2/.pi/harnesses/lib/fleet-codex-event-bridge.ts +82 -0
  2104. package/.versions/2.2.2/.pi/harnesses/lib/fleet-codex-namespace.ts +2 -0
  2105. package/.versions/2.2.2/.pi/harnesses/lib/fleet-codex-policy-snapshot.ts +10 -0
  2106. package/.versions/2.2.2/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
  2107. package/.versions/2.2.2/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
  2108. package/.versions/2.2.2/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
  2109. package/.versions/2.2.2/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
  2110. package/.versions/2.2.2/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
  2111. package/.versions/2.2.2/.pi/harnesses/lib/fleet-config/view.ts +338 -0
  2112. package/.versions/2.2.2/.pi/harnesses/lib/fleet-connection-control.ts +94 -0
  2113. package/.versions/2.2.2/.pi/harnesses/lib/fleet-connection-diagnostics.ts +7 -0
  2114. package/.versions/2.2.2/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
  2115. package/.versions/2.2.2/.pi/harnesses/lib/fleet-dashboard-view.ts +174 -0
  2116. package/.versions/2.2.2/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
  2117. package/.versions/2.2.2/.pi/harnesses/lib/fleet-event-source.ts +21 -0
  2118. package/.versions/2.2.2/.pi/harnesses/lib/fleet-notification-admission.ts +32 -0
  2119. package/.versions/2.2.2/.pi/harnesses/lib/fleet-notification-bootstrap.ts +172 -0
  2120. package/.versions/2.2.2/.pi/harnesses/lib/fleet-notification-validation.ts +122 -0
  2121. package/.versions/2.2.2/.pi/harnesses/lib/fleet-overlay.ts +26 -0
  2122. package/.versions/2.2.2/.pi/harnesses/lib/fleet-panel.ts +34 -0
  2123. package/.versions/2.2.2/.pi/harnesses/lib/fleet-question-reference.ts +42 -0
  2124. package/.versions/2.2.2/.pi/harnesses/lib/fleet-read-model.ts +609 -0
  2125. package/.versions/2.2.2/.pi/harnesses/lib/fleet-selection.ts +24 -0
  2126. package/.versions/2.2.2/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
  2127. package/.versions/2.2.2/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
  2128. package/.versions/2.2.2/.pi/harnesses/lib/fleet-target-identity.ts +9 -0
  2129. package/.versions/2.2.2/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
  2130. package/.versions/2.2.2/.pi/harnesses/lib/herdr-client.ts +472 -0
  2131. package/.versions/2.2.2/.pi/harnesses/lib/herdr-presence.ts +399 -0
  2132. package/.versions/2.2.2/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
  2133. package/.versions/2.2.2/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
  2134. package/.versions/2.2.2/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
  2135. package/.versions/2.2.2/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
  2136. package/.versions/2.2.2/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
  2137. package/.versions/2.2.2/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
  2138. package/.versions/2.2.2/.pi/harnesses/lib/identical-dialog.ts +27 -0
  2139. package/.versions/2.2.2/.pi/harnesses/lib/installation-state.js +62 -0
  2140. package/.versions/2.2.2/.pi/harnesses/lib/peer-target.ts +24 -0
  2141. package/.versions/2.2.2/.pi/harnesses/lib/policy-roots.js +117 -0
  2142. package/.versions/2.2.2/.pi/harnesses/lib/policy-roots.ts +32 -0
  2143. package/.versions/2.2.2/.pi/harnesses/lib/process-shared.ts +9 -0
  2144. package/.versions/2.2.2/.pi/harnesses/lib/resource-closure.js +26 -0
  2145. package/.versions/2.2.2/.pi/harnesses/lib/safe-source-read.js +29 -0
  2146. package/.versions/2.2.2/.pi/harnesses/lib/semantic-approval.ts +80 -0
  2147. package/.versions/2.2.2/.pi/harnesses/lib/session-target.ts +62 -0
  2148. package/.versions/2.2.2/.pi/harnesses/lib/spawned-peers.js +191 -0
  2149. package/.versions/2.2.2/.pi/harnesses/lib/system1/config-agentic.js +15 -0
  2150. package/.versions/2.2.2/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
  2151. package/.versions/2.2.2/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
  2152. package/.versions/2.2.2/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
  2153. package/.versions/2.2.2/.pi/harnesses/lib/system1/config-json.js +37 -0
  2154. package/.versions/2.2.2/.pi/harnesses/lib/system1/config-loader.js +53 -0
  2155. package/.versions/2.2.2/.pi/harnesses/lib/system1/config-proactive.js +68 -0
  2156. package/.versions/2.2.2/.pi/harnesses/lib/system1/config-triage.js +42 -0
  2157. package/.versions/2.2.2/.pi/harnesses/lib/system1/config-v2.js +112 -0
  2158. package/.versions/2.2.2/.pi/harnesses/lib/system1/config.js +50 -0
  2159. package/.versions/2.2.2/.pi/harnesses/lib/system1/contracts.ts +154 -0
  2160. package/.versions/2.2.2/.pi/harnesses/lib/system1/demo.ts +95 -0
  2161. package/.versions/2.2.2/.pi/harnesses/lib/system1/jev.ts +503 -0
  2162. package/.versions/2.2.2/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
  2163. package/.versions/2.2.2/.pi/harnesses/lib/system1/selection.js +11 -0
  2164. package/.versions/2.2.2/.pi/harnesses/lib/system1/service.ts +245 -0
  2165. package/.versions/2.2.2/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
  2166. package/.versions/2.2.2/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
  2167. package/.versions/2.2.2/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
  2168. package/.versions/2.2.2/.pi/harnesses/lib/target-capabilities.js +7 -0
  2169. package/.versions/2.2.2/.pi/harnesses/lib/update-check.ts +227 -0
  2170. package/.versions/2.2.2/.pi/harnesses/lib/workspace-context.js +115 -0
  2171. package/.versions/2.2.2/.pi/harnesses/lib/workspace-context.ts +22 -0
  2172. package/.versions/2.2.2/.pi/harnesses/package-lock.json +2121 -0
  2173. package/.versions/2.2.2/.pi/harnesses/package.json +13 -0
  2174. package/.versions/2.2.2/.pi/prompts/af-build.md +27 -0
  2175. package/.versions/2.2.2/.pi/prompts/af-code-simplify.md +22 -0
  2176. package/.versions/2.2.2/.pi/prompts/af-constraints.md +31 -0
  2177. package/.versions/2.2.2/.pi/prompts/af-plan.md +17 -0
  2178. package/.versions/2.2.2/.pi/prompts/af-review.md +16 -0
  2179. package/.versions/2.2.2/.pi/prompts/af-set-hermes-telegram.md +15 -0
  2180. package/.versions/2.2.2/.pi/prompts/af-set-hermes-watchdog.md +6 -0
  2181. package/.versions/2.2.2/.pi/prompts/af-setup-rules.md +20 -0
  2182. package/.versions/2.2.2/.pi/prompts/af-ship.md +17 -0
  2183. package/.versions/2.2.2/.pi/prompts/af-spec.md +15 -0
  2184. package/.versions/2.2.2/.pi/prompts/af-test.md +19 -0
  2185. package/.versions/2.2.2/.pi/skills/bowser/SKILL.md +145 -0
  2186. package/.versions/2.2.2/.version +1 -0
  2187. package/.versions/2.2.2/agents/architect.md +24 -0
  2188. package/.versions/2.2.2/agents/bowser.md +28 -0
  2189. package/.versions/2.2.2/agents/builder.md +55 -0
  2190. package/.versions/2.2.2/agents/code-reviewer.md +209 -0
  2191. package/.versions/2.2.2/agents/deep-researcher.md +32 -0
  2192. package/.versions/2.2.2/agents/documenter.md +22 -0
  2193. package/.versions/2.2.2/agents/plan-reviewer.md +83 -0
  2194. package/.versions/2.2.2/agents/planner.md +107 -0
  2195. package/.versions/2.2.2/agents/releaser.md +24 -0
  2196. package/.versions/2.2.2/agents/researcher.md +30 -0
  2197. package/.versions/2.2.2/agents/security-auditor.md +167 -0
  2198. package/.versions/2.2.2/agents/test-engineer.md +153 -0
  2199. package/.versions/2.2.2/agents/web-debugger.md +44 -0
  2200. package/.versions/2.2.2/agents/web-performance-auditor.md +194 -0
  2201. package/.versions/2.2.2/bin/catalog/harness-runtime-closure.json +85 -0
  2202. package/.versions/2.2.2/docs/ARCHITECTURE.md +1291 -0
  2203. package/.versions/2.2.2/docs/agent-fleet-setup.md +1161 -0
  2204. package/.versions/2.2.2/docs/claude-code-coms-bridge.md +147 -0
  2205. package/.versions/2.2.2/docs/codex-local-mcp.md +520 -0
  2206. package/.versions/2.2.2/docs/codex-session-bridge.md +44 -0
  2207. package/.versions/2.2.2/docs/codex-setup.md +183 -0
  2208. package/.versions/2.2.2/docs/coms-hermes-bridge.md +188 -0
  2209. package/.versions/2.2.2/docs/fleet-native-voice.md +151 -0
  2210. package/.versions/2.2.2/docs/getting-started.md +126 -0
  2211. package/.versions/2.2.2/docs/npm-install.md +535 -0
  2212. package/.versions/2.2.2/docs/pi-extensions.md +450 -0
  2213. package/.versions/2.2.2/docs/pi-setup.md +92 -0
  2214. package/.versions/2.2.2/docs/skill-anatomy.md +150 -0
  2215. package/.versions/2.2.2/install-manifest.json +3227 -0
  2216. package/.versions/2.2.2/justfile +246 -0
  2217. package/.versions/2.2.2/manifest-meta.json +1099 -0
  2218. package/.versions/2.2.2/references/accessibility-checklist.md +160 -0
  2219. package/.versions/2.2.2/references/communication-contract.md +26 -0
  2220. package/.versions/2.2.2/references/definition-of-done.md +67 -0
  2221. package/.versions/2.2.2/references/fleet-coordination-patterns.md +171 -0
  2222. package/.versions/2.2.2/references/observability-checklist.md +92 -0
  2223. package/.versions/2.2.2/references/orchestration-patterns.md +370 -0
  2224. package/.versions/2.2.2/references/performance-checklist.md +236 -0
  2225. package/.versions/2.2.2/references/prompting-patterns.md +380 -0
  2226. package/.versions/2.2.2/references/security-checklist.md +245 -0
  2227. package/.versions/2.2.2/references/testing-patterns.md +235 -0
  2228. package/.versions/2.2.2/references/workflow-authoring.md +304 -0
  2229. package/.versions/2.2.2/skills/_internal/grilling.md +59 -0
  2230. package/.versions/2.2.2/skills/browser-testing-with-devtools/SKILL.md +351 -0
  2231. package/.versions/2.2.2/skills/code-review-and-quality/SKILL.md +396 -0
  2232. package/.versions/2.2.2/skills/compound-learning/SKILL.md +137 -0
  2233. package/.versions/2.2.2/skills/constraint-driven-development/SKILL.md +338 -0
  2234. package/.versions/2.2.2/skills/constraint-driven-development/references/floor-guard.md +99 -0
  2235. package/.versions/2.2.2/skills/context-engineering/SKILL.md +341 -0
  2236. package/.versions/2.2.2/skills/deprecation-and-migration/SKILL.md +247 -0
  2237. package/.versions/2.2.2/skills/designing-agents/SKILL.md +394 -0
  2238. package/.versions/2.2.2/skills/designing-agents/pi-harness-authoring.md +222 -0
  2239. package/.versions/2.2.2/skills/drafting-workflows/SKILL.md +143 -0
  2240. package/.versions/2.2.2/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
  2241. package/.versions/2.2.2/skills/fleet-connect/SKILL.md +29 -0
  2242. package/.versions/2.2.2/skills/fleet-connect.zip +0 -0
  2243. package/.versions/2.2.2/skills/fleet-native-voice/SKILL.md +103 -0
  2244. package/.versions/2.2.2/skills/fleet-native-voice/agents/openai.yaml +4 -0
  2245. package/.versions/2.2.2/skills/fleet-native-voice.zip +0 -0
  2246. package/.versions/2.2.2/skills/frontend-ui-engineering/SKILL.md +328 -0
  2247. package/.versions/2.2.2/skills/git-workflow-and-versioning/SKILL.md +316 -0
  2248. package/.versions/2.2.2/skills/idea-refine/SKILL.md +182 -0
  2249. package/.versions/2.2.2/skills/idea-refine/examples.md +238 -0
  2250. package/.versions/2.2.2/skills/idea-refine/frameworks.md +99 -0
  2251. package/.versions/2.2.2/skills/idea-refine/refinement-criteria.md +113 -0
  2252. package/.versions/2.2.2/skills/idea-refine/scripts/idea-refine.sh +15 -0
  2253. package/.versions/2.2.2/skills/incremental-implementation/SKILL.md +353 -0
  2254. package/.versions/2.2.2/skills/incremental-implementation.zip +0 -0
  2255. package/.versions/2.2.2/skills/interview-me/SKILL.md +226 -0
  2256. package/.versions/2.2.2/skills/orchestration-verification/SKILL.md +182 -0
  2257. package/.versions/2.2.2/skills/peer-coms/SKILL.md +90 -0
  2258. package/.versions/2.2.2/skills/performance-optimization/SKILL.md +496 -0
  2259. package/.versions/2.2.2/skills/planning-and-task-breakdown/SKILL.md +318 -0
  2260. package/.versions/2.2.2/skills/planning-and-task-breakdown.zip +0 -0
  2261. package/.versions/2.2.2/skills/repository-ai-setup/SKILL.md +135 -0
  2262. package/.versions/2.2.2/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
  2263. package/.versions/2.2.2/skills/repository-ai-setup/references/apply-contract.md +74 -0
  2264. package/.versions/2.2.2/skills/repository-ai-setup/references/provenance-template.md +16 -0
  2265. package/.versions/2.2.2/skills/repository-ai-setup/references/setup-flow.md +108 -0
  2266. package/.versions/2.2.2/skills/repository-ai-setup/references/verify-setup.md +20 -0
  2267. package/.versions/2.2.2/skills/repository-ai-setup.zip +0 -0
  2268. package/.versions/2.2.2/skills/security-and-hardening/SKILL.md +524 -0
  2269. package/.versions/2.2.2/skills/spec-driven-development/SKILL.md +295 -0
  2270. package/.versions/2.2.2/skills/spec-driven-development.zip +0 -0
  2271. package/.versions/2.2.2/skills/using-agent-skills/SKILL.md +198 -0
  2272. package/.versions/2.2.2/vendor/agent-skills-upstream/LICENSE +21 -0
  2273. package/.versions/2.2.2/vendor/agent-skills-upstream/README.md +430 -0
  2274. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
  2275. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
  2276. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
  2277. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
  2278. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
  2279. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
  2280. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
  2281. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
  2282. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
  2283. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
  2284. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
  2285. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
  2286. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
  2287. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
  2288. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
  2289. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
  2290. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
  2291. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
  2292. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
  2293. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
  2294. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
  2295. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
  2296. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
  2297. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
  2298. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
  2299. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
  2300. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
  2301. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
  2302. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
  2303. package/.versions/2.2.2/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
  2304. package/CHANGELOG.md +62 -0
  2305. package/README.md +7 -10
  2306. package/bin/lib/set-codex-mcp.js +1 -1
  2307. package/bin/lib/validate-overrides.js +8 -1
  2308. package/docs/ARCHITECTURE.md +122 -26
  2309. package/docs/MIGRATION-agent-fleet.md +26 -5
  2310. package/docs/agent-fleet-setup.md +44 -26
  2311. package/docs/claude-code-coms-bridge.md +1 -1
  2312. package/docs/codex-local-mcp.md +29 -12
  2313. package/docs/codex-session-bridge.md +2 -2
  2314. package/docs/codex-setup.md +1 -1
  2315. package/docs/fleet-native-voice.md +10 -4
  2316. package/docs/npm-install.md +1 -1
  2317. package/docs/pi-extensions.md +13 -18
  2318. package/docs/system1-agentic.md +1 -1
  2319. package/docs/system1-file-discovery.md +2 -2
  2320. package/docs/workflows.md +24 -1
  2321. package/install-manifest.json +16 -28
  2322. package/justfile +3 -4
  2323. package/manifest-meta.json +14 -2
  2324. package/package.json +4 -2
  2325. package/skills/fleet-connect/SKILL.md +20 -16
  2326. package/skills/fleet-connect.zip +0 -0
  2327. package/skills/fleet-native-voice.zip +0 -0
  2328. package/.pi/harnesses/agent-hub/commands/work-mode.ts +0 -29
  2329. package/.pi/harnesses/agent-hub/work-mode-controls.ts +0 -56
  2330. package/agents/orchestrator.md +0 -22
@@ -0,0 +1,1633 @@
1
+ # agent-hub
2
+
3
+ The unified Agent Fleet runtime for pi, with [`coms`](../coms/README.md) **embedded**. Bare
4
+ `just fleet` loads Fleet Core and starts `agent-hub` with its one **operator**: direct coding tools
5
+ plus delegation to every installed agent, under the Verification Contract, with no standing native
6
+ roster. The former delegate-only orchestrator work mode was removed (2026-11-11). Fleet Core loads first: [`damage-control-continue`](../damage-control-continue/README.md),
7
+ [`ask-user-remote`](../ask-user-remote/README.md), STT, Compact & Continue, BTW, and the update
8
+ checker. The operator can adjust the native roster, run research, collaborate with Pi/Claude
9
+ peers, and hand the session to a visible coms peer.
10
+
11
+ > Consolidates the retired `agent-team` dispatcher into this harness and embeds the ported `coms`
12
+ > P2P layer from [`pi-vs-claude-code`](https://github.com/disler/pi-vs-claude-code) by
13
+ > [disler](https://github.com/disler) (MIT). See the
14
+ > [extension catalog](../../../docs/pi-extensions.md) and the
15
+ > [design plan](../../../docs/plans/2026-0-archive/agent-hub/).
16
+
17
+ **Optional ChatGPT client:** `just fleet --agents <roster> --peers <preset> --project <name>` can supply the live Pi session that the experimental [ChatGPT Fleet session client](https://github.com/chankov/agent-fleet/blob/main/docs/codex-session-bridge.md) selects. Hermes remains the inbound `ask_user` route.
18
+
19
+ ## System 1 task triage (active experimental; off by default)
20
+
21
+ Task triage is a separate consumer of the existing TypeSafe `jev-1.13.0` service,
22
+ not `dispatch_triage` persona advice, watchdog calibration or the spend tier.
23
+ Select experimental `system1-task-triage` with separate task-context consent;
24
+ Default/Full and `--yes` alone do not enable it. Over an existing desired file,
25
+ use `--save-desired` for permanent headless opt-in/disable. Setup proposes absent
26
+ nonsecret consumer/provider configs transactionally and never flips a human off
27
+ config or collects a key. Runtime dependencies and caller key readiness remain
28
+ separate. See [exact config and setup](../../../docs/agent-fleet-setup.md#task-triage-active-experimental-off-by-default).
29
+
30
+ An enabled consumer evaluates accepted user task input before the first model
31
+ turn, including when the dispatcher skips `set_task_tier` or watchdog is off.
32
+ Limits: 40 KiB aggregate user task/clarifications, 64 KiB state, 100 logical calls
33
+ per saved session and 2,000 ms per evaluation. Identical input/scope is cached;
34
+ new scope can require another call. Reset, compaction or resume
35
+ does not refill the allowance. No file bodies/tool outputs/environment are sent
36
+ by this consumer; sensitive/oversized input is refused, not silently truncated.
37
+
38
+ Independent predicates add review for requested security changes (p ≥0.80),
39
+ review for broad changes (p ≥0.85), and exact-action one-use confirmation for
40
+ requested potentially irreversible execution (p ≥0.80). They do not change the
41
+ tier/model/roster, increase spend or authorize effects. Review is before task
42
+ acceptance, not a blanket authoring ban. Low probability is never safety clearance.
43
+ Baseline and source additions persist through failures, disable and resume.
44
+
45
+ Missing review roles require the human `/af-agents-add code-reviewer` (or a
46
+ permitted reviewer), or `/af-agents-team` path. Planner and plan review are optional;
47
+ wide/high-risk tasks can start without them. Gaps use focused research and
48
+ additional decisions use `ask_user` grilling. Usage does not require renewal.
49
+ `/af-task-triage-waive <addition-id> <reason>` uses a correlated human answer for
50
+ one current addition; it remains waived rather than satisfied and cannot erase
51
+ baseline/other additions. `/af-task-triage-recover` performs checked process
52
+ append/readback, not JSONL editing. Pending input must be bound before dependent
53
+ effects. Direct Hub bash/edit/write confirmation is exact-call/input/cwd-bound.
54
+ It shows complete tool inputs as JSON and working directory, not merely a hash;
55
+ the **8 KiB (8192 bytes)** detail cap refuses missing, invalid, sensitive,
56
+ terminal/bidi-control, mismatched or oversized inputs **without truncation or
57
+ partial redaction**. JSON escapes preserve non-ASCII data. Sensitive-text refusal
58
+ is heuristic, not complete secret/PII detection. Inputs, cwd, task/revision,
59
+ operation and call ID are rechecked before one-use consumption. The human
60
+ question is **not local-only**: the existing ask-user local/remote human route
61
+ can carry action paths/content. Metadata-only audit does not sanitize ordinary
62
+ Pi tool/session rendering, human-route records or clipboard. Unsupported
63
+ child/coms/remote action bindings refuse that effect. Damage-control
64
+ and existing review/acceptance gates remain independent.
65
+
66
+ The full Fleet dashboard shows assessment, probabilities, active/waived additions,
67
+ effective stages and blockers even with no workers; it adds no small-strip badge.
68
+ Fleet `1` offers separately enabled memory-only capture with the unchanged
69
+ 32 KiB viewer cap; larger otherwise-valid payloads are withheld. `/af-audit`
70
+ separates logical reservations/physical attempts/unknown usage and action grant,
71
+ consumption and tool result. Provider ok, assessment applied, process complete,
72
+ a waiver and tool-result success are not independent semantic acceptance. Trace
73
+ failure is optional; authoritative process/grant/consumption persistence failure
74
+ blocks the dependent effect.
75
+
76
+ Disable with the complete remaining feature set plus `--save-desired`, then
77
+ restart/resume; the human config and old task obligations survive. Cancel current
78
+ work normally if immediate stopping is needed. Active experimental is not live
79
+ accuracy, calibration, universal remote protection or release authority.
80
+ `npm run test:task-triage` is the guarded source regression suite and is included
81
+ in `npm run test:full`; scripted fixture reviews never replace independent
82
+ semantic review.
83
+
84
+ ## Proactive turn review (experimental; off by default)
85
+
86
+ This is a **separate, per-repository, session-bound** advisory consumer of the
87
+ shared System 1 foundation, not the native watchdog's System 1 shortcut. The
88
+ human-owned `consumers.proactiveReview` in `.ai/system1.json` is never created by setup. Missing/off
89
+ means zero proactive capture, inference and feedback. Enabled `shadow` or
90
+ `advisory` requires explicit include scope; `remoteContext: "disabled"` is
91
+ local-only (reviewed deterministic validators, no semantic provider check),
92
+ while `selected-excerpts` additionally permits bounded source/assistant
93
+ excerpts to the already configured System 1 provider when ready. Shadow only
94
+ observes; advisory can deliver ≤3 current findings at the same owner's next
95
+ **natural** context hook (≤1,500 characters, once per finding revision).
96
+ There is no autonomous turn, fix, termination, permission, or acceptance gate;
97
+ the existing watchdog retains independent authority. Never interpret a
98
+ suspicion, uncovered rule, unavailable model, or lack of findings as verified
99
+ correctness.
100
+
101
+ Hub/direct and supported native Pi specialist turns are instrumented; nested
102
+ delegates, research helpers, coms peers and Hermes are not. Source and explicit
103
+ plan/rules are bound to the session's immutable snapshot; delivery checks
104
+ current source hashes and the session-bound rule revision. Rule discovery is read-only, source-bound and
105
+ bounded; missing/partial/unsupported coverage is visible rather than passed.
106
+ Editing rules during a session does **not** reload them: restart to adopt edits.
107
+ Bounded private snapshots support local validated evidence readback, while
108
+ operator history, `/af-hub-report` and `/af-audit` expose metadata-only
109
+ projections. Feedback never creates a new Pi turn. Native delivery without a
110
+ receipt remains unknown; rare async-close errors remain a nonblocking risk.
111
+ The tested native integration uses repo-local Pi 0.84.2; Node 18 covers only
112
+ extracted-package CLI/doctor compatibility, not the TypeScript observer.
113
+
114
+ See [config, limits, exact explicit human-label schema, offline installed
115
+ runbook, rollback and separately consented pilot](../../../docs/agent-fleet-setup.md#proactive-turn-review-experimental).
116
+ Use `/af-hub-report` and `/af-audit` without labels for read-only session
117
+ status; `--labels /absolute/path/to/CURRENT_SESSION/artifacts/labels.json`
118
+ requires an explicitly provided file in the current session, never auto-loads
119
+ labels and does not transmit payloads. Only retained findings expose label
120
+ keys in the local evidence view (Fleet Dashboard `p` → `n` → `e`, or specialist
121
+ detail `n` → `e`); unavailable evidence shows no template. Checked-clear
122
+ units have no operator-accessible keys, so human miss/true-negative labeling
123
+ and full recall evaluation are not operational; absent labels remain unknown.
124
+ Only the project's `rules:` roots are catalogued; an inactive session binding
125
+ proposal is not installed configuration or a loaded skill. C5 visibility and
126
+ the earlier C6 offline/package review do not constitute final post-fix review,
127
+ a live pilot or C7 acceptance. No release, deployment, repo config edit or
128
+ remote request is authorized by this README. Roll back with the complete
129
+ `{"version":1,"mode":"off"}` config and restart; cancel current work if
130
+ immediate stopping is necessary, without destructive artifact cleanup.
131
+
132
+ ## Work Mode, roster, and topology
133
+
134
+ These are independent runtime axes:
135
+
136
+ - **One operator** — keeps `read`, `bash`, `edit`, `write`, approved extension tools, and the
137
+ delegation tools; `dispatch_triage` is listed only when that consumer can evaluate, and the
138
+ `filesystem` inspection tool stays profile-gated (`assist.deterministic-tools`). Raw Herdr panes are
139
+ for auxiliary processes such as watchers or servers. `--work-mode` is deprecated and ignored.
140
+ - **Native roster** — local headless Pi specialists from `.pi/agents/teams.yaml`. Bare Fleet starts
141
+ empty; select one with `--agents frontend` or add one live with `/af-agents-add code-reviewer`.
142
+ - **Peer topology** — separate long-lived Pi or Claude Code processes from `peers.yaml`, connected
143
+ by coms and optionally placed in sibling Herdr panes. `--peers frontend` selects a standing
144
+ preset; `--herdr` creates a Hub-only workspace through the empty `base` preset.
145
+ Switching from Operator to Orchestrator with no active agents automatically loads the first valid
146
+ team in configuration order (`default` in the shipped configuration), skipping empty teams and teams
147
+ with missing personas. Existing agents are kept. If no valid team is available, the switch is refused
148
+ with a warning. The selected team is saved in the session just like a manual team selection.
149
+ Child deadlines, nested delegation, and Verification Contract rigor follow the **task tier**, not
150
+ Work Mode. Dispatch and research counts are usage, never a per-turn allowance.
151
+
152
+ All Hub slash commands, including `/af-handoff`, are always registered. A command whose
153
+ runtime capability is unavailable refuses with remediation rather than disappearing. `--no-coms`
154
+ disables only embedded coms; direct operator work and native dispatch remain available.
155
+
156
+ ### Automatic capability surfaces
157
+
158
+ Capability packs load **automatically** from the current request, task tier, pending work,
159
+ and runtime state; there is no activation command. `core` is always present, and so is `fleet`:
160
+ the operator always holds `dispatch_agent`, `spawn_research`, `poll_panel`, `set_task_tier` and
161
+ `team_adjust`, because whether to delegate is its judgment rather than a keyword match on the
162
+ request (reason `operator-default`, or a more specific one such as `explicit-fleet`). Acceptance
163
+ work, an existing coms peer, a Herdr pane/watcher request, and explicit or imminent compaction
164
+ respectively add `verification`, `peer`, `workspace`, and `compaction`. A ready coms or Herdr
165
+ runtime is only **readiness**, not intent: its tools and policy remain model-inactive until requested.
166
+
167
+ ### Operator delegation
168
+
169
+ The operator prompt lists **every installed agent** (research and catalog-only personas excluded),
170
+ marks those outside the active team, and gives each one's model. Dispatching an installed agent
171
+ that is not in the active team adds it automatically and notifies the human, so backend policy and
172
+ session reuse keep working per member; an agent that is not installed is refused with the installed
173
+ list and, for a required process role, the human install step. A `## When to delegate` section
174
+ tells the operator to delegate research by default and in parallel, to make small changes itself,
175
+ to get non-trivial changes reviewed by a separate agent, and to poll the panel for decisions.
176
+ Capped model providers (by default `omlx/` and `custom/`, overridable with
177
+ `AGENT_HUB_PROVIDER_LIMITS`) appear with their limits; slots in use appear in the task state.
178
+
179
+ ### Parallel writers
180
+
181
+ Writes run one at a time by default. A writer is any dispatch whose agent has `write`, `edit` or
182
+ `bash`, so a bash-capable reviewer is a writer too. While a writer runs, another one starts only when
183
+ **both** were dispatched with `parallel: true`:
184
+
185
+ - `parallel: true` requires a scope of exact existing files or directories (no globs, no
186
+ `scope_mode: create`) and the native backend; `auto` is forced native and `coms` is refused.
187
+ - The Hub registers each parallel writer and its native launch runs under the OS write sandbox
188
+ (bubblewrap on Linux, Seatbelt on macOS) confined to its scope plus its runtime, artifact and temp
189
+ roots, whatever the model profile says. No sandbox means a fail-closed refusal, never an
190
+ unsandboxed parallel child. An isolated writer with an empty scope cannot write to the repository.
191
+ - A new writer is refused before anything starts or is charged when a running writer is not
192
+ isolated (`writer_active_unisolated`), when the new one is not parallel (`writer_active`), or when
193
+ the scopes overlap (`scope_overlap`). Overlap is conservative: a glob anchor or a containing
194
+ directory counts as overlap.
195
+ - A persona runs one dispatch at a time. A second `parallel: true` dispatch to a persona that is
196
+ already writing runs as its own instance, `builder--p2` (up to `--p16`), with a separate session
197
+ and executor. The instance keeps the base persona's prompt, tools, current model and thinking, its
198
+ review meaning and its tier gates.
199
+ - Real Pi takes `<file>.lock` directories beside `trust.json`, `auth.json` and `settings.json` in its
200
+ agent directory and beside the project `.pi/settings.json`. The sandbox therefore lets a child
201
+ create new entries in those two directories, keeps every existing entry there read-only (code,
202
+ extensions, `AGENTS.md`, settings), and leaves only `auth.json`, `models-store.json` and the crash
203
+ logs writable.
204
+ - For an isolated writer, only observed changes inside its own scope are attributed to it; changes
205
+ elsewhere during its run are listed in the result and not attributed. Its runtime test evidence
206
+ stays non-exclusive, so the operator runs the full checks once no writer is active.
207
+
208
+ Shared files outside every scope (package.json, lock files, generated manifests, shared indexes) are
209
+ the operator's to edit after the writers finish. Writers never commit.
210
+
211
+ **Area and final review.** An area review runs as soon as its builder finishes, with
212
+ `parallel: true` and that area as scope, beside builders still at work. It is evidence for its area
213
+ only: a review closes the task's review stage solely when no other writer is running, and its result
214
+ says so (`Area review: …`). The task's review must also cover every changed file at the current
215
+ revision, so any later change reopens it. The operator therefore ends with one final review of the
216
+ whole change once no writer runs, passing the area returns as artifacts. With a single builder that
217
+ one review is both.
218
+
219
+ ### Task brief
220
+
221
+ Agents share facts through files, not through prompts. Each task has one brief,
222
+ `artifacts/briefs/task-<taskId>.md` under the session artifact root, and every `dispatch_agent`,
223
+ `spawn_research` and coms dispatch receives it as an input artifact. Before each delegation the Hub
224
+ regenerates its runtime part: tier, risk and scope, the assertion ledger with sources, and the
225
+ delegations admitted in this task with their scope and current status (refused dispatches are not
226
+ recorded). The operator keeps the **Operator notes** section, below a marker line, current with
227
+ decisions, constraints and open questions; regeneration preserves it, and delegated agents only read
228
+ the file. The brief is a record, never a gate: a failure to write it does not block delegation.
229
+
230
+ Briefs are working files. A new task's brief replaces the previous task's, and session start removes
231
+ `briefs/` before archiving the rest of the artifact root into `runs/<runId>/` as before. Returns,
232
+ reviews and evidence keep their existing retention. Every dispatch result already names the full
233
+ output path, so the operator reads it instead of dispatching again.
234
+
235
+ Ambiguous peer or workspace intent provisionally exposes the smallest relevant pack
236
+ and records its reason in the state capsule and `/af-context`. Before that pack's first side effect,
237
+ the Hub asks one focused `ask_user` confirmation. Confirming promotes it for the task; reject or
238
+ cancel removes it and leaves no message, child, or pane behind. Active task packs persist through
239
+ follow-up turns so a workflow does not lose tools. They shrink only through
240
+ `set_task_tier(new_task: true)` (apart from the operator's fleet and pending-operation leases), never
241
+ merely because the next message sounds different. Compaction is the transient exception:
242
+ a task-triage assessment refresh preserves the current input's already-resolved explicit
243
+ compaction intent without re-reading task text or promoting declined packs. The next
244
+ ordinary input/reset/restore clears that explicit intent; context-pressure and pending-operation
245
+ leases remain independent. Showing `request_compaction` does not itself execute compaction.
246
+
247
+ `/af-context` separates stable replacement-prompt cost from the volatile state capsule and active
248
+ schemas. Inactive and ready-but-inactive packs cost zero model-visible characters. Provider totals,
249
+ including cache read/write when Pi supplies them, remain authoritative; deterministic character
250
+ figures are regression diagnostics and never invent provider usage.
251
+
252
+ ### Context-pressure and resume recovery
253
+
254
+ Pre-turn surface cost and live conversation pressure are different budgets. `/af-context` separates
255
+ the stable replacement prompt, volatile state capsule, and active tool schemas; user and assistant
256
+ messages plus tool results then accumulate during a turn. A long tool loop can therefore reach the
257
+ model window even while every standing prompt ceiling remains green.
258
+
259
+ The Hub samples live provider usage and projects each finalized tool result before another model
260
+ request:
261
+
262
+ - Below **60%**, pressure is `normal`. Automatic semantic compaction never starts below **50%**.
263
+ - At **60%**, pressure becomes `warning`; the compact recovery surface is exposed transiently and
264
+ ordinary work may continue.
265
+ - At **70%**, the Hub aborts the next same-turn provider request, waits until the tool result and
266
+ aborted turn are persisted, and starts one automatic Pi compaction. Only one recovery may run at
267
+ a time. Input received while startup or same-turn recovery is active is retained in memory,
268
+ including images, then replayed once after compaction succeeds.
269
+
270
+ Automatic compaction re-arms when measured usage falls below **60%**, or after the history grows by
271
+ 10% of the window over the first measurement after a compaction, so a small window whose compacted
272
+ baseline stays above 60% is not left waiting. At **80%**, further model work is blocked after a
273
+ failed recovery, or when even the compacted baseline is at or above 80%. A compacted baseline
274
+ between 70% and 80% warns once and keeps working until growth re-arms compaction. A single large
275
+ tool result can overshoot before its result is observed.
276
+
277
+ The status line and `/af-context` show the pressure phase, measured usage, both thresholds, episode,
278
+ and last recovery outcome. Persisted pressure diagnostics contain numeric/enumerated metadata only;
279
+ they never include prompts, tool output, credentials, error bodies, or compaction summaries.
280
+
281
+ If automatic recovery reports `failed`, the queued input remains retained. Use Pi's built-in manual
282
+ fallback, or switch to a model with a larger context window:
283
+
284
+ ```text
285
+ /compact Preserve the current goal, decisions, assertions, pending operations, blockers, and next step.
286
+ ```
287
+
288
+ The Hub persists only the selected team name and resolves it again against the current
289
+ `.pi/agents/teams.yaml` and persona files. A missing, renamed, empty, or stale team is reported and
290
+ the session continues without it; select a current team with `/af-agents-team` or restart with
291
+ `just fleet --agents <name>` (`--agent-team <name>` for a direct Pi launch). A session saved in the
292
+ removed orchestrator work mode continues as the operator with a one-time notice.
293
+
294
+ The Pi session JSONL under `~/.pi/agent/sessions/` is the authoritative append-only conversation and
295
+ recovery record. Context overflow or a stale roster does **not** by itself mean that file is corrupt.
296
+ Inspect it through `/session`, resume it through `/resume` or Pi's session flags, and recover through
297
+ compaction or the commands above. Never edit, truncate, reorder, or synthesize JSONL entries to
298
+ recover a session.
299
+
300
+ ## What it does
301
+
302
+ The whole dispatch loop, end to end:
303
+
304
+ ```mermaid
305
+ sequenceDiagram
306
+ autonumber
307
+ actor U as You
308
+ participant H as Hub (dispatcher)
309
+ participant S as Specialist (e.g. builder)
310
+ participant R as Research helper
311
+ participant D as Disk (.pi/agent-sessions/)
312
+
313
+ U->>H: task
314
+ H->>D: set_assertions — Verification Contract persisted
315
+ H->>S: dispatch_agent (task + advisory scope)
316
+ S-->>H: NEEDS_RESEARCH: how does X work?
317
+ H->>R: spawn_research (researcher / deep-researcher)
318
+ R->>D: write findings file
319
+ R-->>H: one-line notice + path
320
+ H->>S: resume with file paths — never raw findings
321
+ S-->>H: structured return + named evidence
322
+ H->>D: update_assertion
323
+ H-->>U: Assertions: 2✓ 1○ 1✗ · open: A4
324
+ ```
325
+
326
+ Every borrowed idea from another harness passes one test before it lands: *does this persistently enter the dispatcher context?* If yes, it goes to disk or a one-line status instead.
327
+
328
+ ### Avoiding repeated coordination
329
+
330
+ - Exact-action confirmation and identical-dialog memory are shared across isolated
331
+ extension loaders. Decisions stay bound to the task/input revision, reset at
332
+ session boundaries and cannot be populated by a late answer from an older task.
333
+ Runtime effects still require and consume their own one-use authorization.
334
+ - `dispatch_agent` reuses successful review evidence only for the same reviewer,
335
+ task, requirements, covered scope, input artifacts and unchanged reviewed files.
336
+ This includes `security-auditor`. The reply reports `review_reused`, retains the
337
+ original evidence path and starts no child. Use `review_reason` for a fresh focus;
338
+ changed accepted input, relevant files/requirements, missing evidence, blocking findings or unresolved decisions
339
+ require fresh review. Test and acceptance evidence remain separate.
340
+ - Older successful tool bodies are projected to compact references for the model.
341
+ Full originals remain in the session journal and private
342
+ `artifacts/context-history/` files. Failures, questions, images, the latest tool
343
+ batch and recent inspection working pages remain complete. Current sourced
344
+ requirements/critical conditions stay visible in the task capsule. New projections
345
+ apply in batches of at least 32 KiB and an earlier projection is reused verbatim
346
+ while its original file is unchanged, so the projected prefix moves in steps instead
347
+ of on every turn. This reduces repeated history; it makes no provider-token or
348
+ latency guarantee.
349
+ - Plain `continue`/`resume` (including Bulgarian `продължи`, meaning “continue”) retains the accepted task input. An identical
350
+ `set_task_tier` declaration returns unchanged without another assessment or
351
+ process write. A changed request still requires the existing task binding.
352
+
353
+ `agent-hub` is the supported home for the former standalone dispatcher features:
354
+
355
+ - **Dispatcher grid** — a live dashboard of the active, dynamically adjustable native roster from `.pi/agents/teams.yaml`.
356
+ - **Context budget** — `/af-context` opens a separate read-only full-screen diagnostic. It shows provider totals and cache fields beside named, metadata-only estimates; `loaded-excluded` Pi inputs are discovered but contribute zero to the replacement Hub prompt. Each specialist, research helper, delegate, and peer remains a separate context plane with its own model window. Component token estimates are heuristic/provider-scaled, never exact claims; unavailable peer/provider detail is labelled explicitly and raw prompts, schemas, and conversation text are never retained or displayed.
357
+ - **Fleet config screen** — `/af-config [tab]` or **`Alt+,`** opens a read-only full-screen view of what is configured and what is active: desired state (`.ai/agent-fleet.json`), the install record with recorded-hash vs on-disk checks, overrides sections and the values the Hub parsed at start, AI-state provenance, System 1, STT, fleet YAML (teams, peers with LIVE marks, dispatch policy, voices), damage-control rules, and the session runtime. It reads files and compares hashes only; installer evaluation (item states, feature availability, conflicts) stays with `agent-fleet verify`/`setup`, and the screen writes nothing. See [docs/agent-fleet-setup.md](../../../docs/agent-fleet-setup.md#viewing-configuration-from-a-live-session).
358
+ - **Specialist delegation** — `dispatch_agent` sends writable tasks to configured specialists.
359
+ - **Research helpers** — the dispatcher invokes `spawn_research` automatically for read-only
360
+ investigation; specialists can trigger the separate automatic `NEEDS_RESEARCH:` pipe described
361
+ below. Managed research children use a replacement read-only prompt with `--no-skills` and
362
+ `--no-context-files`; managed specialists receive a selected context manifest (persona, applicable
363
+ policy paths, and named skill paths) rather than inherited global skill/context loading. Two
364
+ `kind: research` personas ship by default: `researcher` (`gpt-6-luna`, low thinking) for simple
365
+ reads and `deep-researcher` (`grok-4.7`, medium thinking) for hard, cross-cutting investigation.
366
+ The dispatcher routes by persona; each persona's model + thinking level is shown in its catalog.
367
+ Live helpers appear in the Fleet Dashboard (`Alt+A`) and bounded fleet widget while they are
368
+ running. On every terminal outcome (success, error, timeout, spawn/preflight failure, or operator
369
+ kill) the live `rN` handle is removed immediately.
370
+ Session, transcript, and `findings/*.md` files remain on disk for the requester, and
371
+ `/af-agents-history` keeps the audit/timing record. Finished helpers cannot be restarted; a new
372
+ request always creates a fresh helper. `rN` handles are never reused during a Hub session.
373
+ - **Human handoff path** — `ask_user` is exposed by the `ask-user-remote` wrapper (capturing stock
374
+ `pi-ask-user` and optionally racing a `user-remote` bridge), so specialists can bubble decisions
375
+ back through the dispatcher.
376
+ - **Auto-research pipe (`NEEDS_RESEARCH:`)** — a specialist that lacks information pauses by ending
377
+ its turn with `NEEDS_RESEARCH: <question>` lines (mirror of the `ASK_USER:` protocol). The hub
378
+ intercepts them **in code**: it fans out read-only research helpers (max 4 questions per pause,
379
+ 2 pauses per dispatch), writes each helper's findings to `.pi/agent-sessions/findings/*.md`, and
380
+ resumes the specialist's session with the file paths. The dispatcher LLM sees only a one-line
381
+ notice — raw findings never enter its context. Findings files are wiped at session start.
382
+ - **Verification Contract (assertion ledger)** — the dispatcher owns a ledger of checkable
383
+ acceptance assertions built from the request *before* any builder runs, so a clearly stated
384
+ requirement is never silently dropped. `set_assertions` records the numbered, tagged assertions
385
+ (`test` | `runtime-ui` | `code-grep` | `manual`, one pass condition each, plus a required
386
+ `source` naming where the requirement comes from) and rebuilds the whole
387
+ ledger on a "wrong again" regression reset; `update_assertion` marks each one proven (named
388
+ evidence required), unproven, or failed after a verification gate; `get_assertions` reads the
389
+ full ledger (ids, tags, pass conditions, evidence) back. The hub persists the ledger to
390
+ `.pi/agent-sessions/assertions.json` (wiped at session start like `findings/`) and renders a
391
+ one-line status (`Assertions: 2✓ 1○ 1✗ · open: A4`) so the contract survives compaction without
392
+ re-flooding the dispatcher LLM context — after a compaction the dispatcher calls `get_assertions`
393
+ to recover the full text the status line omits. The operator drives it — a deep-researcher
394
+ parity inventory for "behave like" requests, runtime proof for UI/visibility assertions, the
395
+ regression reset on a re-ask — per
396
+ [`orchestration-verification`](../../../skills/orchestration-verification/SKILL.md). The hub also
397
+ machine-parses each assertion-carrying specialist's structured return, writes the full raw output
398
+ to `.pi/agent-sessions/sessions/<sessionId>/artifacts/returns/<agentKey>-<dispatchId>.md`, surfaces only a compact
399
+ `details.structuredReturn` digest plus `details.returnPath`, and marks contract notices such as
400
+ missing assertion ids or evidence-less `assertions_proven` entries (demoted to unproven in the
401
+ tool text). `details.fullOutput` remains for `/af-zoom`/compatibility, but dispatcher-visible text is
402
+ digest + path oriented. `update_assertion(status: "proven")` validates evidence by assertion tag:
403
+ test evidence needs a command/test and outcome, `code-grep` needs pattern plus result sample,
404
+ manual needs user/`ask_user` confirmation, and `runtime-ui` needs an existing artifact path under
405
+ `.pi/agent-sessions/artifacts/evidence/`. **Advisory by design** (PRD open question 2): status is
406
+ surfaced and "proven" requires named evidence, but a dispatch is never hard-refused on an unproven
407
+ assertion — code-enforcement is the Checkpoint A decision. Two contract rules ARE enforced at the
408
+ tool: a batch with any sourceless assertion is refused with the offending ids named (a specialist
409
+ told to prove `A9` must be able to read its origin instead of spending a dispatch and an ASK_USER
410
+ cycle asking where `A9` was defined), and a batch over **8** open assertions is accepted with a
411
+ warning suggesting the split — declare the batch the next dispatches actually prove, and
412
+ `set_assertions` the next one when it starts.
413
+ - **Artifact bus** — session handoffs live under `.pi/agent-sessions/artifacts/` with conventional
414
+ `returns/`, `failures/`, `plans/`, `reviews/`, `inventories/`, and `evidence/` subdirectories, all
415
+ **archived** into an immutable `runs/<runId>/` namespace at session start rather than wiped (see
416
+ [Immutable per-run artifact namespaces](#immutable-per-run-artifact-namespaces-run-namespacejs)),
417
+ so a later session can never overwrite an earlier one's returns. `failures/` is separate on purpose: a run
418
+ that errored or timed out produced no specialist result, so its output goes there and the dispatch
419
+ result names it a **delivery failure** carrying no assertion evidence. Filing a 142-byte coms error
420
+ stub as `returns/code-reviewer-run4.md` once cost a 103-second dispatch investigating a review that
421
+ had in fact succeeded — only its reply was lost. `dispatch_agent` and `spawn_research` accept optional
422
+ `artifacts: string[]` paths (repo-relative or session-artifact-relative); the hub validates that
423
+ they stay inside the repo/session roots and injects only the path plus first heading/one-line
424
+ preview, never file bodies. Document-producing specialists are instructed to write plans, reviews,
425
+ inventories, and reports to the real session path
426
+ `.pi/agent-sessions/artifacts/<kind>/<agentKey>-run<N>.md` when their tools allow it, then report/pass
427
+ the artifact-relative handoff path `artifacts/<kind>/<agentKey>-run<N>.md`, finish with that path plus
428
+ a ≤10-line digest, and still include structured returns when assertions are carried. Repo-root
429
+ `./artifacts/...` files are not session artifacts. Planner's existing PLAN_FILE behavior is preserved;
430
+ the artifact path is an additional handoff channel.
431
+ - **Dispatch scope advisory** — `dispatch_agent` accepts optional `scope: string[]` for writable
432
+ builder-style runs. The operator should derive these globs from the plan task's file list,
433
+ and skip scope for exploratory/reconnaissance work where the right files are not known yet. The
434
+ hub snapshots git status before the writable dispatch, diffs after the whole tool call (including
435
+ auto-research resumes), and reports out-of-scope paths in `details.scopeViolations` plus a ⚠ text
436
+ notice. This is advisory only: the hub never blocks completion, reverts files, or escalates
437
+ automatically. Known limitation: concurrent writable dispatches can only be attributed
438
+ approximately, so overlapping runs are flagged in the notice.
439
+ - **Agent controls** — `/af-zoom` inspects a live agent timeline; `/af-agents-history` replays the run as a
440
+ timeline (operator turns, dispatches, research helpers) with per-agent durations, parallel-run
441
+ markers, and a grand total; kill/restart controls manage running child agents; per-agent `model:`
442
+ fields select models from team config. `/af-agents-kill <name|rN|all>` SIGTERMs a specialist (keeping
443
+ its standing card) or kills a currently running research helper (`all` clears every live helper).
444
+ `/af-agents-restart <name>` re-runs a specialist's last task fresh; research helpers cannot be
445
+ restarted. `/af-zoom <name|rN>` opens a running helper through the Fleet data model. Research spawning
446
+ and follow-up reconnaissance are automated through `spawn_research` and `NEEDS_RESEARCH:`; there are
447
+ no dedicated research lifecycle slash commands.
448
+ Restartable team specialists at or above 70% context render
449
+ their context percentage with a warning marker/color in the Fleet Dashboard, and their next
450
+ `dispatch_agent` result adds a `/af-agents-restart <persona>` hint. Research helpers are not warned,
451
+ and the hub never restarts specialists automatically.
452
+ - **Model switching** — a persona's frontmatter `models:` list declares the models it may switch to
453
+ (the default `model:` is implicitly a candidate). `/af-agent-model <persona>` picks from that list;
454
+ the choice lasts for the session and takes effect on the persona's next dispatch
455
+ (`/af-agents-restart <persona>` applies it immediately). The dot form
456
+ `/af-agent-model <persona>.<role>` switches a delegate sub-role's model instead — its candidates are
457
+ the role's declared default plus the parent persona's own candidate list; the switch is applied
458
+ when the parent is next dispatched (it lands in the serialized delegate config, so nested
459
+ children inherit it). `/af-models [profile]` applies a named profile
460
+ from `.pi/agents/model-profiles.yaml` — a macro over the same declared candidates, validated at
461
+ session start (a profile with any entry outside a persona's candidates is dropped whole, with an
462
+ error). This is the legacy flat format. Version 2 profiles also set all child roles, thinking,
463
+ dispatcher, watchdog/extraction, poll/debate and routing from one selection; they declare their
464
+ own models without project candidate overrides. See [complete model profiles](../../../docs/agent-fleet-setup.md#complete-model-profiles). Those
465
+ declared-candidate commands stay within their lists; Fleet Detail and the session-wide
466
+ substitution target picker intentionally use Pi's currently available registry. When an effective project or session override
467
+ fails with a model/provider error or aborted request before work begins (including local-model
468
+ memory-limit failures), the hub retries once with the model originally declared in the persona
469
+ frontmatter. For **write-capable** runs this is pre-work only: no fallback occurs after text
470
+ output, a tool call, cancellation, timeout, drift stop, or a Pi process-spawn failure, avoiding
471
+ duplicate writes. **Read-only children and research helpers** (tools limited to
472
+ `read,grep,find,ls`) also retry once when the provider fails *mid-run* — re-running a reader
473
+ repeats nothing, and those are exactly the children that exist to protect their parent's context,
474
+ so losing one to a local-endpoint OOM halfway through discards work for no safety gain. A
475
+ terminated run (watchdog, deadline, cancellation) never retries either way: that is a verdict on
476
+ the work, not a provider outage. The failed attempt is removed from the child session before retry. Per project,
477
+ `model.<persona>:` / `models.<persona>:` keys under `## agent-hub` in
478
+ `.ai/agent-fleet-overrides.md` replace a persona's default model / candidate list.
479
+ Research personas (`researcher` / `deep-researcher`, `kind: research`) are switchable the same
480
+ way — `/af-agent-model <persona>` and `/af-agent-model-thinking <persona>` accept them alongside team
481
+ members. Since research helpers are spawned fresh through `spawn_research`, the switch lands on
482
+ their next spawn (there is no running instance to `/af-agents-restart`).
483
+ `/af-agent-models-substitute [<source> <target>]` saves a runtime source → target mapping for
484
+ the current session. With no arguments it opens the same two-step visual picker as `m` in Fleet
485
+ Dashboard: first choose a source from every model configured across persona defaults, candidates,
486
+ fallbacks, and delegate sub-roles; then choose a target from Pi's currently available models. The
487
+ two-argument form performs the same operation directly. The mapping is resolved when work is
488
+ spawned rather than eagerly copied into today's roster, so team members, research personas, and
489
+ delegate sub-roles activated or created later in the session inherit it automatically. Existing
490
+ runs are not interrupted, and all mappings reset at the next `session_start`.
491
+ - **Thinking levels** — each persona's frontmatter `thinking:` sets its pi `--thinking`
492
+ reasoning effort (`off` · `minimal` · `low` · `medium` · `high` · `xhigh`). `/af-agent-model-thinking
493
+ <persona>` switches it among those six levels for the session; like a model switch it takes effect
494
+ on the persona's next dispatch (`/af-agents-restart <persona>` applies it now), and selecting the
495
+ frontmatter default clears the override. The level shows as a short badge after the model
496
+ everywhere a model is rendered — `gpt-5.5 (xh)` in the dashboard (`min`/`low`/`med`/`hi`/`xh`; `off` shows no badge). Per project, a `thinking.<persona>:` key
497
+ under `## agent-hub` in `.ai/agent-fleet-overrides.md` replaces a persona's default level.
498
+ - **Mid-turn delegation (`delegate` tool)** — a persona that declares a `subagents:` map in its
499
+ frontmatter (`role: { model, tools? }` entries, or an indented `model:`/`tools:` block per role)
500
+ gets a real mid-turn `delegate(role, instruction, context?, allow_write?)` tool, injected as an
501
+ extra `-e delegate.ts` extension into its spawned process (the `delegate` tool name is appended to
502
+ its `--tools` allowlist — pi filters extension tools too). Only declared roles are spawnable, on
503
+ their declared models — model choice is configuration, never the child LLM's. Budgets are readable
504
+ refusals: at most 4 delegate children per dispatch, tree-wide, and a per-persona `delegate_depth:`
505
+ budget capped at 1 (the default). Children spawned with remaining depth 0 do not receive the
506
+ `delegate` extension/tool. Write safety: children run read-only (`read,grep,find,ls`) unless a
507
+ SINGLE live child gets `allow_write: true`, which inherits the parent's tools intersected with the
508
+ role's `tools:` cap; if a declared role cap leaves no available tools, delegation is refused.
509
+ Concurrent children are always forced read-only. Children stream timeline events through
510
+ `.pi/agent-sessions/delegations/<persona>/events.jsonl`; the hub tails it and renders nested rows
511
+ under the parent's card (child id, model, tokens, status),
512
+ each openable with `/af-zoom <child-id>`. Each child also writes its full final output to
513
+ `.pi/agent-sessions/delegations/<persona>/results/<childId>.md`; the parent receives only status,
514
+ a required final `DIGEST:` section (≤30 lines with path:line citations), and the result-file path.
515
+ If a child omits `DIGEST:`, the parent gets the first ~30 lines plus a no-DIGEST warning and the
516
+ result path. Spend rolls up: every child row and the parent's subtree
517
+ total show tokens, and a session-wide `Δ delegated` counter sits in the status line.
518
+ `/af-agents-kill` on the parent SIGTERMs its whole process group, so the delegation tree dies with
519
+ it. `context: fork` is accepted but treated as a summary brief in v1. Per project,
520
+ `subagents.<persona>.<role>:` and `delegate-depth.<persona>:` keys under `## agent-hub` in
521
+ `.ai/agent-fleet-overrides.md` replace individual sub-roles / the depth budget. An overridden
522
+ role retains its frontmatter model as a one-shot fallback under the same pre-work-only safety
523
+ rule; delegate cards and results show the model that ultimately ran. Six personas ship with
524
+ declared sub-roles, on a three-tier OpenAI model ladder — `gpt-6-luna` for
525
+ recon/grep sweeps, `gpt-5.4` for analysis sweeps, the `gpt-5.5` (or opus) parent reserved for
526
+ synthesis and verdicts:
527
+ - `code-reviewer` — `preflight`+`docs` (gpt-6-luna), `quality`+`perf` (gpt-5.4); its first delegate
528
+ call is always `preflight`, which studies the project rules and the files under review and
529
+ returns a summary that drives the rest of the fan-out. Deep security review is not a
530
+ sub-role — it belongs to the separate `security-auditor` persona, which the reviewer
531
+ recommends dispatching when it spots deeper risk.
532
+ - `planner` — `scout`+`rules` (gpt-6-luna) fan out before the plan is drafted; `risk` (gpt-5.4)
533
+ optionally challenges the draft breakdown.
534
+ - `plan-reviewer` — `feasibility` (gpt-5.4) checks plan claims against the actual codebase;
535
+ `deps` (gpt-6-luna) verifies dependency ordering and file overlap. No preflight — the plan is
536
+ the map.
537
+ - `security-auditor` — solo `recon` (gpt-6-luna) maps the attack surface first, then
538
+ `input-sweep` (gpt-5.4) and `secrets-sweep` (gpt-6-luna) fan out; exploit reasoning stays with
539
+ the parent.
540
+ - `builder` — `recon` (gpt-6-luna) maps call sites before edits; `verifier` (gpt-6-luna, the one
541
+ `allow_write: true` child) runs the test suite after them. Implementation is never
542
+ delegated.
543
+ - `test-engineer` — `coverage-scout`+`conventions` (gpt-6-luna) inventory gaps and test patterns;
544
+ test writing is never delegated.
545
+ - **Default damage-control guardrails** — `just fleet` and `just fleet --no-coms` load the
546
+ `damage-control-continue` harness before `agent-hub`, so dispatcher tool calls are checked against
547
+ `.pi/damage-control-rules.yaml` and a blocked call feeds back instead of aborting the turn. A
548
+ guardrail is also re-loaded into every native specialist, research helper, and nested delegate
549
+ (see [Safety scope](#safety-scope)). Missing safety plumbing refuses child dispatch.
550
+ - **Embedded coms** — the dispatcher is a discoverable peer on the local machine. Multiple
551
+ `agent-hub` (or plain `coms`) sessions on the same box find each other through per-project registry
552
+ files and exchange messages over a unix socket (named pipe on Windows).
553
+
554
+ `/af-zoom <name|rN|child-id>` opens the selected agent's full-screen stream detail. For fleet rows,
555
+ it uses the [Fleet Dashboard detail controls](#fleet-dashboard-and-detail); a directly addressed
556
+ fallback stream keeps the legacy zoom controls. Both overlays size to the terminal.
557
+
558
+ ### `/af-agents-history`
559
+
560
+ `/af-agents-history` (or **`h`** while the Fleet Dashboard is open) opens a read-only overlay (same chrome as `/af-zoom`) that replays the session as an
561
+ execution **tree**:
562
+
563
+ - **Orchestrator turns** — each dispatcher turn that actually dispatched something is a depth-0 row
564
+ labelled `(dispatcher)`. Chat-only turns add no rows.
565
+ - **Dispatched specialists and research helpers** nest one level beneath the turn that launched them;
566
+ **delegate sub-sub-agents** nest one level deeper still under the specialist that spawned them — in
567
+ start order at every level.
568
+ - **Parallel runs** — siblings whose run times overlap are marked with a `│→` connector, so a
569
+ concurrent fan-out reads as a visually grouped block.
570
+ - **Real-work durations** — each row shows that node's *own* work: its span **minus the time it spent
571
+ awaiting children**. A dispatcher blocked on six concurrent agents is credited only for the time it
572
+ actually worked between/around the awaits, never for the await itself — so the same wall-clock isn't
573
+ counted twice up the tree. The same subtraction applies to a specialist awaiting its own delegate
574
+ children. Format: plain seconds under a minute (`42sec`), `m:ss` above it (`10:20min` for 620s).
575
+ Running rows tick live (the overlay re-renders once a second) and a new dispatch appears the instant
576
+ it starts.
577
+ - **Footer** shows `Σ real work <total> · <n> runs (agents <a> + dispatchers <d>)` — the real work of
578
+ *everyone*: the dispatched specialists' and research helpers' full runtime (`agents`) plus each
579
+ dispatcher turn's own work (`dispatchers` — its span minus the time it awaited agents **and** the
580
+ human via `ask_user`). Wall-clock is deliberately **not** shown: it would fold in the idle gaps
581
+ while you're away between turns, and `ask_user` waits are subtracted for the same reason.
582
+
583
+ Navigate with `↑/↓`, press `G` to jump back to the live tail, and `Q`/`Esc` to close. The log resets
584
+ on each session start.
585
+
586
+ The default agent view includes a collapsed fleet summary below the editor. When the installed public
587
+ SDK editor contract can be positively verified, an empty focused editor can activate its bounded
588
+ inspection window with the registered `Alt+I` shortcut; the same chord collapses it, and `j`/`k`
589
+ select. Enter opens detail, while `x`/`r` use the same two-press confirmation and ownership checks as
590
+ the dashboard. Plain and Alt arrow keys remain editor input unchanged and exactly once. Existing
591
+ `Alt+A` shortcut continues to open the Fleet Dashboard exactly once
592
+ from either widget state. Autocomplete, paste, key release,
593
+ non-empty/unfocused editors, modal UI, RPC/print/headless modes, and unsupported custom editors do not
594
+ activate it; unsupported environments retain a noninteractive summary without a key hint. The window
595
+ uses at most `floor(terminal.rows / 3)` rows including chrome, retains completed/error runs for exactly
596
+ 10 seconds (or while the same selected run is pinned), and separates active peers from task counts.
597
+ Both fleet surfaces scrub terminal controls and size Unicode by display cells. A confirmed coms kill
598
+ aborts only the local request—the confirmation explicitly notes that the peer pane keeps running.
599
+ The coms pool panel remains at the **bottom of the Fleet Dashboard**.
600
+
601
+ ### macOS Alt shortcuts
602
+
603
+ On macOS, the outer terminal must send Option as Meta or the Fleet's Alt shortcuts will not reach
604
+ the Hub. In Terminal.app, enable **Use Option as Meta key** under **Settings → Profiles → Keyboard**
605
+ for the profile used by the window. For details, see the
606
+ [macOS terminal note](../../../docs/pi-extensions.md).
607
+
608
+ ### Fleet config screen
609
+
610
+ Press **`Alt+,`**, run **`/af-config [tab]`**, or press **`c`** inside the Fleet Dashboard (**`Alt+A`**) to
611
+ open the **Fleet config** overlay (Esc returns to the dashboard). Tabs:
612
+ Overview, Setup, State, Overrides, AI State, System 1, STT, Fleet, Safety and (Hub only) Runtime.
613
+ `←→`/`Tab` and `1`-`9` switch tabs, `↑↓`/`PgUp`/`PgDn` move, `Enter` expands a group, `o` opens the
614
+ selected file in a read-only viewer, `i` runs `agent-fleet inspect` (read-only installer evaluation:
615
+ item states, verify and doctor findings, feature availability, provenance validity) and folds its
616
+ answer into the Overview, Setup, State and AI State tabs, `r` re-reads the files, `q`/`Esc` closes.
617
+ The CLI is the recorded `sourceRoot` checkout when it exists, otherwise `npx` pinned to the recorded
618
+ package version; without either the row says the evaluation is unavailable.
619
+
620
+ Changes go through the same CLI and never through the screen. On the Setup tab `Space` toggles a
621
+ feature and `p` cycles the preset in an unsaved draft; `a` runs `agent-fleet setup --dry-run --json`
622
+ for that draft and shows the CLI's own plan (actions by kind, operator steps, notes, conflicts). `y`
623
+ confirms: a second dry run must produce the same plan digest, otherwise nothing is applied; then
624
+ `agent-fleet setup --yes --save-desired` runs with the CLI's lock and transaction journal. Conflicts
625
+ and first-migration blocks are shown with the terminal command and cannot be applied from the screen.
626
+ Enabling `system1-task-triage` asks the separate data consent before `--task-triage-consent` is
627
+ passed; a desired file the installer rejects is shown as the CLI's repair preview and applies only with
628
+ `--repair-config` after confirmation. On the Overrides tab `a` asks for rules/docs roots, previews
629
+ `agent-fleet configure --dry-run` as a line diff and applies with `--yes --expect-hash`, so a file
630
+ edited in between is refused by the CLI. Headless sessions have no write flows. Each row names its
631
+ origin (`file:line` or `runtime`). Files edited after session start are flagged, because the Hub reads
632
+ overrides, teams and System 1 configuration once at start. Environment variables appear as names with
633
+ present/absent only; values are never read or shown. Headless children get the Overview as a notice.
634
+ The same command and shortcut exist in coms peers (without the Runtime tab and the Hub's effective
635
+ override values). The screen never writes a configuration file; changes go through the CLI
636
+ (`agent-fleet setup`, `agent-fleet configure`).
637
+
638
+ ### Fleet Dashboard and detail
639
+
640
+ Press **`Alt+A`** or run **`/af-agents-list`** to open the full-screen **Fleet Dashboard**. It is a
641
+ live overlay backed by the same fleet source as the compact widget and lists specialists, true nested
642
+ delegates, running research helpers, and coms peers. Dashboard filtering remains independent from the
643
+ widget, and `/af-zoom` continues to use an unfiltered key lookup.
644
+ The bordered **coms** panel is pinned to the bottom of this overlay. The dashboard shows status,
645
+ hierarchy, model, context/tokens, elapsed time, tool count, and recent work; its summary counts
646
+ running/done/failed rows, overlap-aware wall time, and visible token totals. Finished/idle/stale
647
+ rows are hidden by default.
648
+
649
+ - **`↑`/`↓`** or **`j`/`k`** selects a row; **`PgUp`/`PgDn`** pages; **Enter** opens its full-screen
650
+ detail view. **`h`** opens the same history overlay as `/af-agents-history` (Esc/`q` returns to the dashboard);
651
+ **`c`** opens the Fleet config screen (`/af-config`) the same way.
652
+ - **`f`** starts a name/model/recent-work filter; type the query and press **Enter** to apply it, or
653
+ **Esc** to clear it. **`a`** toggles finished rows.
654
+ - **`x`** requests a kill and **`r`** requests a restart; press the same key again within two seconds
655
+ to confirm. Kill acts on a local running specialist, a coms-backed specialist, or a research helper.
656
+ Confirmed restart terminates a running specialist when necessary, clears its session, and re-dispatches
657
+ its previous task fresh; it is refused for peer/delegate/research rows and rows with no previous task.
658
+ If a research detail view is already open when that helper finishes, it stays as a read-only terminal
659
+ snapshot until Esc; returning to the dashboard shows no completed research row.
660
+ - **`q`** or **Esc** closes the dashboard.
661
+
662
+ The detail view streams the selected local agent's assistant text, provider-emitted thinking, tool
663
+ arguments, and tool results (including success/error and duration). Normal events request an immediate
664
+ render; a 2-second ticker recovers missed file notifications and advances elapsed time. Use **`v`** to
665
+ switch between scan-friendly **Compact** rows and wrapped **Verbose** output. The choice is preserved
666
+ while drilling into other rows in the same open dashboard.
667
+
668
+ Use **`↑`/`↓`**, **`PgUp`/`PgDn`**, and **Home**/**End** to navigate. Manual movement pauses tail-follow;
669
+ **End** restores it. **Enter** expands a selected tool row in Compact mode and **Ctrl+C** copies the
670
+ selected entry. **`m`** replaces the log area with a full-screen picker containing every model currently
671
+ reported by Pi's available-model registry. Use **`↑`/`↓`**, **`PgUp`/`PgDn`**, or **Home**/**End**, then
672
+ **Enter** to apply; **Esc** cancels back to the logs.
673
+
674
+ Each local run also writes an append-only transcript under `.pi/agent-sessions/transcripts/`. The
675
+ directory/file permissions are owner-only (0700/0600 where the platform supports them), large events
676
+ are chunked, and the live in-memory window is bounded. Common authorization headers, API keys, access
677
+ tokens, passwords, provider tokens, and private-key blocks become `[REDACTED]` **before both persistence
678
+ and display**. This is pattern-based protection, so operators should still avoid deliberately printing
679
+ unknown secret formats.
680
+
681
+ “Thinking” means only text explicitly emitted by the provider/runtime; hidden model reasoning is not
682
+ available, and personas with thinking disabled have no thinking rows. Model switching works for local
683
+ specialists, a currently running research helper, and nested delegate roles. It applies on the next dispatch or
684
+ continuation and never interrupts a running child. A coms-backed specialist stores the choice for native
685
+ fallback runs; external coms peers control their own model, have no picker, and have no local transcript.
686
+ **Esc**/**`q`** returns to the dashboard. **`/af-zoom <name|rN>`** opens this same detail view directly.
687
+
688
+ ### Version footer
689
+
690
+ `agent-hub` renders its local harness version first in its custom footer:
691
+ `agent fleet v<version> · <model><thinking> · <team>`. It replaces pi's default footer, so it does **not**
692
+ consume or render the shared version status; it reads its own adjacent stamped manifest directly.
693
+ The three persistent-UI harnesses (`agent-hub`, `coms`, and
694
+ `damage-control-continue`) still register that one shared key, which gives default footers one
695
+ version in stacked non-hub sessions. In the supported guardrail-plus-hub stack, the hub's custom
696
+ footer supplies the single visible version. Damage-Control can update its own safety status after
697
+ a violation without overwriting the shared version entry. The canonical source is the
698
+ repository-root `package.json`; the adjacent harness manifest is a synchronized stamp maintained
699
+ by `bin/sync-harness-versions.js`. Its local `version.ts` reader intentionally stays with the
700
+ harness for copied or symlinked installs, but those installs still need the pre-existing full
701
+ `.pi/harnesses/` dependency installation.
702
+
703
+ The `agent fleet` half of the label is an OSC 8 terminal hyperlink to the project homepage —
704
+ clickable in terminals that support hyperlinks, ignored (rendered as plain text) elsewhere, and
705
+ free of footer columns because pi strips OSC sequences before measuring width. It opens the
706
+ repository in a browser, not a TUI panel: pi has no mouse tracking, so a click never reaches the
707
+ harness. `AGENT_FLEET_NO_LINKS=1` restores the plain label on multiplexers that mangle OSC 8
708
+ (GNU screen, tmux before 3.4).
709
+
710
+ ### Voice dictation indicator
711
+
712
+ The custom footer renders the optional [`pi-voice-stt`](../../extensions/pi-voice-stt/README.md)
713
+ extension's recording indicator on a line **below the model line** — e.g.
714
+ `● REC 0:01 ⏎ send · esc cancel` while recording, or a `transcribing…` dot. Because agent-hub
715
+ replaces pi's built-in footer (where that indicator normally lives), it reads the extension's
716
+ `setStatus("voice-stt", …)` value via the footer data provider and surfaces it itself. The
717
+ indicator only appears once `pi-voice-stt` is installed and configured; otherwise the footer is
718
+ the single model line. Press **`Alt+S`** to start/stop dictation as in a normal pi session.
719
+
720
+ ## Configuration
721
+
722
+ At session start, `agent-hub` reads `.ai/agent-fleet-overrides.md` in the workspace. The
723
+ canonical section name is `## agent-hub` (the legacy `## agent-team` name is still accepted):
724
+
725
+ ```markdown
726
+ ## agent-hub
727
+ # Replace Bulgarian with any language name.
728
+ language: Bulgarian
729
+ ```
730
+
731
+ Omit the section to keep the default `English`. `language` applies to dispatcher replies,
732
+ `ask_user` questions and `context` fields, handoff summaries, and user-facing status text;
733
+ specialist task strings stay in English.
734
+
735
+ The same section can point the team at the project's own rule files and documentation
736
+ entry points:
737
+
738
+ ```markdown
739
+ ## agent-hub
740
+ rules: docs/rules, .ai/rules
741
+ docs: Docs/AGENTS.md, Docs/architecture/ARCHITECTURE_OVERVIEW.md
742
+ ```
743
+
744
+ `rules:` lists repo-relative folders of HOW rules — implementation patterns the work must
745
+ comply with. Resolution is **index-first**: a folder with a top-level `README.md`/`index.md`
746
+ is treated as curated — personas read the index first and follow its loading manifest
747
+ (session bundles, conditional-load lists) instead of bulk-reading the tree; a folder without
748
+ an index is searched **recursively** through all subfolders. When set, every dispatched
749
+ specialist's system prompt gains a "Project rules" block naming the folders and the
750
+ resolution order; the planner and code-reviewer personas additionally validate their subject
751
+ against the relevant rules and pass them on (cited in plan acceptance criteria / handed to
752
+ delegate sub-reviewers).
753
+
754
+ `docs:` lists repo-relative WHAT/WHY documentation entry points — canonical files (e.g. an
755
+ `AGENTS.md`, an architecture overview) or doc folders (personas start from the folder's
756
+ README/index). Docs orient rather than bind: every dispatched specialist **and every research
757
+ helper** gains a "Project docs" block telling it to read the entry points relevant to its
758
+ task and follow their links instead of bulk-reading doc trees. The code-reviewer flags
759
+ changes that alter documented behavior without a doc update; the documenter treats the entry
760
+ points and the trees they link as the documentation it maintains.
761
+
762
+ `research-keep:` is **removed**. An existing key warns at session start and has no effect; delete it.
763
+ Live research helpers disappear from the Fleet Dashboard when they finish. Session/transcript/findings
764
+ files and `/af-agents-history` records remain.
765
+
766
+ ### Bounded local-disk searches
767
+
768
+ Every `read`, `grep`, `find`, and `ls` call made by a native research helper or a nested
769
+ `delegate` child has a **parent-side** watchdog. The default is **120 seconds per tool call**;
770
+ it is a per-tool bound, not a whole-run deadline — the whole-run bound is the execution
771
+ mode's per-run deadline below. Configure it in the repository-standard overrides file:
772
+
773
+ ```markdown
774
+ ## agent-hub
775
+ recon-search-timeout-s: 120 # integer 1..3600
776
+ # recon-search-timeout-s: off # disable this per-tool watchdog
777
+ ```
778
+
779
+ Invalid values warn at session start and use 120. Calls are tracked independently by their
780
+ JSONL `toolCallId`; a repeated start/update cannot extend an existing deadline. A timeout returns
781
+ `tool_timeout` with the call metadata, ends the research/delegate lifecycle, sends SIGTERM to the
782
+ child's explicitly owned process group, then SIGKILL after a finite grace period. The parent also
783
+ has a final settlement timer, so it settles rather than waiting indefinitely for `close` or
784
+ inherited pipe drain. If child/process-group death cannot be confirmed after this bounded cleanup,
785
+ the timeout metadata reports `terminationConfirmed: false`: this prevents the parent hanging, but
786
+ may indicate an uninterruptible OS-level process that needs operator attention. This group
787
+ ownership covers descendants even when the pi leader exits first; nested delegates own their groups
788
+ and forward parent cancellation, avoiding detached-orphan processes. Caller
789
+ cancellation follows the same bounded cleanup path but is reported as `cancelled`, not
790
+ `tool_timeout`.
791
+
792
+ ### Usage accounting without continuation quotas
793
+
794
+ Dispatch, research and review-round counts and active time remain visible for each
795
+ turn/task. No tier imposes a continuation quota, and authorized work does not ask
796
+ periodically whether to continue. Legacy `max-dispatches-per-turn`,
797
+ `max-research-per-turn` and `turn-wall-time-s` keys are ignored with warnings.
798
+ Auto-research is still counted. Cancellation and individual child deadlines remain.
799
+
800
+ ```markdown
801
+ ## agent-hub
802
+ watchdog: auto # default; root operator and native specialists
803
+ agent-turn-timeout-s: 1800 # tightens the individual run deadline
804
+ session-recycle-runs: 5 # tightens the recycle threshold
805
+ run-history-keep: 10 # previous artifact archives to retain
806
+ ```
807
+
808
+ Two related always-on behaviors: specialist **context pressure is measured over
809
+ input + cacheRead + cacheWrite** (resumed sessions re-send their whole accumulated context
810
+ as cache reads — counting `input` alone hid that entirely), and a specialist session is
811
+ **recycled** (fresh session, no `-c` resume) once it has served `session-recycle-runs` runs
812
+ or its measured context passes 60%. The dispatch result notes the recycle so the dispatcher
813
+ knows the specialist starts without session memory — task text and `artifacts:` paths must
814
+ carry the state, which the deliverable-to-file protocol already ensures.
815
+
816
+ Context is measured against **that agent's own** model window, resolved from pi's model
817
+ registry (`ctx.modelRegistry.find`) with the source recorded on every resolution. Dividing a
818
+ 49k local model's usage by the dispatcher's window is what produced unactionable readings
819
+ like `⚠ Planner context at 315%`; a reading above 100% now emits a one-time diagnostic that
820
+ names the window and where the number came from, so a mis-resolved window is distinguishable
821
+ from a genuine overflow. Two recycle rules follow from it: a session at or past a **full**
822
+ window is recycled unconditionally (no threshold override keeps it alive), and a resumed
823
+ session whose *projected* prompt — prior tokens plus this task — would overflow is recycled
824
+ **before** the spawn instead of after the run.
825
+
826
+ #### Per-provider concurrency
827
+
828
+ A dispatch may fan out to four delegate children at once and several specialists can be
829
+ mid-run, with nothing bounding how many requests land on one provider. That is fine against
830
+ a hosted endpoint and not against a local one. Requests are capped per process — **2 in
831
+ flight for `custom/*` and `omlx/*` by default, unlimited elsewhere**:
832
+
833
+ ```bash
834
+ AGENT_HUB_PROVIDER_LIMITS="custom=4" # raise the local cap
835
+ AGENT_HUB_PROVIDER_LIMITS="custom=off" # disable it
836
+ AGENT_HUB_PROVIDER_LIMITS="custom=2,ollama=1"
837
+ ```
838
+
839
+ Queued runs still execute — they wait for a permit, and the wait is announced rather than
840
+ looking like a hang. The cap applies per **level** of the delegation tree (each pi process
841
+ runs its own semaphore over the children it spawns), and a nested spawn reuses its parent's
842
+ permit, so a child can never wait on its own ancestor. The drift judge and the return
843
+ extractor are deliberately ungated: both run while a specialist holds a permit, so queueing
844
+ them behind it would stall the watchdog meant to stop it.
845
+
846
+ The per-run deadline lands as `turn_timeout` (exit 124) with partial output preserved, for
847
+ dispatched specialists, research helpers, and nested delegate children alike — a hung child
848
+ can no longer hold its parent for hours.
849
+
850
+ ### Task triage (complexity tiers)
851
+
852
+ The dispatcher classifies the current TASK with the `set_task_tier` tool BEFORE its first
853
+ dispatch — `trivial` / `small` / `feature` / `project` — to select resource and
854
+ delegation policy. The tier shows in the `hub-tier` status chip
855
+ (`Tier: small · …`), with a trailing `?` while it is only assumed.
856
+
857
+ Skipping classification assumes **small**. This retains conservative delegation,
858
+ role and child-deadline defaults, without limiting task duration or invocation counts.
859
+ Planner and plan-reviewer remain available on request at every tier.
860
+
861
+ The tier is **task-scoped and ratcheted**. It survives the user's next message, and it
862
+ moves in one direction cheaply: **lowering it is always free, raising it requires a
863
+ `reason`** naming what the ask turned out to contain (refused in code otherwise). A
864
+ turn-scoped tier could not bind on a steered run — every correction reset it to null, the
865
+ next dispatch re-assumed `feature`, and the effective tier drifted to the ceiling, because
866
+ nobody ever re-declares `trivial` after a steering message.
867
+
868
+ The remaining policy separates admission, review and usage:
869
+
870
+ - **Duplicate-dispatch guard** — refuses re-dispatching the same agent with a
871
+ near-identical task inside one turn.
872
+ - **Tier persona gate** — at trivial/small, architect, security-auditor and
873
+ deep-researcher still require an appropriate classification. Planner/plan-reviewer
874
+ are optional and are never required to admit implementation.
875
+ - **Review rounds** — counted without a hard quota. Review quality and current
876
+ changed-scope evidence remain required where the process calls for them.
877
+ - **Review finding budget** — a review persona's dispatch carries a blocking-finding cap
878
+ tied to the tier (trivial 1, small 2, feature 5, project uncapped) plus the rule that a
879
+ blocking finding may only enforce an invariant the task/plan/rules already state. The hub
880
+ **counts** what came back (`review-findings.js`) and appends a visible notice when the
881
+ return exceeds the cap — it never reclassifies a finding. No rule the hub can evaluate
882
+ distinguishes "invents a manifest nobody asked for" from "this logs a connection string";
883
+ both are a heading and a bullet, and silently demoting the second by position would, on
884
+ the day it matters, move a real security finding into the section nobody acts on.
885
+
886
+ Every budget/gate refusal is counted in `/af-hub-report`.
887
+
888
+ ### Docs lane (`docs-lane.js`)
889
+
890
+ A dispatch whose declared `scope` is documentation only — `Docs/**`, `**/*.md`,
891
+ `artifacts/evidence/*.png`, `.changeset/**` — runs in the single-worker docs lane:
892
+
893
+ - dispatching a review persona (`code-reviewer`, `plan-reviewer`, `security-auditor`,
894
+ `test-engineer`) on it is **refused** and costs no budget slot;
895
+ - any other persona's result carries a note telling the dispatcher not to open a review
896
+ gate for it.
897
+
898
+ An absent or empty `scope` is never the lighter lane — unknown is not docs. The refusal is
899
+ overridable per dispatch with `review_reason: "<why>"` for the cases that do warrant a gate
900
+ (the doc publishes a credential, or states a contract other systems depend on).
901
+
902
+ ### External-blocker stop (`external-blocker.js`)
903
+
904
+ A specialist that cannot proceed without something outside the fleet's reach — an account,
905
+ a permission, a deployment credential, a telemetry destination, a console-only action —
906
+ emits `EXTERNAL_BLOCKED: <what is missing, who owns it, what it blocks>` (the protocol is
907
+ injected into every specialist prompt). The hub records it and **refuses the next
908
+ dispatch/research** with an owner-escalation packet: what is missing and who owns it, which
909
+ assertions are blocked, what is already proven and where, and the human's options (provide
910
+ access / waive as UNPROVEN / drop from scope).
911
+
912
+ The gate opens when the human has been addressed — an `ask_user` call, or the next user
913
+ message. Without `ask_user` installed it fires exactly once, so a session that cannot reach
914
+ the human can still finish and report instead of deadlocking.
915
+
916
+ This exists because the alternative is the most expensive failure mode observed: with no
917
+ correlation destination available, a run kept substituting internal work for the missing
918
+ external fact — scripts, manifests, fixtures, diagnostic packets — for hours, and the
919
+ assertion still ended UNPROVEN.
920
+
921
+ ### Immutable per-run artifact namespaces (`run-namespace.js`)
922
+
923
+ Session start used to `rm -rf` `.pi/agent-sessions/artifacts/`, and specialist returns were
924
+ named by a per-session counter (`returns/builder-run1.md`). Both halves of that failed at
925
+ once: the next session's `builder-run1.md` claimed the same path as the previous one's, and
926
+ the wipe deleted the originals first — a post-mortem had to record eleven implementation
927
+ returns and two review artifacts as NOT RECOVERABLE.
928
+
929
+ Now each session **archives** the previous session's artifacts into
930
+ `.pi/agent-sessions/runs/<runId>/artifacts/` — a namespace written once and never reused —
931
+ alongside a read-only `meta.json` (run id, archive time, project, workspace, per-kind
932
+ artifact counts) and an appended `runs/index.json`. `runId` is a sortable UTC timestamp plus
933
+ a random suffix, so two sessions starting in the same second still get distinct namespaces.
934
+ Retention is `run-history-keep` (default 10, `off` keeps everything); an empty artifact tree
935
+ is not archived. If archiving fails the artifacts are **left in place** rather than deleted:
936
+ a stale tree is recoverable, a deleted one is not.
937
+
938
+ ### Drift watchdog (in-flight observation)
939
+
940
+ The root operator is supervised too (`operator-watchdog.ts`): identical calls or
941
+ consecutive failures use the existing drift judge, cooldown and cancellation fence.
942
+ Root tool volume alone does not trigger a quota. Late judges cannot stop a later
943
+ turn/session. Root audit entries record abort requests without claiming that all
944
+ in-flight side effects stopped. There is no root wall-time heartbeat or visibility
945
+ into an external coms peer's own tool stream. Explicit watchdog off is respected.
946
+
947
+
948
+ An armed dispatch is observed **while it runs**, from the same JSON event stream that
949
+ drives the cards — not post-hoc:
950
+
951
+ - **Layer 1 — deterministic rules, zero tokens** (`drift-watchdog.js`): a write/edit
952
+ outside the dispatch's declared `scope` globs, the identical tool call repeated 4×,
953
+ 5 consecutive failed tool calls, or 200 total tool calls in one run.
954
+ - **Layer 2 — LLM judge, escalation only**: when a rule fires (single-flight, 90 s
955
+ success cooldown), a one-shot cheap run (default model: the researcher persona's; override with
956
+ `watchdog-judge-model`) reads the original task + declared scope + recent tool trail and
957
+ answers `VERDICT: ON_TRACK|DRIFTING|STUCK`. An unavailable judge has no verdict:
958
+ it is recorded as `judge_unavailable` and, if the attempt and signal remain live,
959
+ is retried once after 5 seconds with new snapshot/LLM-attempt IDs. A second failure
960
+ is exhausted, not a successful 90-second cooldown.
961
+ - **Intervention**: DRIFTING/STUCK terminates the run as **`drift_stop`** (exit 125,
962
+ partial output preserved) and the dispatch result instructs: re-dispatch ONCE with a
963
+ corrected, narrowed task — never the same task unchanged.
964
+
965
+ Enablement is dynamic. Precedence is the `watchdog: true|false`
966
+ param on a single `dispatch_agent` call → a per-agent override (`/af-watchdog builder
967
+ on|off|clear`) → the hub-wide setting (`/af-watchdog on|off|auto`, default `auto`, project
968
+ default via the `watchdog:` overrides key): `on`/`auto` arm and `off` disarms. Opt out with hub `/af-watchdog off` (or override `watchdog: off`), or a per-agent
969
+ `off`. Read-only research helpers are not monitored — they already run under the per-tool
970
+ watchdog + turn deadline and cannot write.
971
+
972
+ ### Opt-in System 1 drift observations
973
+
974
+ `watchdog-system1: off|shadow|active` in `## agent-hub` defaults to `off`.
975
+ The separate experimental `system1` feature, valid `.ai/system1.json`, a
976
+ caller-injected key and an armed native watchdog are also needed. `shadow`
977
+ runs System 1 independently of the immediately started LLM judge; it cannot
978
+ stop a specialist. `active` is an **uncalibrated experiment in every installed
979
+ workspace**, requiring explicit `watchdog-system1: active` opt-in; default remains
980
+ off. Only advisory `scope` may bypass LLM on provider `on_track` with confidence
981
+ and on-track distribution ≥0.95 and all three predicate probabilities ≤0.05.
982
+ Terminal `loop`, `failures`, and `toolcap` always go to LLM. `/af-watchdog`
983
+ shows `experimental: scope only; G2 not validated`; an unavailable/mismatched
984
+ provider falls back to LLM. Production approved profiles are still empty.
985
+ This is not G2 approval or a safety guarantee: the experiment can miss a scope
986
+ advisory. This watchdog consumer adds no automatic hook for research, coms or normal Hub
987
+ requests; the separately consented task-triage consumer owns its own Hub input hook.
988
+
989
+ The limited **System 1** state includes reviewed task text, normalized
990
+ relative paths, structured tool kinds/outcomes and counters, not tool
991
+ args/commands/bodies or outputs. The existing parallel **LLM judge** still
992
+ receives the original task, scope and a recent trail containing up to 120
993
+ characters of raw tool arguments per call. Review pilot inputs and expected
994
+ tool arguments; unexpected agent actions remain a residual risk. Even task/path
995
+ names can leak information: the intended future pilot is agent-fleet-only,
996
+ without client data or secrets. The native spawn filters the shared
997
+ key from merged child env, not from files or unrelated launchers. The below-chat
998
+ Fleet strip holds the recent S1 result for 10 s; `/af-agents` Enter shows the
999
+ owner check and safe history. `/af-watchdog` shows current readiness and
1000
+ blocking reason; `/af-hub-report` separates checks, evaluations and LLM
1001
+ attempts from worker token usage; `/af-audit` exposes safe lifecycle/decision
1002
+ metadata. Trace lives at `<sessionDir>/artifacts/watchdog/events.jsonl`; a
1003
+ crash or unknown usage is not reported as success or zero. The offline G2
1004
+ report requires human labels keyed by session/dispatch/attempt/check,
1005
+ `snapshotId` **and** `llmAttemptId`; older five-ID labels cannot qualify.
1006
+ No routine chat messages or extra model turns are sent for progress.
1007
+
1008
+ To roll back, set the consumer to `off` for the **next** Hub session; cancel a
1009
+ current run normally if needed. G1 requires outbound state and real UI review
1010
+ before any shadow pilot. G2 separately requires human-labelled held-out
1011
+ session evidence and explicit maintainer approval for a production policy
1012
+ profile. Offline tests and demo/doctor readiness do not grant either gate.
1013
+
1014
+ ### Dynamic teams
1015
+
1016
+ Rosters start from `.pi/agents/teams.yaml` but are not frozen there:
1017
+
1018
+ - `/af-agents-add <persona>…` / `/af-agents-drop <persona>…` — restructure the ACTIVE team
1019
+ live (drop refuses running or last members; session files are kept for re-adding).
1020
+ - `/af-agents-save <name>` — persist the current roster as a named team back into
1021
+ `teams.yaml` (targeted block upsert; comments and other teams untouched).
1022
+ - `team_adjust` — the dispatcher itself may add/drop a persona **with a stated reason**; every
1023
+ change is notified to the human. It is rarely needed: `dispatch_agent` to an installed agent adds
1024
+ it automatically, and added agents are kept. It is not tier-gated or capped. The system prompt is
1025
+ rebuilt each turn, so changes take effect immediately.
1026
+
1027
+ ### `/af-hub-report`
1028
+
1029
+ Per-turn cost accounting: dispatches (agent, status, elapsed, billed/output tokens),
1030
+ research runs, session recycles, drift stops, and budget/duplicate refusals — for the
1031
+ current turn, the last completed turn, and session totals. Billed tokens count
1032
+ input + cacheRead + cacheWrite, the same measure the recycler uses. System 1
1033
+ usage is reported separately; unavailable metadata remains unknown.
1034
+
1035
+ Paths that don't exist produce a session-start warning, never an error. The full key list for
1036
+ `## agent-hub` (models, sub-roles, depth budgets, persona gate, research retention, watchdog,
1037
+ mode/budget keys) is documented in `docs/agent-fleet-setup.md`.
1038
+
1039
+ ## The coms layer
1040
+
1041
+ > The runtime coordination protocols this layer implements (sentinels, push over
1042
+ > polling, barriers, fan-out digests, racing) are catalogued in
1043
+ > [references/fleet-coordination-patterns.md](../../../references/fleet-coordination-patterns.md).
1044
+
1045
+ ### Fleet tools (herdr)
1046
+
1047
+ Inside a [herdr](https://herdr.dev) pane with a live server, the dispatcher's tool
1048
+ surface additionally gets (absent otherwise, like coms):
1049
+
1050
+ - `herdr_spawn_peer` — stand up a constrained Fleet peer through the shared peer-launch resolver.
1051
+ The peer joins **this session's `--project` pool** (the model cannot override it), and a name
1052
+ declared in `.pi/agents/peers.yaml` keeps its declared `runner:`/`extensions:`/`env_file:`,
1053
+ including `runner: claude-code`; undeclared explicit shapes may select a Pi persona, identity-only
1054
+ Fleet Core peer, or Claude Code. Manifest-declared env is the only env admitted. The peer gets a
1055
+ sibling pane in the current workspace/tab, not a second process in the Hub pane. A spawn by name
1056
+ therefore produces the same declared agent as a preset launch. A persona peer **boots idle**
1057
+ and does nothing until a `coms_send` reaches it, so the call waits (bounded, ~45s) for it to
1058
+ register and returns `peer_ready` plus its coms name instead of a bare pane id; on failure it
1059
+ returns the pane's last output, which means the peer did not start rather than that it is slow.
1060
+ Peers spawned but never addressed are named at turn end and in `/af-hub-report` with a close
1061
+ suggestion — closing stays the human's call.
1062
+ Mechanism: herdr's `pane.split` takes **no command** — it opens a shell — so the spawn splits,
1063
+ waits for the pane's prompt, and types the argv (text and Enter sent separately, because bash
1064
+ bracketed paste would swallow a newline). Only `layout.apply` pane nodes carry an argv, which is
1065
+ why declarative preset layouts were never affected by this.
1066
+ - `herdr_spawn_pane` — create an arbitrary command pane when a constrained/addressable Fleet peer
1067
+ is not the desired shape; raw commands are intentionally excluded from `herdr_spawn_peer`.
1068
+ Orchestrators may use this for auxiliary processes such as watchers or servers, never to bypass
1069
+ delegate-only implementation policy.
1070
+ - `herdr_read_pane` — bounded `pane.read` (≤200 lines), read-to-decide on workers/tools;
1071
+ messaging still goes through coms, and peer busy state comes from `coms_list`, not from
1072
+ reading the screen
1073
+ - `herdr_close_pane` — kills a pane; **asks the human to confirm every call**; the
1074
+ bash-level `herdr pane close`/`workspace close`/`server stop` verbs are hard-blocked
1075
+ for spawned specialists by `.pi/damage-control-rules.yaml`
1076
+ - `herdr_notify` — desktop notification to reach the human when they are away
1077
+
1078
+ This closes the fleet loop: spawn a worker, watch it, notify the human, tear it down —
1079
+ without leaving the session. Claude Code panes join the same pool via the
1080
+ [coms bridge](../../../docs/claude-code-coms-bridge.md).
1081
+
1082
+ ### Presence backend (herdr or files)
1083
+
1084
+ Presence is pluggable, exactly as in the standalone [coms harness](../coms/README.md#presence-backends-herdr-vs-files):
1085
+ inside a [herdr](https://herdr.dev) pane with a live server, the ping cycle is replaced by
1086
+ push events (`agent.list` + `events.subscribe`) and the hub reports itself into the herdr
1087
+ sidebar (`custom_status` = `<name> <pct>% q<depth>`); everywhere else the original 10s
1088
+ ping loop runs unchanged. The file registry is written in both backends, and the
1089
+ pool-scope boundary is enforced identically.
1090
+
1091
+ ### Identity
1092
+
1093
+ Each session registers a coms identity at start-up, resolved in this precedence order:
1094
+
1095
+ 1. **CLI flags** — `--name`, `--purpose`, `--project`, `--color`, `--explicit`
1096
+ 2. **Defaults** — auto-generated name `hub-<id>`, purpose `agent-hub dispatcher`, project
1097
+ `default`, a deterministic color derived from the session id
1098
+
1099
+ Names are de-duplicated per project (`resolveUniqueName`), so two hubs that both want `architect`
1100
+ become `architect` and `architect-2`. `--explicit` marks a **private** peer — kept out of every
1101
+ pool by default, so it is neither listed nor reachable until a human opts in with `/af-coms --all`
1102
+ (see [Pool scope is the reach boundary](#pool-scope-is-the-reach-boundary)). The registry lives
1103
+ under `~/.pi/coms/projects/<project>/agents/<name>.json` and is created at runtime.
1104
+
1105
+ ### Commands & tools (local dispatcher plus coms)
1106
+
1107
+ - `/af-coms` — coms control surface (peer list / status)
1108
+ - `/af-handoff <peer>` — hand the whole session off to a coms peer (see [Handoff](#handoff))
1109
+ - `/af-poll [--panel NAME] [--persona NAME] <question>` — ask every voice in a named model panel (from `.pi/agents/voices.yaml`) the same question. `--panel` wins; else `poll-panel:` in `## agent-hub`; else a refusal listing available panels. Counts as **one** turn-budget dispatch. The main loop gets an immediate `POLL STARTED` receipt (no dispatcher turn), then one `POLL VOICE` line per finished voice, then the digest. Full opinions stay on disk under `.pi/agent-sessions/artifacts/polls/<runId>/`.
1110
+ - `poll_panel` (model tool) — the same poll, started by the operator itself with typed `question`, optional `panel` and `persona`. It is meant for decisions, not facts: architectural choices, uncertain diagnoses, choosing between approaches, risky changes. It is read-only, counts as one dispatch, streams voice progress in the tool result instead of follow-up messages, and returns the digest and opinions directory. A poll with fewer than two successful voices fails and is reported as no decision.
1111
+ - `/af-debate [--panel NAME] [--persona NAME] [--rounds N] <question>` — same panel, 2–5 harness-mediated rounds (default 3). Each surviving voice sees the labeled positions of the others from the previous round. There is no judge and no hidden merge. Counts as **one** turn-budget dispatch. Per-round files land under `.pi/agent-sessions/artifacts/polls/<runId>/debate/round-<n>/`.
1112
+ - `/af-compound [focus]` — end-of-session **compound-learning pass**: the dispatcher composes a
1113
+ candidate-lessons brief from the session (corrections, recurring findings, root causes),
1114
+ confirms it with the user, then dispatches the `documenter` to land the approved lessons as
1115
+ minimal diffs on the project's `rules:`/`docs:` targets per `skills/compound-learning/SKILL.md`.
1116
+ Requires the `documenter` persona in the active team; run it before `/af-handoff` or session end.
1117
+ - `coms_list` — discover the peers in your pool: names, models, live context usage, purpose,
1118
+ `pane_id`, waiting-only `queue_depth`, and `status` (`idle` | `queued` | `working` | `booting`).
1119
+ Check status before sending: `working` means the peer has an active turn, `queued` means accepted
1120
+ work is waiting to start, and `booting` means it is not addressable yet.
1121
+ This is the field whose absence drove 127 `herdr_read_pane` calls in one session. Scoped
1122
+ to your project and excluding private peers; the LLM cannot widen it (see
1123
+ [Pool scope is the reach boundary](#pool-scope-is-the-reach-boundary)).
1124
+ - `coms_send` — send a prompt to a peer **in your pool**; returns a `msg_id`
1125
+ - `coms_await` — **block** until that `msg_id`'s reply lands (default 30 min,
1126
+ `PI_COMS_TIMEOUT_MS`)
1127
+ - `coms_get` — **non-blocking** poll of a `msg_id` (status `pending|complete|error`)
1128
+
1129
+ `/af-coms` and `/af-handoff` tab-complete live peer names **in your pool**.
1130
+
1131
+ ### Pool scope is the reach boundary
1132
+
1133
+ The set of peers shown in the pool widget is the security boundary: **a peer is reachable only if it
1134
+ is in your pool.** `coms_list`, `coms_send`, and `/af-handoff` all resolve targets through the same
1135
+ `peersInScope()` helper, so the dispatcher can never message a peer it cannot see. Two knobs define
1136
+ the pool, and **both are human-only** — the LLM cannot widen scope to reach more peers:
1137
+
1138
+ - **Project** — defaults to your own `identity.project`. A human can retarget with `/af-coms --project
1139
+ <name>` (one project) or `/af-coms --all` (every project). `coms_list`'s own parameters cannot
1140
+ override this; an LLM request for a wider project is clamped back to the current pool and flagged.
1141
+ - **Explicit (private) peers** — excluded from every pool by default. `/af-coms --all` opts them in.
1142
+
1143
+ This closes a cross-project leak where a peer reachable through the mesh was *not* shown in the
1144
+ default project-scoped pool — so it could be messaged without being "connected." Now the reachable
1145
+ set is always a subset of what the widget shows. To reach a peer outside the pool, a human widens
1146
+ scope first; the dispatcher is told to **ask** rather than attempt it, and not to pass cross-project
1147
+ context to a peer the human has not approved.
1148
+
1149
+ ### Peer as subagent
1150
+
1151
+ The dispatcher uses a peer as a subagent by pairing the tools: `coms_send(target, prompt)` to
1152
+ issue the task, then `coms_await(msg_id)` to block for the reply (or `coms_get` to poll). This sits
1153
+ alongside `dispatch_agent` — local persona specialists are dispatched as subprocesses; remote peers
1154
+ are reached over coms. The two paths stay explicit for the LLM, but
1155
+ [coms-backed dispatch](#coms-backed-dispatch-dispatch-policyyaml) can route a `dispatch_agent` call
1156
+ to a same-name peer under the hood. (The specialist-level `delegate` tool is a third,
1157
+ nested path: a dispatched specialist spawning its own declared sub-agents — it does not auto-route
1158
+ between local and remote either.) Multi-hop is inherited from coms: a peer handling a dispatched task can `coms_send`
1159
+ onward, hops accumulating up to `MAX_HOPS` (5).
1160
+
1161
+ ### Coms-backed dispatch (dispatch-policy.yaml)
1162
+
1163
+ `just fleet --agents <roster> --peers <preset>` boots the Hub next to standing peers from
1164
+ `.pi/agents/peers.yaml` — and some
1165
+ of them (e.g. `code-reviewer`, `plan-reviewer` with `runner: claude-code`) intentionally share a name
1166
+ with a team member. `.pi/agents/dispatch-policy.yaml` tells the dispatcher to serve such members
1167
+ **through the peer** instead of spawning a native subagent:
1168
+
1169
+ ```yaml
1170
+ default: native # coms = substitute ANY member with a live same-name pool peer
1171
+ grace_s: 30 # poll window for coms-required members
1172
+ substitutions:
1173
+ code-reviewer:
1174
+ prefer: coms
1175
+ fallback: native # none = coms-required: refuse with guidance instead of spawning
1176
+ # timeout_s: 3600 # per-member reply timeout (default PI_COMS_TIMEOUT_MS, 30 min)
1177
+ ```
1178
+
1179
+ Semantics:
1180
+
1181
+ - **One API with an explicit override.** `dispatch_agent(..., backend: "auto"|"native"|"coms")`
1182
+ defaults to `auto`, which follows this policy. `native` always starts the local Pi specialist even
1183
+ when a same-name peer is live. `coms` requires that live same-name peer and never falls back to
1184
+ native. The whole downstream pipeline — structured return contract,
1185
+ `ASK_USER:` extraction, the NEEDS_RESEARCH auto-research pipe, assertions, history, the grid —
1186
+ consumes a coms reply exactly like a subagent's final output (the dispatch protocols ride in the
1187
+ message body, since a standing peer only receives a user prompt).
1188
+ - **Decided per dispatch, against the live pool.** Hub and peers boot in parallel, so the first
1189
+ dispatch may land before the peer registers: with `fallback: native` it runs natively (one notice
1190
+ per member per team activation), and later dispatches pick up the peer once it is live. With
1191
+ `fallback: none` the dispatch polls the pool for `grace_s` seconds, then refuses with remediation
1192
+ steps. The name match is scoped to the coms pool — the same security boundary as `coms_send`.
1193
+ - **Standing context is the point.** Re-dispatches (ASK_USER answers, research resumes) go back to
1194
+ the same peer session, so a Claude Code reviewer keeps its review context across rounds.
1195
+ - **Visibility.** The member's grid card shows a `⇄coms <peer-model>` badge, history entries are
1196
+ annotated `(coms)`, and `/af-dispatch-policy` prints the resolved routing per member with live-peer
1197
+ status.
1198
+ - **Limitations.** `/af-agents-kill` on a coms-backed run only abandons the wait — the peer keeps
1199
+ running in its own pane and cannot be killed from the hub (`/af-agents-restart` abandons, then
1200
+ re-dispatches). `/af-zoom` shows only the final reply (there is no stream), tool counts stay 0, and
1201
+ context% is a registry snapshot. `/af-agent-model` overrides apply only to native(-fallback) runs —
1202
+ the peer's model is set in `peers.yaml`.
1203
+
1204
+ Missing file = everything native. HOW a peer runs (persona, model, `runner: claude-code`, env) stays
1205
+ in `peers.yaml`; this file only decides WHEN the hub prefers a peer over a native spawn.
1206
+
1207
+ ### Planner recovery and completion evidence
1208
+
1209
+ No plan occurrence is an admission prerequisite. Existing saved plan requirements
1210
+ normalize to optional while preserving their artifacts and source history. A direct
1211
+ operator, native builder or coms peer can execute authorized work without a Planner.
1212
+ Independent review, task-transition fencing and exact-action authorization remain.
1213
+ Resolve factual gaps with focused research and additional decisions with `ask_user`.
1214
+
1215
+ A current declared plan artifact readback proves plan occurrence only. Exit 0, echoed
1216
+ instructions, `PLAN_FILE` text without the declared file, or a pending reply do not close
1217
+ that deliverable contract. Plan, acceptance and review remain independent; verification
1218
+ and review must cover the current revision. Coms transport cannot produce trusted native
1219
+ runtime checks, even when a valid peer reply and declared deliverable are available.
1220
+
1221
+ Malformed `dispatch_agent`/`spawn_research` input returns `invalid_invocation_shape` with
1222
+ bounded safe field/type diagnostics, separately from `invocation_persistence_failed`
1223
+ for valid input whose durable contract could not be stored. Neither launches the executor;
1224
+ correct the reported input or storage prerequisite and re-invoke explicitly under existing
1225
+ gates. Diagnostics omit raw values/private payloads and redact unsafe unknown-key locations.
1226
+
1227
+ ### Handoff
1228
+
1229
+ `/af-handoff <peer>` transfers the session to another **main** agent. Following the plan's
1230
+ **decision G1**, it does *not* try to extract a compaction summary; instead it asks the dispatcher
1231
+ LLM to compose a **self-contained brief** ("everything the target needs, assume no shared history"),
1232
+ then `coms_send`s that brief to the peer, `coms_await`s the reply, and relays it back — in the
1233
+ configured user-facing language. When the handoff `coms_send` fires, the hub appends machine-generated
1234
+ sections after the LLM brief: `## Verification ledger (verbatim, machine-appended)` with every current
1235
+ assertion in canonical ledger form, and `## Artifact index` with artifact paths plus first headings.
1236
+ The target peer must treat the machine-appended ledger as the contract, not the paraphrased brief.
1237
+ The target peer takes over; the source relays the result. There is no raw session copy (pi sessions
1238
+ aren't portable between live agents). The target must be a peer in your pool — `/af-handoff` resolves
1239
+ through the same [scope boundary](#pool-scope-is-the-reach-boundary) as `coms_send`, so you cannot
1240
+ hand a session to a peer you cannot see.
1241
+
1242
+ ### Pool widget
1243
+
1244
+ A live "pool" widget lists connected peers with name, model, and live context usage, refreshed by a
1245
+ ping cycle; a keepalive cycle re-writes this session's own registry entry (and self-heals it if an
1246
+ external prune removed it). Both timers are `unref`'d so they never hold the process open.
1247
+
1248
+ ### Purpose
1249
+
1250
+ The coms identity `purpose` is the `--purpose` CLI flag when set, otherwise the default
1251
+ `agent-hub dispatcher`. There is no runtime dispatcher-persona picker.
1252
+
1253
+ ### Graceful degradation
1254
+
1255
+ If the coms socket can't bind at start-up (`comsReady` stays `false`), the session degrades to a
1256
+ local dispatcher without coms: the `coms_*` tools are withheld from `setActiveTools`, the
1257
+ `/af-handoff` command refuses with a notice, and the "Peer agents (coms)" prompt section is omitted.
1258
+ Orchestration, research helpers, and the grid keep working.
1259
+
1260
+ ### Tool surface
1261
+
1262
+ `setActiveTools` always preserves the orchestration surface and adds runtime-ready capabilities.
1263
+ The operator also preserves the baseline direct/extension tools.
1264
+ Coms tools are active only when coms is ready, Herdr tools only in a live Herdr pane, and `ask_user`
1265
+ only when registered. Capability refreshes recompute this list live without touching session state.
1266
+
1267
+ `set_assertions` / `update_assertion` / `get_assertions` are the always-on Verification Contract ledger tools (see
1268
+ [What it does](#what-it-does)); like `dispatch_agent` / `spawn_research` they stay on the
1269
+ orchestration surface.
1270
+
1271
+ ## Optional Hermes local monitor transport
1272
+
1273
+ The optional monitor is an Agent Fleet-owned transport boundary, not a Hermes runtime API or a
1274
+ bundled Hermes plugin. When enabled, `agent-hub` publishes dispatcher-turn and specialist-run
1275
+ state and owns generation-safe cancellation. A separate local Hermes UI or operator client may
1276
+ consume the owner-only discovery + Unix-socket contract documented in
1277
+ [`.pi/agent-fleet/hermes/README.md`](../../agent-fleet/hermes/README.md#local-agent-hub-monitor-integration).
1278
+
1279
+ Set these before the hub starts:
1280
+
1281
+ ```bash
1282
+ export AGENT_FLEET_PROFILE_ID="approved-profile-id"
1283
+ export AGENT_FLEET_MONITOR_RUNTIME_DIR="/absolute/owner-only/runtime-root"
1284
+ ```
1285
+
1286
+ Both are required for monitor startup; the runtime root must be absolute and owner-only, and the
1287
+ profile ID must be a safe identifier. The monitor also starts only for a Herdr-backed hub with
1288
+ `HERDR_WORKSPACE_ID` and `HERDR_PANE_ID`; retain those values and `HERDR_SOCKET_PATH` in the
1289
+ standard `just fleet --agents <roster> --peers <preset>` flow. Workspace labels are display metadata, not monitor identity.
1290
+
1291
+ The live contract exposes three authenticated newline-delimited JSON requests: `snapshot`, cursor-
1292
+ based `output`, and exact-generation `cancel`. The monitor is local-only and fails closed when its
1293
+ profile discovery, lease, token, or Unix socket is unavailable. A native cancel targets only the
1294
+ matching hub-owned process generation. A coms cancel abandons the local wait only; its peer can
1295
+ continue. Neither path controls or closes a Herdr workspace/pane.
1296
+
1297
+ Example startup:
1298
+
1299
+ ```bash
1300
+ monitor_runtime="${XDG_RUNTIME_DIR:?}/agent-fleet-monitor"
1301
+ install -d -m 700 "$monitor_runtime"
1302
+ AGENT_FLEET_PROFILE_ID=dev \
1303
+ AGENT_FLEET_MONITOR_RUNTIME_DIR="$monitor_runtime" \
1304
+ just fleet --agents default --peers default
1305
+ ```
1306
+
1307
+ No Desktop/backend plugin installation is required or provided. Consumers must re-discover after
1308
+ lease or socket loss and must never persist or log the token.
1309
+
1310
+ ## Requires
1311
+
1312
+ - `.pi/agents/teams.yaml` for fixed specialist teams, the referenced persona `.md` files, and
1313
+ (strongly recommended) [`pi-ask-user`](https://github.com/edlsh/pi-ask-user).
1314
+ - `.pi/damage-control-rules.yaml` for every guarded `just fleet` Pi mode.
1315
+ - Nothing extra in-repo for coms — the peer registry lives at `~/.pi/coms/` and is created at
1316
+ runtime.
1317
+
1318
+ ## Usage
1319
+
1320
+ ```bash
1321
+ # Unified Fleet interface (Fleet Core + Agent Hub are loaded together)
1322
+ just fleet
1323
+ just fleet --agents frontend --project myrepo
1324
+ just fleet --agents frontend --peers frontend --project myrepo
1325
+
1326
+ # equivalent direct guarded launch
1327
+ pi -e .pi/harnesses/damage-control-continue/index.ts -e .pi/harnesses/ask-user-remote/index.ts -e .pi/harnesses/agent-hub/index.ts
1328
+ pi -e .pi/harnesses/damage-control-continue/index.ts -e .pi/harnesses/ask-user-remote/index.ts -e .pi/harnesses/agent-hub/index.ts --name releaser --explicit
1329
+
1330
+ # direct unguarded launch, only when you intentionally want to skip damage-control
1331
+ pi -e .pi/harnesses/agent-hub/index.ts
1332
+ ```
1333
+
1334
+ Identity flags: `--name`, `--purpose`, `--project`, `--color`, `--explicit`.
1335
+
1336
+ ### Safety scope
1337
+
1338
+ `just fleet` and `just fleet --no-coms` load Fleet Core before `agent-hub`, so guardrails and `ask_user` apply
1339
+ to hub/dispatcher tool calls in that parent pi process — and because it is the *continue* variant, a
1340
+ blocked dispatcher call feeds back and the turn keeps going rather than aborting. Specialist and
1341
+ research agents are spawned as separate pi subprocesses with `--no-extensions` — but `agent-hub`
1342
+ resolves `damage-control-continue` from this session's `-e` flags, else the repo-local harness, and
1343
+ re-loads it into every native specialist, research helper, and nested delegate via explicit `-e`.
1344
+ `--no-extensions` keeps discovery off, so children never auto-load `.pi/extensions/` utilities or
1345
+ recursively re-load `agent-hub`; the explicit guardrail still checks every child's tool calls against
1346
+ `.pi/damage-control-rules.yaml`. Protected-path blocks escalate to the hub for explicit approval;
1347
+ protected deletions offer only Deny or Allow once, while inherently dangerous command patterns are
1348
+ non-exemptible. Denial or timeout blocks the call without aborting the child's turn. If continue
1349
+ cannot be resolved, dispatch is refused—children are never spawned unguarded. Research helpers are
1350
+ additionally read-only by construction. Guided setup enforces `agent-hub` ⇒
1351
+ `damage-control-continue` + `ask-user-remote`.
1352
+
1353
+ ### Related recipes
1354
+
1355
+ ```bash
1356
+ # Operator/native work without coms
1357
+ just fleet --no-coms
1358
+
1359
+ # Hub-only Herdr workspace and a combined topology
1360
+ just fleet --herdr --project af
1361
+ just fleet --agents default --peers docs --project af
1362
+ just fleet --agents default --peers docs --project af --dry-run
1363
+
1364
+ # Compatibility aliases (accepted with migration warnings)
1365
+ just fleet hub --solo
1366
+ just fleet team docs
1367
+
1368
+ # Snapshot refs / close cleanly / restore conversations
1369
+ just fleet snapshot docs
1370
+ just fleet down docs
1371
+ just fleet resume docs
1372
+ ```
1373
+
1374
+ `peers.yaml` groups reusable peers into named teams; each entry is `name` / `persona`
1375
+ (+ optional `model`). The persona's frontmatter `description`/`color` become the peer's
1376
+ coms purpose/color.
1377
+
1378
+ ## How it differs from its sources
1379
+
1380
+ - **Embedded, not stacked (decision 1).** coms is folded into this one `index.ts`; the identity
1381
+ flags are registered once. Loading `coms` as a second `-e` would double-register
1382
+ `--name/--purpose/...` and abort start-up.
1383
+ - **Single `session_start`.** coms init is folded into the former dispatcher's `session_start` and
1384
+ guarded by `if (!comsReady)`, so `/new` reuses the same peer identity (no leaked socket).
1385
+ - **Dispatcher is also a peer.** `setActiveTools` lists `coms_*` alongside `dispatch_agent` +
1386
+ `spawn_research` (+ `ask_user`); the system prompt gains a "Peer agents (coms)" section when coms
1387
+ is ready. The persona's `description` drives the coms `purpose` (decision 6 / Phase 6 peer
1388
+ mapping) instead of a static `--purpose`.
1389
+ - **`/af-handoff` uses an LLM-composed brief**, not a compaction-summary extraction (decision G1).
1390
+ - **Clean shutdown** SIGTERMs any running specialist/research children, clears the coms pool
1391
+ widget, and removes the registry entry on `session_shutdown` / SIGINT / SIGTERM.
1392
+
1393
+ ### Execution evidence isolation
1394
+
1395
+ New sessions allocate `.pi/agent-sessions/sessions/<UUID>/`; startup does not migrate,
1396
+ clear or prune legacy shared files. Each native/coms dispatch and research helper has
1397
+ a UUID and a create-exclusive `dispatches/<UUID>/request.json` / `result.json` bundle.
1398
+ Requests retain task/scope and copies of supplied input artifacts; results preserve
1399
+ output/diagnostics and transcript/session paths (`details.evidencePath`). Native
1400
+ continuation copies the previous raw session into the new dispatch, never rewrites it;
1401
+ delegation events also live under the dispatch. Counters remain UI labels, not evidence IDs.
1402
+
1403
+ `run-history-keep` keeps its configured limit, applied to **closed, fully settled new
1404
+ sessions whose owning process is gone**. Live, unfinished, pending and malformed
1405
+ namespaces are protected. A crash without a close marker is retained for manual
1406
+ inspection, not silently classified as safely deletable. Follow absolute paths from
1407
+ tool results; `artifacts/...` is a session-relative handoff alias, not a read-tool path.
1408
+
1409
+ ### No-progress stops
1410
+
1411
+ Unchanged failed dispatch/research retries are refused across turns using normalized
1412
+ actor, structured scope, input artifacts, actual execution conditions and worktree
1413
+ state, not task wording or scope_mode. Research scope is advisory, not isolation.
1414
+
1415
+ Operator cancellation fences the **agent identity**, including disjoint scopes,
1416
+ model/prose changes and dispatch/research inputs. Other agents' already-running work
1417
+ is not cancelled. `/af-recover inspect <operationId>` reports safe attempt state and
1418
+ missing prerequisites; `retry|reconcile|abandon <operationId> <attemptId>` validate IDs.
1419
+ Legacy `/af-retry <dispatchId>` resolves the same retry handler for cancellation and
1420
+ settled indeterminate failures. Both retry spellings ask the human once, warning that an
1421
+ indeterminate attempt may already have partial effects and retry can duplicate them;
1422
+ there is at most one indeterminate grant per operation. Neither command executes or
1423
+ renews budget: after authorization, explicitly invoke the code-rendered original
1424
+ `dispatch_agent(...)` or `spawn_research(...)` contract. Pending/unknown process,
1425
+ duplicate grant, stale response, or unavailable original contract is not permission
1426
+ to replay. T3 protocol errors still need trusted effects evidence and corrected conditions;
1427
+ unknown-tool needs a catalog change. `reconcile` requires attributable unchanged-current-
1428
+ revision readback and independent nonblocking review; it clears a technical block only,
1429
+ retaining failed delivery and every open AF-MIN-CHANGE/test/review obligation. `abandon`
1430
+ does not satisfy dependent work. Audit exports IDs/statuses only, never prompts, nonces,
1431
+ raw contracts or evidence paths.
1432
+
1433
+ Non-busy recovery refusals use separate accounting and never consume turn/task launch
1434
+ counters. A `not_started` preflight refusal (runtime-owned, `started:false`, `effects:none`)
1435
+ records 0 launches and 0 indeterminate attempts; correcting the prerequisite and re-invoking
1436
+ explicitly needs no slash reset, grant, or reconcile. Usage does not impose a
1437
+ continuation quota; recovery adds no automatic retry, wait or queue.
1438
+ Busy operations that never started spend no allowance and record no failure. Turn reports no
1439
+ longer charge refusals as dispatches; refusal totals count every refusal while launch
1440
+ counters count only real child executions. Session execution totals
1441
+ still count real dispatch attempts rather than guard refusals.
1442
+
1443
+ The shared recovery contract is fail-closed. Protocol errors require changed
1444
+ conditions plus a trusted prior-effects inspection. The internal task-generation-bound
1445
+ establishEffects port accepts a retained inspection reference; it is not a model
1446
+ parameter or a promise that T3 exists. Launch/close/termination lifecycle facts are
1447
+ produced by the native spawn path and the research spawn path (safety refusal and spawn
1448
+ failure never launched; timeout without close stays uncertain). Unknown-tool
1449
+ recovery has a task-generation-bound catalog-change port; a trusted catalog-change
1450
+ producer must still supply the evidence — prose alone never authorizes it.
1451
+
1452
+ ### Runtime verification contract
1453
+
1454
+ set_assertions.test_command declares an exact bash verification command for a test
1455
+ or code-grep requirement. It does not execute the command. For code-grep, the command
1456
+ must exit nonzero when the declared presence/absence condition fails. Native children
1457
+ run it through the existing approved bash path after edits. The child-loaded
1458
+ runtime-test-check observer preserves Pi's configured shell/prefix, execution context,
1459
+ renderers and tool_result error flag; the parent retains command, actual exit and
1460
+ before/after revisions, binding source/text/reference/critical conditions to task ID.
1461
+ Optional `set_assertions.compiler_command` declares an additional exact bash compiler
1462
+ command for test/code-grep requirements. When both commands are declared, both need
1463
+ their own successful runtime receipt; compiler-only explicit declarations are supported.
1464
+ No command is inferred from prose, and declaration never executes it. Automatic
1465
+ changed-file compiler diagnostics still check only the minimal change requirement.
1466
+ An existing `AF-MIN-CHANGE` ledger row remains valid: dispatch keeps its declaration
1467
+ and conditions, adds the runtime minimum conditions, and does not append a duplicate.
1468
+ A bound command on that row is not silently replaced by unrelated compiler success.
1469
+
1470
+ Native same-task, same-revision continuation may retain up to 64 successful checks
1471
+ (256 KiB journal metadata) via the existing process-state journal. Capture anchors
1472
+ bind task/generation/session, exact scope and revision, accepted input and input-artifact
1473
+ hashes, complete declarations (including both commands and coverage), original native
1474
+ dispatch, capture time, exclusivity epoch and contained evidence-byte hashes. Original
1475
+ command attribution, revision, timestamps and evidence references are not rewritten.
1476
+ Overlapping/unsettled captures, backend/identity/declaration changes, changed or missing
1477
+ evidence, and newer failed/unknown/missing command results prevent reuse. Native bash
1478
+ starts lacking a usable result explicitly invalidate that command's retained success.
1479
+ Legacy files without capture anchors, model reports and proven ledger stamps cannot
1480
+ seed continuation. Hash readback is local integrity checking, not cryptographic
1481
+ attestation or protection against a hostile same-user filesystem writer.
1482
+
1483
+ This is source behavior, not activation of a running session. New harness source has
1484
+ a new inspected revision; historical receipts cannot be relabelled or imported into
1485
+ new acceptance. Recovery never reruns producers implicitly, grants permission, resets
1486
+ obligations, or changes operator-current-state gates or manual unsupported semantics.
1487
+
1488
+ The native dispatcher passes the explicitly declared dispatch scopes to the test
1489
+ observer. In a non-Git workspace containing nested Git repositories, the observer
1490
+ uses the same declared-repository revision as dispatch acceptance; shell `cd` does
1491
+ not select the evidence scope and no repository discovery scan is performed.
1492
+ Single-repository workspaces retain whole-repository revision semantics. Missing,
1493
+ invalid or incomplete repository identity cannot pass, even when both recorded and
1494
+ current revisions are `unavailable`. Updating the installed harness and restarting
1495
+ Pi are required before a running workspace session can use this behavior; old
1496
+ `unavailable` evidence must be regenerated, not rewritten.
1497
+
1498
+ manual/runtime-ui requirements are explicitly unsupported by this producer. A test
1499
+ or code-grep without a command/check remains missing/unverified; a model's proven
1500
+ stamp is not runtime proof. Fresh bound runtime checks supersede old claimed ledger
1501
+ stamps; stale runtime checks do not. Runtime refs and claimedEvidenceRefs are separate.
1502
+
1503
+ agent-fleet.runtime-result/v1 reports orthogonal execution, changes, verification,
1504
+ acceptance and compatibility dimensions. Acceptance requires completed execution,
1505
+ current task, certain changed state, and all requirements/checks passing with current
1506
+ revision and retained runtime evidence. Missing/failed/stale/unsupported checks,
1507
+ unchanged/missing deliverables and uncertain attribution never accept, at any tier.
1508
+ needs_verification means unaccepted, not nearly done.
1509
+
1510
+ **Semantic limitation (operator accepted):** specialist-authored tests may pass the
1511
+ runtime gate. Runtime proves execution/state, NOT the adequacy of those tests or
1512
+ code-grep predicates. Separate code review remains required; accepted is not human
1513
+ Checkpoint A approval. No live model runs or T3/T7 implementation are included.
1514
+
1515
+ ### Explicit delivery contract
1516
+
1517
+ `dispatch_agent` accepts `deliverables: string[]` of exact expected output files.
1518
+ The worker receives their absolute paths. The hub reads every expected file back,
1519
+ records size/hash/preview and whether it changed, retains the inspected content, and
1520
+ saves `details.assessmentPath`. Missing files, directories and unsafe symlink paths
1521
+ do not pass readback. An existing unchanged file is not attributed to this run.
1522
+
1523
+ Exit 0 returns `executionStatus: completed`, **not** acceptance. Without qualifying runtime checks, tool status is
1524
+ `completed_unverified` or `verification_failed` and `accepted: false`. Only the
1525
+ runtime verification contract above can produce `accepted: true`. Every delivered return is
1526
+ saved even without assertion IDs. Pending peer delivery remains pending.
1527
+
1528
+ Scope roots are checked before budget confirmation/counters. Missing roots are not
1529
+ zero-match success. Set `scope_mode: create` explicitly to permit a new root. A new
1530
+ exact file in an existing directory is permitted when declared in `deliverables`;
1531
+ otherwise a missing dotted name such as `RIN.Video` is still treated as a missing
1532
+ root, not guessed to be a file. Free-form prose and XML are never executed as tools.
1533
+
1534
+ ## System 1 communication and dispatch advice
1535
+
1536
+ Fleet `1` opens a read-only request/response viewer. Press `e` to enable memory-only
1537
+ capture, Enter to inspect a pair, left/right and Enter to copy, `d` to disable and
1538
+ clear. `j` navigation is unchanged. The optional `dispatch_triage` tool is for the
1539
+ operator, not a human slash command; all dispatch gates remain authoritative.
1540
+ See [the guide](../../../docs/system1-dispatch-triage.md) for opt-in configuration,
1541
+ privacy boundaries, evaluation commands and outstanding live acceptance.
1542
+
1543
+ ## Unified System 1 v2 configuration
1544
+
1545
+ The runtime source is `.ai/system1.json` version 2 with independent consumer sections, one immutable session snapshot and a shared service. Installation selection remains separate. See [the unified configuration contract and per-consumer usage](../../../docs/system1-config.md) and the inert, all-consumer [system1.example.json](../../../docs/system1.example.json) for setup, explicit migration, retained backups, diagnostics and remote/local off semantics. Legacy JSON files and `watchdog-system1` in Markdown are not runtime sources. v1 requires explicit migration and cannot start inference. Persisted Task Triage obligations remain enforced when inference is off or unavailable. D10 is not activated by this change.
1546
+
1547
+ D7 `consumers.contextCompaction` adds optional automatic early-boundary advice. On Pi 1.1.0 or later the Hub keeps deterministic 60% early opportunity / 70% compact-and-continue (80% ceiling) recovery independent of System1. Early advice requires separate consent, compactable history, Pi-owned reserve headroom and provider confidence; unavailable/unaccepted advice never removes the pressure fallback. Explicit compaction of a too-small session is honestly skipped while any continuation remains gated. Shared native children load the pressure adapter, but coms task-description binding and root System1 forwarding through nested/workflow processes remain incomplete. See [D7 usage, live evidence and limits](../../../docs/system1-context-continuity.md); configuration examples do not activate these features.
1548
+
1549
+ ## Automatic System 1 file discovery
1550
+
1551
+ D9 `consumers.fileDiscovery` is separately consented and off by default. At all tiers it ranks eligible parent inventory/find/ls/grep before delivery, plus initial/current native research/worker and registered nested delegate discoveries. Every display-permitted candidate remains (low/unscored included); large lists use bounded pages and normal read budgets, never top-K. Scope is a hint, not permission; mandatory policy, original failures and launch/acceptance gates survive. Fleet `1` opt-in diagnostics show only hashed identity, trigger/counts/coverage/elapsed and actual-or-unknown usage, not queries/bodies/paths/tokens. Start a new session after config changes. See [D9 scope, full-list/status/privacy limits and source/local-tarball activation instructions](../../../docs/system1-file-discovery.md); published latest is not assumed to contain this checkout's D9.
1552
+
1553
+ ## Agentic System 1 advisory tool
1554
+
1555
+ `ask_system1` is an opt-in parent-only Hub consumer configured by `consumers.agenticAsk` in the shared `.ai/system1.json`. It batches typed questions over minimal state, selected files/ranges and opted-in recorded bash refs, without executing shell or changing process gates. `recommended` reminds the operator to consult it for a concrete unresolved question when useful; `advisory` keeps optional consultation. Default installs remain off. Start a new Hub session after changing the mode. See [configuration, examples, bounds and safe readback](../../../docs/system1-agentic.md).
1556
+
1557
+ ### Clarification routing
1558
+
1559
+ Routine technical choices inside approved scope are resolved by the working model,
1560
+ with their rationale recorded. Existing decisions are reused and discoverable facts
1561
+ are researched. Unresolved material decisions (requirements, public compatibility,
1562
+ consequential trade-offs, new permissions or scope) use `ask_user`; without the tool,
1563
+ ask in chat and wait for an explicit answer.
1564
+
1565
+ Specialist `ASK_USER` returns go to the operator first. It resolves questions
1566
+ from approved decisions, repository facts or routine engineering judgment, then
1567
+ escalates what it cannot resolve. A parent-only answer uses a single task line:
1568
+
1569
+ ```text
1570
+ ORCHESTRATOR_ANSWER: {"dispatchId":"ask-1","answers":[{"question":"Which local pattern?","answer":"Use the adjacent helper convention","basis":"routine_technical","evidence":"Same internal contract as the adjacent helper"}]}
1571
+ ```
1572
+
1573
+ Allowed bases are `existing_decision`, `repository_fact`, and `routine_technical`.
1574
+ Every returned question must appear exactly once, with a nonempty answer and basis
1575
+ evidence. The grant is one-use, task- and scope-bound. Actual human responses retain
1576
+ `USER_ANSWER: <dispatchId> :: <question>` and the actual answers in the task. For a
1577
+ mixed round, obtain the needed human answers before re-dispatching and label the
1578
+ source of each answer honestly.
1579
+
1580
+ `blocked_on_user` remains the compatibility status for a paused clarification; it
1581
+ does not itself mandate human escalation. Neither marker grants action permissions,
1582
+ clears cancellation or bypasses unknown-effect recovery. Semantic classification of
1583
+ a decision remains model-guided; validation checks the clarification envelope and
1584
+ scope, not the truth of the model's reasoning. Historical pauses without recorded
1585
+ questions cannot use the new parent-answer path.
1586
+
1587
+
1588
+ Automatic recovery monitoring adds `Auto compaction` and `Last compaction` rows to
1589
+ `/af-context`. Local `agent-hub-compaction-monitor` events record start, restoration,
1590
+ continuation, failure and ceiling blocking; native children use
1591
+ `agent-fleet-compaction-monitor`. Before/after percentages stay unknown when Pi has
1592
+ not yet provided a post-compaction usage measurement. See
1593
+ [context continuity](../../../docs/system1-context-continuity.md) for the 50/60/70/80
1594
+ policy, diagnostics, real CLI test coverage and provider-fixture limitations.
1595
+
1596
+ ### Coordination efficiency
1597
+
1598
+ Native specialists receive `submit_result`. It validates a bounded report with
1599
+ `status` (`completed`, `partial`, `blocked`), `summary`, the existing assertion/
1600
+ changed-file/test/risk/decision arrays, and `evidence: [{path}]`. Evidence files
1601
+ must be inside the workspace and pass Damage-Control read policy; the tool records
1602
+ their SHA-256 and size. A proven-assertion declaration must reference one of these
1603
+ paths. Hashing a file confirms its identity, **not** the truth of the assertion.
1604
+ Further tool work invalidates an earlier submission; submit again after that work.
1605
+
1606
+ The parent consumes only a matching, successful executed tool result. By default,
1607
+ native runs with this tool do not invoke a model to reconstruct a missing report.
1608
+ A model profile that sets `assist.return-extraction: true` opts into the cheap
1609
+ read-only extraction pass over the written report when a specialist with tracked
1610
+ assertions never submits; the result is labelled extracted and stays weaker than a
1611
+ declared submission. Missing submissions stay visibly `submission_missing` either
1612
+ way; legacy/coms text parsing and its extraction fallback remain supported. `details.specialistCompletion` describes
1613
+ the worker's report, while `details.taskAccepted` remains the runtime acceptance
1614
+ verdict. Partial/blocked reports and unresolved decisions cannot accept the task.
1615
+
1616
+ A fresh review receives the previous report, recorded verification reference and
1617
+ a bounded exact diff of the previously reviewed files. The reviewer must check
1618
+ fixes and affected dependencies. History never grants approval. Changed requirements,
1619
+ scope, HEAD, file set, explicit new focus, stale/missing artifacts, binary/oversized
1620
+ files or incomplete Git observation require a full review. Baselines are local
1621
+ managed artifacts (up to 100 text files / 512 KiB total); journal state stores only
1622
+ references and hashes. Native and coms dispatches share this parent-side context.
1623
+
1624
+ System 1 advice is optional for a concrete unresolved question. Direct reasoning,
1625
+ search and bounded excerpts are permitted at every tier. Choose configured helpers
1626
+ using measured task accuracy, latency and tool reliability; unknown suitability
1627
+ stays unknown. The harness does not invent benchmarks or switch configured models
1628
+ automatically. Source/export permissions remain authoritative.
1629
+
1630
+ Catalog/capability journals record an initial snapshot and actual state changes,
1631
+ rather than every refresh. Session restoration resets suppression; failed writes
1632
+ are retried. Catalog reconciliation, recovery and active-tool enforcement still run
1633
+ on every refresh.