@chankov/agent-fleet 2.0.11 → 2.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1141) hide show
  1. package/.pi/agent-fleet/scripts/flow.ts +5 -3
  2. package/.pi/agent-fleet/scripts/lib/flow-command.ts +9 -4
  3. package/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +1 -1
  4. package/.pi/agent-fleet/scripts/lib/herdr-layout.ts +3 -3
  5. package/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +3 -1
  6. package/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +34 -0
  7. package/.pi/agents/model-profiles.yaml +80 -29
  8. package/.pi/agents/peers.yaml +18 -18
  9. package/.pi/agents/voices.yaml +2 -2
  10. package/.pi/harnesses/agent-hub/README.md +118 -10
  11. package/.pi/harnesses/agent-hub/budget-recovery.ts +24 -1
  12. package/.pi/harnesses/agent-hub/capability-packs.ts +2 -1
  13. package/.pi/harnesses/agent-hub/commands/audit.ts +1 -1
  14. package/.pi/harnesses/agent-hub/commands/context.ts +2 -1
  15. package/.pi/harnesses/agent-hub/commands/recover.ts +52 -0
  16. package/.pi/harnesses/agent-hub/commands/retry.ts +1 -1
  17. package/.pi/harnesses/agent-hub/config/model-profiles.ts +1 -0
  18. package/.pi/harnesses/agent-hub/config/overrides.ts +8 -1
  19. package/.pi/harnesses/agent-hub/context-budget-snapshot.ts +1 -1
  20. package/.pi/harnesses/agent-hub/context-window.js +2 -0
  21. package/.pi/harnesses/agent-hub/delegate.ts +8 -4
  22. package/.pi/harnesses/agent-hub/dispatch-coms.ts +20 -5
  23. package/.pi/harnesses/agent-hub/dispatch-native-complete.ts +9 -3
  24. package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +27 -2
  25. package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +85 -51
  26. package/.pi/harnesses/agent-hub/dispatch-native-types.ts +14 -2
  27. package/.pi/harnesses/agent-hub/dispatch-native.ts +1 -1
  28. package/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
  29. package/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
  30. package/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
  31. package/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
  32. package/.pi/harnesses/agent-hub/drift-watchdog.js +140 -9
  33. package/.pi/harnesses/agent-hub/index.ts +154 -81
  34. package/.pi/harnesses/agent-hub/input/completions.ts +8 -2
  35. package/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +4 -2
  36. package/.pi/harnesses/agent-hub/monitor-lifecycle.ts +1 -1
  37. package/.pi/harnesses/agent-hub/no-progress.ts +169 -16
  38. package/.pi/harnesses/agent-hub/package.json +1 -1
  39. package/.pi/harnesses/agent-hub/policy/profile-activation.ts +2 -2
  40. package/.pi/harnesses/agent-hub/policy/work-mode.ts +2 -2
  41. package/.pi/harnesses/agent-hub/proactive-config.ts +40 -0
  42. package/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
  43. package/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
  44. package/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
  45. package/.pi/harnesses/agent-hub/proactive-local.ts +88 -0
  46. package/.pi/harnesses/agent-hub/proactive-observer.ts +105 -0
  47. package/.pi/harnesses/agent-hub/proactive-rules.ts +143 -0
  48. package/.pi/harnesses/agent-hub/proactive-runtime.ts +316 -0
  49. package/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
  50. package/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
  51. package/.pi/harnesses/agent-hub/proactive-snapshot.ts +243 -0
  52. package/.pi/harnesses/agent-hub/proactive-types.ts +63 -0
  53. package/.pi/harnesses/agent-hub/prompts/context.ts +3 -1
  54. package/.pi/harnesses/agent-hub/prompts/session-start.ts +2 -2
  55. package/.pi/harnesses/agent-hub/prompts/system-prompt.ts +3 -0
  56. package/.pi/harnesses/agent-hub/reconcile.ts +26 -0
  57. package/.pi/harnesses/agent-hub/recover-policy.ts +27 -0
  58. package/.pi/harnesses/agent-hub/recover-state.ts +104 -0
  59. package/.pi/harnesses/agent-hub/recovery-contract.ts +3 -1
  60. package/.pi/harnesses/agent-hub/research/controls.ts +1 -1
  61. package/.pi/harnesses/agent-hub/research/runtime.ts +4 -2
  62. package/.pi/harnesses/agent-hub/research/spawn-run.ts +5 -2
  63. package/.pi/harnesses/agent-hub/return-extract.js +4 -2
  64. package/.pi/harnesses/agent-hub/review-findings.js +2 -0
  65. package/.pi/harnesses/agent-hub/run-budget.js +6 -1
  66. package/.pi/harnesses/agent-hub/run-namespace.js +6 -0
  67. package/.pi/harnesses/agent-hub/session-audit.ts +73 -7
  68. package/.pi/harnesses/agent-hub/spawn.ts +76 -8
  69. package/.pi/harnesses/agent-hub/system1-activity.ts +510 -0
  70. package/.pi/harnesses/agent-hub/system1-report.ts +225 -0
  71. package/.pi/harnesses/agent-hub/system1-runtime.ts +276 -0
  72. package/.pi/harnesses/agent-hub/timeline.ts +23 -5
  73. package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +14 -1
  74. package/.pi/harnesses/agent-hub/tools/herdr-executors.ts +2 -2
  75. package/.pi/harnesses/agent-hub/tools/run-flow.ts +16 -2
  76. package/.pi/harnesses/agent-hub/types.ts +1 -0
  77. package/.pi/harnesses/agent-hub/ui/activity-dots.ts +12 -3
  78. package/.pi/harnesses/agent-hub/ui/context-budget.ts +4 -3
  79. package/.pi/harnesses/agent-hub/ui/detail-panel.ts +36 -22
  80. package/.pi/harnesses/agent-hub/ui/fleet-actions.ts +3 -1
  81. package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +32 -7
  82. package/.pi/harnesses/agent-hub/ui/fleet-source.ts +20 -2
  83. package/.pi/harnesses/agent-hub/ui/grid.ts +15 -10
  84. package/.pi/harnesses/agent-hub/ui/pool.ts +1 -1
  85. package/.pi/harnesses/agent-hub/ui/zoom.ts +5 -3
  86. package/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
  87. package/.pi/harnesses/coms/package.json +1 -1
  88. package/.pi/harnesses/damage-control-continue/package.json +1 -1
  89. package/.pi/harnesses/lib/coms-core.ts +1 -1
  90. package/.pi/harnesses/lib/context-budget-child-prompt.ts +41 -2
  91. package/.pi/harnesses/lib/context-budget-hub-prompt.ts +4 -2
  92. package/.pi/harnesses/lib/context-budget.ts +1 -1
  93. package/.pi/harnesses/lib/fleet-dashboard-view.ts +16 -3
  94. package/.pi/harnesses/lib/fleet-detail-view.ts +98 -6
  95. package/.pi/harnesses/lib/fleet-read-model.ts +337 -14
  96. package/.pi/harnesses/lib/fleet-strip-view.ts +59 -12
  97. package/.pi/harnesses/lib/hermes-monitor-registry.ts +1 -1
  98. package/.pi/harnesses/lib/spawned-peers.js +1 -0
  99. package/.pi/harnesses/lib/system1/config.js +61 -0
  100. package/.pi/harnesses/lib/system1/contracts.ts +152 -0
  101. package/.pi/harnesses/lib/system1/demo.ts +106 -0
  102. package/.pi/harnesses/lib/system1/jev.ts +503 -0
  103. package/.pi/harnesses/lib/system1/service.ts +245 -0
  104. package/.pi/prompts/af-setup-rules.md +20 -0
  105. package/.versions/2.0.12/.pi/agent-fleet/hermes/README.md +347 -0
  106. package/.versions/2.0.12/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
  107. package/.versions/2.0.12/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
  108. package/.versions/2.0.12/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
  109. package/.versions/2.0.12/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
  110. package/.versions/2.0.12/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
  111. package/.versions/2.0.12/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
  112. package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
  113. package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
  114. package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
  115. package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
  116. package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
  117. package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
  118. package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
  119. package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
  120. package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
  121. package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
  122. package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
  123. package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
  124. package/.versions/2.0.12/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
  125. package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
  126. package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
  127. package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
  128. package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
  129. package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
  130. package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
  131. package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
  132. package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
  133. package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
  134. package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
  135. package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
  136. package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
  137. package/.versions/2.0.12/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
  138. package/.versions/2.0.12/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
  139. package/.versions/2.0.12/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
  140. package/.versions/2.0.12/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
  141. package/.versions/2.0.12/.pi/agent-fleet/scripts/coms-claude-bridge.ts +411 -0
  142. package/.versions/2.0.12/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
  143. package/.versions/2.0.12/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
  144. package/.versions/2.0.12/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
  145. package/.versions/2.0.12/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
  146. package/.versions/2.0.12/.pi/agent-fleet/scripts/fleet.ts +216 -0
  147. package/.versions/2.0.12/.pi/agent-fleet/scripts/flow.ts +155 -0
  148. package/.versions/2.0.12/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
  149. package/.versions/2.0.12/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
  150. package/.versions/2.0.12/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
  151. package/.versions/2.0.12/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
  152. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +210 -0
  153. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
  154. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
  155. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
  156. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
  157. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
  158. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
  159. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
  160. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/flow-command.ts +93 -0
  161. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
  162. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
  163. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
  164. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
  165. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
  166. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
  167. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
  168. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
  169. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
  170. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
  171. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
  172. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
  173. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
  174. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
  175. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
  176. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
  177. package/.versions/2.0.12/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
  178. package/.versions/2.0.12/.pi/agent-fleet/scripts/package-lock.json +35 -0
  179. package/.versions/2.0.12/.pi/agent-fleet/scripts/package.json +9 -0
  180. package/.versions/2.0.12/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
  181. package/.versions/2.0.12/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
  182. package/.versions/2.0.12/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
  183. package/.versions/2.0.12/.pi/agent-fleet/scripts/team-up.ts +378 -0
  184. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +177 -0
  185. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
  186. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
  187. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
  188. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
  189. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
  190. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
  191. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
  192. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
  193. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
  194. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
  195. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
  196. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
  197. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
  198. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
  199. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
  200. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
  201. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
  202. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
  203. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
  204. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
  205. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
  206. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
  207. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
  208. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
  209. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
  210. package/.versions/2.0.12/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
  211. package/.versions/2.0.12/.pi/agents/dispatch-policy.yaml +32 -0
  212. package/.versions/2.0.12/.pi/agents/model-profiles.yaml +83 -0
  213. package/.versions/2.0.12/.pi/agents/peers.yaml +147 -0
  214. package/.versions/2.0.12/.pi/agents/teams.yaml +41 -0
  215. package/.versions/2.0.12/.pi/agents/voices.yaml +13 -0
  216. package/.versions/2.0.12/.pi/damage-control-rules.yaml +297 -0
  217. package/.versions/2.0.12/.pi/extensions/btw/README.md +120 -0
  218. package/.versions/2.0.12/.pi/extensions/btw/index.ts +914 -0
  219. package/.versions/2.0.12/.pi/extensions/btw/package.json +6 -0
  220. package/.versions/2.0.12/.pi/extensions/btw/state.js +179 -0
  221. package/.versions/2.0.12/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
  222. package/.versions/2.0.12/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
  223. package/.versions/2.0.12/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  224. package/.versions/2.0.12/.pi/extensions/compact-and-continue/README.md +42 -0
  225. package/.versions/2.0.12/.pi/extensions/compact-and-continue/index.ts +120 -0
  226. package/.versions/2.0.12/.pi/extensions/compact-and-continue/package.json +6 -0
  227. package/.versions/2.0.12/.pi/extensions/mcp-bridge/README.md +46 -0
  228. package/.versions/2.0.12/.pi/extensions/mcp-bridge/index.ts +206 -0
  229. package/.versions/2.0.12/.pi/extensions/mcp-bridge/package.json +6 -0
  230. package/.versions/2.0.12/.pi/extensions/package-lock.json +1175 -0
  231. package/.versions/2.0.12/.pi/extensions/package.json +9 -0
  232. package/.versions/2.0.12/.pi/extensions/pi-voice-stt/README.md +224 -0
  233. package/.versions/2.0.12/.pi/extensions/pi-voice-stt/config.ts +198 -0
  234. package/.versions/2.0.12/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
  235. package/.versions/2.0.12/.pi/extensions/pi-voice-stt/index.ts +248 -0
  236. package/.versions/2.0.12/.pi/extensions/pi-voice-stt/package.json +6 -0
  237. package/.versions/2.0.12/.pi/extensions/pi-voice-stt/providers.ts +214 -0
  238. package/.versions/2.0.12/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
  239. package/.versions/2.0.12/.pi/harnesses/agent-hub/README.md +1309 -0
  240. package/.versions/2.0.12/.pi/harnesses/agent-hub/acceptance.ts +199 -0
  241. package/.versions/2.0.12/.pi/harnesses/agent-hub/access-approval.ts +135 -0
  242. package/.versions/2.0.12/.pi/harnesses/agent-hub/artifacts.js +146 -0
  243. package/.versions/2.0.12/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
  244. package/.versions/2.0.12/.pi/harnesses/agent-hub/assist-profile.ts +16 -0
  245. package/.versions/2.0.12/.pi/harnesses/agent-hub/backend-policy.js +174 -0
  246. package/.versions/2.0.12/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
  247. package/.versions/2.0.12/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
  248. package/.versions/2.0.12/.pi/harnesses/agent-hub/budget-recovery.ts +214 -0
  249. package/.versions/2.0.12/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
  250. package/.versions/2.0.12/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
  251. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
  252. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
  253. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
  254. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
  255. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
  256. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
  257. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
  258. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
  259. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
  260. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
  261. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
  262. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
  263. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
  264. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
  265. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
  266. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
  267. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/context.ts +45 -0
  268. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
  269. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
  270. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
  271. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
  272. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/models.ts +10 -0
  273. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
  274. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/recover.ts +52 -0
  275. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
  276. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
  277. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
  278. package/.versions/2.0.12/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
  279. package/.versions/2.0.12/.pi/harnesses/agent-hub/config/agents.ts +178 -0
  280. package/.versions/2.0.12/.pi/harnesses/agent-hub/config/model-profiles.ts +235 -0
  281. package/.versions/2.0.12/.pi/harnesses/agent-hub/config/overrides.ts +160 -0
  282. package/.versions/2.0.12/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
  283. package/.versions/2.0.12/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
  284. package/.versions/2.0.12/.pi/harnesses/agent-hub/context/budgets.ts +204 -0
  285. package/.versions/2.0.12/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
  286. package/.versions/2.0.12/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
  287. package/.versions/2.0.12/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
  288. package/.versions/2.0.12/.pi/harnesses/agent-hub/context-window.js +108 -0
  289. package/.versions/2.0.12/.pi/harnesses/agent-hub/debate-command.ts +176 -0
  290. package/.versions/2.0.12/.pi/harnesses/agent-hub/delegate.ts +465 -0
  291. package/.versions/2.0.12/.pi/harnesses/agent-hub/deterministic-fs.ts +127 -0
  292. package/.versions/2.0.12/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
  293. package/.versions/2.0.12/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
  294. package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-coms.ts +252 -0
  295. package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
  296. package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-native-complete.ts +169 -0
  297. package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +223 -0
  298. package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +202 -0
  299. package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-native-types.ts +251 -0
  300. package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-native.ts +226 -0
  301. package/.versions/2.0.12/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
  302. package/.versions/2.0.12/.pi/harnesses/agent-hub/docs-lane.js +122 -0
  303. package/.versions/2.0.12/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
  304. package/.versions/2.0.12/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
  305. package/.versions/2.0.12/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
  306. package/.versions/2.0.12/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
  307. package/.versions/2.0.12/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
  308. package/.versions/2.0.12/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
  309. package/.versions/2.0.12/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
  310. package/.versions/2.0.12/.pi/harnesses/agent-hub/external-blocker.js +85 -0
  311. package/.versions/2.0.12/.pi/harnesses/agent-hub/filesystem-tool.ts +73 -0
  312. package/.versions/2.0.12/.pi/harnesses/agent-hub/fixtures/registration-surface.json +61 -0
  313. package/.versions/2.0.12/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
  314. package/.versions/2.0.12/.pi/harnesses/agent-hub/footer.ts +30 -0
  315. package/.versions/2.0.12/.pi/harnesses/agent-hub/helpers.ts +270 -0
  316. package/.versions/2.0.12/.pi/harnesses/agent-hub/hub-state-audit.js +65 -0
  317. package/.versions/2.0.12/.pi/harnesses/agent-hub/index.ts +2301 -0
  318. package/.versions/2.0.12/.pi/harnesses/agent-hub/input/completions.ts +82 -0
  319. package/.versions/2.0.12/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
  320. package/.versions/2.0.12/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +125 -0
  321. package/.versions/2.0.12/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
  322. package/.versions/2.0.12/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
  323. package/.versions/2.0.12/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
  324. package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
  325. package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
  326. package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
  327. package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
  328. package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
  329. package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
  330. package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
  331. package/.versions/2.0.12/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
  332. package/.versions/2.0.12/.pi/harnesses/agent-hub/no-progress.ts +359 -0
  333. package/.versions/2.0.12/.pi/harnesses/agent-hub/package.json +7 -0
  334. package/.versions/2.0.12/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
  335. package/.versions/2.0.12/.pi/harnesses/agent-hub/policy/models.ts +153 -0
  336. package/.versions/2.0.12/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
  337. package/.versions/2.0.12/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
  338. package/.versions/2.0.12/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
  339. package/.versions/2.0.12/.pi/harnesses/agent-hub/policy/work-mode.ts +126 -0
  340. package/.versions/2.0.12/.pi/harnesses/agent-hub/poll-command.ts +176 -0
  341. package/.versions/2.0.12/.pi/harnesses/agent-hub/presentation.ts +48 -0
  342. package/.versions/2.0.12/.pi/harnesses/agent-hub/process-obligations.ts +57 -0
  343. package/.versions/2.0.12/.pi/harnesses/agent-hub/prompts/context.ts +51 -0
  344. package/.versions/2.0.12/.pi/harnesses/agent-hub/prompts/fragments.ts +118 -0
  345. package/.versions/2.0.12/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
  346. package/.versions/2.0.12/.pi/harnesses/agent-hub/prompts/system-prompt.ts +112 -0
  347. package/.versions/2.0.12/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
  348. package/.versions/2.0.12/.pi/harnesses/agent-hub/reconcile.ts +26 -0
  349. package/.versions/2.0.12/.pi/harnesses/agent-hub/recover-policy.ts +27 -0
  350. package/.versions/2.0.12/.pi/harnesses/agent-hub/recover-state.ts +104 -0
  351. package/.versions/2.0.12/.pi/harnesses/agent-hub/recovery-contract.ts +80 -0
  352. package/.versions/2.0.12/.pi/harnesses/agent-hub/research/controls.ts +74 -0
  353. package/.versions/2.0.12/.pi/harnesses/agent-hub/research/runtime.ts +193 -0
  354. package/.versions/2.0.12/.pi/harnesses/agent-hub/research/spawn-run.ts +171 -0
  355. package/.versions/2.0.12/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
  356. package/.versions/2.0.12/.pi/harnesses/agent-hub/return-contract.js +327 -0
  357. package/.versions/2.0.12/.pi/harnesses/agent-hub/return-extract.js +77 -0
  358. package/.versions/2.0.12/.pi/harnesses/agent-hub/review-findings.js +104 -0
  359. package/.versions/2.0.12/.pi/harnesses/agent-hub/run-budget.js +542 -0
  360. package/.versions/2.0.12/.pi/harnesses/agent-hub/run-namespace.js +93 -0
  361. package/.versions/2.0.12/.pi/harnesses/agent-hub/runtime-test-check.ts +54 -0
  362. package/.versions/2.0.12/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
  363. package/.versions/2.0.12/.pi/harnesses/agent-hub/scope-gate.js +123 -0
  364. package/.versions/2.0.12/.pi/harnesses/agent-hub/session-audit.ts +226 -0
  365. package/.versions/2.0.12/.pi/harnesses/agent-hub/session-health.js +110 -0
  366. package/.versions/2.0.12/.pi/harnesses/agent-hub/session-start.ts +42 -0
  367. package/.versions/2.0.12/.pi/harnesses/agent-hub/spawn.ts +526 -0
  368. package/.versions/2.0.12/.pi/harnesses/agent-hub/system1-activity.ts +443 -0
  369. package/.versions/2.0.12/.pi/harnesses/agent-hub/system1-report.ts +84 -0
  370. package/.versions/2.0.12/.pi/harnesses/agent-hub/system1-runtime.ts +273 -0
  371. package/.versions/2.0.12/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
  372. package/.versions/2.0.12/.pi/harnesses/agent-hub/timeline.ts +72 -0
  373. package/.versions/2.0.12/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +68 -0
  374. package/.versions/2.0.12/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
  375. package/.versions/2.0.12/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
  376. package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/action-executors.ts +185 -0
  377. package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
  378. package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/context.ts +142 -0
  379. package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +82 -0
  380. package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +498 -0
  381. package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
  382. package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
  383. package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
  384. package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/run-flow.ts +122 -0
  385. package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
  386. package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/spawn-research.ts +65 -0
  387. package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
  388. package/.versions/2.0.12/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
  389. package/.versions/2.0.12/.pi/harnesses/agent-hub/tsconfig.json +22 -0
  390. package/.versions/2.0.12/.pi/harnesses/agent-hub/types.ts +66 -0
  391. package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
  392. package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/context-budget.ts +87 -0
  393. package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/detail-panel.ts +171 -0
  394. package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
  395. package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +99 -0
  396. package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
  397. package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/fleet-source.ts +170 -0
  398. package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/grid.ts +154 -0
  399. package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
  400. package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/history.ts +234 -0
  401. package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
  402. package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
  403. package/.versions/2.0.12/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
  404. package/.versions/2.0.12/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
  405. package/.versions/2.0.12/.pi/harnesses/agent-hub/version.ts +42 -0
  406. package/.versions/2.0.12/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
  407. package/.versions/2.0.12/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
  408. package/.versions/2.0.12/.pi/harnesses/agent-hub/work-mode.ts +173 -0
  409. package/.versions/2.0.12/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
  410. package/.versions/2.0.12/.pi/harnesses/ask-user-remote/README.md +59 -0
  411. package/.versions/2.0.12/.pi/harnesses/ask-user-remote/index.ts +558 -0
  412. package/.versions/2.0.12/.pi/harnesses/ask-user-remote/questions.ts +161 -0
  413. package/.versions/2.0.12/.pi/harnesses/ask-user-remote/race-core.js +124 -0
  414. package/.versions/2.0.12/.pi/harnesses/ask-user-remote/runtime-ask.ts +68 -0
  415. package/.versions/2.0.12/.pi/harnesses/coms/README.md +100 -0
  416. package/.versions/2.0.12/.pi/harnesses/coms/index.ts +282 -0
  417. package/.versions/2.0.12/.pi/harnesses/coms/package.json +7 -0
  418. package/.versions/2.0.12/.pi/harnesses/coms/version.ts +42 -0
  419. package/.versions/2.0.12/.pi/harnesses/damage-control-continue/README.md +135 -0
  420. package/.versions/2.0.12/.pi/harnesses/damage-control-continue/index.ts +550 -0
  421. package/.versions/2.0.12/.pi/harnesses/damage-control-continue/package.json +7 -0
  422. package/.versions/2.0.12/.pi/harnesses/damage-control-continue/version.ts +42 -0
  423. package/.versions/2.0.12/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
  424. package/.versions/2.0.12/.pi/harnesses/lib/coms-core-io.ts +385 -0
  425. package/.versions/2.0.12/.pi/harnesses/lib/coms-core.ts +577 -0
  426. package/.versions/2.0.12/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
  427. package/.versions/2.0.12/.pi/harnesses/lib/context-budget-child-prompt.ts +180 -0
  428. package/.versions/2.0.12/.pi/harnesses/lib/context-budget-hub-prompt.ts +114 -0
  429. package/.versions/2.0.12/.pi/harnesses/lib/context-budget-view.ts +107 -0
  430. package/.versions/2.0.12/.pi/harnesses/lib/context-budget.ts +114 -0
  431. package/.versions/2.0.12/.pi/harnesses/lib/damage-control-shared.ts +197 -0
  432. package/.versions/2.0.12/.pi/harnesses/lib/deterministic-handle-path.ts +23 -0
  433. package/.versions/2.0.12/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
  434. package/.versions/2.0.12/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
  435. package/.versions/2.0.12/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
  436. package/.versions/2.0.12/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
  437. package/.versions/2.0.12/.pi/harnesses/lib/fleet-dashboard-view.ts +136 -0
  438. package/.versions/2.0.12/.pi/harnesses/lib/fleet-detail-view.ts +278 -0
  439. package/.versions/2.0.12/.pi/harnesses/lib/fleet-overlay.ts +26 -0
  440. package/.versions/2.0.12/.pi/harnesses/lib/fleet-panel.ts +34 -0
  441. package/.versions/2.0.12/.pi/harnesses/lib/fleet-read-model.ts +405 -0
  442. package/.versions/2.0.12/.pi/harnesses/lib/fleet-selection.ts +24 -0
  443. package/.versions/2.0.12/.pi/harnesses/lib/fleet-strip-controller.ts +74 -0
  444. package/.versions/2.0.12/.pi/harnesses/lib/fleet-strip-view.ts +144 -0
  445. package/.versions/2.0.12/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
  446. package/.versions/2.0.12/.pi/harnesses/lib/herdr-client.ts +472 -0
  447. package/.versions/2.0.12/.pi/harnesses/lib/herdr-presence.ts +399 -0
  448. package/.versions/2.0.12/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
  449. package/.versions/2.0.12/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
  450. package/.versions/2.0.12/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
  451. package/.versions/2.0.12/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
  452. package/.versions/2.0.12/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
  453. package/.versions/2.0.12/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
  454. package/.versions/2.0.12/.pi/harnesses/lib/spawned-peers.js +191 -0
  455. package/.versions/2.0.12/.pi/harnesses/lib/system1/config.js +61 -0
  456. package/.versions/2.0.12/.pi/harnesses/lib/system1/contracts.ts +152 -0
  457. package/.versions/2.0.12/.pi/harnesses/lib/system1/demo.ts +106 -0
  458. package/.versions/2.0.12/.pi/harnesses/lib/system1/jev.ts +503 -0
  459. package/.versions/2.0.12/.pi/harnesses/lib/system1/service.ts +245 -0
  460. package/.versions/2.0.12/.pi/harnesses/lib/update-check.ts +222 -0
  461. package/.versions/2.0.12/.pi/harnesses/package-lock.json +2039 -0
  462. package/.versions/2.0.12/.pi/harnesses/package.json +10 -0
  463. package/.versions/2.0.12/.pi/prompts/af-build.md +24 -0
  464. package/.versions/2.0.12/.pi/prompts/af-code-simplify.md +22 -0
  465. package/.versions/2.0.12/.pi/prompts/af-constraints.md +31 -0
  466. package/.versions/2.0.12/.pi/prompts/af-plan.md +17 -0
  467. package/.versions/2.0.12/.pi/prompts/af-review.md +16 -0
  468. package/.versions/2.0.12/.pi/prompts/af-set-hermes-telegram.md +15 -0
  469. package/.versions/2.0.12/.pi/prompts/af-set-hermes-watchdog.md +6 -0
  470. package/.versions/2.0.12/.pi/prompts/af-ship.md +17 -0
  471. package/.versions/2.0.12/.pi/prompts/af-spec.md +15 -0
  472. package/.versions/2.0.12/.pi/prompts/af-test.md +19 -0
  473. package/.versions/2.0.12/.pi/skills/bowser/SKILL.md +145 -0
  474. package/.versions/2.0.12/.version +1 -0
  475. package/.versions/2.0.12/agents/architect.md +25 -0
  476. package/.versions/2.0.12/agents/bowser.md +28 -0
  477. package/.versions/2.0.12/agents/builder.md +56 -0
  478. package/.versions/2.0.12/agents/code-reviewer.md +210 -0
  479. package/.versions/2.0.12/agents/deep-researcher.md +33 -0
  480. package/.versions/2.0.12/agents/documenter.md +23 -0
  481. package/.versions/2.0.12/agents/orchestrator.md +23 -0
  482. package/.versions/2.0.12/agents/plan-reviewer.md +84 -0
  483. package/.versions/2.0.12/agents/planner.md +106 -0
  484. package/.versions/2.0.12/agents/releaser.md +25 -0
  485. package/.versions/2.0.12/agents/researcher.md +31 -0
  486. package/.versions/2.0.12/agents/security-auditor.md +168 -0
  487. package/.versions/2.0.12/agents/test-engineer.md +154 -0
  488. package/.versions/2.0.12/agents/web-debugger.md +44 -0
  489. package/.versions/2.0.12/agents/web-performance-auditor.md +194 -0
  490. package/.versions/2.0.12/bin/catalog/harness-runtime-closure.json +61 -0
  491. package/.versions/2.0.12/codex/fleet-session-client/SKILL.md +34 -0
  492. package/.versions/2.0.12/codex/fleet-session-client.zip +0 -0
  493. package/.versions/2.0.12/docs/ARCHITECTURE.md +705 -0
  494. package/.versions/2.0.12/docs/agent-fleet-setup.md +682 -0
  495. package/.versions/2.0.12/docs/claude-code-coms-bridge.md +134 -0
  496. package/.versions/2.0.12/docs/codex-session-bridge.md +219 -0
  497. package/.versions/2.0.12/docs/coms-hermes-bridge.md +188 -0
  498. package/.versions/2.0.12/docs/getting-started.md +126 -0
  499. package/.versions/2.0.12/docs/npm-install.md +468 -0
  500. package/.versions/2.0.12/docs/pi-extensions.md +449 -0
  501. package/.versions/2.0.12/docs/pi-setup.md +92 -0
  502. package/.versions/2.0.12/docs/skill-anatomy.md +150 -0
  503. package/.versions/2.0.12/install-manifest.json +3053 -0
  504. package/.versions/2.0.12/justfile +247 -0
  505. package/.versions/2.0.12/manifest-meta.json +995 -0
  506. package/.versions/2.0.12/references/accessibility-checklist.md +160 -0
  507. package/.versions/2.0.12/references/communication-contract.md +26 -0
  508. package/.versions/2.0.12/references/definition-of-done.md +67 -0
  509. package/.versions/2.0.12/references/fleet-coordination-patterns.md +171 -0
  510. package/.versions/2.0.12/references/observability-checklist.md +92 -0
  511. package/.versions/2.0.12/references/orchestration-patterns.md +370 -0
  512. package/.versions/2.0.12/references/performance-checklist.md +236 -0
  513. package/.versions/2.0.12/references/prompting-patterns.md +380 -0
  514. package/.versions/2.0.12/references/security-checklist.md +245 -0
  515. package/.versions/2.0.12/references/testing-patterns.md +235 -0
  516. package/.versions/2.0.12/references/workflow-authoring.md +304 -0
  517. package/.versions/2.0.12/skills/_internal/grilling.md +59 -0
  518. package/.versions/2.0.12/skills/browser-testing-with-devtools/SKILL.md +351 -0
  519. package/.versions/2.0.12/skills/code-review-and-quality/SKILL.md +396 -0
  520. package/.versions/2.0.12/skills/compound-learning/SKILL.md +137 -0
  521. package/.versions/2.0.12/skills/constraint-driven-development/SKILL.md +338 -0
  522. package/.versions/2.0.12/skills/constraint-driven-development/references/floor-guard.md +99 -0
  523. package/.versions/2.0.12/skills/context-engineering/SKILL.md +341 -0
  524. package/.versions/2.0.12/skills/deprecation-and-migration/SKILL.md +247 -0
  525. package/.versions/2.0.12/skills/designing-agents/SKILL.md +394 -0
  526. package/.versions/2.0.12/skills/designing-agents/pi-harness-authoring.md +222 -0
  527. package/.versions/2.0.12/skills/drafting-workflows/SKILL.md +143 -0
  528. package/.versions/2.0.12/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
  529. package/.versions/2.0.12/skills/frontend-ui-engineering/SKILL.md +328 -0
  530. package/.versions/2.0.12/skills/git-workflow-and-versioning/SKILL.md +316 -0
  531. package/.versions/2.0.12/skills/idea-refine/SKILL.md +182 -0
  532. package/.versions/2.0.12/skills/idea-refine/examples.md +238 -0
  533. package/.versions/2.0.12/skills/idea-refine/frameworks.md +99 -0
  534. package/.versions/2.0.12/skills/idea-refine/refinement-criteria.md +113 -0
  535. package/.versions/2.0.12/skills/idea-refine/scripts/idea-refine.sh +15 -0
  536. package/.versions/2.0.12/skills/incremental-implementation/SKILL.md +302 -0
  537. package/.versions/2.0.12/skills/interview-me/SKILL.md +226 -0
  538. package/.versions/2.0.12/skills/orchestration-verification/SKILL.md +182 -0
  539. package/.versions/2.0.12/skills/peer-coms/SKILL.md +90 -0
  540. package/.versions/2.0.12/skills/performance-optimization/SKILL.md +496 -0
  541. package/.versions/2.0.12/skills/planning-and-task-breakdown/SKILL.md +289 -0
  542. package/.versions/2.0.12/skills/security-and-hardening/SKILL.md +524 -0
  543. package/.versions/2.0.12/skills/spec-driven-development/SKILL.md +295 -0
  544. package/.versions/2.0.12/skills/using-agent-skills/SKILL.md +198 -0
  545. package/.versions/2.0.12/vendor/agent-skills-upstream/LICENSE +21 -0
  546. package/.versions/2.0.12/vendor/agent-skills-upstream/README.md +430 -0
  547. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
  548. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
  549. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
  550. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
  551. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
  552. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
  553. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
  554. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
  555. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
  556. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
  557. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
  558. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
  559. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
  560. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
  561. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
  562. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
  563. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
  564. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
  565. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
  566. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
  567. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
  568. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
  569. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
  570. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
  571. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
  572. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
  573. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
  574. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
  575. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
  576. package/.versions/2.0.12/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
  577. package/.versions/2.0.13/.pi/agent-fleet/hermes/README.md +347 -0
  578. package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
  579. package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
  580. package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
  581. package/.versions/2.0.13/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
  582. package/.versions/2.0.13/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
  583. package/.versions/2.0.13/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
  584. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
  585. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
  586. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
  587. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
  588. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
  589. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
  590. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
  591. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
  592. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
  593. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
  594. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
  595. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
  596. package/.versions/2.0.13/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
  597. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
  598. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
  599. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
  600. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
  601. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
  602. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
  603. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
  604. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
  605. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
  606. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
  607. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
  608. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
  609. package/.versions/2.0.13/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
  610. package/.versions/2.0.13/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
  611. package/.versions/2.0.13/.pi/agent-fleet/hooks/coms-stop-hook.mjs +84 -0
  612. package/.versions/2.0.13/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
  613. package/.versions/2.0.13/.pi/agent-fleet/scripts/coms-claude-bridge.ts +411 -0
  614. package/.versions/2.0.13/.pi/agent-fleet/scripts/coms-cli.ts +425 -0
  615. package/.versions/2.0.13/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +413 -0
  616. package/.versions/2.0.13/.pi/agent-fleet/scripts/fleet-codex-client.ts +69 -0
  617. package/.versions/2.0.13/.pi/agent-fleet/scripts/fleet-codex-read.py +148 -0
  618. package/.versions/2.0.13/.pi/agent-fleet/scripts/fleet.ts +216 -0
  619. package/.versions/2.0.13/.pi/agent-fleet/scripts/flow.ts +157 -0
  620. package/.versions/2.0.13/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
  621. package/.versions/2.0.13/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
  622. package/.versions/2.0.13/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
  623. package/.versions/2.0.13/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
  624. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +210 -0
  625. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
  626. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
  627. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-catalog.ts +63 -0
  628. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-operations.ts +190 -0
  629. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-session.ts +166 -0
  630. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-codex-transport.ts +124 -0
  631. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/fleet-command.ts +252 -0
  632. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/flow-command.ts +98 -0
  633. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +230 -0
  634. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
  635. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
  636. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
  637. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
  638. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
  639. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
  640. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
  641. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
  642. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
  643. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
  644. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
  645. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
  646. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
  647. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
  648. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/team-project.ts +178 -0
  649. package/.versions/2.0.13/.pi/agent-fleet/scripts/lib/team-snapshot.ts +147 -0
  650. package/.versions/2.0.13/.pi/agent-fleet/scripts/package-lock.json +35 -0
  651. package/.versions/2.0.13/.pi/agent-fleet/scripts/package.json +9 -0
  652. package/.versions/2.0.13/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
  653. package/.versions/2.0.13/.pi/agent-fleet/scripts/peer-launch.ts +283 -0
  654. package/.versions/2.0.13/.pi/agent-fleet/scripts/team-snapshot.ts +237 -0
  655. package/.versions/2.0.13/.pi/agent-fleet/scripts/team-up.ts +378 -0
  656. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +179 -0
  657. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
  658. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
  659. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/env.ts +34 -0
  660. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
  661. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
  662. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/git.ts +96 -0
  663. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +125 -0
  664. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
  665. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
  666. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
  667. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +130 -0
  668. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
  669. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
  670. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +34 -0
  671. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/quality.ts +64 -0
  672. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/run.ts +108 -0
  673. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
  674. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/trace.ts +34 -0
  675. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
  676. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +112 -0
  677. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
  678. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
  679. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
  680. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
  681. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
  682. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
  683. package/.versions/2.0.13/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
  684. package/.versions/2.0.13/.pi/agents/dispatch-policy.yaml +32 -0
  685. package/.versions/2.0.13/.pi/agents/model-profiles.yaml +134 -0
  686. package/.versions/2.0.13/.pi/agents/peers.yaml +147 -0
  687. package/.versions/2.0.13/.pi/agents/teams.yaml +41 -0
  688. package/.versions/2.0.13/.pi/agents/voices.yaml +13 -0
  689. package/.versions/2.0.13/.pi/damage-control-rules.yaml +297 -0
  690. package/.versions/2.0.13/.pi/extensions/btw/README.md +120 -0
  691. package/.versions/2.0.13/.pi/extensions/btw/index.ts +914 -0
  692. package/.versions/2.0.13/.pi/extensions/btw/package.json +6 -0
  693. package/.versions/2.0.13/.pi/extensions/btw/state.js +179 -0
  694. package/.versions/2.0.13/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
  695. package/.versions/2.0.13/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
  696. package/.versions/2.0.13/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  697. package/.versions/2.0.13/.pi/extensions/compact-and-continue/README.md +42 -0
  698. package/.versions/2.0.13/.pi/extensions/compact-and-continue/index.ts +120 -0
  699. package/.versions/2.0.13/.pi/extensions/compact-and-continue/package.json +6 -0
  700. package/.versions/2.0.13/.pi/extensions/mcp-bridge/README.md +46 -0
  701. package/.versions/2.0.13/.pi/extensions/mcp-bridge/index.ts +206 -0
  702. package/.versions/2.0.13/.pi/extensions/mcp-bridge/package.json +6 -0
  703. package/.versions/2.0.13/.pi/extensions/package-lock.json +1175 -0
  704. package/.versions/2.0.13/.pi/extensions/package.json +9 -0
  705. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/README.md +224 -0
  706. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/config.ts +198 -0
  707. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
  708. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/index.ts +248 -0
  709. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/package.json +6 -0
  710. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/providers.ts +214 -0
  711. package/.versions/2.0.13/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
  712. package/.versions/2.0.13/.pi/harnesses/agent-hub/README.md +1360 -0
  713. package/.versions/2.0.13/.pi/harnesses/agent-hub/acceptance.ts +199 -0
  714. package/.versions/2.0.13/.pi/harnesses/agent-hub/access-approval.ts +135 -0
  715. package/.versions/2.0.13/.pi/harnesses/agent-hub/artifacts.js +146 -0
  716. package/.versions/2.0.13/.pi/harnesses/agent-hub/assertion-ledger.js +67 -0
  717. package/.versions/2.0.13/.pi/harnesses/agent-hub/assist-profile.ts +16 -0
  718. package/.versions/2.0.13/.pi/harnesses/agent-hub/backend-policy.js +174 -0
  719. package/.versions/2.0.13/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
  720. package/.versions/2.0.13/.pi/harnesses/agent-hub/budget-continuation.ts +13 -0
  721. package/.versions/2.0.13/.pi/harnesses/agent-hub/budget-recovery.ts +214 -0
  722. package/.versions/2.0.13/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
  723. package/.versions/2.0.13/.pi/harnesses/agent-hub/capability-packs.ts +184 -0
  724. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
  725. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
  726. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
  727. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
  728. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
  729. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
  730. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
  731. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
  732. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
  733. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
  734. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
  735. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
  736. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/budget-continue.ts +10 -0
  737. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
  738. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
  739. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
  740. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/context.ts +45 -0
  741. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
  742. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
  743. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
  744. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
  745. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/models.ts +10 -0
  746. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
  747. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/recover.ts +52 -0
  748. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
  749. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
  750. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/work-mode.ts +29 -0
  751. package/.versions/2.0.13/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
  752. package/.versions/2.0.13/.pi/harnesses/agent-hub/config/agents.ts +178 -0
  753. package/.versions/2.0.13/.pi/harnesses/agent-hub/config/model-profiles.ts +236 -0
  754. package/.versions/2.0.13/.pi/harnesses/agent-hub/config/overrides.ts +160 -0
  755. package/.versions/2.0.13/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
  756. package/.versions/2.0.13/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +221 -0
  757. package/.versions/2.0.13/.pi/harnesses/agent-hub/context/budgets.ts +204 -0
  758. package/.versions/2.0.13/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
  759. package/.versions/2.0.13/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
  760. package/.versions/2.0.13/.pi/harnesses/agent-hub/context-pressure.ts +191 -0
  761. package/.versions/2.0.13/.pi/harnesses/agent-hub/context-window.js +108 -0
  762. package/.versions/2.0.13/.pi/harnesses/agent-hub/debate-command.ts +176 -0
  763. package/.versions/2.0.13/.pi/harnesses/agent-hub/delegate.ts +467 -0
  764. package/.versions/2.0.13/.pi/harnesses/agent-hub/deterministic-fs.ts +127 -0
  765. package/.versions/2.0.13/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
  766. package/.versions/2.0.13/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
  767. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-coms.ts +252 -0
  768. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
  769. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-complete.ts +169 -0
  770. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +248 -0
  771. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +231 -0
  772. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native-types.ts +257 -0
  773. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-native.ts +226 -0
  774. package/.versions/2.0.13/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
  775. package/.versions/2.0.13/.pi/harnesses/agent-hub/docs-lane.js +122 -0
  776. package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
  777. package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
  778. package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
  779. package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
  780. package/.versions/2.0.13/.pi/harnesses/agent-hub/drift-watchdog.js +349 -0
  781. package/.versions/2.0.13/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
  782. package/.versions/2.0.13/.pi/harnesses/agent-hub/execution-evidence.ts +80 -0
  783. package/.versions/2.0.13/.pi/harnesses/agent-hub/external-blocker.js +85 -0
  784. package/.versions/2.0.13/.pi/harnesses/agent-hub/filesystem-tool.ts +73 -0
  785. package/.versions/2.0.13/.pi/harnesses/agent-hub/fixtures/registration-surface.json +61 -0
  786. package/.versions/2.0.13/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
  787. package/.versions/2.0.13/.pi/harnesses/agent-hub/footer.ts +30 -0
  788. package/.versions/2.0.13/.pi/harnesses/agent-hub/helpers.ts +270 -0
  789. package/.versions/2.0.13/.pi/harnesses/agent-hub/hub-state-audit.js +65 -0
  790. package/.versions/2.0.13/.pi/harnesses/agent-hub/index.ts +2336 -0
  791. package/.versions/2.0.13/.pi/harnesses/agent-hub/input/completions.ts +82 -0
  792. package/.versions/2.0.13/.pi/harnesses/agent-hub/input/shortcuts.ts +20 -0
  793. package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +125 -0
  794. package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
  795. package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
  796. package/.versions/2.0.13/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +74 -0
  797. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
  798. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
  799. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
  800. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
  801. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
  802. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
  803. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
  804. package/.versions/2.0.13/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
  805. package/.versions/2.0.13/.pi/harnesses/agent-hub/no-progress.ts +359 -0
  806. package/.versions/2.0.13/.pi/harnesses/agent-hub/package.json +7 -0
  807. package/.versions/2.0.13/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
  808. package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/models.ts +153 -0
  809. package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
  810. package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
  811. package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/roster.ts +94 -0
  812. package/.versions/2.0.13/.pi/harnesses/agent-hub/policy/work-mode.ts +126 -0
  813. package/.versions/2.0.13/.pi/harnesses/agent-hub/poll-command.ts +176 -0
  814. package/.versions/2.0.13/.pi/harnesses/agent-hub/presentation.ts +48 -0
  815. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-config.ts +40 -0
  816. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
  817. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
  818. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
  819. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-local.ts +88 -0
  820. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-observer.ts +105 -0
  821. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-rules.ts +143 -0
  822. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-runtime.ts +316 -0
  823. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
  824. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
  825. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-snapshot.ts +243 -0
  826. package/.versions/2.0.13/.pi/harnesses/agent-hub/proactive-types.ts +63 -0
  827. package/.versions/2.0.13/.pi/harnesses/agent-hub/process-obligations.ts +57 -0
  828. package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/context.ts +53 -0
  829. package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/fragments.ts +118 -0
  830. package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/session-start.ts +90 -0
  831. package/.versions/2.0.13/.pi/harnesses/agent-hub/prompts/system-prompt.ts +115 -0
  832. package/.versions/2.0.13/.pi/harnesses/agent-hub/provider-semaphore.js +138 -0
  833. package/.versions/2.0.13/.pi/harnesses/agent-hub/reconcile.ts +26 -0
  834. package/.versions/2.0.13/.pi/harnesses/agent-hub/recover-policy.ts +27 -0
  835. package/.versions/2.0.13/.pi/harnesses/agent-hub/recover-state.ts +104 -0
  836. package/.versions/2.0.13/.pi/harnesses/agent-hub/recovery-contract.ts +80 -0
  837. package/.versions/2.0.13/.pi/harnesses/agent-hub/research/controls.ts +74 -0
  838. package/.versions/2.0.13/.pi/harnesses/agent-hub/research/runtime.ts +195 -0
  839. package/.versions/2.0.13/.pi/harnesses/agent-hub/research/spawn-run.ts +174 -0
  840. package/.versions/2.0.13/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
  841. package/.versions/2.0.13/.pi/harnesses/agent-hub/return-contract.js +327 -0
  842. package/.versions/2.0.13/.pi/harnesses/agent-hub/return-extract.js +77 -0
  843. package/.versions/2.0.13/.pi/harnesses/agent-hub/review-findings.js +104 -0
  844. package/.versions/2.0.13/.pi/harnesses/agent-hub/run-budget.js +542 -0
  845. package/.versions/2.0.13/.pi/harnesses/agent-hub/run-namespace.js +93 -0
  846. package/.versions/2.0.13/.pi/harnesses/agent-hub/runtime-test-check.ts +54 -0
  847. package/.versions/2.0.13/.pi/harnesses/agent-hub/safety-routing.ts +22 -0
  848. package/.versions/2.0.13/.pi/harnesses/agent-hub/scope-gate.js +123 -0
  849. package/.versions/2.0.13/.pi/harnesses/agent-hub/session-audit.ts +227 -0
  850. package/.versions/2.0.13/.pi/harnesses/agent-hub/session-health.js +110 -0
  851. package/.versions/2.0.13/.pi/harnesses/agent-hub/session-start.ts +42 -0
  852. package/.versions/2.0.13/.pi/harnesses/agent-hub/spawn.ts +526 -0
  853. package/.versions/2.0.13/.pi/harnesses/agent-hub/system1-activity.ts +510 -0
  854. package/.versions/2.0.13/.pi/harnesses/agent-hub/system1-report.ts +225 -0
  855. package/.versions/2.0.13/.pi/harnesses/agent-hub/system1-runtime.ts +276 -0
  856. package/.versions/2.0.13/.pi/harnesses/agent-hub/task-resume-contract.ts +70 -0
  857. package/.versions/2.0.13/.pi/harnesses/agent-hub/timeline.ts +72 -0
  858. package/.versions/2.0.13/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +68 -0
  859. package/.versions/2.0.13/.pi/harnesses/agent-hub/tool-catalog-state.ts +123 -0
  860. package/.versions/2.0.13/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
  861. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/action-executors.ts +185 -0
  862. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
  863. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/context.ts +142 -0
  864. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +82 -0
  865. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +498 -0
  866. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
  867. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/fleet-tools.ts +200 -0
  868. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/herdr-executors.ts +86 -0
  869. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/run-flow.ts +136 -0
  870. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
  871. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/spawn-research.ts +65 -0
  872. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
  873. package/.versions/2.0.13/.pi/harnesses/agent-hub/tools/verification-contract.ts +80 -0
  874. package/.versions/2.0.13/.pi/harnesses/agent-hub/tsconfig.json +22 -0
  875. package/.versions/2.0.13/.pi/harnesses/agent-hub/types.ts +66 -0
  876. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
  877. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/context-budget.ts +87 -0
  878. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
  879. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
  880. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +124 -0
  881. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
  882. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/fleet-source.ts +175 -0
  883. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
  884. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
  885. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/history.ts +234 -0
  886. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
  887. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
  888. package/.versions/2.0.13/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
  889. package/.versions/2.0.13/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
  890. package/.versions/2.0.13/.pi/harnesses/agent-hub/version.ts +42 -0
  891. package/.versions/2.0.13/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
  892. package/.versions/2.0.13/.pi/harnesses/agent-hub/work-mode-controls.ts +56 -0
  893. package/.versions/2.0.13/.pi/harnesses/agent-hub/work-mode.ts +173 -0
  894. package/.versions/2.0.13/.pi/harnesses/agent-hub/write-isolation.ts +187 -0
  895. package/.versions/2.0.13/.pi/harnesses/ask-user-remote/README.md +59 -0
  896. package/.versions/2.0.13/.pi/harnesses/ask-user-remote/index.ts +558 -0
  897. package/.versions/2.0.13/.pi/harnesses/ask-user-remote/questions.ts +161 -0
  898. package/.versions/2.0.13/.pi/harnesses/ask-user-remote/race-core.js +124 -0
  899. package/.versions/2.0.13/.pi/harnesses/ask-user-remote/runtime-ask.ts +68 -0
  900. package/.versions/2.0.13/.pi/harnesses/coms/README.md +100 -0
  901. package/.versions/2.0.13/.pi/harnesses/coms/index.ts +282 -0
  902. package/.versions/2.0.13/.pi/harnesses/coms/package.json +7 -0
  903. package/.versions/2.0.13/.pi/harnesses/coms/version.ts +42 -0
  904. package/.versions/2.0.13/.pi/harnesses/damage-control-continue/README.md +135 -0
  905. package/.versions/2.0.13/.pi/harnesses/damage-control-continue/index.ts +550 -0
  906. package/.versions/2.0.13/.pi/harnesses/damage-control-continue/package.json +7 -0
  907. package/.versions/2.0.13/.pi/harnesses/damage-control-continue/version.ts +42 -0
  908. package/.versions/2.0.13/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
  909. package/.versions/2.0.13/.pi/harnesses/lib/coms-core-io.ts +385 -0
  910. package/.versions/2.0.13/.pi/harnesses/lib/coms-core.ts +577 -0
  911. package/.versions/2.0.13/.pi/harnesses/lib/coms-registry-entry.ts +94 -0
  912. package/.versions/2.0.13/.pi/harnesses/lib/context-budget-child-prompt.ts +219 -0
  913. package/.versions/2.0.13/.pi/harnesses/lib/context-budget-hub-prompt.ts +116 -0
  914. package/.versions/2.0.13/.pi/harnesses/lib/context-budget-view.ts +107 -0
  915. package/.versions/2.0.13/.pi/harnesses/lib/context-budget.ts +114 -0
  916. package/.versions/2.0.13/.pi/harnesses/lib/damage-control-shared.ts +197 -0
  917. package/.versions/2.0.13/.pi/harnesses/lib/deterministic-handle-path.ts +23 -0
  918. package/.versions/2.0.13/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
  919. package/.versions/2.0.13/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
  920. package/.versions/2.0.13/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
  921. package/.versions/2.0.13/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
  922. package/.versions/2.0.13/.pi/harnesses/lib/fleet-dashboard-view.ts +147 -0
  923. package/.versions/2.0.13/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
  924. package/.versions/2.0.13/.pi/harnesses/lib/fleet-overlay.ts +26 -0
  925. package/.versions/2.0.13/.pi/harnesses/lib/fleet-panel.ts +34 -0
  926. package/.versions/2.0.13/.pi/harnesses/lib/fleet-read-model.ts +536 -0
  927. package/.versions/2.0.13/.pi/harnesses/lib/fleet-selection.ts +24 -0
  928. package/.versions/2.0.13/.pi/harnesses/lib/fleet-strip-controller.ts +74 -0
  929. package/.versions/2.0.13/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
  930. package/.versions/2.0.13/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
  931. package/.versions/2.0.13/.pi/harnesses/lib/herdr-client.ts +472 -0
  932. package/.versions/2.0.13/.pi/harnesses/lib/herdr-presence.ts +399 -0
  933. package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
  934. package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
  935. package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
  936. package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
  937. package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
  938. package/.versions/2.0.13/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
  939. package/.versions/2.0.13/.pi/harnesses/lib/spawned-peers.js +191 -0
  940. package/.versions/2.0.13/.pi/harnesses/lib/system1/config.js +61 -0
  941. package/.versions/2.0.13/.pi/harnesses/lib/system1/contracts.ts +152 -0
  942. package/.versions/2.0.13/.pi/harnesses/lib/system1/demo.ts +106 -0
  943. package/.versions/2.0.13/.pi/harnesses/lib/system1/jev.ts +503 -0
  944. package/.versions/2.0.13/.pi/harnesses/lib/system1/service.ts +245 -0
  945. package/.versions/2.0.13/.pi/harnesses/lib/update-check.ts +222 -0
  946. package/.versions/2.0.13/.pi/harnesses/package-lock.json +2039 -0
  947. package/.versions/2.0.13/.pi/harnesses/package.json +10 -0
  948. package/.versions/2.0.13/.pi/prompts/af-build.md +24 -0
  949. package/.versions/2.0.13/.pi/prompts/af-code-simplify.md +22 -0
  950. package/.versions/2.0.13/.pi/prompts/af-constraints.md +31 -0
  951. package/.versions/2.0.13/.pi/prompts/af-plan.md +17 -0
  952. package/.versions/2.0.13/.pi/prompts/af-review.md +16 -0
  953. package/.versions/2.0.13/.pi/prompts/af-set-hermes-telegram.md +15 -0
  954. package/.versions/2.0.13/.pi/prompts/af-set-hermes-watchdog.md +6 -0
  955. package/.versions/2.0.13/.pi/prompts/af-setup-rules.md +20 -0
  956. package/.versions/2.0.13/.pi/prompts/af-ship.md +17 -0
  957. package/.versions/2.0.13/.pi/prompts/af-spec.md +15 -0
  958. package/.versions/2.0.13/.pi/prompts/af-test.md +19 -0
  959. package/.versions/2.0.13/.pi/skills/bowser/SKILL.md +145 -0
  960. package/.versions/2.0.13/.version +1 -0
  961. package/.versions/2.0.13/agents/architect.md +24 -0
  962. package/.versions/2.0.13/agents/bowser.md +28 -0
  963. package/.versions/2.0.13/agents/builder.md +55 -0
  964. package/.versions/2.0.13/agents/code-reviewer.md +209 -0
  965. package/.versions/2.0.13/agents/deep-researcher.md +32 -0
  966. package/.versions/2.0.13/agents/documenter.md +22 -0
  967. package/.versions/2.0.13/agents/orchestrator.md +22 -0
  968. package/.versions/2.0.13/agents/plan-reviewer.md +83 -0
  969. package/.versions/2.0.13/agents/planner.md +105 -0
  970. package/.versions/2.0.13/agents/releaser.md +24 -0
  971. package/.versions/2.0.13/agents/researcher.md +30 -0
  972. package/.versions/2.0.13/agents/security-auditor.md +167 -0
  973. package/.versions/2.0.13/agents/test-engineer.md +153 -0
  974. package/.versions/2.0.13/agents/web-debugger.md +44 -0
  975. package/.versions/2.0.13/agents/web-performance-auditor.md +194 -0
  976. package/.versions/2.0.13/bin/catalog/harness-runtime-closure.json +73 -0
  977. package/.versions/2.0.13/codex/fleet-session-client/SKILL.md +34 -0
  978. package/.versions/2.0.13/codex/fleet-session-client.zip +0 -0
  979. package/.versions/2.0.13/docs/ARCHITECTURE.md +753 -0
  980. package/.versions/2.0.13/docs/agent-fleet-setup.md +900 -0
  981. package/.versions/2.0.13/docs/claude-code-coms-bridge.md +134 -0
  982. package/.versions/2.0.13/docs/codex-session-bridge.md +219 -0
  983. package/.versions/2.0.13/docs/coms-hermes-bridge.md +188 -0
  984. package/.versions/2.0.13/docs/getting-started.md +126 -0
  985. package/.versions/2.0.13/docs/npm-install.md +468 -0
  986. package/.versions/2.0.13/docs/pi-extensions.md +454 -0
  987. package/.versions/2.0.13/docs/pi-setup.md +92 -0
  988. package/.versions/2.0.13/docs/skill-anatomy.md +150 -0
  989. package/.versions/2.0.13/install-manifest.json +3175 -0
  990. package/.versions/2.0.13/justfile +247 -0
  991. package/.versions/2.0.13/manifest-meta.json +1057 -0
  992. package/.versions/2.0.13/references/accessibility-checklist.md +160 -0
  993. package/.versions/2.0.13/references/communication-contract.md +26 -0
  994. package/.versions/2.0.13/references/definition-of-done.md +67 -0
  995. package/.versions/2.0.13/references/fleet-coordination-patterns.md +171 -0
  996. package/.versions/2.0.13/references/observability-checklist.md +92 -0
  997. package/.versions/2.0.13/references/orchestration-patterns.md +370 -0
  998. package/.versions/2.0.13/references/performance-checklist.md +236 -0
  999. package/.versions/2.0.13/references/prompting-patterns.md +380 -0
  1000. package/.versions/2.0.13/references/security-checklist.md +245 -0
  1001. package/.versions/2.0.13/references/testing-patterns.md +235 -0
  1002. package/.versions/2.0.13/references/workflow-authoring.md +304 -0
  1003. package/.versions/2.0.13/skills/_internal/grilling.md +59 -0
  1004. package/.versions/2.0.13/skills/browser-testing-with-devtools/SKILL.md +351 -0
  1005. package/.versions/2.0.13/skills/code-review-and-quality/SKILL.md +396 -0
  1006. package/.versions/2.0.13/skills/compound-learning/SKILL.md +137 -0
  1007. package/.versions/2.0.13/skills/constraint-driven-development/SKILL.md +338 -0
  1008. package/.versions/2.0.13/skills/constraint-driven-development/references/floor-guard.md +99 -0
  1009. package/.versions/2.0.13/skills/context-engineering/SKILL.md +341 -0
  1010. package/.versions/2.0.13/skills/deprecation-and-migration/SKILL.md +247 -0
  1011. package/.versions/2.0.13/skills/designing-agents/SKILL.md +394 -0
  1012. package/.versions/2.0.13/skills/designing-agents/pi-harness-authoring.md +222 -0
  1013. package/.versions/2.0.13/skills/drafting-workflows/SKILL.md +143 -0
  1014. package/.versions/2.0.13/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
  1015. package/.versions/2.0.13/skills/frontend-ui-engineering/SKILL.md +328 -0
  1016. package/.versions/2.0.13/skills/git-workflow-and-versioning/SKILL.md +316 -0
  1017. package/.versions/2.0.13/skills/idea-refine/SKILL.md +182 -0
  1018. package/.versions/2.0.13/skills/idea-refine/examples.md +238 -0
  1019. package/.versions/2.0.13/skills/idea-refine/frameworks.md +99 -0
  1020. package/.versions/2.0.13/skills/idea-refine/refinement-criteria.md +113 -0
  1021. package/.versions/2.0.13/skills/idea-refine/scripts/idea-refine.sh +15 -0
  1022. package/.versions/2.0.13/skills/incremental-implementation/SKILL.md +302 -0
  1023. package/.versions/2.0.13/skills/interview-me/SKILL.md +226 -0
  1024. package/.versions/2.0.13/skills/orchestration-verification/SKILL.md +182 -0
  1025. package/.versions/2.0.13/skills/peer-coms/SKILL.md +90 -0
  1026. package/.versions/2.0.13/skills/performance-optimization/SKILL.md +496 -0
  1027. package/.versions/2.0.13/skills/planning-and-task-breakdown/SKILL.md +289 -0
  1028. package/.versions/2.0.13/skills/repository-ai-setup/SKILL.md +117 -0
  1029. package/.versions/2.0.13/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
  1030. package/.versions/2.0.13/skills/repository-ai-setup/references/apply-contract.md +74 -0
  1031. package/.versions/2.0.13/skills/repository-ai-setup/references/provenance-template.md +16 -0
  1032. package/.versions/2.0.13/skills/repository-ai-setup/references/setup-flow.md +108 -0
  1033. package/.versions/2.0.13/skills/repository-ai-setup/references/verify-setup.md +20 -0
  1034. package/.versions/2.0.13/skills/security-and-hardening/SKILL.md +524 -0
  1035. package/.versions/2.0.13/skills/spec-driven-development/SKILL.md +295 -0
  1036. package/.versions/2.0.13/skills/using-agent-skills/SKILL.md +198 -0
  1037. package/.versions/2.0.13/vendor/agent-skills-upstream/LICENSE +21 -0
  1038. package/.versions/2.0.13/vendor/agent-skills-upstream/README.md +430 -0
  1039. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
  1040. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
  1041. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
  1042. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
  1043. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
  1044. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
  1045. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
  1046. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
  1047. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
  1048. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
  1049. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
  1050. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
  1051. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
  1052. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
  1053. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
  1054. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
  1055. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
  1056. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
  1057. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
  1058. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
  1059. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
  1060. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
  1061. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
  1062. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
  1063. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
  1064. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
  1065. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
  1066. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
  1067. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
  1068. package/.versions/2.0.13/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
  1069. package/CHANGELOG.md +20 -0
  1070. package/README.md +3 -3
  1071. package/agents/architect.md +2 -3
  1072. package/agents/bowser.md +2 -2
  1073. package/agents/builder.md +2 -3
  1074. package/agents/code-reviewer.md +7 -8
  1075. package/agents/deep-researcher.md +3 -4
  1076. package/agents/documenter.md +2 -3
  1077. package/agents/orchestrator.md +2 -3
  1078. package/agents/plan-reviewer.md +5 -6
  1079. package/agents/planner.md +5 -6
  1080. package/agents/releaser.md +2 -3
  1081. package/agents/researcher.md +4 -5
  1082. package/agents/security-auditor.md +6 -7
  1083. package/agents/test-engineer.md +3 -4
  1084. package/agents/web-debugger.md +3 -3
  1085. package/agents/web-performance-auditor.md +3 -3
  1086. package/bin/catalog/harness-runtime-closure.json +30 -18
  1087. package/bin/cli.js +50 -4
  1088. package/bin/lib/apply.js +16 -0
  1089. package/bin/lib/doctor.js +63 -1
  1090. package/bin/lib/overrides.js +37 -1
  1091. package/bin/lib/project-provenance.js +119 -0
  1092. package/bin/lib/scan.js +1 -1
  1093. package/bin/lib/transaction.js +1 -1
  1094. package/bin/lib/validate-overrides.js +37 -3
  1095. package/catalog/agent-prompts/README.md +12 -0
  1096. package/catalog/agent-prompts/architecture-decision-author.md +24 -0
  1097. package/catalog/agent-prompts/requirements-author.md +21 -0
  1098. package/catalog/commands/README.md +13 -0
  1099. package/catalog/commands/assess-change-impact.md +19 -0
  1100. package/catalog/commands/audit-documentation.md +19 -0
  1101. package/catalog/rules/README.md +33 -0
  1102. package/catalog/rules/ai/policy-authoring.md +22 -0
  1103. package/catalog/rules/architecture/behavior-preserving-refactoring.md +25 -0
  1104. package/catalog/rules/architecture/public-contracts.md +22 -0
  1105. package/catalog/rules/architecture/repository-boundaries.md +21 -0
  1106. package/catalog/rules/architecture/structural-change-registration.md +25 -0
  1107. package/catalog/rules/backend/notification-date-time.md +25 -0
  1108. package/catalog/rules/bundles/README.md +16 -0
  1109. package/catalog/rules/data/enum-semantics.md +25 -0
  1110. package/catalog/rules/data/mixed-ownership-data.md +22 -0
  1111. package/catalog/rules/data/reporting-queries.md +34 -0
  1112. package/catalog/rules/docs/docs-maintenance.md +25 -0
  1113. package/catalog/rules/frameworks/vue.md +25 -0
  1114. package/catalog/rules/frontend/async-ui-states.md +26 -0
  1115. package/catalog/rules/frontend/established-ui-primitives.md +25 -0
  1116. package/catalog/rules/frontend/form-validation.md +26 -0
  1117. package/catalog/rules/frontend/navigation-contracts.md +25 -0
  1118. package/catalog/rules/languages/csharp.md +25 -0
  1119. package/catalog/rules/languages/javascript.md +25 -0
  1120. package/catalog/rules/languages/sql.md +24 -0
  1121. package/catalog/rules/security/authorization-before-effects.md +26 -0
  1122. package/catalog/rules/security/diagnostic-data-safety.md +22 -0
  1123. package/catalog/rules/security/response-data-minimization.md +25 -0
  1124. package/catalog/rules/security/trusted-tenant-scope.md +26 -0
  1125. package/catalog/rules/testing/shared-package-consumers.md +25 -0
  1126. package/catalog/rules/testing/verification-conventions.md +24 -0
  1127. package/docs/ARCHITECTURE.md +163 -5
  1128. package/docs/agent-fleet-setup.md +342 -28
  1129. package/docs/codex-session-bridge.md +1 -1
  1130. package/docs/npm-install.md +87 -2
  1131. package/docs/pi-extensions.md +10 -5
  1132. package/docs/workflows.md +4 -3
  1133. package/install-manifest.json +158 -3
  1134. package/manifest-meta.json +102 -15
  1135. package/package.json +9 -3
  1136. package/skills/repository-ai-setup/SKILL.md +117 -0
  1137. package/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
  1138. package/skills/repository-ai-setup/references/apply-contract.md +74 -0
  1139. package/skills/repository-ai-setup/references/provenance-template.md +16 -0
  1140. package/skills/repository-ai-setup/references/setup-flow.md +108 -0
  1141. package/skills/repository-ai-setup/references/verify-setup.md +20 -0
@@ -0,0 +1,900 @@
1
+ # Agent Fleet — Project Files
2
+
3
+ agent-fleet keeps a few small files in a project's `.ai/` directory. They have
4
+ different readers and different lifetimes, so they are kept separate.
5
+
6
+ | File | Read by | When |
7
+ |------|---------|------|
8
+ | `.ai/agent-fleet-overrides.md` | `spec-driven-development`, `planning-and-task-breakdown`, `browser-testing-with-devtools`, `git-workflow-and-versioning`, `compound-learning` (the `rules:`/`docs:` keys of `## agent-hub`), `agent-hub` pi harness | Every run of those skills / every session start of the harness |
9
+ | `.ai/agent-fleet.json` | the deterministic `agent-fleet` lifecycle (`setup`) — human-owned desired state (preset/features); intended to be committed | Every setup plan; created/updated when setup persists desired state or migrates legacy installs |
10
+ | `.ai/agent-fleet-state.json` | the deterministic `agent-fleet` lifecycle (`setup`, `doctor`, `uninstall`) | Every lifecycle plan and apply |
11
+ | `.ai/agent-fleet-setup.md` | humans — rendered from the state file, never parsed back | Rewritten on every setup apply |
12
+ | `.ai/agent-fleet-transaction.json` | the deterministic lifecycle (`setup`, `doctor --fix`) — crash-recovery journal for in-flight file transactions | Written during apply; recovered or discarded by setup/doctor; removed when the transaction commits or is cleaned up |
13
+ | `.ai/stt.json` *(optional)* | `pi-voice-stt` extension | Every pi session start, when the extension is installed |
14
+ | `.ai/system1.json` *(optional)* | System 1 shared runtime and doctor | When the experimental `system1` feature is explicitly selected |
15
+ | `.ai/proactive-review.json` *(optional)* | Hub proactive turn review consumer | At Hub session start; missing means off |
16
+
17
+ The `.ai/system1.json` file is human-owned, non-secret provider configuration.
18
+ Setup prints its required shape but does not create or overwrite it. Its
19
+ `apiKeyEnv` field names a caller-environment variable; it never contains the
20
+ credential itself. See [System 1 configuration](#system-1-configuration).
21
+
22
+ The `.ai/stt.json` file is present only when the optional `pi-voice-stt` voice-dictation
23
+ extension has been configured (by deterministic setup or by hand). Like the overrides file it holds
24
+ **no secrets** — it names the env vars (`apiKeyEnv`, plus the Azure endpoint var) whose values
25
+ live in a gitignored root `.env`. See [pi-voice-stt config](#ai-sttjson) below.
26
+
27
+ Keep them split: the overrides file is loaded into context constantly, so it
28
+ must stay minimal; the install record is read only by the CLI, so it can be
29
+ large.
30
+
31
+ ## Unified Fleet runtime configuration
32
+
33
+ A Pi workspace has one public runtime entry point. Bare Fleet loads Fleet Core
34
+ plus Agent Hub in **operator** work mode, in the current terminal, with no native
35
+ specialists active:
36
+
37
+ ```bash
38
+ just fleet
39
+ just fleet --project af
40
+ ```
41
+
42
+ Work mode, native roster, and peer topology are separate controls:
43
+
44
+ ```bash
45
+ # Direct tools plus an available native roster.
46
+ just fleet --work-mode operator --agents frontend --project af
47
+
48
+ # A roster implies orchestrator when work mode is not explicit.
49
+ just fleet --agents frontend --project af
50
+
51
+ # Herdr Hub-only and Hub-plus-peer topologies.
52
+ just fleet --herdr --project af
53
+ just fleet --agents frontend --peers frontend --project af
54
+ ```
55
+
56
+ Startup precedence is deterministic: explicit `--work-mode` wins; otherwise an
57
+ explicit `--agents` roster implies `orchestrator`; otherwise work mode is
58
+ `operator`. An orchestrator startup must name a roster. `--herdr` affects only
59
+ placement, while `--peers <preset>` implies Herdr and starts the selected peer
60
+ preset. Neither topology option selects a native roster.
61
+
62
+ `--project <name>` selects one coms namespace for the Hub and every standing or
63
+ dynamically spawned peer. Dynamic peer tools deliberately expose no project
64
+ override, so an agent cannot cross that boundary. The default project is
65
+ `default`; use an explicit project when multiple fleets share a machine.
66
+
67
+ The configuration files have distinct ownership:
68
+
69
+ | File | Controls |
70
+ | --- | --- |
71
+ | `.pi/agents/teams.yaml` | Named **native rosters** of Pi personas available to `dispatch_agent`. Bare Fleet ignores YAML ordering and starts empty; select one with `--agents`, `/af-agents-team`, or add individuals with `/af-agents-add`. |
72
+ | `.pi/agents/peers.yaml` | Named **standing peer presets** and each peer's runner (`pi` or `claude-code`), persona, model, extensions, and optional declared `env_file`. Select a preset with `--peers`; dynamic `herdr_spawn_peer` uses the same declaration resolver. |
73
+ | `.pi/agents/dispatch-policy.yaml` | Routing used only when `dispatch_agent.backend` is `auto`: native/coms preference, fallback, grace period, and peer reply timeout. |
74
+ | `.ai/agent-fleet-overrides.md` (`## agent-hub`) | Project-specific Hub language, model overrides, rule/doc roots, budget ceilings, watchdog, and related execution policy. It does not choose startup work mode or topology. |
75
+
76
+ For deterministic routing, `backend: "native"` always starts the local Pi
77
+ specialist even if a same-name peer is visible. `backend: "coms"` requires a
78
+ visible same-name peer and refuses without native fallback. The default
79
+ `backend: "auto"` follows `dispatch-policy.yaml` and preserves its configured
80
+ fallback behavior.
81
+
82
+ Capability packs load automatically—do not run an activation command. Explicit task intent activates the matching ready surface; readiness alone never exposes coms or Herdr tools to the model. Ambiguous fleet/peer/workspace intent gets one confirmation before its first side effect, and active task packs persist until the explicit `set_task_tier(new_task: true)` reset.
83
+
84
+ Capability flags and runtime gates fail closed:
85
+
86
+ - `--no-coms` keeps operator direct tools and native dispatch available, but
87
+ peer dispatch, `coms_send`/`coms_await`, and `/af-handoff` refuse actionably.
88
+ - `--herdr` and `--peers` require a running [Herdr](https://herdr.dev) server.
89
+ Without Herdr, bare Fleet still works and dynamic pane tools stay inactive.
90
+ - `--browser` adds the browser extension surface and `--all-extensions` opts
91
+ into the complete approved extension set. Missing optional dependencies do
92
+ not grant tools merely because a flag was supplied.
93
+ - Hub-owned slash commands remain registered in both work modes. A missing coms
94
+ runtime, Herdr connection, target peer, or native roster produces a
95
+ capability refusal rather than a missing command.
96
+
97
+ During the migration release, `just fleet hub`, `just fleet team <preset>`,
98
+ `just fleet team <preset> --no-hub`, and `--solo` remain accepted and print a
99
+ canonical replacement. New automation should use `just fleet` with
100
+ `--agents`, `--peers`, `--herdr`, and `--no-coms`; compatibility does not imply
101
+ that the deprecated grammar will remain indefinitely.
102
+
103
+ ### Resume and recovery
104
+
105
+ The Hub distinguishes the **pre-turn surface** (stable replacement prompt, volatile state capsule,
106
+ and active tool schemas) from **intra-turn pressure** (conversation and tool results accumulated in
107
+ the live model window). `/af-context` shows both. At 80% live usage the Hub warns and transiently makes
108
+ compaction support available; at 90% it blocks the next provider continuation and requests a
109
+ single automatic compaction after the current result is persisted. A prompt submitted during
110
+ startup/recovery is retained in memory and replayed once after success.
111
+
112
+ If automatic recovery fails, the prompt remains retained. Pi's built-in command is the bare-runtime
113
+ fallback:
114
+
115
+ ```text
116
+ /compact Preserve the current goal, decisions, modified files, pending operations, blockers, and next step.
117
+ ```
118
+
119
+ You can also switch to a larger-context model. Do not try to make room by editing the session file.
120
+ The JSONL shown by `/session` under `~/.pi/agent/sessions/` is Pi's authoritative append-only record;
121
+ resume with `/resume`, `pi -c`, or `pi --session <path|id>`. Never edit, truncate, reorder, or add
122
+ synthetic entries to recover from context pressure.
123
+
124
+ A resumed orchestrator session may instead be blocked because its persisted team name no longer
125
+ resolves against the current `.pi/agents/teams.yaml` and persona files. This is a fail-closed roster
126
+ recovery gate: orchestrator work mode and its direct-tool restrictions remain in force. Choose a valid
127
+ team with `/af-agents-team`, restart publicly with `just fleet --agents <name>`, or explicitly choose
128
+ operator work mode with `/af-work-mode operator` / `just fleet --work-mode operator`. Direct Pi launches
129
+ use `--agent-team <name>` or `--work-mode operator`. Explicit startup flags win over persisted state;
130
+ fix missing or renamed team/persona declarations before selecting them.
131
+
132
+ ## System 1 configuration
133
+
134
+ System 1 is an experimental named feature and is excluded from automatic
135
+ Default/Full selection. Select it explicitly and persist that desired state when
136
+ needed:
137
+
138
+ ```bash
139
+ npx @chankov/agent-fleet@latest setup \
140
+ --preset default --features system1 --save-desired --yes
141
+ ```
142
+
143
+ Then create the human-owned `.ai/system1.json` with exactly these version-1
144
+ fields and values:
145
+
146
+ ```json
147
+ {
148
+ "version": 1,
149
+ "mode": "auto",
150
+ "provider": "typesafe",
151
+ "model": "jev-1.13.0",
152
+ "apiKeyEnv": "TYPESAFE_API_KEY"
153
+ }
154
+ ```
155
+
156
+ `mode: "off"` disables the service even when a key exists. Selection plus
157
+ `mode: "auto"` still requires the valid configuration and a nonempty
158
+ `TYPESAFE_API_KEY` in the caller environment. Key presence alone never enables
159
+ System 1. The runtime does not execute `.env`: the managed `just` launcher can
160
+ load the root `.env`, while a direct Node invocation must receive an exported or
161
+ otherwise injected variable.
162
+
163
+ `agent-fleet doctor` reads the desired state and configuration as data. Its
164
+ System 1 result is advisory and read-only, including with `--fix`; it performs
165
+ no provider request and does not validate the key. A declaration in `.env` is
166
+ reported separately from a value present in doctor's current environment.
167
+
168
+ The installed demo is offline unless `--live` is supplied. Both forms require a
169
+ Node runtime supporting `--experimental-strip-types`:
170
+
171
+ ```bash
172
+ # Readiness only; no provider call.
173
+ node --experimental-strip-types --preserve-symlinks --preserve-symlinks-main \
174
+ .pi/harnesses/lib/system1/demo.ts
175
+
176
+ # Explicit live request using only embedded synthetic Bulgarian/English data.
177
+ node --experimental-strip-types --preserve-symlinks --preserve-symlinks-main \
178
+ .pi/harnesses/lib/system1/demo.ts --live
179
+ ```
180
+
181
+ The only phase-0 production provider/model is TypeSafe Jev `jev-1.13.0` at its
182
+ fixed official endpoint. No local model is installed and no fallback model is
183
+ selected. Outputs preserve available uncertainty but do not establish truth,
184
+ action authority, or calibration for a particular domain/language. The native specialist drift watchdog has a separate **consumer opt-in**:
185
+ `watchdog-system1: off|shadow|active` in `## agent-hub` (default `off`).
186
+ It also requires an armed watchdog, explicit feature selection, valid shared
187
+ configuration and a key. `off` makes no System 1 evaluation. `shadow` runs the
188
+ LLM judge immediately and System 1 in parallel; only the LLM can stop a child.
189
+ `active` is an **uncalibrated, explicitly opted-in experiment**: only the
190
+ advisory `scope` rule may skip LLM when Jev `jev-1.13.0` returns provider
191
+ `on_track` with confidence and on-track distribution ≥0.95 and all three
192
+ contradiction probabilities ≤0.05. Terminal `loop`, `failures`, and `toolcap`
193
+ always use LLM. `/af-watchdog` labels this `experimental: scope only; G2 not
194
+ validated`. This can miss a scope advisory; it is not G2 approval. Missing or
195
+ mismatched provider/config returns to LLM; default consumer mode remains off. Restart Hub to apply a
196
+ consumer mode/config snapshot; `/af-watchdog on|off|auto` changes Layer 1 arming,
197
+ not the System 1 consumer mode. For rollback set `watchdog-system1: off` for the
198
+ next session (cancel the current run if needed).
199
+
200
+ **System 1 outbound state** is limited to a redacted task, normalized relative
201
+ scope/paths, 40 structured tool events without commands, bodies, arguments or
202
+ outputs, rule facts, coverage and counters (32 KiB maximum). This does **not**
203
+ limit the existing parallel LLM judge prompt: it includes the original task,
204
+ scope and a recent trail with up to 120 characters of raw tool arguments per
205
+ call. Both paths can reveal data. For a future pilot, review the tasks, files
206
+ and likely tool arguments; never use client/production data or secrets. Manual
207
+ review cannot guarantee that an agent will not produce unexpected arguments.
208
+ The final native spawn env removes `TYPESAFE_API_KEY`; this does not protect
209
+ against file reads or other launchers. Trace (`<sessionDir>/artifacts/watchdog/events.jsonl`)
210
+ records only allowlisted metadata. `/af-watchdog` shows readiness/checks, the
211
+ strip under chat and `/af-agents` show owner badges and detail history;
212
+ `/af-hub-report` counts evaluations/LLM attempts separately; `/af-audit`
213
+ shows read-only decision status including `judge_unavailable`. Missing usage
214
+ is unknown, not zero. A failed judge gets one live, revalidated retry after 5 s
215
+ rather than the 90 s success cooldown. Offline report code and mock tests are
216
+ not a real shadow pilot. G1 requires manual/outbound review; G2 additionally
217
+ requires independent human labels identifying the snapshot **and LLM attempt**,
218
+ held-out session evaluation and an explicit maintainer-approved profile. Older
219
+ labels without an LLM attempt ID cannot qualify. No gate is inferred from doctor readiness.
220
+
221
+ ## Proactive turn review (experimental)
222
+
223
+ This is a **separate per-repository opt-in**, not a new provider or an installer
224
+ feature flag. The Hub/native consumer uses the existing shared System 1 service
225
+ (`system1` feature, `.ai/system1.json`, caller-owned key) only when selected
226
+ excerpts are explicitly permitted and the service is ready. Its config is
227
+ human-owned `.ai/proactive-review.json`; setup/doctor do not create or activate
228
+ it. Missing config or valid `{"version":1,"mode":"off"}` causes **zero
229
+ proactive capture, inference, and feedback**. Invalid configuration fails closed.
230
+ Nothing here authorizes a live pilot, client repository, ringithub, provider
231
+ request, release, deployment or active configuration change.
232
+
233
+ Modes: `shadow` records bounded local evidence/findings without feedback;
234
+ `advisory` additionally offers bounded feedback at the next **natural** turn,
235
+ never starting a turn itself. With `remoteContext: "disabled"` (the default),
236
+ either enabled mode is **local-only**: source-bound deterministic checks may
237
+ run, but no semantic model review; no finding does not mean reviewed. With
238
+ `remoteContext: "selected-excerpts"`, permitted included source/assistant
239
+ excerpts may be transmitted to the already configured System 1 provider for
240
+ semantic assessment. This is not a blanket secrecy guarantee: source is
241
+ selected within approved scope and bounded/excluded, but automatic comprehensive
242
+ redaction of unknown secrets is not established. Review the *exact outbound
243
+ payload* and scope before any real opt-in. No auto-fix, kill, blocking,
244
+ acceptance authority, watchdog override, or autonomous continuation follows a
245
+ finding. Feedback is restricted to the same owner/attempt/task and current
246
+ source hashes and the session-bound rule revision, once per finding revision, at an already-occurring context
247
+ hook; changed evidence is refused.
248
+
249
+ **Schema illustration only — NOT executed, NOT authorization or a recommended
250
+ repository scope:** after separate human approval of the exact repository,
251
+ paths, outbound categories, budget and payload, a human may choose values in
252
+ this shape; do not copy these example paths into active configuration:
253
+
254
+ ```json
255
+ {
256
+ "version": 1,
257
+ "mode": "shadow",
258
+ "remoteContext": "selected-excerpts",
259
+ "include": ["src/**", "docs/**"],
260
+ "maxEvaluationsPerSession": 100
261
+ }
262
+ ```
263
+
264
+ Only `version`, `mode`, `remoteContext`, `include`,
265
+ `maxEvaluationsPerSession`, `localBindings` are accepted. Version is `1`;
266
+ mode is `off|shadow|advisory`; remote context is
267
+ `disabled|selected-excerpts`. Enabled modes require a nonempty explicit
268
+ repository-relative `include` (≤32 distinct entries, ≤256 characters each;
269
+ no absolute/dot/traversal paths, hidden segments, backslashes, special
270
+ bracket/negation patterns or dependency/build/runtime directories). The
271
+ session evaluation budget is an integer 0–100, default 100 in enabled modes.
272
+ The optional `localBindings` (≤16) require reviewed source-bound Markdown
273
+ `rule` path/heading/positive occurrence/lowercase SHA-256 hash,
274
+ `applicability` paths and added/modified kinds, and explicit paths/legacy
275
+ exceptions; `new-file-placement` also needs an added-only prefix, while
276
+ `relative-markdown-links` checks link form/escape, **not target existence**.
277
+ These are not prose-rule compilation or a general Markdown/AST validator.
278
+ Off must not retain active includes, remote permission, bindings or explicit
279
+ nonzero budget: rollback uses the complete minimal off JSON above, then a
280
+ **new Hub session**. Cancel current work if immediate interruption is needed;
281
+ do not delete session evidence or user config as cleanup.
282
+
283
+ Rules come read-only from `rules:` roots in `## agent-hub` (legacy
284
+ `## agent-team`): index-first, literal Markdown links/references and bounded
285
+ recursive fallback. The catalog binds file/path, heading occurrence and hash
286
+ for the **session**; edits do not reload in-session, and a restart adopts them.
287
+ It cannot execute instructions in rules. Discovery has a 64-file/256 KiB
288
+ budget; selection at most 20 sections/32 KiB, with coverage gaps for missing,
289
+ unsafe, partial, unselected or unsupported sources. Only the explicit task
290
+ and explicitly supplied plan bind the review; absent plan is `task_only`, not
291
+ a search for the newest plan. Incomplete work, exceptions, parallel authorship
292
+ and same-turn rule edits can remain uncertain. No silence or skipped check is
293
+ proof of compliance. Hub and supported native specialists are covered;
294
+ research helpers, nested delegates, coms peers and Hermes are not.
295
+
296
+ Per turn: at most 20 source units, 256 KiB retained excerpts (64 KiB/file),
297
+ 32 KiB evaluation state, 16 questions/batch, two calls/turn, one active
298
+ job/session, one pending/owner with backlog ≤8 and 5 s queue wait. Capture
299
+ phase has a 1 s deadline; evaluation job has a 2 s deadline. Feedback is
300
+ ≤3 findings/1,500 characters; finding history/private snapshots are bounded
301
+ at 100, so readback/retention is **not** a complete session record. Captures
302
+ bind pre/post worktree bytes, hashes and offsets; private evidence can be
303
+ locally reopened with validated references, whereas trace/report summaries
304
+ contain metadata only. Exclude `.env`, credentials, `.git`, dependencies,
305
+ build/runtime/session/transcript trees, binaries and realpath escapes; never
306
+ assume redaction catches every secret. Review coverage can be `partial`, `not_checked`, `unsupported`, `stale`,
307
+ `unavailable` or `unknown` rather than a confirmed pass. Operator TUI/history retain a completed row briefly (10 s); metadata
308
+ readback persists within the bounded session record.
309
+
310
+ ### Release readiness and evaluation limits
311
+
312
+ The opt-in runtime, native observer, local validators, advisory delivery, Fleet
313
+ history/evidence, reports and package installation are implemented and
314
+ independently reviewed. Offline integration uses repo-local Pi **0.84.2**;
315
+ Node 18 compatibility applies separately to the installed CLI/doctor, not the
316
+ Pi harness. Review history and evidence retain the dashboard's fixed-height
317
+ frame, including blank rows, rather than exposing dispatcher chat underneath.
318
+
319
+ A maintainer-authorized synthetic Jev smoke has verified real provider
320
+ communication and the evaluator path. It is **not** the planned 30-case
321
+ human-labelled semantic evaluation, nor evidence of general accuracy or recall.
322
+ That evaluation and final semantic acceptance remain outstanding; findings-only
323
+ label-key access also limits operational miss/true-negative evaluation.
324
+
325
+ A release installs the capability, **not its activation**. Setup does not create
326
+ `.ai/proactive-review.json`, and preserves an existing human-owned file. The
327
+ maintainer's active config and repo-specific rule catalog are not release
328
+ artifacts. Each target repository needs its own explicit scope, rules and
329
+ outbound-data consent. Configuration/rules are loaded at session start; start a
330
+ fresh Fleet session after changing them. When testing file placement, verify
331
+ that the file is really inside the configured repository include path, not a
332
+ session `artifacts/` directory with a similar relative suffix.
333
+
334
+ ### Read-only reports and explicit human labels
335
+
336
+ `/af-hub-report` and `/af-audit` separate proactive and watchdog totals.
337
+ For measured comparison only, add `--labels /absolute/path/to/CURRENT_SESSION/artifacts/labels.json`
338
+ to **either** command. No default, file discovery, provider request or
339
+ automatic label inference occurs. The actual path must be an absolute regular
340
+ `.json` file below the *current* session's `artifacts/`, without symlink escape;
341
+ maximum 64 KiB and 320 labels. Only retained findings currently expose operator-readable label keys. In Fleet
342
+ Dashboard (**Alt+A**), open review history with **`p`**, select a finding with
343
+ **`n`**, then press **`e`** for its local captured evidence; alternatively open
344
+ the specialist detail, select a finding with **`n`**, and press **`e`**. Scroll
345
+ with ↑/↓ (or j/k), PgUp/PgDn, Home/End; Esc returns to the previous review-history or detail view. The evidence
346
+ view displays a JSON record with the exact `snapshotId`, slash-bearing catalog
347
+ `ruleId` (`path#heading@occurrence:hash`), session-bound `ruleHash`, and
348
+ `subject` for that finding. At narrow widths the JSON is wrapped into visual
349
+ chunks: remove one indentation column from each chunk and concatenate the
350
+ chunks to reconstruct the record. Unavailable evidence shows no template;
351
+ do not guess a key. Copy the reconstructed record into an explicit local
352
+ current-session artifacts `.json` array, leaving `expected` as `unknown` until
353
+ a human judges that finding (`violation` or `clean`). Never use raw
354
+ source/prompt payloads as label keys. This illustrative shape is not a
355
+ substitute for the evidence-view values:
356
+
357
+ ```json
358
+ [
359
+ {
360
+ "snapshotId": "<actual lowercase 64-hex snapshot ID>",
361
+ "ruleId": "<actual evidence-view catalog rule ID, including path/slashes>",
362
+ "ruleHash": "<actual bound lowercase 64-hex rule hash>",
363
+ "subject": "src/example.ts",
364
+ "expected": "unknown"
365
+ }
366
+ ]
367
+ ```
368
+
369
+ Each object has **exactly** these five keys; `expected` is
370
+ `violation|clean|unknown`. Match snapshot, rule ID, session-bound rule hash and subject to retained
371
+ finding evidence; a valid unmatched label is `unchecked`, not a false
372
+ pass/miss. Report comparison can join checked-clear verdicts, but the operator
373
+ UI exposes keys only for retained findings, not checked-clear units. Human
374
+ miss/true-negative labels cannot currently be authored from this UI; absent
375
+ human labels remain `unknown`. This is a partial finding-backed workflow, not
376
+ fully operational misses or recall evaluation. Missing/invalid labels yield `unavailable` with null
377
+ measurement counts; empty valid array is not a precision/recall score.
378
+ Counts distinguish reviewed/partial/coverage-unknown/skipped, uncovered rules,
379
+ deterministic findings versus System 1 suspicions, unknown usage and unknown
380
+ native delivery (no receipt). Trace-only readback does not reconstruct missing
381
+ coverage or invent zeroes. Any precision or miss count describes only *labelled checked* evidence, not
382
+ unlabelled clear units or universal correctness.
383
+
384
+ ### Offline installed-package runbook (not executed by this documentation change)
385
+
386
+ Use a fresh **temporary** directory/workspace, with Node supporting native
387
+ TypeScript for the observer, repo-local Pi 0.84.2, and existing dependencies;
388
+ Node 18 is checked separately for the extracted CLI. These are test-backed
389
+ instructions, **not** commands run by this documentation patch. From this
390
+ repository's root, the safest reproducible run is:
391
+
392
+ ```sh
393
+ node --test .pi/agent-fleet/scripts/docs-links.test.mjs
394
+ # Supply an actual installed Node 18 executable; the test fails if unavailable.
395
+ AF_NODE18=/absolute/path/to/node18 node --test bin/test/proactive-installed.test.js
396
+ node --test --test-name-pattern='isolated tarball supports' bin/test/package-surfaces.test.js
397
+ ```
398
+
399
+ The installed test packs with `npm pack --json --pack-destination <temp>`,
400
+ extracts with `tar -xzf <tarball> --strip-components=1 -C <temp>/package`,
401
+ and runs `node <temp>/package/bin/cli.js setup --workspace <temp>/installed
402
+ --preset default --features none --yes` under a scrubbed offline environment.
403
+ It checks the installed 12-file runtime closure and an offline fake-provider Pi
404
+ observer/capture, no auto `.ai/proactive-review.json` or proactive desired-state
405
+ key, preservation of a **test-only HUMAN fixture** across repeat setup and
406
+ `doctor`/`doctor --fix`, and extracted-CLI version/help/readonly doctor under
407
+ Node 18. Doctor may return 0 or findings exit 2. The smoke reuses existing
408
+ repository dependencies, not a fresh dependency install; its network guard is
409
+ limited and does not prove every step physically network-isolated. Do not
410
+ create the illustrative active config above in a real workspace while testing.
411
+ The operator must run the link test and installed test on the final changed
412
+ state; this document alone is not verification.
413
+
414
+ ### Separate live pilot and acceptance
415
+
416
+ C5 operator visibility was human accepted, and the final post-fix source/docs
417
+ review accepted the C6 offline/package work. The later review-history overlay
418
+ fix is covered by fixed-frame and real Pi compositor regression tests; its
419
+ human visual retest is separate. Implemented/offline/installed evidence is not
420
+ live semantic accuracy. Explicit advisory activation in the maintainer's
421
+ repository and a synthetic Jev transport/evaluator smoke have occurred; neither
422
+ completes the planned human-labelled pilot or C7 semantic acceptance. For a new
423
+ repository, first review synthetic/offline evidence, then require **explicit
424
+ repo-specific shadow consent**, including exact include/exclusion paths,
425
+ reviewed bindings, session budget, outbound categories and representative
426
+ exact payload review; separate explicit consent is required for advisory.
427
+ There is no implied ringithub/customer repo authorization. A subsequent pilot
428
+ requires ≥30 **human-labelled** code/text assessments including ≥10 known
429
+ violations/deviations, BG/EN, legacy/new code, interim work, exceptions,
430
+ text-only and no-plan cases; manually review selector omissions and uncertain
431
+ cases. Measure finding-backed labelled precision and false alarms alongside coverage,
432
+ capture overhead, model p50/p95 latency, queue drops and known/unknown usage.
433
+ Miss/true-negative human-label keys for checked-clear units are not exposed;
434
+ report miss joins from synthetic/offline tests do not establish operational
435
+ miss/recall measurement. Record that gap explicitly in any pilot assessment
436
+ rather than treating unknown labels as negatives. Synthetic/offline success is not semantic or live
437
+ proof; no automatic mode promotion or invented accuracy threshold. C7 asks
438
+ the maintainer to accept limitations/evidence and explicitly choose each
439
+ repository's off/shadow/advisory state. No release or deployment follows from
440
+ these docs or C6.
441
+
442
+ ## The overrides file — `.ai/agent-fleet-overrides.md`
443
+
444
+ Some skills and pi harnesses need facts specific to each project — where specs
445
+ and plans are saved, how to start a dev server, whether the agent may create
446
+ branches, or which user-facing language a dispatcher should use. Each reader
447
+ ships a sensible **default**; a project that needs something different declares
448
+ it here, and the reader picks it up.
449
+
450
+ - **Location:** `.ai/agent-fleet-overrides.md` at the project root.
451
+ - **Format:** Markdown. One `## <section-name>` section per skill or harness reader, with terse
452
+ `key: value` lines. Block values use the `key: |` multi-line form. No prose
453
+ and no install detail — readers parse it by key and load it on every run/session start.
454
+ - **Commit it.** Shared project configuration belongs in version control. Make
455
+ sure no `.gitignore` rule (for example a broad `.env*` pattern) excludes it.
456
+ - **No secrets.** For anything sensitive (test-account credentials), reference
457
+ the **name** of an environment variable; the real value lives in a gitignored
458
+ `.env`.
459
+ - If the file is absent, or a reader has no section in it, that reader uses its
460
+ built-in default.
461
+ - **Settings writer:** ordinary `agent-fleet setup` leaves non-empty overrides byte-identical. To add rule/doc roots explicitly, preview with `agent-fleet configure --rules .ai/rules --docs docs --dry-run --workspace <project>`; review `before`, `after`, and `expectedHash`, then apply with the same roots, `--expect-hash <expectedHash> --yes`. Omit a key to leave it unchanged. The CLI appends/deduplicates roots, keeps other sections/settings and the legacy `agent-team` section, and refuses duplicate/conflicting sections or keys for manual resolution. A changed setting takes effect in a new session; missing roots remain advisory. The interactive path is `/af-setup-rules` (the `repository-ai-setup` skill: discovery → proposal → grilling → diff → apply → verify); it hands accepted roots to this same CLI and never edits the file directly.
462
+ - **Validation.** Because an unknown section or key silently falls back to the
463
+ default, typos are invisible at runtime. `agent-fleet doctor` (and the
464
+ runtime's Agent Fleet doctor command) validates the file — unknown sections,
465
+ unknown keys in known sections, invalid values for the mechanically parsed
466
+ `agent-hub` keys, missing `rules:` folders, missing `append-prompt:` files,
467
+ unknown `poll-panel:` names, and unset `## env` vars — as
468
+ **advisory, warn-only findings**; it never edits the file.
469
+
470
+ ### `spec-driven-development`
471
+
472
+ | Key | Default | Meaning |
473
+ |-----|---------|---------|
474
+ | `spec-dir` | `docs/prds/{area}` | Directory specs are written to |
475
+ | `naming` | `PRD{n}-{topic}` | File name pattern; `{n}` = next free PRD number, `{topic}` = kebab-case slug |
476
+
477
+ Default output: `docs/prds/{area}/PRD{n}-{topic}.md`.
478
+
479
+ ### `planning-and-task-breakdown`
480
+
481
+ | Key | Default | Meaning |
482
+ |-----|---------|---------|
483
+ | `plan-dir` | `docs/plans/{area}` | Directory plans are written to |
484
+ | `naming` | `PLAN-{prd-name}-{phase}` | File name pattern; `{phase}` suffix only when a plan spans multiple files |
485
+ | `todo` | `embedded` | `embedded` keeps the task list inside the plan; `separate` writes a standalone `todo.md` |
486
+
487
+ Default output: `docs/plans/{area}/PLAN-{prd-name}-{phase}.md`, task list embedded.
488
+
489
+ ### `browser-testing-with-devtools`
490
+
491
+ This skill has **no default** — the section is required for browser testing,
492
+ because dev-server commands and login flows cannot be guessed.
493
+
494
+ | Key | Meaning |
495
+ |-----|---------|
496
+ | `dev-server` | Command to start the local dev server |
497
+ | `ready-check` | How to confirm the server is up |
498
+ | `base-url` | Root URL for navigation |
499
+ | `auth-flow` | Steps to log in (multi-line `|` block) |
500
+ | `roles` | Test account per privilege level, referenced by env-var name |
501
+ | `notes` | Anything else the agent should know (certs, seed data, ...) |
502
+
503
+ ### `git-workflow-and-versioning`
504
+
505
+ | Key | Default | Meaning |
506
+ |-----|---------|---------|
507
+ | `branching` | `never` | `never` = agent works in the current branch and never creates or switches branches; `allow` = agent may create feature branches |
508
+
509
+ ### `agent-hub`
510
+
511
+ Read by the `.pi/harnesses/agent-hub/` pi harness on every session start. The canonical
512
+ section name is `## agent-hub`; the harness also accepts the legacy `## agent-team` name
513
+ (from before the standalone `agent-team` harness was retired), so existing project
514
+ override files keep working unchanged. When both sections are present their keys merge,
515
+ with later lines winning.
516
+
517
+ The `rules:` and `docs:` keys are also read outside the harness: the `compound-learning`
518
+ skill (and the `/af-compound` agent-hub command built on it) resolves them as the
519
+ targets an end-of-session compound pass writes lessons to.
520
+
521
+ | Key | Default | Meaning |
522
+ |-----|---------|---------|
523
+ | `language` | `English` | User-facing language the dispatcher uses for every `ask_user` question, every `context` field, and every summary. Specialist task strings always stay in English regardless. |
524
+ | `persona-gate` | — | **Removed.** Ignored with a doctor warning; dispatcher flavor is no longer selectable. Use `/af-work-mode` for operator vs orchestrator. Delete the key. |
525
+ | `model.<persona>` | persona frontmatter `model:` | Replaces the named persona's default model for this project (a full pi model spec). If the override reports a model/provider error or aborted request before producing text or starting a tool (including a local-model memory-limit failure), agent-hub restores the child session and retries once with the original frontmatter model; it does not fallback after work starts, cancellation, timeout, drift stop, or process-spawn failure. |
526
+ | `models.<persona>` | persona frontmatter `models:` | Replaces the named persona's model-candidate list for `/af-agent-model` and `/af-models` profiles (comma-separated pi model specs). |
527
+ | `thinking.<persona>` | persona frontmatter `thinking:` | Replaces the named persona's pi `--thinking` reasoning level for this project: one of `off`, `minimal`, `low`, `medium`, `high`, `xhigh`. Switchable at runtime with `/af-agent-model-thinking <persona>`. An invalid value is ignored with a session-start warning. |
528
+ | `subagents.<persona>.<role>` | persona frontmatter `subagents:` | Replaces or adds one delegate sub-role for this project: `<model>[, tools=<caps>][, thinking=<off\|minimal\|low\|medium\|high\|xhigh>]`. Other declared roles keep their frontmatter values. Existing roles retain their original frontmatter model as the same one-shot, pre-work-only runtime fallback; model-only overrides retain the declared tool cap. An invalid `thinking=` value is ignored with a session-start warning and the role stays at `off` unless frontmatter already set a valid level. |
529
+ | `delegate-depth.<persona>` | persona frontmatter `delegate_depth:` (default/max 1) | Replaces the persona's delegation depth budget: `0` makes its delegate tool refuse (delegation off for this project), `1` lets it spawn terminal children. Values above 1 are clamped to 1; children at remaining depth 0 do not receive delegate tooling. |
530
+ | `rules` | none | Comma-separated repo-relative folders holding the project's own rule files (HOW — implementation patterns the work must comply with). Resolution is **index-first**: when a folder has a top-level `README.md`/`index.md`, personas read it first and follow its loading manifest (session bundles, conditional-load lists) instead of bulk-reading the tree; a folder without an index is searched **recursively** through all subfolders. The harness tells every dispatched specialist where the rules live and how to resolve them; the planner and code-reviewer personas read the relevant rules, validate their subject against them, and pass them on (cited in plan acceptance criteria / handed to delegate sub-reviewers). Missing folders produce a session-start warning. |
531
+ | `docs` | none | Comma-separated repo-relative documentation **entry points** (WHAT/WHY — architecture, standards, decisions): canonical files (e.g. `Docs/AGENTS.md`) or doc folders (personas start from a folder's `README.md`/index). Unlike `rules`, docs orient rather than bind: every dispatched specialist and research helper is told to read the entry points relevant to its task and follow their links instead of bulk-reading doc trees; the code-reviewer flags changes that alter documented behavior without a doc update; the documenter treats the entry points and the trees they link as the docs it maintains. Missing paths produce a session-start warning. |
532
+ | `research-keep` | — | **Removed.** Ignored with a session-start warning; live research helpers disappear from the Fleet Dashboard (`Alt+A`) on every terminal outcome. Session, transcript, and findings files plus `/af-agents-history` records remain. Delete the key. |
533
+ | `recon-search-timeout-s` | `120` | Parent-side deadline, in seconds, for each `read`, `grep`, `find`, or `ls` call made by a native research helper or nested delegate child. Accepts an integer `1`–`3600` or `off`; invalid input warns and falls back to `120`. This is **not** an agent/turn deadline: non-tool work can run indefinitely. On timeout the hub returns `tool_timeout` with call metadata, sends SIGTERM to its owned process group, escalates to SIGKILL after a finite grace period, and settles even if the child never closes or a descendant holds a pipe. If that bounded cleanup cannot confirm child/process-group death, the metadata reports `terminationConfirmed: false`; this prevents a parent hang but may indicate an uninterruptible OS-level process needing operator attention. |
534
+ | `mode` | — | **Removed.** Ignored with a warning; budgets follow task tier. Delete the key. |
535
+ | `max-dispatches-per-turn` | tier default (1/2/8/12) | Ceiling on `dispatch_agent` calls per user turn (`min` with the task-tier envelope). Positive integer or `off` (stays at the tier). |
536
+ | `max-research-per-turn` | tier default (1/2/4/6) | Ceiling on dispatcher-initiated `spawn_research` calls per user turn. The automatic `NEEDS_RESEARCH:` pipe is exempt from the turn budget but still counts against the task research envelope. Positive integer or `off` (stays at the tier). |
537
+ | `turn-wall-time-s` | tier default (900/900/3600/5400) | Active-time ceiling, in seconds, per user turn; time blocked in `ask_user` is excluded. Once exceeded, further dispatch/research calls refuse until the one-click continuation is accepted or a new user turn begins. Positive integer or `off` (stays at the tier). |
538
+ | `agent-turn-timeout-s` | tier default (600/600/1800/1800) | Whole-run deadline, in seconds, for each spawned specialist, research helper, and nested delegate child (unlike `recon-search-timeout-s`, this bounds the entire run). On expiry the run terminates as `turn_timeout` (exit 124) with partial output preserved. Positive integer or `off` (stays at the tier). |
539
+ | `session-recycle-runs` | tier default (3/3/5/5) | Recycle a specialist's accumulated session (fresh spawn instead of `-c` resume) after this many resumed runs. Context is also always recycled at ≥60% measured context (input + cacheRead + cacheWrite). Positive integer or `off` (stays at the tier recycle count; context threshold still applies). |
540
+ | `watchdog` | `auto` | Drift watchdog default for dispatched specialists: `auto`/`on` arm the in-flight rules (out-of-scope writes, tool-call loops, repeated failures, tool-call cap) with LLM-judge escalation; `off` disarms. Orchestrator work mode auto-arms when the setting is `auto`/`on` and ignores a dispatch `watchdog: false`. Overridable live per hub (`/af-watchdog on\|off\|auto`) and per agent (`/af-watchdog <agent> on\|off\|clear`). A DRIFTING/STUCK verdict terminates the run as `drift_stop` (exit 125) with partial output preserved. |
541
+ | `watchdog-system1` | `off` | Native specialist consumer only: `off`, `shadow`, or explicitly opted-in experimental `active` for advisory `scope` only (0.95/0.05; not G2-validated). Requires the separate selected feature and shared config; no automatic outbound request from setup/doctor. |
542
+ | `watchdog-judge-model` | researcher persona's model | pi model spec for the one-shot drift judge (e.g. `openai-codex/gpt-5.3-codex-spark`). Falls back to the researcher persona's resolved model, then the dispatcher's. |
543
+ | `poll-panel` | none | Default panel name for `/af-poll` when `--panel` is omitted. Must match a panel in `.pi/agents/voices.yaml` when that file exists. Missing `--panel` and missing this key is a refusal. |
544
+ | `append-prompt` | none | Comma-separated repo-relative files appended to the system prompt of every dispatched persona. Listed files must exist. Enable the communication contract with `append-prompt: references/communication-contract.md`. |
545
+
546
+ Example — switch the dispatcher to Bulgarian, pin the builder to sonnet, raise the
547
+ code-reviewer's thinking level, move the code-reviewer's docs sub-reviewer to a
548
+ different model, and point the team at the project's rule folders and doc entry
549
+ points:
550
+
551
+ ```markdown
552
+ ## agent-hub
553
+ language: Bulgarian
554
+ model.builder: github-copilot/claude-sonnet-4.6
555
+ models.builder: github-copilot/claude-sonnet-4.6, github-copilot/claude-haiku-4.5
556
+ thinking.code-reviewer: xhigh
557
+ subagents.code-reviewer.docs: github-copilot/claude-sonnet-4.6, tools=read,grep, thinking=medium
558
+ delegate-depth.code-reviewer: 1
559
+ recon-search-timeout-s: 120 # or off to disable the per-tool watchdog
560
+ poll-panel: default
561
+ append-prompt: references/communication-contract.md
562
+ rules: docs/rules, .ai/rules
563
+ docs: Docs/AGENTS.md, Docs/architecture/ARCHITECTURE_OVERVIEW.md
564
+ ```
565
+
566
+ ### `env` (optional, read by the doctor)
567
+
568
+ The overrides file references environment variables by **name** — test-account
569
+ credentials for `browser-testing-with-devtools`, the `pi-voice-stt` API key —
570
+ while the values live in a gitignored root `.env`. The optional `## env`
571
+ section declares which names the project's readers expect, so a fresh clone
572
+ can find out what's missing *before* a skill fails mid-run:
573
+
574
+ | Key | Meaning |
575
+ |-----|---------|
576
+ | `required` | Comma-separated env-var **names** (never values) the project's sections reference |
577
+
578
+ ```markdown
579
+ ## env
580
+ required: APP_TEST_ADMIN_USER, APP_TEST_ADMIN_PASS, AZURE_SPEECH_KEY
581
+ ```
582
+
583
+ No skill or harness loads this section. Its only reader is `agent-fleet doctor`
584
+ (and the runtime's Agent Fleet doctor command), which warns when a declared name is neither set in
585
+ the environment nor declared in the workspace root `.env`.
586
+
587
+ ### Per-peer env files (`env_file:` in peers.yaml)
588
+
589
+ Fleet peers spawned through `--peers`, `just fleet peer`, or the Hub's
590
+ constrained dynamic peer tool can carry their own environment: an `env_file:`
591
+ entry in `.pi/agents/peers.yaml` names a
592
+ **repo-relative** KEY=VALUE file (same format as `.env`, no shell evaluation)
593
+ that herdr injects into the peer's pane before the command runs — no `source`,
594
+ no leaking into sibling panes. The file must exist at spawn (team-up refuses
595
+ otherwise, never mid-run), and its **values never appear in `--dry-run`
596
+ output** — only the path. Keep these files gitignored exactly like the root
597
+ `.env` this section describes.
598
+
599
+ ## The install record — `.ai/agent-fleet-state.json` and `.ai/agent-fleet-setup.md`
600
+
601
+ Two files, one source of truth. `.ai/agent-fleet-state.json` is what the
602
+ installer writes and the only thing it reads back: agent, method, package
603
+ version, source root, and one entry per installed item with a per-file sha256
604
+ (or, in symlink mode, the resolved link target). `.ai/agent-fleet-setup.md` is
605
+ **rendered from it** on every apply and never parsed back, so the two cannot
606
+ disagree — it exists for humans and for older readers that still look for
607
+ `version:` and `agent:`.
608
+
609
+ Ownership is the point of the state file. An entry means "agent-fleet installed
610
+ this"; anything not listed is never removed or overwritten. That lookup is what
611
+ replaced the prose ownership rule the setup skill used to carry.
612
+
613
+ | State-file field | Meaning |
614
+ |---|---|
615
+ | `agent`, `method`, `sourceRoot` | How and from where this workspace was installed |
616
+ | `packageVersion` | The version that performed the last apply — provenance for reconciliation and legacy three-way compatibility |
617
+ | `items` | One entry per installed artifact: strategy, method, files with hashes, JSON key paths |
618
+ | `externalPackages` | Packages the user was told to install; recorded, never installed for them |
619
+ | `events` | Last few applies (verb, version, action count, conflicts) |
620
+
621
+ **No secrets, ever.** Only env-var *names* may appear — for example in the
622
+ `pi-voice-stt` record. A test asserts nothing value-shaped is persisted.
623
+
624
+ ### The recorded version and the three-way merge
625
+
626
+ The recorded `packageVersion` gives every comparison a baseline. For each
627
+ recorded artifact, the engine compares *source@recorded* from the package's
628
+ `.versions/<x.y.z>/` snapshot tree, the installed copy on disk, and
629
+ *source@current*. Deterministic `setup` is the public reconciliation command.
630
+
631
+ | Outcome | What `setup` does |
632
+ |---|---|
633
+ | Neither moved | Kept |
634
+ | Only the source moved | Clean refresh |
635
+ | Only your copy moved | **Refreshed — your edit is overwritten.** Reported in the plan as *"locally modified — selecting it overwrites your edits"*, so `--dry-run` shows it before it happens |
636
+ | Both moved, to different content | **Conflict**: the run exits `3` before writing anything. Resolve with `--on-conflict theirs` or `--on-conflict ours` |
637
+ | Retired upstream | Kept by `setup`; the deprecated `upgrade` proposes removal by name, subject to the ownership rule |
638
+
639
+ Reconciling toward the package is the point of `setup`: the workspace is meant
640
+ to match the version it records. That is why editing a shipped artifact in place
641
+ is not a supported customization route — use `.ai/agent-fleet-overrides.md`, add
642
+ artifacts under names Agent Fleet does not ship, or leave the item out of the
643
+ selection (`setup` never removes what it does not select, so an unselected item
644
+ stays installed and frozen). The deprecated `upgrade` verb preserves local edits
645
+ instead of overwriting them; if you have relied on that, it is the behavioural
646
+ difference to plan for.
647
+
648
+ If the snapshot is missing (an unpublished local build, or a version older than
649
+ `.versions/` retention), the comparison degrades to two-way, the installed copy
650
+ is treated as canonical, and the read-only auxiliary `verify` command reports it
651
+ as an advisory finding rather than pretending a diff exists.
652
+
653
+ ### Pre-engine workspaces
654
+
655
+ A workspace with only `.ai/agent-fleet-setup.md` and no state file predates the
656
+ installer engine. `setup --migrate --dry-run` previews what it can infer from
657
+ that markdown (`agent:`, `version:`) without adopting unrecorded paths. To
658
+ mutate a legacy workspace, use `setup --migrate` with an explicit preset,
659
+ features, and `--yes`. A workspace with no `version:` at all has no recorded
660
+ baseline, so no three-way merge is attempted.
661
+
662
+ Commit these files if the team should share install state — keep paths relative
663
+ so they stay portable. A self-referencing checkout (agent-fleet itself) may
664
+ instead `.gitignore` them, since their recorded paths are local to one machine.
665
+
666
+ ## Coms-backed team members
667
+
668
+ A team member the `agent-hub` harness dispatches (`.pi/agents/teams.yaml`) can be
669
+ served by a live coms peer of the same name instead of a freshly spawned native
670
+ subagent. With the default `backend: "auto"`,
671
+ `.pi/agents/dispatch-policy.yaml` decides that per member at dispatch time;
672
+ explicit `native` bypasses substitution, while explicit `coms` requires the
673
+ peer and never falls back. `.pi/agents/peers.yaml` decides *how* each peer runs.
674
+ A peer with `runner: claude-code` is an interactive Claude Code pane plus its
675
+ bridge — the one way Claude Code takes part in a fleet. See
676
+ [claude-code-coms-bridge.md](claude-code-coms-bridge.md).
677
+
678
+ Installing `skill:peer-coms` pulls `hook:coms-stop-hook` in as a companion, which
679
+ is what gives a bridged pane exact turn text instead of scraped output.
680
+ The hook installs to `.pi/agent-fleet/hooks/coms-stop-hook.mjs` with the rest
681
+ of the fleet runtime. Registering it in `.claude/settings.json` stays the
682
+ user's step — the installer writes files, and another tool's settings file is
683
+ not its to merge. `setup` prints this snippet when the hook is applied:
684
+
685
+ ```json
686
+ { "hooks": { "Stop": [{ "hooks": [{ "type": "command",
687
+ "command": "node $CLAUDE_PROJECT_DIR/.pi/agent-fleet/hooks/coms-stop-hook.mjs" }] }] } }
688
+ ```
689
+
690
+ ## Templates
691
+
692
+ ### `.ai/agent-fleet-overrides.md`
693
+
694
+ Copy this in and delete the sections you don't need — anything absent falls
695
+ back to that reader's default.
696
+
697
+ ```markdown
698
+ # Agent Fleet — Project Overrides
699
+ #
700
+ # Each section is applied ON TOP of the skill's built-in defaults.
701
+ # Keys not listed keep the default. Absent file/section → pure defaults.
702
+
703
+ ## spec-driven-development
704
+ spec-dir: docs/prds/{area}
705
+ naming: PRD{n}-{topic}
706
+
707
+ ## planning-and-task-breakdown
708
+ plan-dir: docs/plans/{area}
709
+ naming: PLAN-{prd-name}-{phase}
710
+ todo: embedded
711
+
712
+ ## browser-testing-with-devtools
713
+ dev-server: <command to start the local dev server>
714
+ ready-check: <url or check that confirms the server is up>
715
+ base-url: <root url>
716
+ auth-flow: |
717
+ 1. Navigate to <login url>
718
+ 2. Submit credentials for the role needed by the screen under test
719
+ roles:
720
+ admin: env APP_TEST_ADMIN_USER / APP_TEST_ADMIN_PASS
721
+ player: env APP_TEST_PLAYER_USER / APP_TEST_PLAYER_PASS
722
+ notes: |
723
+ <anything else: self-signed certs, required seed data, ...>
724
+
725
+ ## git-workflow-and-versioning
726
+ branching: never
727
+
728
+ # Optional for pi agent-hub; omit this section to keep default English.
729
+ # (`## agent-team` is still accepted as a legacy alias for this section.)
730
+ ## agent-hub
731
+ language: <language name>
732
+ rules: <repo-relative rule folder>[, <another folder>]
733
+ docs: <repo-relative doc entry point>[, <another file or folder>]
734
+
735
+ # Optional; names (never values) of env vars the sections above reference.
736
+ # Only `agent-fleet doctor` reads this — it warns when one is unset.
737
+ ## env
738
+ required: <ENV_VAR_NAME>[, <ANOTHER_NAME>]
739
+ ```
740
+
741
+ ### `.ai/agent-fleet-setup.md`
742
+
743
+ Rendered from `.ai/agent-fleet-state.json` by every apply, for humans to read.
744
+ Edit the workspace, not this file — the next apply overwrites it.
745
+
746
+ ```markdown
747
+ # Agent Fleet — Workspace Setup
748
+ #
749
+ # Generated from .ai/agent-fleet-state.json by `agent-fleet setup`.
750
+ # Edit the workspace, not this file: it is rewritten on every apply.
751
+
752
+ ## workspace-summary
753
+ agent: pi
754
+ method: copy
755
+ version: 1.4.2
756
+ source: /home/you/.npm/_npx/<hash>/node_modules/@chankov/agent-fleet
757
+
758
+ ## install-status
759
+ skills: [spec-driven-development, test-driven-development, code-review-and-quality]
760
+ commands: [spec, plan, build]
761
+ personas: [code-reviewer]
762
+ extensions: []
763
+ harnesses: []
764
+ companions: [skills-internal-grilling]
765
+ external: []
766
+ updated: 2026-05-22
767
+
768
+ ## verification
769
+ - 21 item(s) recorded; run `agent-fleet doctor` for diagnostics.
770
+ - No secrets are stored in this file or in .ai/agent-fleet-state.json.
771
+ ```
772
+
773
+ ### `.ai/stt.json`
774
+
775
+ Optional. Present only when the `pi-voice-stt` extension is installed and configured. Read by
776
+ the extension on every pi session start, ahead of the global `~/.pi/agent/stt.json`. The
777
+ canonical format has a nested `provider` object. Runtime `provider.type` values are `openai`,
778
+ `openai-compatible`, `azure` (Azure Speech), and `azure-openai` (Azure OpenAI Whisper):
779
+
780
+ ```json
781
+ {
782
+ "language": "bg-BG",
783
+ "provider": {
784
+ "type": "azure",
785
+ "apiKeyEnv": "AZURE_SPEECH_KEY",
786
+ "locales": ["bg-BG", "en-US"]
787
+ }
788
+ }
789
+ ```
790
+
791
+ The setup CLI accepts the aliases `openai`, `groq`, `azure`, and `azure-openai`. These are
792
+ installer selections, not interchangeable runtime types: in particular, `groq` is not a
793
+ `provider.type`, and `azure` means Azure Speech rather than Azure OpenAI. Setup can generate
794
+ the OpenAI configuration from runtime defaults. For Groq, create a complete nested
795
+ `.ai/stt.json` with runtime type `openai-compatible` and the actual Groq endpoint/model, then
796
+ run setup without `--stt-provider groq`; the alias does not identify the prepared runtime type.
797
+ Other OpenAI-compatible services are not Groq and use their own endpoint/model. For Azure
798
+ Speech or Azure OpenAI in a workspace without STT settings, create complete nested JSON with
799
+ the provider-specific endpoint/deployment settings before setup. Setup does not guess them.
800
+
801
+ Existing valid nested files are preserved. Supported legacy flat files are also preserved and
802
+ produce a warning that runtime compatibility is not guaranteed; setup does not migrate them
803
+ automatically. Provider migration or replacement requires a separate explicit action.
804
+
805
+ The JSON stores only environment-variable names, never credential values. Put values in the
806
+ gitignored `.env` at the workspace root, which the managed justfile loads:
807
+
808
+ ```sh
809
+ export AZURE_SPEECH_ENDPOINT=https://<resource>.cognitiveservices.azure.com
810
+ export AZURE_SPEECH_KEY=<your-resource-key>
811
+ ```
812
+
813
+ Setup preserves existing `.env` declarations and values, including `export NAME=...` syntax,
814
+ and appends only missing empty placeholders. A direct `provider.endpoint` needs no endpoint
815
+ environment variable. Setup validates JSON structure and environment-variable names, but it
816
+ does not validate credentials or contact the provider. Full schema and provider examples:
817
+ [.pi/extensions/pi-voice-stt/README.md](../.pi/extensions/pi-voice-stt/README.md).
818
+
819
+ ### Complete model profiles
820
+
821
+ `/af-models <name>` reads `.pi/agents/model-profiles.yaml`. Flat persona-to-model
822
+ maps remain supported and keep their declared-candidate validation. A `version: 2`
823
+ profile declares the whole execution model set independently of
824
+ `.ai/agent-fleet-overrides.md`:
825
+
826
+ ```yaml
827
+ local-full:
828
+ version: 2
829
+ defaults:
830
+ model: &qwen36 omlx/Qwen3.6-35B-A3B-4bit
831
+ thinking: off
832
+ allowed-models:
833
+ - *qwen36
834
+ fallback: none
835
+ routing: native
836
+ dispatcher: *qwen36
837
+ agents:
838
+ # Every shipped persona uses *qwen36 (see .pi/agents/model-profiles.yaml).
839
+ subagents:
840
+ # Every declared child role uses *qwen36.
841
+ services:
842
+ watchdog: *qwen36
843
+ return-extractor: *qwen36
844
+ panel:
845
+ - { name: qwen-a, model: *qwen36 }
846
+ - { name: qwen-b, model: *qwen36 }
847
+ - { name: qwen-integrator, model: *qwen36, integrator: true }
848
+ ```
849
+
850
+ - `defaults` supplies **every persona and every declared child**, including future
851
+ personas, research helpers and team changes. `agents` and `subagents` contain
852
+ exceptions. To preserve a persona's existing selection, omit it from `agents`;
853
+ for example, `local-workers` leaves `orchestrator` out. Each selection accepts a
854
+ model string or `{model, thinking}`.
855
+ Unspecified thinking inherits defaults, then `off`. Tool caps and delegation
856
+ depth remain unchanged. Unknown persona/child names are rejected.
857
+ - `dispatcher` changes the current Pi session's model and thinking. When omitted,
858
+ the live dispatcher keeps its current selection and may use any Pi model, even
859
+ outside `allowed-models`; that list still applies to workers and peers. An
860
+ `orchestrator` persona entry alone is not the live dispatcher.
861
+ - `services` sets the watchdog and structured-return extractor independently;
862
+ unspecified services use defaults. `panel` supplies 2–5 poll/debate voices and
863
+ an optional single integrator. `/af-poll` and `/af-debate` select the active
864
+ profile's panel automatically. Explicit other panel names are refused while
865
+ the complete profile is active. Without `panel`, two default-model voices are used.
866
+ - `routing: native` (default) keeps Hub-owned work on native Pi subprocesses.
867
+ Without `allowed-models` it still refuses explicit coms dispatch, handoff,
868
+ `coms_send` and peer spawning. With `allowed-models`, those peer actions are
869
+ allowed only when the peer's advertised or planned model is on the list
870
+ (exact `provider/model`, or a unique provider-less suffix match); a foreign,
871
+ missing, or `unknown` model is refused, and `claude-code` peers are refused
872
+ because their models cannot be allowlisted. Existing peer processes are not
873
+ reconfigured or stopped. `routing: configured` opts into the existing dispatch
874
+ policy and cannot be combined with `allowed-models`, since a peer's nested
875
+ children cannot be verified by this hub.
876
+ - `fallback: none` (default) disables automatic original-model fallback, including
877
+ nested children and workflows. `declared` retains it. Optional `allowed-models`
878
+ is an exact provider/model allowlist checked before actual child spawns and
879
+ fallback attempts. Worker model pickers and session substitutions respect it;
880
+ the live dispatcher is checked only when `dispatcher` is explicit.
881
+ This governs Fleet model execution; it is not an OS/network sandbox for arbitrary
882
+ shell commands or unrelated applications.
883
+
884
+ Activation validates the complete profile and Pi availability of its referenced
885
+ models before changing settings. Missing models leave the previous configuration
886
+ in place. Busy dispatchers, agents and poll/debate runs refuse switching: wait for
887
+ completion first. On leaving a complete profile, the previous dispatcher, thinking
888
+ and manual model/sub-role/substitution settings are restored before applying the
889
+ next profile. A fresh Pi session clears the active profile; select it again there.
890
+
891
+ The profile is passed through the owned process tree. Workflow commands started
892
+ from that session inherit its persona models, thinking, panel and fallback policy.
893
+ Separately started fleet sessions/standing peers retain their own configuration.
894
+ The bundled `local-full` profile explicitly covers all shipped child roles and needs
895
+ no project model overrides. Every role, service and panel entry uses the single
896
+ `omlx/Qwen3.6-35B-A3B-4bit` model. The `local-workers` profile uses that same local
897
+ model for agents, subagents, services and panel voices, while leaving `orchestrator`
898
+ to inherit its current selection; its peer allowlist refuses non-local coms models.
899
+ The model must be registered in Pi and served locally by oMLX. Selecting a profile
900
+ does not download or register models.