@chankov/agent-fleet 2.1.2 → 2.2.0

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 (861) hide show
  1. package/.pi/agent-fleet/hooks/coms-stop-hook.mjs +53 -13
  2. package/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/README.md +223 -0
  3. package/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile-0.167.json +5627 -0
  4. package/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +4 -0
  5. package/.pi/agent-fleet/scripts/fleet.ts +13 -17
  6. package/.pi/agent-fleet/scripts/flow.ts +2 -2
  7. package/.pi/agent-fleet/scripts/lib/codex-bootstrap-files.ts +46 -0
  8. package/.pi/agent-fleet/scripts/lib/codex-bootstrap-probe.ts +44 -0
  9. package/.pi/agent-fleet/scripts/lib/codex-bootstrap-producer.ts +131 -0
  10. package/.pi/agent-fleet/scripts/lib/codex-daemon-observer.ts +137 -0
  11. package/.pi/agent-fleet/scripts/lib/codex-desktop-discovery.ts +84 -0
  12. package/.pi/agent-fleet/scripts/lib/codex-desktop-preflight.ts +130 -0
  13. package/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +20 -13
  14. package/.pi/agent-fleet/scripts/lib/codex-measurement.ts +218 -0
  15. package/.pi/agent-fleet/scripts/lib/codex-native-presence.ts +61 -0
  16. package/.pi/agent-fleet/scripts/lib/codex-probe-transcript.ts +135 -0
  17. package/.pi/agent-fleet/scripts/lib/codex-send-lineage.ts +72 -0
  18. package/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +23 -13
  19. package/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +100 -14
  20. package/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +1 -1
  21. package/.pi/agent-fleet/scripts/lib/fleet-codex-bootstrap.ts +204 -0
  22. package/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +9 -3
  23. package/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +32 -16
  24. package/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +41 -21
  25. package/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +21 -0
  26. package/.pi/agent-fleet/scripts/lib/fleet-command.ts +4 -8
  27. package/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +2 -1
  28. package/.pi/agent-fleet/scripts/lib/team-project.ts +0 -2
  29. package/.pi/agent-fleet/scripts/team-up.ts +5 -12
  30. package/.pi/agent-fleet/scripts/workflows/lib/git.ts +9 -0
  31. package/.pi/agent-fleet/scripts/workflows/lib/quality.ts +17 -4
  32. package/.pi/agents/model-profiles.yaml +0 -2
  33. package/.pi/harnesses/agent-hub/README.md +116 -67
  34. package/.pi/harnesses/agent-hub/capability-packs.ts +7 -4
  35. package/.pi/harnesses/agent-hub/codex-bootstrap.ts +117 -0
  36. package/.pi/harnesses/agent-hub/commands/context.ts +0 -4
  37. package/.pi/harnesses/agent-hub/commands/recover.ts +2 -1
  38. package/.pi/harnesses/agent-hub/config/agents.ts +3 -1
  39. package/.pi/harnesses/agent-hub/config/model-profiles.ts +3 -0
  40. package/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +14 -1
  41. package/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +17 -0
  42. package/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +3 -1
  43. package/.pi/harnesses/agent-hub/dispatch-native-types.ts +4 -0
  44. package/.pi/harnesses/agent-hub/dispatch-native.ts +9 -3
  45. package/.pi/harnesses/agent-hub/drift-watchdog.js +5 -10
  46. package/.pi/harnesses/agent-hub/execution-trace.ts +1 -1
  47. package/.pi/harnesses/agent-hub/filesystem-tool.ts +1 -1
  48. package/.pi/harnesses/agent-hub/footer.ts +2 -3
  49. package/.pi/harnesses/agent-hub/helpers.ts +4 -5
  50. package/.pi/harnesses/agent-hub/history-projection.ts +1 -1
  51. package/.pi/harnesses/agent-hub/index.ts +213 -196
  52. package/.pi/harnesses/agent-hub/input/shortcuts.ts +0 -7
  53. package/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +0 -2
  54. package/.pi/harnesses/agent-hub/no-progress.ts +14 -9
  55. package/.pi/harnesses/agent-hub/operator-current-state.ts +5 -1
  56. package/.pi/harnesses/agent-hub/package.json +1 -1
  57. package/.pi/harnesses/agent-hub/policy/roster.ts +12 -3
  58. package/.pi/harnesses/agent-hub/policy/work-mode.ts +10 -49
  59. package/.pi/harnesses/agent-hub/poll-command.ts +12 -4
  60. package/.pi/harnesses/agent-hub/proactive-snapshot.ts +12 -4
  61. package/.pi/harnesses/agent-hub/process-obligations.ts +42 -9
  62. package/.pi/harnesses/agent-hub/prompts/context.ts +17 -0
  63. package/.pi/harnesses/agent-hub/prompts/fragments.ts +9 -1
  64. package/.pi/harnesses/agent-hub/prompts/session-start.ts +2 -3
  65. package/.pi/harnesses/agent-hub/prompts/system-prompt.ts +25 -8
  66. package/.pi/harnesses/agent-hub/provider-semaphore.js +5 -0
  67. package/.pi/harnesses/agent-hub/review-continuity.ts +5 -2
  68. package/.pi/harnesses/agent-hub/review-reuse.ts +2 -1
  69. package/.pi/harnesses/agent-hub/run-budget.js +22 -2
  70. package/.pi/harnesses/agent-hub/scope-gate.js +38 -0
  71. package/.pi/harnesses/agent-hub/scope-overlap.ts +46 -0
  72. package/.pi/harnesses/agent-hub/task-brief.ts +98 -0
  73. package/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +4 -0
  74. package/.pi/harnesses/agent-hub/tool-catalog-state.ts +5 -3
  75. package/.pi/harnesses/agent-hub/tools/action-executors.ts +5 -7
  76. package/.pi/harnesses/agent-hub/tools/context.ts +2 -0
  77. package/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +2 -1
  78. package/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +184 -33
  79. package/.pi/harnesses/agent-hub/tools/poll-panel-core.ts +30 -0
  80. package/.pi/harnesses/agent-hub/tools/poll-panel.ts +33 -0
  81. package/.pi/harnesses/agent-hub/tools/run-flow.ts +41 -10
  82. package/.pi/harnesses/agent-hub/tools/team-adjust.ts +1 -1
  83. package/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +12 -2
  84. package/.pi/harnesses/agent-hub/work-mode.ts +44 -49
  85. package/.pi/harnesses/agent-hub/write-isolation.ts +53 -8
  86. package/.pi/harnesses/coms/package.json +1 -1
  87. package/.pi/harnesses/damage-control-continue/package.json +1 -1
  88. package/.pi/harnesses/lib/codex-compat.ts +97 -0
  89. package/.pi/harnesses/lib/codex-contract.ts +259 -0
  90. package/.pi/harnesses/lib/codex-notification-profile.ts +75 -0
  91. package/.pi/harnesses/lib/coms-core.ts +8 -4
  92. package/.pi/harnesses/lib/context-budget-child-prompt.ts +1 -1
  93. package/.pi/harnesses/lib/context-budget-hub-prompt.ts +6 -3
  94. package/.pi/harnesses/lib/fleet-bootstrap-channel.ts +148 -0
  95. package/.pi/harnesses/lib/fleet-codex-catalog.ts +30 -0
  96. package/.pi/harnesses/lib/fleet-codex-chat-view.ts +43 -0
  97. package/.pi/harnesses/lib/fleet-codex-namespace.ts +2 -0
  98. package/.pi/harnesses/lib/fleet-codex-policy-snapshot.ts +10 -0
  99. package/.pi/harnesses/lib/fleet-connection-control.ts +20 -3
  100. package/.pi/harnesses/lib/fleet-notification-admission.ts +32 -0
  101. package/.pi/harnesses/lib/fleet-notification-bootstrap.ts +152 -0
  102. package/.pi/harnesses/lib/fleet-notification-validation.ts +80 -25
  103. package/.pi/harnesses/lib/fleet-target-identity.ts +9 -0
  104. package/.versions/2.2.0/.pi/agent-fleet/hermes/README.md +347 -0
  105. package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/plugin.js +1291 -0
  106. package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-herdr/presentation.js +672 -0
  107. package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/plugin.js +19 -0
  108. package/.versions/2.2.0/.pi/agent-fleet/hermes/desktop-plugins/agent-fleet-monitor/state.js +10 -0
  109. package/.versions/2.2.0/.pi/agent-fleet/hermes/gates/gate-o-capability.md +8 -0
  110. package/.versions/2.2.0/.pi/agent-fleet/hermes/gates/gate-o-validator-fixtures.json +1 -0
  111. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/activity.py +773 -0
  112. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_registry.py +134 -0
  113. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/coms_send.py +350 -0
  114. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/herdr_source.py +193 -0
  115. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/manifest.json +4 -0
  116. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/plugin_api.py +444 -0
  117. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/sessions.py +205 -0
  118. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/tasks.py +300 -0
  119. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/dashboard/watch.py +819 -0
  120. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-herdr/plugin.yaml +8 -0
  121. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/adapter.py +139 -0
  122. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/manifest.json +11 -0
  123. package/.versions/2.2.0/.pi/agent-fleet/hermes/plugins/agent-fleet-monitor/dashboard/plugin_api.py +50 -0
  124. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-conductor/SKILL.md +84 -0
  125. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-liaison/SKILL.md +84 -0
  126. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/SKILL.md +76 -0
  127. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/manifest.json +1 -0
  128. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog.py +249 -0
  129. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_actions.py +124 -0
  130. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_contract.py +76 -0
  131. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_delivery.py +10 -0
  132. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_engine.py +128 -0
  133. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_judgment.py +41 -0
  134. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_recovery.py +103 -0
  135. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_state.py +163 -0
  136. package/.versions/2.2.0/.pi/agent-fleet/hermes/skills/hub-watchdog/scripts/watchdog_transport.py +138 -0
  137. package/.versions/2.2.0/.pi/agent-fleet/hermes/watchdog-tests/__init__.py +0 -0
  138. package/.versions/2.2.0/.pi/agent-fleet/hooks/coms-stop-hook.mjs +124 -0
  139. package/.versions/2.2.0/.pi/agent-fleet/scripts/claude-code-preflight.ts +70 -0
  140. package/.versions/2.2.0/.pi/agent-fleet/scripts/coms-claude-bridge.ts +440 -0
  141. package/.versions/2.2.0/.pi/agent-fleet/scripts/coms-cli.ts +430 -0
  142. package/.versions/2.2.0/.pi/agent-fleet/scripts/coms-hermes-bridge.ts +416 -0
  143. package/.versions/2.2.0/.pi/agent-fleet/scripts/exec-at-target.ts +10 -0
  144. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/0.167-shared.json +1900 -0
  145. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/README.md +223 -0
  146. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/assessment.md +83 -0
  147. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile-0.167.json +5627 -0
  148. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap-profile.md +43 -0
  149. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/bootstrap.md +45 -0
  150. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture-profile.ts +53 -0
  151. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/capture.ts +102 -0
  152. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/catalog.md +91 -0
  153. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/channel.md +21 -0
  154. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurement.md +133 -0
  155. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/measurements.json +74 -0
  156. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/notification-profile-0.167.json +2679 -0
  157. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/observer.md +101 -0
  158. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/opaque-response.md +57 -0
  159. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/open-sent.md +68 -0
  160. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/probe-reader.md +51 -0
  161. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/profile.md +71 -0
  162. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/projection.md +147 -0
  163. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/reconnect.md +40 -0
  164. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/response-unions.md +74 -0
  165. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/semver.md +124 -0
  166. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/codex-notification-contracts/surface.md +73 -0
  167. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/fleet-codex-allowlist-store-child.ts +31 -0
  168. package/.versions/2.2.0/.pi/agent-fleet/scripts/fixtures/response-fixture.ts +23 -0
  169. package/.versions/2.2.0/.pi/agent-fleet/scripts/fleet-codex-local-mcp.mjs +26 -0
  170. package/.versions/2.2.0/.pi/agent-fleet/scripts/fleet-codex-local-mcp.ts +63 -0
  171. package/.versions/2.2.0/.pi/agent-fleet/scripts/fleet.ts +244 -0
  172. package/.versions/2.2.0/.pi/agent-fleet/scripts/flow.ts +166 -0
  173. package/.versions/2.2.0/.pi/agent-fleet/scripts/hermes-monitor-capability-runner.ts +25 -0
  174. package/.versions/2.2.0/.pi/agent-fleet/scripts/hermes-monitor-scenario.ts +474 -0
  175. package/.versions/2.2.0/.pi/agent-fleet/scripts/hermes-watchdog-capability-probe.ts +45 -0
  176. package/.versions/2.2.0/.pi/agent-fleet/scripts/install-hermes-plugin.sh +180 -0
  177. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/claude-bridge-core.ts +208 -0
  178. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-bootstrap-files.ts +46 -0
  179. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-bootstrap-probe.ts +44 -0
  180. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-bootstrap-producer.ts +131 -0
  181. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-daemon-observer.ts +137 -0
  182. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-desktop-discovery.ts +84 -0
  183. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-desktop-preflight.ts +130 -0
  184. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-desktop-queue-host.ts +113 -0
  185. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-measurement.ts +218 -0
  186. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-native-presence.ts +61 -0
  187. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-probe-transcript.ts +135 -0
  188. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-send-lineage.ts +72 -0
  189. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/codex-unix-queue-rpc.ts +101 -0
  190. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/coms-envelope.ts +582 -0
  191. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fake-herdr-server.ts +88 -0
  192. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist-store.ts +453 -0
  193. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-allowlist.ts +175 -0
  194. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-answer-transport.ts +73 -0
  195. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-answers.ts +74 -0
  196. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-bootstrap.ts +204 -0
  197. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-connections.ts +76 -0
  198. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-event-reply.ts +58 -0
  199. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-event-runtime.ts +132 -0
  200. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-store.ts +428 -0
  201. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-instruction-transport.ts +160 -0
  202. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-instructions.ts +175 -0
  203. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-local-mcp.ts +435 -0
  204. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-native-history.ts +215 -0
  205. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-observation-store.ts +208 -0
  206. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-observe-transport.ts +49 -0
  207. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-observe.ts +93 -0
  208. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-overview.ts +52 -0
  209. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-permission-transport.ts +44 -0
  210. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-permissions.ts +83 -0
  211. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-readonly.ts +213 -0
  212. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-relay-latency.ts +45 -0
  213. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-response-read.ts +26 -0
  214. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-response-transport.ts +38 -0
  215. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-codex-resync.ts +212 -0
  216. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/fleet-command.ts +264 -0
  217. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/flow-command.ts +107 -0
  218. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/flow-maintenance.ts +239 -0
  219. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/herdr-layout.ts +281 -0
  220. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-bridge-core.ts +241 -0
  221. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-events.ts +1 -0
  222. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-herdr.ts +2 -0
  223. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-model.ts +3 -0
  224. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-registry.ts +2 -0
  225. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-socket.ts +2 -0
  226. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/hermes-monitor-store.ts +2 -0
  227. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/monitor-env.ts +146 -0
  228. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/peer-launch.ts +318 -0
  229. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/peer-target.ts +1 -0
  230. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/persona-banner.ts +62 -0
  231. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/persona-dirs.ts +25 -0
  232. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/resource-closure.js +1 -0
  233. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/runtime-dependencies.js +124 -0
  234. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/session-launch.ts +56 -0
  235. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/spawn-stagger.ts +101 -0
  236. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/team-project.ts +176 -0
  237. package/.versions/2.2.0/.pi/agent-fleet/scripts/lib/team-snapshot.ts +160 -0
  238. package/.versions/2.2.0/.pi/agent-fleet/scripts/package-lock.json +57 -0
  239. package/.versions/2.2.0/.pi/agent-fleet/scripts/package.json +10 -0
  240. package/.versions/2.2.0/.pi/agent-fleet/scripts/peer-banner.ts +41 -0
  241. package/.versions/2.2.0/.pi/agent-fleet/scripts/peer-launch.ts +289 -0
  242. package/.versions/2.2.0/.pi/agent-fleet/scripts/pi-session.ts +9 -0
  243. package/.versions/2.2.0/.pi/agent-fleet/scripts/team-snapshot.ts +245 -0
  244. package/.versions/2.2.0/.pi/agent-fleet/scripts/team-up.ts +378 -0
  245. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/agent-phase.ts +181 -0
  246. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/changes.ts +61 -0
  247. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/debate.ts +149 -0
  248. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/env.ts +36 -0
  249. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/envelopes.ts +169 -0
  250. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/gates.ts +81 -0
  251. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/git.ts +108 -0
  252. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/isolated-snapshot.ts +130 -0
  253. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/merge.ts +95 -0
  254. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/model-profile.ts +22 -0
  255. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/model-visibility.ts +92 -0
  256. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/permissions.ts +137 -0
  257. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/personas.ts +57 -0
  258. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/poll.ts +86 -0
  259. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/project-policy.ts +37 -0
  260. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/quality.ts +78 -0
  261. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/run.ts +109 -0
  262. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/scout-data-boundary.ts +55 -0
  263. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/trace.ts +52 -0
  264. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/voices.ts +128 -0
  265. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/writer-lease-race.worker.mjs +36 -0
  266. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/lib/writer-lease.ts +148 -0
  267. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/tsconfig.json +22 -0
  268. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-build-test.ts +61 -0
  269. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-debate.ts +87 -0
  270. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-document.ts +50 -0
  271. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-poll.ts +95 -0
  272. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-quality.ts +20 -0
  273. package/.versions/2.2.0/.pi/agent-fleet/scripts/workflows/wf-scout.ts +40 -0
  274. package/.versions/2.2.0/.pi/agents/dispatch-policy.yaml +32 -0
  275. package/.versions/2.2.0/.pi/agents/model-profiles.yaml +132 -0
  276. package/.versions/2.2.0/.pi/agents/peers.yaml +147 -0
  277. package/.versions/2.2.0/.pi/agents/teams.yaml +41 -0
  278. package/.versions/2.2.0/.pi/agents/voices.yaml +13 -0
  279. package/.versions/2.2.0/.pi/damage-control-rules.yaml +297 -0
  280. package/.versions/2.2.0/.pi/extensions/btw/README.md +120 -0
  281. package/.versions/2.2.0/.pi/extensions/btw/index.ts +916 -0
  282. package/.versions/2.2.0/.pi/extensions/btw/package.json +6 -0
  283. package/.versions/2.2.0/.pi/extensions/btw/state.js +179 -0
  284. package/.versions/2.2.0/.pi/extensions/chrome-devtools-mcp/README.md +55 -0
  285. package/.versions/2.2.0/.pi/extensions/chrome-devtools-mcp/index.ts +93 -0
  286. package/.versions/2.2.0/.pi/extensions/chrome-devtools-mcp/package.json +6 -0
  287. package/.versions/2.2.0/.pi/extensions/compact-and-continue/README.md +42 -0
  288. package/.versions/2.2.0/.pi/extensions/compact-and-continue/index.ts +136 -0
  289. package/.versions/2.2.0/.pi/extensions/compact-and-continue/package.json +6 -0
  290. package/.versions/2.2.0/.pi/extensions/mcp-bridge/README.md +46 -0
  291. package/.versions/2.2.0/.pi/extensions/mcp-bridge/index.ts +206 -0
  292. package/.versions/2.2.0/.pi/extensions/mcp-bridge/package.json +6 -0
  293. package/.versions/2.2.0/.pi/extensions/package-lock.json +1175 -0
  294. package/.versions/2.2.0/.pi/extensions/package.json +9 -0
  295. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/README.md +224 -0
  296. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/config.ts +199 -0
  297. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/examples/stt.json +35 -0
  298. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/index.ts +248 -0
  299. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/package.json +6 -0
  300. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/providers.ts +214 -0
  301. package/.versions/2.2.0/.pi/extensions/pi-voice-stt/recorder.ts +158 -0
  302. package/.versions/2.2.0/.pi/harnesses/agent-hub/README.md +1633 -0
  303. package/.versions/2.2.0/.pi/harnesses/agent-hub/acceptance.ts +204 -0
  304. package/.versions/2.2.0/.pi/harnesses/agent-hub/access-approval.ts +266 -0
  305. package/.versions/2.2.0/.pi/harnesses/agent-hub/action-authorization.ts +10 -0
  306. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-contract.ts +43 -0
  307. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-evidence.ts +64 -0
  308. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-hub.ts +55 -0
  309. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-runtime.ts +56 -0
  310. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-sources-worker.mjs +4 -0
  311. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-sources.ts +74 -0
  312. package/.versions/2.2.0/.pi/harnesses/agent-hub/agentic-state.ts +23 -0
  313. package/.versions/2.2.0/.pi/harnesses/agent-hub/approval-wait.ts +1 -0
  314. package/.versions/2.2.0/.pi/harnesses/agent-hub/artifacts.js +146 -0
  315. package/.versions/2.2.0/.pi/harnesses/agent-hub/assertion-ledger.js +68 -0
  316. package/.versions/2.2.0/.pi/harnesses/agent-hub/assist-profile.ts +19 -0
  317. package/.versions/2.2.0/.pi/harnesses/agent-hub/backend-policy.js +174 -0
  318. package/.versions/2.2.0/.pi/harnesses/agent-hub/bounded-output.ts +26 -0
  319. package/.versions/2.2.0/.pi/harnesses/agent-hub/budget-recovery.ts +123 -0
  320. package/.versions/2.2.0/.pi/harnesses/agent-hub/capability-confirmation.ts +47 -0
  321. package/.versions/2.2.0/.pi/harnesses/agent-hub/capability-packs.ts +187 -0
  322. package/.versions/2.2.0/.pi/harnesses/agent-hub/codex-bootstrap.ts +117 -0
  323. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agent-model-thinking.ts +10 -0
  324. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agent-model.ts +10 -0
  325. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agent-models-substitute.ts +10 -0
  326. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-add.ts +9 -0
  327. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-drop.ts +9 -0
  328. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-history.ts +9 -0
  329. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-kill.ts +10 -0
  330. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-list.ts +9 -0
  331. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-restart.ts +10 -0
  332. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-save.ts +9 -0
  333. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/agents-team.ts +9 -0
  334. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/audit.ts +9 -0
  335. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/compound.ts +9 -0
  336. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/coms.ts +9 -0
  337. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/config.ts +9 -0
  338. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/context-command.ts +9 -0
  339. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/context.ts +43 -0
  340. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/debate.ts +9 -0
  341. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/dispatch-policy.ts +9 -0
  342. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/handoff.ts +10 -0
  343. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/hub-report.ts +9 -0
  344. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/models.ts +10 -0
  345. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/poll.ts +9 -0
  346. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/recover.ts +62 -0
  347. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/retry.ts +10 -0
  348. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/task-triage-recover.ts +12 -0
  349. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/task-triage-waive.ts +12 -0
  350. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/watchdog.ts +9 -0
  351. package/.versions/2.2.0/.pi/harnesses/agent-hub/commands/zoom.ts +10 -0
  352. package/.versions/2.2.0/.pi/harnesses/agent-hub/config/agents.ts +183 -0
  353. package/.versions/2.2.0/.pi/harnesses/agent-hub/config/model-profiles.ts +240 -0
  354. package/.versions/2.2.0/.pi/harnesses/agent-hub/config/overrides.ts +166 -0
  355. package/.versions/2.2.0/.pi/harnesses/agent-hub/context/agent-state.ts +30 -0
  356. package/.versions/2.2.0/.pi/harnesses/agent-hub/context/assertions-artifacts.ts +234 -0
  357. package/.versions/2.2.0/.pi/harnesses/agent-hub/context/budgets.ts +152 -0
  358. package/.versions/2.2.0/.pi/harnesses/agent-hub/context/hub-state.ts +40 -0
  359. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-budget-snapshot.ts +105 -0
  360. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction-monitor.ts +35 -0
  361. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction-preflight.ts +21 -0
  362. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction-runtime.ts +69 -0
  363. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-compaction.ts +34 -0
  364. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-broker.ts +44 -0
  365. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-child.ts +83 -0
  366. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-client.ts +22 -0
  367. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-compat.ts +45 -0
  368. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-owners.ts +17 -0
  369. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity-registry.ts +8 -0
  370. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-continuity.ts +82 -0
  371. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-pressure.ts +222 -0
  372. package/.versions/2.2.0/.pi/harnesses/agent-hub/context-window.js +108 -0
  373. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-approval.ts +83 -0
  374. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-broker.ts +125 -0
  375. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-contract.ts +22 -0
  376. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-descendant.ts +76 -0
  377. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-hub.ts +263 -0
  378. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-identity.ts +12 -0
  379. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-owners.ts +59 -0
  380. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-state.ts +43 -0
  381. package/.versions/2.2.0/.pi/harnesses/agent-hub/damage-guard-test-tsconfig.json +19 -0
  382. package/.versions/2.2.0/.pi/harnesses/agent-hub/debate-command.ts +176 -0
  383. package/.versions/2.2.0/.pi/harnesses/agent-hub/delegate.ts +478 -0
  384. package/.versions/2.2.0/.pi/harnesses/agent-hub/deterministic-fs.ts +195 -0
  385. package/.versions/2.2.0/.pi/harnesses/agent-hub/diagnostic-probe-extension.ts +26 -0
  386. package/.versions/2.2.0/.pi/harnesses/agent-hub/diagnostic-series-budget.ts +178 -0
  387. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-coms.ts +258 -0
  388. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-core.ts +27 -0
  389. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-complete.ts +176 -0
  390. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-prepare.ts +318 -0
  391. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-spawn.ts +264 -0
  392. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native-types.ts +297 -0
  393. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-native.ts +242 -0
  394. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-observability.ts +225 -0
  395. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-contract.ts +27 -0
  396. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-eval.ts +77 -0
  397. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-policy.ts +29 -0
  398. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-runtime.ts +55 -0
  399. package/.versions/2.2.0/.pi/harnesses/agent-hub/dispatch-triage-state.ts +33 -0
  400. package/.versions/2.2.0/.pi/harnesses/agent-hub/docs-lane.js +123 -0
  401. package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-judge.ts +352 -0
  402. package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-runtime.ts +480 -0
  403. package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-system1-policy.ts +39 -0
  404. package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-system1.ts +469 -0
  405. package/.versions/2.2.0/.pi/harnesses/agent-hub/drift-watchdog.js +344 -0
  406. package/.versions/2.2.0/.pi/harnesses/agent-hub/evidence-manifest.ts +51 -0
  407. package/.versions/2.2.0/.pi/harnesses/agent-hub/evidence-rules.js +96 -0
  408. package/.versions/2.2.0/.pi/harnesses/agent-hub/execution-evidence.ts +96 -0
  409. package/.versions/2.2.0/.pi/harnesses/agent-hub/execution-trace.ts +241 -0
  410. package/.versions/2.2.0/.pi/harnesses/agent-hub/external-blocker.js +92 -0
  411. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/adapters.ts +88 -0
  412. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/broker-client.ts +62 -0
  413. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/broker.ts +128 -0
  414. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/child-extension.ts +42 -0
  415. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/descendant.ts +67 -0
  416. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/discovery-worker.mjs +15 -0
  417. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/discovery.ts +126 -0
  418. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/evaluate.ts +57 -0
  419. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/hub.ts +170 -0
  420. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/native-context.ts +8 -0
  421. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/native-fixture.test-support.ts +108 -0
  422. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/owners.ts +100 -0
  423. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/results.ts +55 -0
  424. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/runtime.ts +130 -0
  425. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/semantic-profiles.ts +18 -0
  426. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/sources.ts +69 -0
  427. package/.versions/2.2.0/.pi/harnesses/agent-hub/file-discovery/state.ts +22 -0
  428. package/.versions/2.2.0/.pi/harnesses/agent-hub/filesystem-tool.ts +166 -0
  429. package/.versions/2.2.0/.pi/harnesses/agent-hub/fixtures/registration-surface.json +68 -0
  430. package/.versions/2.2.0/.pi/harnesses/agent-hub/fixtures/t0a-synthetic/catalog.ts +189 -0
  431. package/.versions/2.2.0/.pi/harnesses/agent-hub/footer.ts +29 -0
  432. package/.versions/2.2.0/.pi/harnesses/agent-hub/helpers.ts +269 -0
  433. package/.versions/2.2.0/.pi/harnesses/agent-hub/history-projection.ts +116 -0
  434. package/.versions/2.2.0/.pi/harnesses/agent-hub/hub-state-audit.js +41 -0
  435. package/.versions/2.2.0/.pi/harnesses/agent-hub/index.ts +2722 -0
  436. package/.versions/2.2.0/.pi/harnesses/agent-hub/input/completions.ts +82 -0
  437. package/.versions/2.2.0/.pi/harnesses/agent-hub/input/shortcuts.ts +16 -0
  438. package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/context-pressure.ts +231 -0
  439. package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/monitor-session.ts +104 -0
  440. package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/session-orchestration.ts +143 -0
  441. package/.versions/2.2.0/.pi/harnesses/agent-hub/lifecycle/turn-handlers.ts +90 -0
  442. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-control.ts +9 -0
  443. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-invoke-journal.ts +131 -0
  444. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-invoke.ts +92 -0
  445. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-lifecycle.ts +13 -0
  446. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-publisher.ts +59 -0
  447. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-recovery.ts +3 -0
  448. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-runtime.ts +3 -0
  449. package/.versions/2.2.0/.pi/harnesses/agent-hub/monitor-session-bridge.ts +266 -0
  450. package/.versions/2.2.0/.pi/harnesses/agent-hub/no-progress.ts +627 -0
  451. package/.versions/2.2.0/.pi/harnesses/agent-hub/operator-current-state.ts +57 -0
  452. package/.versions/2.2.0/.pi/harnesses/agent-hub/operator-watchdog.ts +97 -0
  453. package/.versions/2.2.0/.pi/harnesses/agent-hub/orchestration-activation.ts +109 -0
  454. package/.versions/2.2.0/.pi/harnesses/agent-hub/orchestration-metrics.ts +78 -0
  455. package/.versions/2.2.0/.pi/harnesses/agent-hub/orchestration-route.ts +68 -0
  456. package/.versions/2.2.0/.pi/harnesses/agent-hub/package.json +7 -0
  457. package/.versions/2.2.0/.pi/harnesses/agent-hub/peer-spawn-plan.ts +116 -0
  458. package/.versions/2.2.0/.pi/harnesses/agent-hub/permission-channel.ts +87 -0
  459. package/.versions/2.2.0/.pi/harnesses/agent-hub/permission-relay.ts +84 -0
  460. package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/models.ts +153 -0
  461. package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/profile-activation.ts +62 -0
  462. package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/profile-runtime.ts +120 -0
  463. package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/roster.ts +103 -0
  464. package/.versions/2.2.0/.pi/harnesses/agent-hub/policy/work-mode.ts +103 -0
  465. package/.versions/2.2.0/.pi/harnesses/agent-hub/poll-command.ts +184 -0
  466. package/.versions/2.2.0/.pi/harnesses/agent-hub/presentation.ts +54 -0
  467. package/.versions/2.2.0/.pi/harnesses/agent-hub/private-config-current-state.ts +81 -0
  468. package/.versions/2.2.0/.pi/harnesses/agent-hub/private-config-fixtures.ts +26 -0
  469. package/.versions/2.2.0/.pi/harnesses/agent-hub/private-config-review.ts +100 -0
  470. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-config.ts +22 -0
  471. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-evaluate.ts +138 -0
  472. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-external-git.ts +82 -0
  473. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-external.ts +142 -0
  474. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-feedback.ts +104 -0
  475. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-findings.ts +115 -0
  476. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-local.ts +89 -0
  477. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-observer.ts +106 -0
  478. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-rules.ts +171 -0
  479. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-runtime.ts +318 -0
  480. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-selection.ts +68 -0
  481. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-snapshot-worker.mjs +12 -0
  482. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-snapshot.ts +287 -0
  483. package/.versions/2.2.0/.pi/harnesses/agent-hub/proactive-types.ts +70 -0
  484. package/.versions/2.2.0/.pi/harnesses/agent-hub/process-obligations.ts +210 -0
  485. package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/context.ts +72 -0
  486. package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/fragments.ts +94 -0
  487. package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/session-start.ts +89 -0
  488. package/.versions/2.2.0/.pi/harnesses/agent-hub/prompts/system-prompt.ts +142 -0
  489. package/.versions/2.2.0/.pi/harnesses/agent-hub/provider-semaphore.js +143 -0
  490. package/.versions/2.2.0/.pi/harnesses/agent-hub/reconcile.ts +26 -0
  491. package/.versions/2.2.0/.pi/harnesses/agent-hub/recover-policy.ts +44 -0
  492. package/.versions/2.2.0/.pi/harnesses/agent-hub/recover-state.ts +104 -0
  493. package/.versions/2.2.0/.pi/harnesses/agent-hub/recovery-contract.ts +151 -0
  494. package/.versions/2.2.0/.pi/harnesses/agent-hub/rerun-policy.ts +40 -0
  495. package/.versions/2.2.0/.pi/harnesses/agent-hub/research/controls.ts +74 -0
  496. package/.versions/2.2.0/.pi/harnesses/agent-hub/research/runtime.ts +215 -0
  497. package/.versions/2.2.0/.pi/harnesses/agent-hub/research/spawn-run.ts +221 -0
  498. package/.versions/2.2.0/.pi/harnesses/agent-hub/research-watchdog.ts +40 -0
  499. package/.versions/2.2.0/.pi/harnesses/agent-hub/return-contract.js +371 -0
  500. package/.versions/2.2.0/.pi/harnesses/agent-hub/return-extract.js +77 -0
  501. package/.versions/2.2.0/.pi/harnesses/agent-hub/review-closure.ts +43 -0
  502. package/.versions/2.2.0/.pi/harnesses/agent-hub/review-continuity.ts +76 -0
  503. package/.versions/2.2.0/.pi/harnesses/agent-hub/review-findings.js +96 -0
  504. package/.versions/2.2.0/.pi/harnesses/agent-hub/review-reuse.ts +48 -0
  505. package/.versions/2.2.0/.pi/harnesses/agent-hub/review-verdict.ts +6 -0
  506. package/.versions/2.2.0/.pi/harnesses/agent-hub/routing-observation.ts +41 -0
  507. package/.versions/2.2.0/.pi/harnesses/agent-hub/routing-proposal.ts +46 -0
  508. package/.versions/2.2.0/.pi/harnesses/agent-hub/run-budget.js +362 -0
  509. package/.versions/2.2.0/.pi/harnesses/agent-hub/run-namespace.js +93 -0
  510. package/.versions/2.2.0/.pi/harnesses/agent-hub/runtime-receipts.ts +63 -0
  511. package/.versions/2.2.0/.pi/harnesses/agent-hub/runtime-test-check.ts +85 -0
  512. package/.versions/2.2.0/.pi/harnesses/agent-hub/safety-routing.ts +28 -0
  513. package/.versions/2.2.0/.pi/harnesses/agent-hub/scope-gate.js +271 -0
  514. package/.versions/2.2.0/.pi/harnesses/agent-hub/scope-overlap.ts +46 -0
  515. package/.versions/2.2.0/.pi/harnesses/agent-hub/session-audit.ts +331 -0
  516. package/.versions/2.2.0/.pi/harnesses/agent-hub/session-health.js +110 -0
  517. package/.versions/2.2.0/.pi/harnesses/agent-hub/session-start.ts +42 -0
  518. package/.versions/2.2.0/.pi/harnesses/agent-hub/spawn.ts +702 -0
  519. package/.versions/2.2.0/.pi/harnesses/agent-hub/specialist-result-receipt.ts +13 -0
  520. package/.versions/2.2.0/.pi/harnesses/agent-hub/specialist-result.ts +78 -0
  521. package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-activity.ts +625 -0
  522. package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-communication-store.ts +225 -0
  523. package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-report.ts +275 -0
  524. package/.versions/2.2.0/.pi/harnesses/agent-hub/system1-runtime.ts +271 -0
  525. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-brief.ts +98 -0
  526. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-continuation.ts +4 -0
  527. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-resume-contract.ts +80 -0
  528. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-authorization.ts +170 -0
  529. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-config.ts +21 -0
  530. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-contract.ts +14 -0
  531. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-live-stage-boundary.mjs +49 -0
  532. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-obligations.ts +120 -0
  533. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-policy.ts +16 -0
  534. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-review-contract.mjs +43 -0
  535. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-reviewer-only-contract.mjs +156 -0
  536. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-reviewer-only-diagnostics.mjs +112 -0
  537. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-runtime.ts +130 -0
  538. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-stage-guard.ts +21 -0
  539. package/.versions/2.2.0/.pi/harnesses/agent-hub/task-triage-state.ts +46 -0
  540. package/.versions/2.2.0/.pi/harnesses/agent-hub/timeline.ts +72 -0
  541. package/.versions/2.2.0/.pi/harnesses/agent-hub/tool-catalog-runtime.ts +83 -0
  542. package/.versions/2.2.0/.pi/harnesses/agent-hub/tool-catalog-state.ts +125 -0
  543. package/.versions/2.2.0/.pi/harnesses/agent-hub/tool-protocol.ts +134 -0
  544. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/action-executors.ts +214 -0
  545. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/ask-system1-files.ts +15 -0
  546. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/ask-system1.ts +25 -0
  547. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/coms-tools.ts +139 -0
  548. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/context.ts +149 -0
  549. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/dispatch-agent.ts +93 -0
  550. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/dispatch-execution.ts +928 -0
  551. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/dispatch-triage.ts +16 -0
  552. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/execution-orchestration.ts +22 -0
  553. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/fleet-tools.ts +201 -0
  554. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/herdr-executors.ts +100 -0
  555. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/poll-panel-core.ts +30 -0
  556. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/poll-panel.ts +33 -0
  557. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/run-flow.ts +177 -0
  558. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/set-task-tier.ts +31 -0
  559. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/spawn-research.ts +67 -0
  560. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/team-adjust.ts +29 -0
  561. package/.versions/2.2.0/.pi/harnesses/agent-hub/tools/verification-contract.ts +81 -0
  562. package/.versions/2.2.0/.pi/harnesses/agent-hub/tsconfig.json +22 -0
  563. package/.versions/2.2.0/.pi/harnesses/agent-hub/types.ts +66 -0
  564. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/activity-dots.ts +25 -0
  565. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/context-budget.ts +89 -0
  566. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/detail-panel.ts +192 -0
  567. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-actions.ts +78 -0
  568. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-dashboard.ts +173 -0
  569. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-editor.ts +44 -0
  570. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/fleet-source.ts +179 -0
  571. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/grid.ts +159 -0
  572. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/history-store.ts +137 -0
  573. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/history.ts +234 -0
  574. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/pool.ts +103 -0
  575. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/running-strip.ts +2 -0
  576. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/system1-communication.ts +59 -0
  577. package/.versions/2.2.0/.pi/harnesses/agent-hub/ui/zoom.ts +206 -0
  578. package/.versions/2.2.0/.pi/harnesses/agent-hub/unknown-tool-counter.ts +116 -0
  579. package/.versions/2.2.0/.pi/harnesses/agent-hub/version.ts +42 -0
  580. package/.versions/2.2.0/.pi/harnesses/agent-hub/watchdog-evaluation.ts +110 -0
  581. package/.versions/2.2.0/.pi/harnesses/agent-hub/work-mode.ts +183 -0
  582. package/.versions/2.2.0/.pi/harnesses/agent-hub/write-isolation.ts +232 -0
  583. package/.versions/2.2.0/.pi/harnesses/ask-user-remote/README.md +59 -0
  584. package/.versions/2.2.0/.pi/harnesses/ask-user-remote/index.ts +571 -0
  585. package/.versions/2.2.0/.pi/harnesses/ask-user-remote/questions.ts +206 -0
  586. package/.versions/2.2.0/.pi/harnesses/ask-user-remote/race-core.js +124 -0
  587. package/.versions/2.2.0/.pi/harnesses/ask-user-remote/runtime-ask.ts +90 -0
  588. package/.versions/2.2.0/.pi/harnesses/coms/README.md +105 -0
  589. package/.versions/2.2.0/.pi/harnesses/coms/index.ts +308 -0
  590. package/.versions/2.2.0/.pi/harnesses/coms/package.json +7 -0
  591. package/.versions/2.2.0/.pi/harnesses/coms/version.ts +42 -0
  592. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/README.md +161 -0
  593. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/index.ts +659 -0
  594. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/package.json +7 -0
  595. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/result-screen.ts +98 -0
  596. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/system1-child.ts +45 -0
  597. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/system1-client.ts +85 -0
  598. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/system1-guard.ts +65 -0
  599. package/.versions/2.2.0/.pi/harnesses/damage-control-continue/version.ts +42 -0
  600. package/.versions/2.2.0/.pi/harnesses/lib/approval-wait.ts +17 -0
  601. package/.versions/2.2.0/.pi/harnesses/lib/bash-policy-analysis.ts +185 -0
  602. package/.versions/2.2.0/.pi/harnesses/lib/changed-file-diagnostics.ts +642 -0
  603. package/.versions/2.2.0/.pi/harnesses/lib/clarification-policy.ts +9 -0
  604. package/.versions/2.2.0/.pi/harnesses/lib/codex-compat.ts +97 -0
  605. package/.versions/2.2.0/.pi/harnesses/lib/codex-contract.ts +259 -0
  606. package/.versions/2.2.0/.pi/harnesses/lib/codex-notification-profile.ts +75 -0
  607. package/.versions/2.2.0/.pi/harnesses/lib/coms-core-io.ts +422 -0
  608. package/.versions/2.2.0/.pi/harnesses/lib/coms-core.ts +738 -0
  609. package/.versions/2.2.0/.pi/harnesses/lib/coms-instruction-receipts.ts +113 -0
  610. package/.versions/2.2.0/.pi/harnesses/lib/coms-observation.ts +74 -0
  611. package/.versions/2.2.0/.pi/harnesses/lib/coms-registry-entry.ts +99 -0
  612. package/.versions/2.2.0/.pi/harnesses/lib/coms-response-read.ts +107 -0
  613. package/.versions/2.2.0/.pi/harnesses/lib/context-budget-child-prompt.ts +214 -0
  614. package/.versions/2.2.0/.pi/harnesses/lib/context-budget-hub-prompt.ts +124 -0
  615. package/.versions/2.2.0/.pi/harnesses/lib/context-budget-view.ts +112 -0
  616. package/.versions/2.2.0/.pi/harnesses/lib/context-budget.ts +114 -0
  617. package/.versions/2.2.0/.pi/harnesses/lib/context-compaction-policy.js +35 -0
  618. package/.versions/2.2.0/.pi/harnesses/lib/damage-action-hash.ts +28 -0
  619. package/.versions/2.2.0/.pi/harnesses/lib/damage-auto-policy.ts +52 -0
  620. package/.versions/2.2.0/.pi/harnesses/lib/damage-control-presentation.ts +14 -0
  621. package/.versions/2.2.0/.pi/harnesses/lib/damage-control-shared.ts +276 -0
  622. package/.versions/2.2.0/.pi/harnesses/lib/damage-guard-port.ts +25 -0
  623. package/.versions/2.2.0/.pi/harnesses/lib/damage-policy.ts +35 -0
  624. package/.versions/2.2.0/.pi/harnesses/lib/damage-result-evidence.ts +25 -0
  625. package/.versions/2.2.0/.pi/harnesses/lib/damage-result-view.ts +16 -0
  626. package/.versions/2.2.0/.pi/harnesses/lib/deterministic-handle-path.ts +25 -0
  627. package/.versions/2.2.0/.pi/harnesses/lib/exact-permission-port.ts +38 -0
  628. package/.versions/2.2.0/.pi/harnesses/lib/execution-trace.ts +45 -0
  629. package/.versions/2.2.0/.pi/harnesses/lib/fixtures/context-budget-profiles.json +11 -0
  630. package/.versions/2.2.0/.pi/harnesses/lib/fixtures/hub-prompt-operator.legacy.txt +73 -0
  631. package/.versions/2.2.0/.pi/harnesses/lib/fixtures/hub-prompt-orchestrator.legacy.txt +73 -0
  632. package/.versions/2.2.0/.pi/harnesses/lib/fleet-bootstrap-channel.ts +148 -0
  633. package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-catalog.ts +30 -0
  634. package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-chat-view.ts +43 -0
  635. package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-event-bridge.ts +82 -0
  636. package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-namespace.ts +2 -0
  637. package/.versions/2.2.0/.pi/harnesses/lib/fleet-codex-policy-snapshot.ts +10 -0
  638. package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/cli-bridge.ts +111 -0
  639. package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/mutations.ts +201 -0
  640. package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/snapshot.ts +417 -0
  641. package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/transition.ts +68 -0
  642. package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/ui.ts +269 -0
  643. package/.versions/2.2.0/.pi/harnesses/lib/fleet-config/view.ts +338 -0
  644. package/.versions/2.2.0/.pi/harnesses/lib/fleet-connection-control.ts +94 -0
  645. package/.versions/2.2.0/.pi/harnesses/lib/fleet-dashboard-ops.ts +178 -0
  646. package/.versions/2.2.0/.pi/harnesses/lib/fleet-dashboard-view.ts +174 -0
  647. package/.versions/2.2.0/.pi/harnesses/lib/fleet-detail-view.ts +339 -0
  648. package/.versions/2.2.0/.pi/harnesses/lib/fleet-event-source.ts +21 -0
  649. package/.versions/2.2.0/.pi/harnesses/lib/fleet-notification-admission.ts +32 -0
  650. package/.versions/2.2.0/.pi/harnesses/lib/fleet-notification-bootstrap.ts +152 -0
  651. package/.versions/2.2.0/.pi/harnesses/lib/fleet-notification-validation.ts +122 -0
  652. package/.versions/2.2.0/.pi/harnesses/lib/fleet-overlay.ts +26 -0
  653. package/.versions/2.2.0/.pi/harnesses/lib/fleet-panel.ts +34 -0
  654. package/.versions/2.2.0/.pi/harnesses/lib/fleet-question-reference.ts +42 -0
  655. package/.versions/2.2.0/.pi/harnesses/lib/fleet-read-model.ts +609 -0
  656. package/.versions/2.2.0/.pi/harnesses/lib/fleet-selection.ts +24 -0
  657. package/.versions/2.2.0/.pi/harnesses/lib/fleet-strip-controller.ts +75 -0
  658. package/.versions/2.2.0/.pi/harnesses/lib/fleet-strip-view.ts +179 -0
  659. package/.versions/2.2.0/.pi/harnesses/lib/fleet-target-identity.ts +9 -0
  660. package/.versions/2.2.0/.pi/harnesses/lib/fleet-transcript-store.ts +244 -0
  661. package/.versions/2.2.0/.pi/harnesses/lib/herdr-client.ts +472 -0
  662. package/.versions/2.2.0/.pi/harnesses/lib/herdr-presence.ts +399 -0
  663. package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-events.ts +136 -0
  664. package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-herdr.ts +28 -0
  665. package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-model.ts +18 -0
  666. package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-registry.ts +6 -0
  667. package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-socket.ts +163 -0
  668. package/.versions/2.2.0/.pi/harnesses/lib/hermes-monitor-store.ts +31 -0
  669. package/.versions/2.2.0/.pi/harnesses/lib/identical-dialog.ts +27 -0
  670. package/.versions/2.2.0/.pi/harnesses/lib/installation-state.js +62 -0
  671. package/.versions/2.2.0/.pi/harnesses/lib/peer-target.ts +24 -0
  672. package/.versions/2.2.0/.pi/harnesses/lib/policy-roots.js +117 -0
  673. package/.versions/2.2.0/.pi/harnesses/lib/policy-roots.ts +32 -0
  674. package/.versions/2.2.0/.pi/harnesses/lib/process-shared.ts +9 -0
  675. package/.versions/2.2.0/.pi/harnesses/lib/resource-closure.js +26 -0
  676. package/.versions/2.2.0/.pi/harnesses/lib/safe-source-read.js +29 -0
  677. package/.versions/2.2.0/.pi/harnesses/lib/semantic-approval.ts +80 -0
  678. package/.versions/2.2.0/.pi/harnesses/lib/session-target.ts +62 -0
  679. package/.versions/2.2.0/.pi/harnesses/lib/spawned-peers.js +191 -0
  680. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-agentic.js +15 -0
  681. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-context-compaction.js +16 -0
  682. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-damage-guard.js +24 -0
  683. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-file-discovery.js +23 -0
  684. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-json.js +37 -0
  685. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-loader.js +53 -0
  686. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-proactive.js +68 -0
  687. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-triage.js +42 -0
  688. package/.versions/2.2.0/.pi/harnesses/lib/system1/config-v2.js +112 -0
  689. package/.versions/2.2.0/.pi/harnesses/lib/system1/config.js +50 -0
  690. package/.versions/2.2.0/.pi/harnesses/lib/system1/contracts.ts +154 -0
  691. package/.versions/2.2.0/.pi/harnesses/lib/system1/demo.ts +95 -0
  692. package/.versions/2.2.0/.pi/harnesses/lib/system1/jev.ts +503 -0
  693. package/.versions/2.2.0/.pi/harnesses/lib/system1/payload-screen.ts +65 -0
  694. package/.versions/2.2.0/.pi/harnesses/lib/system1/selection.js +11 -0
  695. package/.versions/2.2.0/.pi/harnesses/lib/system1/service.ts +245 -0
  696. package/.versions/2.2.0/.pi/harnesses/lib/system1/worktree-scopes.js +110 -0
  697. package/.versions/2.2.0/.pi/harnesses/lib/system1/worktree-scopes.ts +13 -0
  698. package/.versions/2.2.0/.pi/harnesses/lib/system1/worktree-service.ts +24 -0
  699. package/.versions/2.2.0/.pi/harnesses/lib/target-capabilities.js +7 -0
  700. package/.versions/2.2.0/.pi/harnesses/lib/update-check.ts +227 -0
  701. package/.versions/2.2.0/.pi/harnesses/lib/workspace-context.js +115 -0
  702. package/.versions/2.2.0/.pi/harnesses/lib/workspace-context.ts +22 -0
  703. package/.versions/2.2.0/.pi/harnesses/package-lock.json +2121 -0
  704. package/.versions/2.2.0/.pi/harnesses/package.json +13 -0
  705. package/.versions/2.2.0/.pi/prompts/af-build.md +27 -0
  706. package/.versions/2.2.0/.pi/prompts/af-code-simplify.md +22 -0
  707. package/.versions/2.2.0/.pi/prompts/af-constraints.md +31 -0
  708. package/.versions/2.2.0/.pi/prompts/af-plan.md +17 -0
  709. package/.versions/2.2.0/.pi/prompts/af-review.md +16 -0
  710. package/.versions/2.2.0/.pi/prompts/af-set-hermes-telegram.md +15 -0
  711. package/.versions/2.2.0/.pi/prompts/af-set-hermes-watchdog.md +6 -0
  712. package/.versions/2.2.0/.pi/prompts/af-setup-rules.md +20 -0
  713. package/.versions/2.2.0/.pi/prompts/af-ship.md +17 -0
  714. package/.versions/2.2.0/.pi/prompts/af-spec.md +15 -0
  715. package/.versions/2.2.0/.pi/prompts/af-test.md +19 -0
  716. package/.versions/2.2.0/.pi/skills/bowser/SKILL.md +145 -0
  717. package/.versions/2.2.0/.version +1 -0
  718. package/.versions/2.2.0/agents/architect.md +24 -0
  719. package/.versions/2.2.0/agents/bowser.md +28 -0
  720. package/.versions/2.2.0/agents/builder.md +55 -0
  721. package/.versions/2.2.0/agents/code-reviewer.md +209 -0
  722. package/.versions/2.2.0/agents/deep-researcher.md +32 -0
  723. package/.versions/2.2.0/agents/documenter.md +22 -0
  724. package/.versions/2.2.0/agents/plan-reviewer.md +83 -0
  725. package/.versions/2.2.0/agents/planner.md +107 -0
  726. package/.versions/2.2.0/agents/releaser.md +24 -0
  727. package/.versions/2.2.0/agents/researcher.md +30 -0
  728. package/.versions/2.2.0/agents/security-auditor.md +167 -0
  729. package/.versions/2.2.0/agents/test-engineer.md +153 -0
  730. package/.versions/2.2.0/agents/web-debugger.md +44 -0
  731. package/.versions/2.2.0/agents/web-performance-auditor.md +194 -0
  732. package/.versions/2.2.0/bin/catalog/harness-runtime-closure.json +85 -0
  733. package/.versions/2.2.0/docs/ARCHITECTURE.md +1291 -0
  734. package/.versions/2.2.0/docs/agent-fleet-setup.md +1161 -0
  735. package/.versions/2.2.0/docs/claude-code-coms-bridge.md +147 -0
  736. package/.versions/2.2.0/docs/codex-local-mcp.md +520 -0
  737. package/.versions/2.2.0/docs/codex-session-bridge.md +44 -0
  738. package/.versions/2.2.0/docs/codex-setup.md +183 -0
  739. package/.versions/2.2.0/docs/coms-hermes-bridge.md +188 -0
  740. package/.versions/2.2.0/docs/fleet-native-voice.md +151 -0
  741. package/.versions/2.2.0/docs/getting-started.md +126 -0
  742. package/.versions/2.2.0/docs/npm-install.md +535 -0
  743. package/.versions/2.2.0/docs/pi-extensions.md +450 -0
  744. package/.versions/2.2.0/docs/pi-setup.md +92 -0
  745. package/.versions/2.2.0/docs/skill-anatomy.md +150 -0
  746. package/.versions/2.2.0/install-manifest.json +3226 -0
  747. package/.versions/2.2.0/justfile +246 -0
  748. package/.versions/2.2.0/manifest-meta.json +1098 -0
  749. package/.versions/2.2.0/references/accessibility-checklist.md +160 -0
  750. package/.versions/2.2.0/references/communication-contract.md +26 -0
  751. package/.versions/2.2.0/references/definition-of-done.md +67 -0
  752. package/.versions/2.2.0/references/fleet-coordination-patterns.md +171 -0
  753. package/.versions/2.2.0/references/observability-checklist.md +92 -0
  754. package/.versions/2.2.0/references/orchestration-patterns.md +370 -0
  755. package/.versions/2.2.0/references/performance-checklist.md +236 -0
  756. package/.versions/2.2.0/references/prompting-patterns.md +380 -0
  757. package/.versions/2.2.0/references/security-checklist.md +245 -0
  758. package/.versions/2.2.0/references/testing-patterns.md +235 -0
  759. package/.versions/2.2.0/references/workflow-authoring.md +304 -0
  760. package/.versions/2.2.0/skills/_internal/grilling.md +59 -0
  761. package/.versions/2.2.0/skills/browser-testing-with-devtools/SKILL.md +351 -0
  762. package/.versions/2.2.0/skills/code-review-and-quality/SKILL.md +396 -0
  763. package/.versions/2.2.0/skills/compound-learning/SKILL.md +137 -0
  764. package/.versions/2.2.0/skills/constraint-driven-development/SKILL.md +338 -0
  765. package/.versions/2.2.0/skills/constraint-driven-development/references/floor-guard.md +99 -0
  766. package/.versions/2.2.0/skills/context-engineering/SKILL.md +341 -0
  767. package/.versions/2.2.0/skills/deprecation-and-migration/SKILL.md +247 -0
  768. package/.versions/2.2.0/skills/designing-agents/SKILL.md +394 -0
  769. package/.versions/2.2.0/skills/designing-agents/pi-harness-authoring.md +222 -0
  770. package/.versions/2.2.0/skills/drafting-workflows/SKILL.md +143 -0
  771. package/.versions/2.2.0/skills/drafting-workflows/scripts/make-workflow.ts +177 -0
  772. package/.versions/2.2.0/skills/fleet-connect/SKILL.md +29 -0
  773. package/.versions/2.2.0/skills/fleet-connect.zip +0 -0
  774. package/.versions/2.2.0/skills/fleet-native-voice/SKILL.md +103 -0
  775. package/.versions/2.2.0/skills/fleet-native-voice/agents/openai.yaml +4 -0
  776. package/.versions/2.2.0/skills/fleet-native-voice.zip +0 -0
  777. package/.versions/2.2.0/skills/frontend-ui-engineering/SKILL.md +328 -0
  778. package/.versions/2.2.0/skills/git-workflow-and-versioning/SKILL.md +316 -0
  779. package/.versions/2.2.0/skills/idea-refine/SKILL.md +182 -0
  780. package/.versions/2.2.0/skills/idea-refine/examples.md +238 -0
  781. package/.versions/2.2.0/skills/idea-refine/frameworks.md +99 -0
  782. package/.versions/2.2.0/skills/idea-refine/refinement-criteria.md +113 -0
  783. package/.versions/2.2.0/skills/idea-refine/scripts/idea-refine.sh +15 -0
  784. package/.versions/2.2.0/skills/incremental-implementation/SKILL.md +353 -0
  785. package/.versions/2.2.0/skills/incremental-implementation.zip +0 -0
  786. package/.versions/2.2.0/skills/interview-me/SKILL.md +226 -0
  787. package/.versions/2.2.0/skills/orchestration-verification/SKILL.md +182 -0
  788. package/.versions/2.2.0/skills/peer-coms/SKILL.md +90 -0
  789. package/.versions/2.2.0/skills/performance-optimization/SKILL.md +496 -0
  790. package/.versions/2.2.0/skills/planning-and-task-breakdown/SKILL.md +318 -0
  791. package/.versions/2.2.0/skills/planning-and-task-breakdown.zip +0 -0
  792. package/.versions/2.2.0/skills/repository-ai-setup/SKILL.md +135 -0
  793. package/.versions/2.2.0/skills/repository-ai-setup/references/agent-fleet-ai-state.template.json +4 -0
  794. package/.versions/2.2.0/skills/repository-ai-setup/references/apply-contract.md +74 -0
  795. package/.versions/2.2.0/skills/repository-ai-setup/references/provenance-template.md +16 -0
  796. package/.versions/2.2.0/skills/repository-ai-setup/references/setup-flow.md +108 -0
  797. package/.versions/2.2.0/skills/repository-ai-setup/references/verify-setup.md +20 -0
  798. package/.versions/2.2.0/skills/repository-ai-setup.zip +0 -0
  799. package/.versions/2.2.0/skills/security-and-hardening/SKILL.md +524 -0
  800. package/.versions/2.2.0/skills/spec-driven-development/SKILL.md +295 -0
  801. package/.versions/2.2.0/skills/spec-driven-development.zip +0 -0
  802. package/.versions/2.2.0/skills/using-agent-skills/SKILL.md +198 -0
  803. package/.versions/2.2.0/vendor/agent-skills-upstream/LICENSE +21 -0
  804. package/.versions/2.2.0/vendor/agent-skills-upstream/README.md +430 -0
  805. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/api-and-interface-design/SKILL.md +367 -0
  806. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/browser-testing-with-devtools/SKILL.md +317 -0
  807. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/ci-cd-and-automation/SKILL.md +390 -0
  808. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/code-review-and-quality/SKILL.md +396 -0
  809. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/code-simplification/SKILL.md +331 -0
  810. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/constraint-driven-development/SKILL.md +311 -0
  811. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/constraint-driven-development/references/floor-guard.md +99 -0
  812. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/context-engineering/SKILL.md +337 -0
  813. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/debugging-and-error-recovery/SKILL.md +300 -0
  814. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/deprecation-and-migration/SKILL.md +247 -0
  815. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/documentation-and-adrs/SKILL.md +288 -0
  816. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/doubt-driven-development/SKILL.md +243 -0
  817. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/frontend-ui-engineering/SKILL.md +328 -0
  818. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/git-workflow-and-versioning/SKILL.md +355 -0
  819. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/SKILL.md +178 -0
  820. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/examples.md +238 -0
  821. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/frameworks.md +99 -0
  822. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/refinement-criteria.md +113 -0
  823. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/idea-refine/scripts/idea-refine.sh +15 -0
  824. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/incremental-implementation/SKILL.md +249 -0
  825. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/interview-me/SKILL.md +225 -0
  826. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/observability-and-instrumentation/SKILL.md +238 -0
  827. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/performance-optimization/SKILL.md +496 -0
  828. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/planning-and-task-breakdown/SKILL.md +257 -0
  829. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/security-and-hardening/SKILL.md +524 -0
  830. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/shipping-and-launch/SKILL.md +330 -0
  831. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/source-driven-development/SKILL.md +216 -0
  832. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/spec-driven-development/SKILL.md +245 -0
  833. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/test-driven-development/SKILL.md +398 -0
  834. package/.versions/2.2.0/vendor/agent-skills-upstream/skills/using-agent-skills/SKILL.md +192 -0
  835. package/CHANGELOG.md +33 -0
  836. package/README.md +7 -10
  837. package/bin/lib/set-codex-mcp.js +1 -1
  838. package/bin/lib/validate-overrides.js +8 -1
  839. package/docs/ARCHITECTURE.md +122 -26
  840. package/docs/MIGRATION-agent-fleet.md +26 -5
  841. package/docs/agent-fleet-setup.md +44 -26
  842. package/docs/claude-code-coms-bridge.md +1 -1
  843. package/docs/codex-local-mcp.md +29 -12
  844. package/docs/codex-session-bridge.md +2 -2
  845. package/docs/codex-setup.md +1 -1
  846. package/docs/fleet-native-voice.md +10 -4
  847. package/docs/npm-install.md +1 -1
  848. package/docs/pi-extensions.md +13 -18
  849. package/docs/system1-agentic.md +1 -1
  850. package/docs/system1-file-discovery.md +2 -2
  851. package/docs/workflows.md +24 -1
  852. package/install-manifest.json +15 -28
  853. package/justfile +3 -4
  854. package/manifest-meta.json +13 -2
  855. package/package.json +4 -2
  856. package/skills/fleet-connect/SKILL.md +20 -16
  857. package/skills/fleet-connect.zip +0 -0
  858. package/skills/fleet-native-voice.zip +0 -0
  859. package/.pi/harnesses/agent-hub/commands/work-mode.ts +0 -29
  860. package/.pi/harnesses/agent-hub/work-mode-controls.ts +0 -56
  861. package/agents/orchestrator.md +0 -22
@@ -1,7 +1,6 @@
1
1
  # Major-release migration guide
2
2
 
3
- This is a large major release. Four independent changes land together, and each
4
- one breaks something different:
3
+ This guide covers the major releases. Each change breaks something different:
5
4
 
6
5
  | # | Change | Who it breaks | Section |
7
6
  |---|---|---|---|
@@ -9,6 +8,7 @@ one breaks something different:
9
8
  | 2 | Claude Code removed as a coding-agent install target | Workspaces installed with `--agent claude-code` | [Claude Code](#2-claude-code-is-a-coms-peer-only) |
10
9
  | 3 | OpenCode support removed entirely | Workspaces installed with `--agent opencode` | [OpenCode](#3-opencode-is-gone) |
11
10
  | 4 | Pi Fleet startup unified behind one guarded Agent Hub runtime | Scripts and habits built on `just fleet hub` / `just fleet team` | [Fleet runtime](#4-one-unified-just-fleet-runtime) |
11
+ | 5 | The orchestrator work mode removed; one operator | Scripts using `--work-mode`, habits built on `/af-work-mode` or Alt+M | [One operator](#5-one-operator-the-orchestrator-work-mode-is-removed) |
12
12
 
13
13
  If you read only one thing: **update with `just fleet setup --dry-run` first.**
14
14
  The plan names every file it will overwrite, and this release changes enough
@@ -191,14 +191,13 @@ independently:
191
191
 
192
192
  ```bash
193
193
  just fleet # operator, empty native roster
194
- just fleet --agents frontend # native roster; orchestrator inferred
195
- just fleet --work-mode operator --agents frontend # direct work plus the same roster
194
+ just fleet --agents frontend # operator with a native roster
196
195
  just fleet --no-coms # direct/native work, no peer messaging
197
196
  just fleet --herdr --project af # one Hub pane, no standing peers
198
197
  just fleet --agents frontend --peers frontend --project af
199
198
  ```
200
199
 
201
- New in the same change: live `/af-work-mode` switching, on-demand native roster
200
+ New in the same change: on-demand native roster
202
201
  growth (`/af-agents-add`), deterministic `dispatch_agent` routing through
203
202
  `backend: auto|native|coms`, and same-project dynamic Pi or Claude Code peer
204
203
  spawning through Herdr.
@@ -218,6 +217,28 @@ during this release — the aliases are removed in the next one.
218
217
 
219
218
  ---
220
219
 
220
+ ## 5. One operator: the orchestrator work mode is removed
221
+
222
+ The Hub has one work mode. The operator keeps its direct tools and delegates on its own judgment;
223
+ the delegate-only **orchestrator** mode, the `/af-work-mode` command, the **Alt+M** picker and the
224
+ `orchestrator` catalog persona are gone (PHILOSOPHY, 2026-11-11).
225
+
226
+ | Before | Now |
227
+ |---|---|
228
+ | `just fleet --agents frontend` started the orchestrator | it starts the operator with that roster |
229
+ | `just fleet --work-mode operator\|orchestrator` | accepted for one release, ignored with a warning; remove it from scripts |
230
+ | `/af-work-mode`, **Alt+M** | removed |
231
+ | a resumed orchestrator session with no valid roster blocked model input | the session continues as the operator, with a one-time notice |
232
+ | `agents/orchestrator.md` / `.pi/agents/personas/orchestrator.md` | retired; `doctor` reports a leftover copy as retired upstream and the compatibility `upgrade` command proposes removing it. A leftover copy is harmless: the Hub never dispatches it |
233
+ | `orchestrator:` under a model profile's `agents:` | ignored instead of invalidating the profile; delete it |
234
+ | a writable dispatch beside another writer ran with uncertain attribution | it is refused unless both use `parallel: true` with disjoint exact scopes |
235
+
236
+ `teams.yaml`, `/af-agents-*`, `dispatch-policy.yaml` and `peers.yaml` are unchanged. If you relied on
237
+ the orchestrator to keep a weaker main model away from direct edits, choose a stronger model for the
238
+ Hub session; local models remain fully supported as delegated agents.
239
+
240
+ ---
241
+
221
242
  ## Retired surfaces
222
243
 
223
244
  The retired installer implementation and its two setup/doctor prompts are
@@ -37,7 +37,7 @@ large.
37
37
  ## Unified Fleet runtime configuration
38
38
 
39
39
  A Pi workspace has one public runtime entry point. Bare Fleet loads Fleet Core
40
- plus Agent Hub in **operator** work mode, in the current terminal, with no native
40
+ plus Agent Hub with its one **operator**, in the current terminal, with no native
41
41
  specialists active:
42
42
 
43
43
  ```bash
@@ -45,13 +45,10 @@ just fleet
45
45
  just fleet --project af
46
46
  ```
47
47
 
48
- Work mode, native roster, and peer topology are separate controls:
48
+ The native roster and the peer topology are separate controls:
49
49
 
50
50
  ```bash
51
- # Direct tools plus an available native roster.
52
- just fleet --work-mode operator --agents frontend --project af
53
-
54
- # A roster implies orchestrator when work mode is not explicit.
51
+ # The operator starting with a native roster.
55
52
  just fleet --agents frontend --project af
56
53
 
57
54
  # Herdr Hub-only and Hub-plus-peer topologies.
@@ -59,9 +56,9 @@ just fleet --herdr --project af
59
56
  just fleet --agents frontend --peers frontend --project af
60
57
  ```
61
58
 
62
- Startup precedence is deterministic: explicit `--work-mode` wins; otherwise an
63
- explicit `--agents` roster implies `orchestrator`; otherwise work mode is
64
- `operator`. An orchestrator startup must name a roster. `--herdr` affects only
59
+ `--agents` only picks the starting roster; the operator can dispatch any other
60
+ installed agent, which adds it. `--work-mode` is deprecated and ignored with a
61
+ warning. `--herdr` affects only
65
62
  placement, while `--peers <preset>` implies Herdr and starts the selected peer
66
63
  preset. Neither topology option selects a native roster.
67
64
 
@@ -96,7 +93,7 @@ Capability flags and runtime gates fail closed:
96
93
  - `--browser` adds the browser extension surface and `--all-extensions` opts
97
94
  into the complete approved extension set. Missing optional dependencies do
98
95
  not grant tools merely because a flag was supplied.
99
- - Hub-owned slash commands remain registered in both work modes. A missing coms
96
+ - Hub-owned slash commands are always registered. A missing coms
100
97
  runtime, Herdr connection, target peer, or native roster produces a
101
98
  capability refusal rather than a missing command.
102
99
 
@@ -129,13 +126,11 @@ The JSONL shown by `/session` under `~/.pi/agent/sessions/` is Pi's authoritativ
129
126
  resume with `/resume`, `pi -c`, or `pi --session <path|id>`. Never edit, truncate, reorder, or add
130
127
  synthetic entries to recover from context pressure.
131
128
 
132
- A resumed orchestrator session may instead be blocked because its persisted team name no longer
133
- resolves against the current `.pi/agents/teams.yaml` and persona files. This is a fail-closed roster
134
- recovery gate: orchestrator work mode and its direct-tool restrictions remain in force. Choose a valid
135
- team with `/af-agents-team`, restart publicly with `just fleet --agents <name>`, or explicitly choose
136
- operator work mode with `/af-work-mode operator` / `just fleet --work-mode operator`. Direct Pi launches
137
- use `--agent-team <name>` or `--work-mode operator`. Explicit startup flags win over persisted state;
138
- fix missing or renamed team/persona declarations before selecting them.
129
+ A resumed session whose persisted team name no longer resolves against the current
130
+ `.pi/agents/teams.yaml` and persona files reports it and continues without that roster. A session
131
+ saved in the removed orchestrator work mode continues as the operator with a one-time notice. Choose a
132
+ team with `/af-agents-team` or restart with `just fleet --agents <name>` (`--agent-team <name>` for a
133
+ direct Pi launch); fix missing or renamed team/persona declarations before selecting them.
139
134
 
140
135
  ## System 1 configuration
141
136
 
@@ -743,7 +738,7 @@ targets an end-of-session compound pass writes lessons to.
743
738
  | Key | Default | Meaning |
744
739
  |-----|---------|---------|
745
740
  | `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. |
746
- | `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. |
741
+ | `persona-gate` | — | **Removed.** Ignored with a doctor warning; dispatcher flavor is no longer selectable and the Hub has one operator work mode. Delete the key. |
747
742
  | `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. |
748
743
  | `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). |
749
744
  | `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. |
@@ -785,6 +780,25 @@ rules: docs/rules, .ai/rules
785
780
  docs: Docs/AGENTS.md, Docs/architecture/ARCHITECTURE_OVERVIEW.md
786
781
  ```
787
782
 
783
+ ### `workflows`
784
+
785
+ Read by `just flow` when a flow starts. The `quality` and `build-test` flows need
786
+ a command, and there is no default: a missing command is a startup refusal (exit `3`).
787
+
788
+ | Key | Default | Meaning |
789
+ |-----|---------|---------|
790
+ | `quality` | none | The one command a flow runs as its quality gate, split into argv with simple shell-style quotes and run without a shell. |
791
+ | `quality.<repository>` | `quality` | Only in a workspace whose root holds nested repositories: the command for a flow selected into that repository with `--worktree`. `<repository>` is the path of its main checkout from the workspace root, for example `quality.ringithub`. |
792
+
793
+ ```markdown
794
+ ## workflows
795
+ quality: npm test
796
+ quality.ringithub: dotnet test
797
+ ```
798
+
799
+ See [workflows](workflows.md#quality-configuration) for the timeout, logs and the
800
+ relation to `CONSTRAINTS.md`.
801
+
788
802
  ### `env` (optional, read by the doctor)
789
803
 
790
804
  The overrides file references environment variables by **name** — test-account
@@ -954,6 +968,10 @@ language: <language name>
954
968
  rules: <repo-relative rule folder>[, <another folder>]
955
969
  docs: <repo-relative doc entry point>[, <another file or folder>]
956
970
 
971
+ # Required by the quality and build-test flows (`just flow`).
972
+ ## workflows
973
+ quality: <quality command>
974
+
957
975
  # Optional; names (never values) of env vars the sections above reference.
958
976
  # Only `agent-fleet doctor` reads this — it warns when one is unset.
959
977
  ## env
@@ -1071,15 +1089,15 @@ local-full:
1071
1089
 
1072
1090
  - `defaults` supplies **every persona and every declared child**, including future
1073
1091
  personas, research helpers and team changes. `agents` and `subagents` contain
1074
- exceptions. To preserve a persona's existing selection, omit it from `agents`;
1075
- for example, `local-workers` leaves `orchestrator` out. Each selection accepts a
1092
+ exceptions. To preserve a persona's existing selection, omit it from `agents`.
1093
+ Each selection accepts a
1076
1094
  model string or `{model, thinking}`.
1077
1095
  Unspecified thinking inherits defaults, then `off`. Tool caps and delegation
1078
- depth remain unchanged. Unknown persona/child names are rejected.
1096
+ depth remain unchanged. Unknown persona/child names are rejected, except a
1097
+ leftover `orchestrator` entry from before that persona was retired, which is ignored.
1079
1098
  - `dispatcher` changes the current Pi session's model and thinking. When omitted,
1080
1099
  the live dispatcher keeps its current selection and may use any Pi model, even
1081
- outside `allowed-models`; that list still applies to workers and peers. An
1082
- `orchestrator` persona entry alone is not the live dispatcher.
1100
+ outside `allowed-models`; that list still applies to workers and peers.
1083
1101
  - `services` sets the watchdog and structured-return extractor independently;
1084
1102
  unspecified services use defaults. `panel` supplies 2–5 poll/debate voices and
1085
1103
  an optional single integrator. `/af-poll` and `/af-debate` select the active
@@ -1116,15 +1134,15 @@ Separately started fleet sessions/standing peers retain their own configuration.
1116
1134
  The bundled `local-full` profile explicitly covers all shipped child roles and needs
1117
1135
  no project model overrides. Every role, service and panel entry uses the single
1118
1136
  `omlx/Qwen3.8-Flash-Next-GSQ-RCO-Q2_0` model. The `local-workers` profile uses that same local
1119
- model for agents, subagents, services and panel voices, while leaving `orchestrator`
1120
- to inherit its current selection; its peer allowlist refuses non-local coms models.
1137
+ model for agents, subagents, services and panel voices, while the live operator keeps its
1138
+ current selection; its peer allowlist refuses non-local coms models.
1121
1139
  The model must be registered in Pi and served by the incoai provider. Selecting a profile
1122
1140
  does not download or register models.
1123
1141
 
1124
1142
  ## System 1 dispatch advice and communication
1125
1143
 
1126
1144
  Fleet `1` opens the session-only System 1 communication viewer; capture requires
1127
- explicit opt-in. The orchestrator may call `dispatch_triage` when its separate
1145
+ explicit opt-in. The operator may call `dispatch_triage` when its separate
1128
1146
  human-owned configuration permits it. Both remain off by default; installation
1129
1147
  does not authorize live requests or calibrate the policy. See the
1130
1148
  [configuration, keys, privacy and evaluation guide](system1-dispatch-triage.md).
@@ -26,7 +26,7 @@ Claude Code ── Bash: coms-cli send/await ──▶ any pi peer (o
26
26
  |---|---|---|
27
27
  | Bridge daemon | `.pi/agent-fleet/scripts/coms-claude-bridge.ts` | One per Claude pane. Registers coms peer `<name>`, serializes inbound prompts, types them into the pane (+ Enter separately — TUI quirk), captures the reply, sends the response envelope. |
28
28
  | Envelope CLI | `.pi/agent-fleet/scripts/coms-cli.ts` | `list` / `send` / `await` / `reply` — any process becomes a coms participant. `send --await` is a blocking round trip; plain `send` prints a `msg_id` and a detached waiter holds the reply for `await`. |
29
- | Stop hook | `.pi/agent-fleet/hooks/coms-stop-hook.mjs` | PRIMARY completion path: writes each turn's final assistant message to `~/.pi/coms/claude-bridge/<pane>/last-message.json` (keyed by `HERDR_PANE_ID`). Exact text, no scraping. |
29
+ | Stop hook | `.pi/agent-fleet/hooks/coms-stop-hook.mjs` | PRIMARY completion path: writes each turn's final assistant message to `~/.pi/coms/claude-bridge/<pane>/last-message.json` (keyed by `HERDR_PANE_ID`). Exact text, no scraping. The text comes from the hook input's `last_assistant_message`; Claude Code can run the hook before its transcript holds the final message, so the transcript is only a fallback for older versions, and there the hook waits up to 2 s for the current turn's finished message and otherwise writes nothing. It never answers with an earlier turn's reply. |
30
30
  | Skill | `skills/peer-coms/SKILL.md` | Teaches Claude Code its peer role: discover with `coms-cli list`, ask with `send --await`, answer inbound prompts normally, never drive panes itself. |
31
31
  | Runner | `runner: claude-code` in `.pi/agents/peers.yaml` | `just fleet team` spawns the Claude CLI + its bridge in one pane (`_claude-peer` internally); `model:` maps to `claude --model`, and `just fleet resume` maps the Herdr-captured session id to `claude --resume`. |
32
32
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Use the local `af-local-read` MCP server to work with **already running** Fleet/Pi sessions from one Codex conversation. Despite its historical name, the server supports permission-controlled observations, instructions, and human question answers across multiple explicitly selected targets.
4
4
 
5
- The optional [native chat connection workflow](codex-connections.md) adds exact-target preview/commit, default 12-hour leases for new connections, in-place renewal of an already configured notification mapping, and a Fleet View chat-status panel. First-time notification bootstrap and automatic restart recovery remain explicit blockers.
5
+ The unreleased [notification bootstrap/reconnect workflow](codex-notification-bootstrap.md) adds read-only preparation, asynchronous native commit handoff, one genuine Pi confirmation, Codex-only rights CAS, a single no-load ACK probe and cached per-chat Fleet View controls. It requires real Desktop identity/catalog/no-load prerequisites, with supported Linux Desktop facts automatically observed and mapping approved in the single Pi confirmation; source tests do not qualify the current host. The [legacy connection contracts](codex-connections.md) remain separate.
6
6
 
7
7
  This guide covers the current native interface. The [legacy CLI client](codex-session-bridge.md) is a separate interface with separate state; its selection and receipts are not imported automatically. The optional [native voice workflow](fleet-native-voice.md) uses the same MCP tools and permissions, not a different transport.
8
8
 
@@ -29,7 +29,15 @@ It registers `af-local-read` in the user-level Codex configuration through `code
29
29
 
30
30
  After installation, verify in a **new** chat with `fleet_diagnostics {}` and `fleet_discover` as the setup guide describes. Registration exposes the tools in every chat and grants no access; a missing policy namespace or an access denial before enrollment is expected and is not a reason to invent metadata or copy another conversation's state. If tools or host identity are unavailable, stop and report that limitation. A shell invocation, a legacy CLI command, or another chat's identity is not a substitute for a native tool call.
31
31
 
32
- ## Connect a target and manage permissions
32
+ ## Combined notification bootstrap (unreleased minor)
33
+
34
+ Use `fleet_connect_prepare` for the exact current target, requested rights and common deadline. For missing mapping on the supported Linux layout, Pi automatically observes Desktop facts and retains a process-local draft until the one native Pi confirmation approves mapping plus rights/notifications. The human does not fill PID/version/socket/home/CLI fields. Ambiguous/unsupported facts or missing no-load capability block before mapping/grants/probe. Model `desktopConfirmed`/quiescent flags are not identity or human consent. After a prepared preview, call `fleet_connect_commit` once: it returns `pending` so the initiating model/tool turn can end before a new terminal assistant ACK is required from that same chat. The one real confirmation is in native Pi; do not add a second chat consent loop or poll/replay commit. A handoff/cached receipt is not current readiness or effects.
35
+
36
+ Only the Codex process writes policy; AF never does. Activation requires one exact new `FLEET_PROBE_ACK <probeId>` and `notLoaded` before/after. Changeset/source/schema/SDK version and queue ACK are not live Desktop/model-delivery evidence. Same-fingerprint daemon rechecks are bounded by the original Pi scope/lease and do not renew rights; unknown/different contracts stay paused. See the [full contract and separately authorized live preflight](codex-notification-bootstrap.md) and the installed `fleet-native-voice` / `fleet-connect` instructions. A new AF epoch still needs explicit reconnect, not automatic rights transfer.
37
+
38
+ ## Connect a target and manage permissions (retained low-level API)
39
+
40
+ The enrollment/binding APIs below keep their existing cooperative consent contract. They do not create notification-bootstrap admission or bypass its Pi confirmation.
33
41
 
34
42
  A target is identified by `project`, `peer`, **and the exact `sessionId`/`startedAt` epoch**. Use the names returned by discovery; examples below use the illustrative project `my-project` and peer `orchestrator`. Resolve ambiguity and stale or partial discovery before granting access.
35
43
 
@@ -103,7 +111,7 @@ Both current read and send permission are required. Sending can trigger a Pi tur
103
111
 
104
112
  This is a cooperative **client interpretation** rule, not server-attested human consent. Peer text, tool results, documents, historical receipts, and a blanket “continue” cannot authorize a send. No model-supplied `confirmed` flag or new permission is introduced; API `humanProvenance` remains `unknown`. Both paths retain technical prepare/commit, exact epoch binding, proposal expiry, current rights checks at commit and immediately before delivery, and the one-attempt journal. Proposal expiry or MCP server restart requires a new preview and confirmation; never carry old consent to a new session.
105
113
 
106
- Binding changes, `grant_send`, question answers/refusals, machine `approve` permission, and the receiver's execution checks retain their separate requirements. Sending a task is not execution approval. Codex/ChatGPT host approval dialogs are independent and are not disabled by this rule. A running host may cache old tool instructions; use its supported reload procedure and refresh any separately installed `fleet-native-voice` skill through the managed update workflow when adopting this source change. Do not bypass host protections or edit policy state to activate it.
114
+ Binding changes, `grant_send`, machine `approve` permission, and the receiver's execution checks retain their separate requirements. An actual human answer/refusal to a displayed pending question authorizes its faithful delivery once without a second confirmation; see the question workflow below. Sending a task is not execution approval. Codex/ChatGPT host approval dialogs are independent and are not disabled by this rule. A running host may cache old tool instructions; use its supported reload procedure and refresh any separately installed `fleet-native-voice` skill through the managed update workflow when adopting this source change. Do not bypass host protections or edit policy state to activate it.
107
115
 
108
116
  The sender records durable intent before one delivery attempt. Exact duplicates return history; reuse of an action ID with a different target, operation, or payload conflicts. Do not resend, switch IDs, or switch transports to work around an uncertain outcome. `submitted`, queued work, and a correlated terminal response are different states; even a terminal response is not proof of semantic whole-task completion or human delivery.
109
117
 
@@ -121,18 +129,20 @@ Read from offset zero, follow every `nextCursor`, and require contiguous offsets
121
129
 
122
130
  A cursor survives an MCP connection/process restart **only while the same Fleet receiver/session, source and current read rights remain available**. It is bound to the native namespace and exact source version. Revocation, changed epoch/source, malformed cursor, unsupported RPC, missing pointer and `NOT_READY` remain explicit failures/gaps. Never merge versions, retarget automatically, or resend an instruction to recover missing text. Closing/restarting Fleet discards its in-memory locator index; no historical-access guarantee or archive is introduced. The index holds at most 4096 locators per live receiver and does not silently evict issued locators at capacity.
123
131
 
124
- The source catalogue now contains **28 tools**. The new tool is appended, preserving existing tool order and schemas; the exact 24/27-tool notification compatibility catalogues remain distinct from current full-response support. Source tests and a separately spawned MCP process are not evidence that an existing Desktop host has adopted the new tool or that a running Fleet receiver has reloaded this handler.
132
+ The source catalogue contains **28 tools**, with existing order and schemas preserved. Current catalogue readiness requires that complete required subset, including `fleet_response_read`; additional valid MCP tool names are allowed but are neither invoked nor granted authority by this check. Names use the MCP ASCII letters/digits/underscore/dash/dot format (1–128 characters); at most 128 distinct object entries are accepted. Invalid entries, duplicates, missing required tools or unknown identity/protocol still block readiness.
133
+
134
+ Explicit legacy notification-only profiles require the 24-tool base or the 27-tool connection family and remain distinct from full-response support. Unrelated extra tools do not change the profile by count; partial connection/full-read markers cannot downgrade to a weaker profile. The protocol allowlist contains only `2025-06-18`, which this dispatcher actually offers; SDK support for other revisions does not extend this server's negotiation. Source tests and a separately spawned MCP process are not evidence that an existing Desktop host has adopted a tool or that a running Fleet receiver has reloaded this handler.
125
135
 
126
136
  ## Answer or refuse a Pi question
127
137
 
128
- An actual human response, current read+send rights, and a compatible guarded question receiver are required. Native Pi questions are **not** Damage Control permission dialogs or general approval requests.
138
+ An actual human response, current read+send rights, and a compatible guarded question receiver are required. Native Pi questions are **not** Damage Control permission dialogs or general approval requests. In this workflow, `requiresHumanConfirmation:false` means no additional confirmation after the actual human reply; `requiresActualHumanResponse:true` preserves the requirement for that reply. It does not authenticate human provenance.
129
139
 
130
140
  1. Obtain the full pending question, options, effective flags, exact target, `questionId`, and `toolCallId`. Never select a response automatically or infer one from a general instruction to continue.
131
141
  2. Call `fleet_answer_prepare` with `requestId`, the exact `target`, `questionId`, `toolCallId`, `operation`, and `response`:
132
142
  - Freeform: `operation: "answer"`, `response: {"kind":"freeform","text":"<actual human answer>"}`.
133
143
  - Selection: `operation: "answer"`, `response: {"kind":"selection","selections":["<exact option>"],"comment":"<optional human comment>"}`. Include a comment or multiple selections only when allowed by the question.
134
144
  - Explicit refusal: `operation: "refusal"`, `response: null`.
135
- 3. Show the full prepared question, options/flags, normalized response, and effects. Obtain a **new** explicit human confirmation before `fleet_answer_commit {"proposalId":"<actual proposalId>"}`.
145
+ 3. The actual human response to the displayed question authorizes its faithful delivery once. Freshly inspect the same pending question, prepare, and check the full returned question/options/flags, normalized response, exact owner and effects against that response. If they match, call `fleet_answer_commit {"proposalId":"<actual proposalId>"}` once **without a second confirmation**. Clarify ambiguity or a changed normalized response; stop on a changed question/owner, missing rights, proposal expiry or server restart. Never choose or retarget an answer. “Do not send” withholds delivery and is not a refusal sent to Pi. The preparation reports `requiresHumanConfirmation:false` and `requiresActualHumanResponse:true`; these are cooperative client instructions, not human attestation (`humanProvenance:unknown`).
136
146
  4. Use `fleet_answer_receipt {"requestId":"<same requestId>"}` for historical metadata, or an explicitly requested `refresh: true` for current guarded evidence when authorized.
137
147
 
138
148
  The receiver revalidates the exact question and uses first-winner arbitration. Changed, already resolved, expired, unsupported, or incompletely addressable questions are not redirected elsewhere. A refusal resolves only that question; it is **not** Pi-turn cancellation. Selecting an option named “Stop” is a selection, not the refusal operation.
@@ -397,7 +407,10 @@ legitimate request, only an isolated mock-producer test is possible under this s
397
407
  Preserve the original deadline: remaining budgets of 10 seconds or less are
398
408
  unsupported, not a reason to extend a hold, change IDs or resend an unknown event.
399
409
 
400
- The direct dependency remains pinned **ws@8.22.0**, already locally available. It
410
+ The direct dependency remains pinned **ws@8.22.0**, already locally available. In
411
+ a workspace it comes from the workflow runtime npm root `.pi/agent-fleet/scripts`
412
+ (`npm ci --prefix .pi/agent-fleet/scripts`, run by `setup --allow-exec` or
413
+ `just fleet deps`), next to the daemon client that loads it. It
401
414
  provides the tested Unix connection hook, early frame limits, UTF-8/fragment/close
402
415
  handling and disabled redirects. The built-in browser-compatible WebSocket API
403
416
  does not expose these same direct `socketPath/createConnection/maxPayload` controls;
@@ -413,10 +426,14 @@ separate machine decision API. Every native API still checks its own rights and
413
426
  freshness. No unknown tool result triggers an automatic retry. A normal message
414
427
  produces a machine summary, never an implicit instruction/command.
415
428
 
416
- Questions retain `fleet_answer_prepare/commit` and their human-confirmation
417
- contract. The default reply path prepares only. Commit needs a separate genuine
418
- host-controlled human interaction; a model-supplied boolean/notification is not
419
- consent. Synthetic callback tests are not evidence of a real human. Permission
429
+ Questions retain `fleet_answer_prepare/commit` and their actual-human-response
430
+ contract. This helper receives a model-selected response, not an actual human
431
+ reply, so its default path prepares only; its optional host-controlled callback
432
+ must obtain the genuine human authorization. It must not be confused with the
433
+ direct native-chat workflow above, where an already received actual human reply
434
+ authorizes one faithful commit without a second question. A model-supplied
435
+ boolean/notification is not consent. Synthetic callback tests are not evidence
436
+ of a real human. Permission
420
437
  machine decisions do not acquire this human provenance, and human-only waivers
421
438
  are not routed through the question API.
422
439
 
@@ -483,7 +500,7 @@ The upgrade preserves original receipts and makes an immutable raw backup before
483
500
  | Partial discovery with `ENTRY_INVALID`, especially immediately after startup | A record is missing or has invalid required metadata; this code alone does not identify the field. Updated COMS publishes `heartbeat_at` on its first atomic registration, avoiding the old pre-heartbeat gap. Finite measured context above 100% is valid metadata, not an admission limit; do not clamp it or fabricate an entry. Preserve safe diagnostics and verify the loaded receiver version. Any user-controlled reload changes the epoch and requires explicit rebind; never reload or restore send rights automatically. |
484
501
  | `STATE_MISSING` | This namespace has no usable policy state. For a genuinely new namespace, use reviewed enrollment or optional `initialize_empty`. If state was previously present, investigate missing data rather than resetting it. |
485
502
  | `NOT_ALLOWED`, `REBIND_REQUIRED`, stale target | Check this chat's exact target and rights. Read does not imply send. A new epoch requires explicit rebind and a separate send grant if needed. Never grant automatically to clear an error. |
486
- | Expired/missing proposal; `STATE_CHANGED`, `BUSY` | Discard stale previews. Once conflicting work finishes, prepare a new proposal and ask for a new confirmation. Do not bypass revision checks or delete locks. |
503
+ | Expired/missing proposal; `STATE_CHANGED`, `BUSY` | Stop the stale action and discard stale previews. Follow the applicable operation's fresh authorization rule; never reuse expired consent or retarget a human answer. Do not bypass revision checks or delete locks. |
487
504
  | `RPC_UNSUPPORTED`, `SOURCE_NOT_CONFIGURED`, `INSTRUCTION_UNSUPPORTED`, `ANSWER_UNSUPPORTED` | The registered receiver may lack the requested channel/capability. Discovery is not activation proof. Inherited legacy question channels may need an operator-managed clean process restart to gain guarded actions; an extension reload alone may retain the old channel. Do not restart sessions automatically or fall back to an unguarded write. |
488
505
  | `QUESTION_CHANGED` or a late/resolved question | Obtain fresh exact question state. Do not send a previously confirmed response to a changed or different question. |
489
506
  | `INTENT_FORMAT_UPGRADE_REQUIRED` | Review the explicit native journal upgrade above; do not edit format/version fields manually. |
@@ -24,12 +24,12 @@ This is read-only compatibility, not automatic transfer of grants or a rewrite i
24
24
  | resync | `fleet_resync`, with explicit local cursor writes and gaps |
25
25
  | watch | Explicit bounded `fleet_watch` while the conversation is active; longer requested periods use bounded calls within that time budget, not a daemon |
26
26
  | send | `fleet_instruction_prepare`, one commit, exact receipt; an explicit user send to one unambiguous selected current session with read+send needs no second confirmation; otherwise clarify or obtain preview confirmation as described in the [native send contract](codex-local-mcp.md#send-an-instruction) |
27
- | answer / cancel-question | `fleet_answer_prepare`, actual human answer or explicit question-scoped refusal, fresh preview confirmation, one commit and receipt; not Pi-turn cancellation |
27
+ | answer / cancel-question | `fleet_answer_prepare`, actual human answer or explicit question-scoped refusal authorizes faithful delivery once, fresh exact-question/payload checks, one commit without a second confirmation and receipt; not Pi-turn cancellation |
28
28
  | replay | Explicit `fleet_snapshot` followed by local historical `fleet_replay`; legacy saved reports are available through the configured archive reader |
29
29
  | receipts | `fleet_receipts`, exact instruction/answer receipt lookup, and opt-in `fleet_legacy_history` for old records |
30
30
  | doctor / describe / help | `fleet_diagnostics`, actual MCP tool schemas, registry/read checks and authorized capability observations; static diagnostics are not receiver readiness proof |
31
31
 
32
- The native interface changes authorization deliberately: legacy selection does not grant read or send, read does not grant send, and an old send grant does not supply a human answer. Keep technical prepare/commit for every send. Explicit user sends follow the limited no-second-confirmation path above; binding changes, answers, model-initiated sends and substantively expanded instructions retain their own reviewed confirmation requirements. Do not send an old uncertain action again to demonstrate migration.
32
+ The native interface changes authorization deliberately: legacy selection does not grant read or send, read does not grant send, and an old send grant does not supply a human answer. Keep technical prepare/commit for every send. Explicit user sends follow the limited no-second-confirmation path above; binding changes, model-initiated sends and substantively expanded instructions retain their own reviewed confirmation requirements. For a displayed pending question, the actual human answer/refusal authorizes faithful delivery once without a second confirmation; stale/ambiguous questions and unknown outcomes do not authorize guessing, retargeting or resend. Do not send an old uncertain action again to demonstrate migration.
33
33
 
34
34
  ## Repair retired installer selections
35
35
 
@@ -85,7 +85,7 @@ Registry, policy, and legacy roots must be normalized absolute paths with no sym
85
85
  2. Reload Codex through the host's supported procedure, open a **new** chat, and call `fleet_diagnostics {}`. It reports the Node runtime, protocol, and loaded tool names without touching the registry or policy state. A host that was already running may still show an older catalogue until it is reloaded.
86
86
  3. In the same chat call `fleet_discover` for an explicit running project. `STATE_MISSING` or `NOT_ALLOWED` is the expected answer for a conversation that has not enrolled; it is not a setup error.
87
87
 
88
- Registration exposes the tools in every Codex chat of this user. It grants nothing: each chat still enrolls each target through the reviewed `fleet_binding_prepare` / `fleet_binding_commit` flow under [connect a target](codex-local-mcp.md#connect-a-target-and-manage-permissions), and answers and approvals retain their separate per-action confirmation requirements. An explicit user send to one unambiguous, already selected current session with read+send uses technical prepare/commit without a second conversational confirmation; model-initiated or substantively expanded instructions still require a fresh preview confirmation, while ambiguity or a changed session stops the send. See [send an instruction](codex-local-mcp.md#send-an-instruction). Review the host's normal project-trust and MCP approval settings; do not disable protections to make this server load.
88
+ Registration exposes the tools in every Codex chat of this user. It grants nothing: each chat still enrolls each target through the reviewed `fleet_binding_prepare` / `fleet_binding_commit` flow under [connect a target](codex-local-mcp.md#connect-a-target-and-manage-permissions), and binding changes and machine approval decisions retain their separate authorization rules. An actual human answer/refusal to the exact displayed pending question authorizes faithful delivery once without a second conversational confirmation; technical answer prepare/commit, fresh question/epoch/rights checks and no-replay remain mandatory. An explicit user send to one unambiguous, already selected current session with read+send uses technical prepare/commit without a second conversational confirmation; model-initiated or substantively expanded instructions still require a fresh preview confirmation, while ambiguity or a changed session stops the send. See [send an instruction](codex-local-mcp.md#send-an-instruction). Review the host's normal project-trust and MCP approval settings; do not disable protections to make this server load.
89
89
 
90
90
  ### nvm and other version managers
91
91
 
@@ -12,7 +12,7 @@ This establishes that bounded desktop voice-to-agent route, not every action des
12
12
 
13
13
  - Installing a skill, using dictation, seeing a microphone button, or succeeding in text mode does not prove native voice compatibility.
14
14
  - Successful observations, instruction delivery, and question answers through the native tools are distinct from testing those actions through voice. Do not assume voice-driven mutations have been verified.
15
- - There is no mobile/remote compatibility promise, public endpoint, tunnel, background listener, or idle-chat wake in this workflow.
15
+ - The skill/discovery workflow alone promises no mobile/remote compatibility, public endpoint, tunnel, background listener or idle-chat wake. Separately enabled notification bootstrap is a different, explicitly consented capability, not proof of voice delivery.
16
16
  - The recorded handoff does not attest synthesized-audio delivery, human origin, or compatibility with every Codex build or voice host.
17
17
 
18
18
  Use the availability check below in your own intended chat and host. If the native tools are missing, report the limitation rather than substituting another route.
@@ -43,6 +43,12 @@ Confirm that the actual native `fleet_discover` and `fleet_check_read` calls occ
43
43
 
44
44
  A partial or stale registry result is a gap, not positive availability evidence. If the host uses a voice-to-agent handoff, distinguish that from direct voice execution when reporting the result. If tools or trusted host context are absent, stop the affected operation. Do not replace native calls with shell commands, another chat's metadata, another peer, or a remote service.
45
45
 
46
+ ## Combined notification connection (unreleased minor)
47
+
48
+ The updated source skill also describes [notification bootstrap/reconnect](codex-notification-bootstrap.md). After real identity/catalog/no-load prerequisites, native prepare grants nothing, commit returns `pending` to release the initiating model turn, and one genuine Pi dialog authorizes exact common-deadline rights. Only Codex writes them; one fresh terminal ACK probe precedes private runtime admission. Do not add another chat consent loop, hold the turn open waiting for its own probe, or treat pending/cached/queue ACK as current readiness or delivery.
49
+
50
+ An addressed `FLEET_BOOTSTRAP_PROBE_V1` receives only terminal `FLEET_PROBE_ACK <probeId>`, never a grant or permission answer. Missing factual preflight blocks. Same-fingerprint daemon continuation is bounded by the original Pi scope/lease and is not periodic or a rights renewal. This is source/synthetic functionality, **not** a new live voice, Desktop, historical-version or audio-delivery claim. The managed installer includes the updated archive; an already running host/old skill is not hot-patched by a repository edit.
51
+
46
52
  ## Name connections explicitly
47
53
 
48
54
  Use canonical `project/peer` selectors. You can supply friendly labels:
@@ -114,7 +120,7 @@ The native question route requires current read+send rights and a compatible gua
114
120
  1. Obtain the full question, context, exact option titles/descriptions, and effective multiple-selection/freeform/comment flags. If several questions are pending, identify which one you are answering. Retain the exact target, question ID, and tool-call ID in the written chat.
115
121
  2. Give your actual response. Codex preserves option titles exactly and clarifies uncertain transcription; it does not choose a default or infer an answer from a blanket “continue.”
116
122
  3. Codex freshly checks the same pending question and calls `fleet_answer_prepare` for your exact answer or refusal.
117
- 4. Review the complete returned question/flags, normalized response, target, effects, and expiry. Give a **new** explicit confirmation before one `fleet_answer_commit`. The answer you gave in step 2 is not this confirmation.
123
+ 4. Your actual response in step 2 authorizes its faithful delivery once. Codex checks the complete prepared question/flags, normalized response, exact target, effects and expiry against your reply, then calls `fleet_answer_commit` once **without a second confirmation**. Ambiguous speech or a differing normalized response needs clarification; a changed question/owner, missing rights, proposal expiry or server restart stops the stale action. No automatic choice, retargeting or invented human consent.
118
124
  5. Inspect the actual receipt. Accepted, late, expired, rejected, and unknown outcomes are different; no success is inferred from silence.
119
125
 
120
126
  These requests have distinct meanings:
@@ -124,11 +130,11 @@ These requests have distinct meanings:
124
130
  - **“Do not send my answer.”** Withhold delivery; do not turn it into a refusal sent to Pi.
125
131
  - **“Stop.”** If the intended effect is unclear, clarify rather than guessing between watch, question, permissions, or task cancellation.
126
132
 
127
- If you change your response during confirmation, leave the old proposal uncommitted and prepare the new response with its own confirmation. If the question resolves or the owner changes, do not redirect the old answer elsewhere. Keep pending decisions in the written chat as well as the voice exchange.
133
+ If you change your response before commit, leave the old proposal uncommitted, freshly check the same question and prepare the new actual response under the same single-response authorization rule. If the question resolves or the owner changes, do not redirect the old answer elsewhere. Keep pending decisions in the written chat as well as the voice exchange.
128
134
 
129
135
  ## Handle uncertainty and finish safely
130
136
 
131
- - Proposals expire after 300 seconds and are lost on server restart. A new preview needs a new confirmation; do not reuse expired consent.
137
+ - Proposals expire after 300 seconds and are lost on server restart. Stop the stale action and obtain the operation's required fresh authorization; do not reuse expired consent or redirect an old answer.
132
138
  - For an unknown instruction or answer outcome, keep the original request ID and inspect `fleet_instruction_receipt` or `fleet_answer_receipt`. Remote refresh requires current read authority. Do not resend automatically, switch IDs, guess a new target, or fall back to the CLI to force delivery.
133
139
  - Bounded/volatile receiver evidence may be missing after a restart or capacity limit. Missing evidence is not proof of failed delivery. Already-started actions are not promised rollback.
134
140
  - Missing/corrupt state and journal-upgrade requirements are operator conditions. Initialization or migration has a separate exact preview/confirmation workflow; migration also requires operator-confirmed writer quiescence. Connecting or invoking the skill does not authorize either.
@@ -525,7 +525,7 @@ No release verification should target a real application workspace.
525
525
  ## System 1 dispatch advice and communication
526
526
 
527
527
  Fleet `1` opens the session-only System 1 communication viewer; capture requires
528
- explicit opt-in. The orchestrator may call `dispatch_triage` when its separate
528
+ explicit opt-in. The operator may call `dispatch_triage` when its separate
529
529
  human-owned configuration permits it. Both remain off by default; installation
530
530
  does not authorize live requests or calibrate the policy. See the
531
531
  [configuration, keys, privacy and evaluation guide](system1-dispatch-triage.md).
@@ -64,8 +64,8 @@ tool call. The unified `just fleet` entry point composes them with a determinist
64
64
  Fleet Core: `damage-control-continue` (which also runs the shared package update
65
65
  check once per session), `ask-user-remote`, Compact & Continue, and BTW. Voice is an optional feature, not Default Fleet Core.
66
66
  Every public Pi launch through bare `just fleet` also loads
67
- `agent-hub`; operator/orchestrator work mode changes its direct tool surface without changing
68
- process or session. `just fleet peer` starts a standalone coms peer. Harnesses live in
67
+ `agent-hub` with its one operator, which keeps direct tools and delegates on its own judgment.
68
+ `just fleet peer` starts a standalone coms peer. Harnesses live in
69
69
  **`.pi/harnesses/`** — a directory pi does
70
70
  *not* auto-discover — so a plain `pi` run still loads no safety/orchestration harness.
71
71
 
@@ -175,10 +175,9 @@ make a harness self-contained: copied target harnesses still require the existin
175
175
  `agent-team` recipe and absorbs the day-to-day pieces that previously required separate
176
176
  harnesses:
177
177
 
178
- - **Two live Work Modes** — bare `just fleet` starts as an operator with direct coding tools and an
179
- empty native roster; `/af-work-mode operator|orchestrator` switches prompt and tool surface without
180
- restarting or losing session state, while `/af-work-mode` without an argument and **Alt+M** open
181
- the picker. Orchestrator removes `bash`/`edit`/`write`, keeps read-only `filesystem` inspection, refuses self-read above 64 KiB per file or per turn. Dispatch and research counts are usage, never a per-turn allowance. A pending task transition lets `set_task_tier` and `ask_user` through; the second other tool call stops the turn, including a parallel batch, and the fence survives resume. Research, nested delegation, and the task envelope follow task tier. All Hub slash commands remain registered in both work modes; capability-off actions
178
+ - **One operator** — bare `just fleet` starts the operator with direct coding tools, delegation to
179
+ every installed agent, and an empty native roster. The former orchestrator work mode,
180
+ `/af-work-mode` and **Alt+M** were removed; `--work-mode` is ignored with a warning. Dispatch and research counts are usage, never a per-turn allowance. A pending task transition lets `set_task_tier` and `ask_user` through; the second other tool call stops the turn, including a parallel batch, and the fence survives resume. Research, nested delegation, and the task envelope follow task tier. All Hub slash commands remain registered in both work modes; capability-off actions
182
181
  refuse actionably.
183
182
  - **Fleet widget** — **`Alt+I`**, registered through Pi's shortcut API, expands or collapses the
184
183
  bounded below-editor fleet view when its focus, empty-editor, autocomplete/modal, row, and height
@@ -209,7 +208,7 @@ harnesses:
209
208
  skill, which the `orchestrator` persona drives. Advisory in this phase (surfaced, not a hard
210
209
  dispatch refusal).
211
210
  - **Operator controls** — `/af-zoom` timeline inspection plus child-agent kill/restart controls. `/af-context` is a separate read-only full-screen context-budget view: provider totals/cache fields are authoritative, component estimates are labelled heuristic or provider-scaled, stable prompt and volatile-state cost are separated, loaded-but-excluded and inactive packs visibly cost zero, and fleet members use separate model-window denominators. It also shows live pressure phase, measured usage, the 60%/70% thresholds and 80% ceiling, episode, and last recovery outcome. It never reveals or persists raw prompts, schemas, conversation content, error bodies, or compaction summaries.
212
- - **Automatic capability packs** — no activation command is needed. Intent, work mode, tier, pending work, and runtime state resolve the model-visible tools before the turn; readiness alone does not make coms/Herdr visible. Ambiguous fleet, peer, or workspace use asks once before its first side effect. The compact pack is transient when explicitly requested or pressure is imminent; ordinary task packs persist until `set_task_tier(new_task: true)`. Managed children receive selected replacement prompts/manifests (`--no-skills` and `--no-context-files` where applicable), not inherited global context.
211
+ - **Automatic capability packs** — no activation command is needed. Intent, tier, pending work, and runtime state resolve the model-visible tools before the turn; readiness alone does not make coms/Herdr visible. Ambiguous fleet, peer, or workspace use asks once before its first side effect. The compact pack is transient when explicitly requested or pressure is imminent; ordinary task packs persist until `set_task_tier(new_task: true)`. Managed children receive selected replacement prompts/manifests (`--no-skills` and `--no-context-files` where applicable), not inherited global context.
213
212
  - **Usage without continuation quotas** — dispatch, research and review counts and active time stay visible per turn and task, but authorized work never stops for a budget renewal. The watchdog supervises repeated work; genuinely different work uses `set_task_tier(new_task: true)`. Active-time clocks exclude human wait time.
214
213
  - **Damage-control + ask_user by default** — `just fleet` and `just fleet --no-coms` load the
215
214
  `damage-control-continue` safety harness and `ask-user-remote` before `agent-hub`, so the
@@ -251,21 +250,18 @@ session JSONL under `~/.pi/agent/sessions/` remains the authoritative append-onl
251
250
  overflow does not imply corruption: inspect with `/session`, resume with `/resume` or Pi's session
252
251
  flags, and **never edit, truncate, reorder, or synthesize JSONL entries to recover**.
253
252
 
254
- If resume instead reports that orchestrator work mode has no valid native roster, direct tools and
255
- model input intentionally remain blocked. Select a current team with `/af-agents-team`; restart via
256
- `just fleet --agents <name>` (direct Pi: `--agent-team <name>`); or explicitly choose operator with
257
- `/af-work-mode operator` / `just fleet --work-mode operator`. Repair stale team/persona definitions
258
- before selecting them. The Hub never invents a roster or silently downgrades persisted work mode, and
259
- explicit startup flags retain precedence.
253
+ If resume reports that a persisted native roster no longer resolves, the session continues without
254
+ it. Select a current team with `/af-agents-team` or restart via `just fleet --agents <name>` (direct
255
+ Pi: `--agent-team <name>`), after repairing stale team/persona definitions. A session saved in the
256
+ removed orchestrator work mode continues as the operator with a one-time notice.
260
257
 
261
258
  ### Runtime axes and explicit routing
262
259
 
263
- Work mode, native roster, and peer topology are independent:
260
+ The native roster and the peer topology are independent:
264
261
 
265
262
  ```bash
266
263
  just fleet # operator, empty native roster
267
- just fleet --agents frontend # orchestrator inferred
268
- just fleet --work-mode operator --agents frontend # direct tools + native roster
264
+ just fleet --agents frontend # operator starting with a native roster
269
265
  just fleet --herdr --project af # one Hub pane in Herdr
270
266
  just fleet --agents frontend --peers frontend --project af
271
267
  ```
@@ -282,8 +278,7 @@ Inside a Herdr-backed Hub, `herdr_spawn_peer({ name: "code-reviewer" })` uses th
282
278
  and waits for coms readiness. Then use `coms_send` + `coms_await`, or `/af-handoff
283
279
  code-reviewer`. These actions need a running Herdr server and/or ready coms as appropriate; the
284
280
  commands stay registered and explain missing capability. Arbitrary pane commands use the separate
285
- `herdr_spawn_pane` tool. In orchestrator work mode that tool is limited by policy to auxiliary
286
- processes such as watchers or servers; it must not be used to bypass delegation for code work.
281
+ `herdr_spawn_pane` tool, meant for auxiliary processes such as watchers or servers.
287
282
 
288
283
  ---
289
284
 
@@ -1,6 +1,6 @@
1
1
  # Agentic System 1 — `ask_system1`
2
2
 
3
- Opt-in provider-neutral advisory tool for the **parent Agent Hub** in operator and orchestrator modes. It batches model-authored `choice`, `predicate`, and `ordinal` questions through the existing System 1 service. It does not execute commands, grant permissions, change task tiers or close acceptance, assertion, plan or review gates. Advice never replaces reading before editing or independent review.
3
+ Opt-in provider-neutral advisory tool for the **parent Agent Hub** operator. It batches model-authored `choice`, `predicate`, and `ordinal` questions through the existing System 1 service. It does not execute commands, grant permissions, change task tiers or close acceptance, assertion, plan or review gates. Advice never replaces reading before editing or independent review.
4
4
 
5
5
  ## Enable deliberately
6
6
 
@@ -41,7 +41,7 @@ Candidate limits bound matched candidates, **not visited filesystem entries**.
41
41
  ## Automatic surfaces and explicit A/B/C
42
42
 
43
43
  With a known task and at least two unambiguous files, production `tool_result`
44
- hooks rank before delivery to the next model step in both Hub work modes and
44
+ hooks rank before delivery to the next model step in the Hub operator and
45
45
  all task tiers:
46
46
 
47
47
  - Parent `filesystem` inventory, typed `find`, `ls`, and parseable `grep`.
@@ -125,7 +125,7 @@ approved export/read policy is unchanged.
125
125
 
126
126
  Large results use separately bounded managed pages with result identity, total,
127
127
  offset, next locator and hash. Follow every `next` via already permitted read or
128
- `filesystem` readback; an exhausted 64 KiB orchestrator turn needs the next turn.
128
+ `filesystem` readback; an exhausted 64 KiB read-only turn needs the next turn.
129
129
  No self-read budget or child tool cap is increased. A denied page path is an
130
130
  explicit limitation, not delivery of all rows. A full list describes the actual
131
131
  requested/discovered scope, not unseen files beyond a partial scan.
package/docs/workflows.md CHANGED
@@ -103,7 +103,7 @@ Maintenance does not fetch remotes and does not delete `.pi/flow-sessions/<runId
103
103
 
104
104
  ## Quality configuration
105
105
 
106
- Quality blocks require a non-empty `quality:` command in `## workflows` in `.ai/agent-fleet-overrides.md`; there is **no implicit `npm test` fallback**. A missing override, missing `## workflows` section, or empty `quality:` value is a startup refusal (exit `3`), rather than a fake green command. The value is split into argv using simple shell-style quotes, inherits the operator environment, and runs without a shell.
106
+ Quality blocks require a non-empty `quality:` command in `## workflows` in `.ai/agent-fleet-overrides.md`; there is **no implicit `npm test` fallback**. A missing override, missing `## workflows` section, or empty `quality:` value is a startup refusal (exit `3`), rather than a fake green command. The value is split into argv using simple shell-style quotes, inherits the operator environment, and runs without a shell. A workspace with nested repositories can also give each repository its own command with `quality.<repository>:` (see [below](#workspaces-with-nested-repositories)).
107
107
 
108
108
  ```markdown
109
109
  ## workflows
@@ -116,6 +116,27 @@ The runtime currently uses its 1,800-second default timeout; `timeout-seconds:`
116
116
 
117
117
  `quality:` is the **executable** gate — the one command a flow runs to decide acceptance. When a project also uses the `constraint-driven-development` skill, its `CONSTRAINTS.md` holds the *dimensions, the numbers, and the reason for each number*; it is what a human reads and what review diffs. The two are not redundant and must not disagree: `CONSTRAINTS.md` cites the command, `quality:` runs it. A `CONSTRAINTS.md` naming a gate command that `quality:` does not run is drift, and `quality:` is what the runtime obeys.
118
118
 
119
+ ## Workspaces with nested repositories
120
+
121
+ When the workspace root is a plain folder that holds Git repositories (for example `rin-docs/` and `ringithub/`), each flow works in exactly one of them. Select it with `--worktree` and its path from the workspace root:
122
+
123
+ ```bash
124
+ just flow quality --worktree ringithub
125
+ just flow build-test --worktree ringithub --branch "add the validated endpoint"
126
+ just flow cleanup --worktree ringithub
127
+ just flow merge --worktree ringithub
128
+ ```
129
+
130
+ `.ai/agent-fleet-overrides.md`, `.env` and policy are read from the workspace root. Git, the clean-tree check, the quality command and `--branch` run in the selected repository, so flow branches exist only there and `cleanup` and `merge` list them per repository. Traces stay at the root, under `.pi/flow-sessions/targets/<target>/<runId>/`. Without `--worktree`, a flow, `cleanup` or `merge` at such a root is a startup refusal (exit `3`) that names the flag. One run never spans two repositories.
131
+
132
+ A nested repository can have its own quality command. `quality.<repository>:` wins over `quality:` for a flow selected into that repository. The key is the path of the repository's main checkout from the workspace root, so a linked worktree of `ringithub` also uses `quality.ringithub:`. A repository without its own key, or a checkout outside the workspace root, uses `quality:`. A refusal for a missing command names both keys.
133
+
134
+ ```markdown
135
+ ## workflows
136
+ quality: npm test
137
+ quality.ringithub: dotnet test
138
+ ```
139
+
119
140
  ## Safety and evidence
120
141
 
121
142
  Normal runs require a clean tree and stay on the current branch. Only `--branch` creates `flow/<name>-<runId>`. An explicitly requested branch stores its source branch, source commit, flow name, run id, and final acceptance as local Git metadata so maintenance can merge back without guessing. Every agent phase must receive an explicit writes policy from persona frontmatter or its call site; a missing policy is refused before spawn rather than silently treated as unrestricted. `writes: []` is repository read-only, and a non-empty list is an allowlist. Agent writes are checked after each phase against that policy and workflow `protectedGlobs`. `protectedGlobs` reject a path only when no `writes` glob matches it, so `writes: ["**"]` also permits a protected path. `*` stays within one path segment; `**` crosses directories. Out-of-policy changes introduced by the agent are rolled back and terminate the phase. Runtime reports remain writable even for repository-read-only agents. This enforcement exists only in flows; hub behavior is unchanged.
@@ -156,3 +177,5 @@ Before the Hub charges one research operation, code validates the effective rese
156
177
  The scout's native process and descendants run through `confineNativeChild`: the snapshot is read-only at the OS layer, and only its session-owned phase directory is writable for Pi session/runtime support. A second, non-exemptible extension validates the actual declared `read`, `grep`, `find`, and `ls` data paths and patterns against the snapshot, denying original-worktree absolute paths, traversal, and symlink escape. Damage-control remains loaded and applies its `zeroAccessPaths` rules independently. The OS sandbox intentionally retains read access to model/runtime libraries and provider configuration required to start Pi; the DATA-read claim is limited to those four filesystem tools, not a global no-read claim. The flow runs in detached-HEAD, no-branch mode; trace and manifest live under the current Hub session, and cleanup of the owned temporary workspace is attempted after every settlement or setup failure. `snapshotCleanup.status` reports `removed`, `not-created` or `failed`; a failure returns a visible warning and retained path rather than silently claiming cleanup. Trace and manifest artifacts are kept. Abrupt process termination (for example SIGKILL or power loss) cannot guarantee cleanup; no startup sweep deletes unknown or active directories. It never restores, deletes, checks out, branches, or commits in the original worktree.
157
178
 
158
179
  The Hub owns cancellation and the single budget charge. A duplicate `invocation_id` with identical inputs returns the existing promise/result; changed inputs under that id are stale and refused, and a distinct invocation while one is active is busy without charge. Flow acceptance is nested evidence only: `run_flow` returns parent acceptance as `not_accepted`, promotes no assertions, and retains open T11 obligations. Writable procedures—including `build-test` and its commit semantics—remain unavailable pending a separate reviewed slice.
180
+
181
+ At a workspace root that is not a Git repository, `run_flow` needs `repo:`, the one nested repository to scout, as its path from the workspace root (for example `ringithub`). The snapshot is built from that repository. Personas, damage-control rules and scout settings come from the workspace root, and paths in the result are relative to the repository. Without `repo:`, the call is refused without a budget charge, and the refusal names the repositories the task already uses. `repo:` is also refused where the root is itself a repository, in a session already bound to a target checkout, and for an absolute path, `..`, or a folder that is not a repository checkout inside the workspace. `build-test` in a nested repository runs from the CLI: `just flow build-test --worktree <repository> …`.