@ours.network/fleet 1.1.0-nightly.9 → 1.1.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 (200) hide show
  1. package/README.md +231 -46
  2. package/dist/application/capabilities.js +18 -6
  3. package/dist/application/fleet-query-service.js +7 -4
  4. package/dist/application/role-command-service.js +9 -0
  5. package/dist/application/role-creation-service.d.ts +4 -4
  6. package/dist/application/role-creation-service.js +8 -1
  7. package/dist/application/role-repository.d.ts +4 -2
  8. package/dist/application/role-repository.js +6 -3
  9. package/dist/application/session-control.d.ts +3 -1
  10. package/dist/application/session-control.js +4 -2
  11. package/dist/application/task-room-service.d.ts +92 -39
  12. package/dist/application/task-room-service.js +562 -289
  13. package/dist/briefing.js +79 -22
  14. package/dist/build-info.json +5 -5
  15. package/dist/canonical-json.d.ts +2 -0
  16. package/dist/canonical-json.js +10 -0
  17. package/dist/cli.js +129 -47
  18. package/dist/config.d.ts +38 -3
  19. package/dist/config.js +193 -28
  20. package/dist/creation.d.ts +1 -1
  21. package/dist/creation.js +7 -4
  22. package/dist/docs.d.ts +1 -1
  23. package/dist/docs.js +181 -41
  24. package/dist/doctor.d.ts +2 -0
  25. package/dist/doctor.js +40 -4
  26. package/dist/fleet-command-audit.d.ts +22 -1
  27. package/dist/fleet-command-audit.js +355 -50
  28. package/dist/fleet-proxy.d.ts +5 -2
  29. package/dist/harness/claude-code-session.js +2 -1
  30. package/dist/harness/codex-app-server-proxy.d.ts +40 -0
  31. package/dist/harness/codex-app-server-proxy.js +348 -14
  32. package/dist/harness/codex-session.d.ts +9 -2
  33. package/dist/harness/codex-session.js +18 -2
  34. package/dist/harness/codex.d.ts +5 -1
  35. package/dist/harness/codex.js +104 -10
  36. package/dist/harness/types.d.ts +1 -1
  37. package/dist/index.d.ts +4 -3
  38. package/dist/index.js +3 -2
  39. package/dist/init-guidance.d.ts +1 -1
  40. package/dist/init-guidance.js +1 -1
  41. package/dist/init-wizard.d.ts +98 -0
  42. package/dist/init-wizard.js +631 -0
  43. package/dist/lifecycle-summary.d.ts +134 -0
  44. package/dist/lifecycle-summary.js +179 -0
  45. package/dist/loops/config.d.ts +10 -1
  46. package/dist/loops/config.js +38 -5
  47. package/dist/model-recovery.d.ts +1 -1
  48. package/dist/ops.js +2 -17
  49. package/dist/owner-channel/channel.d.ts +19 -3
  50. package/dist/owner-channel/channel.js +301 -120
  51. package/dist/owner-channel/commands.d.ts +28 -6
  52. package/dist/owner-channel/commands.js +109 -27
  53. package/dist/owner-channel/lifecycle-outbox.d.ts +24 -0
  54. package/dist/owner-channel/lifecycle-outbox.js +87 -0
  55. package/dist/owner-channel/ours-client.d.ts +19 -0
  56. package/dist/owner-channel/ours-client.js +3 -0
  57. package/dist/permissions.js +1 -1
  58. package/dist/preset-migration.d.ts +42 -0
  59. package/dist/preset-migration.js +450 -0
  60. package/dist/reports/artifact.d.ts +10 -0
  61. package/dist/reports/artifact.js +32 -0
  62. package/dist/reports/index.d.ts +5 -0
  63. package/dist/reports/index.js +5 -0
  64. package/dist/reports/render.d.ts +6 -0
  65. package/dist/reports/render.js +240 -0
  66. package/dist/reports/service.d.ts +42 -0
  67. package/dist/reports/service.js +57 -0
  68. package/dist/reports/tasks.d.ts +52 -0
  69. package/dist/reports/tasks.js +177 -0
  70. package/dist/reports/types.d.ts +315 -0
  71. package/dist/reports/types.js +6 -0
  72. package/dist/resolved-plan.js +13 -1
  73. package/dist/rooms-tasks/cli.d.ts +2 -0
  74. package/dist/rooms-tasks/cli.js +361 -285
  75. package/dist/rooms-tasks/close.d.ts +9 -1
  76. package/dist/rooms-tasks/close.js +23 -7
  77. package/dist/rooms-tasks/config.js +16 -25
  78. package/dist/rooms-tasks/cowork-adapter.d.ts +5 -0
  79. package/dist/rooms-tasks/cowork-adapter.js +13 -0
  80. package/dist/rooms-tasks/deletion.d.ts +51 -0
  81. package/dist/rooms-tasks/deletion.js +217 -0
  82. package/dist/rooms-tasks/external-worker.d.ts +8 -0
  83. package/dist/rooms-tasks/external-worker.js +38 -0
  84. package/dist/rooms-tasks/launch-snapshot.d.ts +19 -0
  85. package/dist/rooms-tasks/launch-snapshot.js +181 -0
  86. package/dist/rooms-tasks/member-overrides.d.ts +30 -0
  87. package/dist/rooms-tasks/member-overrides.js +204 -0
  88. package/dist/rooms-tasks/member-startup.d.ts +1 -0
  89. package/dist/rooms-tasks/member-startup.js +9 -2
  90. package/dist/rooms-tasks/provision.js +146 -83
  91. package/dist/rooms-tasks/room-state.d.ts +1 -0
  92. package/dist/rooms-tasks/room-state.js +12 -1
  93. package/dist/rooms-tasks/task-room-name.d.ts +12 -0
  94. package/dist/rooms-tasks/task-room-name.js +61 -0
  95. package/dist/rooms-tasks/task-state.d.ts +115 -3
  96. package/dist/rooms-tasks/task-state.js +361 -11
  97. package/dist/rooms-tasks/templates.d.ts +4 -1
  98. package/dist/rooms-tasks/templates.js +34 -3
  99. package/dist/rooms-tasks/terminal.d.ts +3 -0
  100. package/dist/rooms-tasks/terminal.js +10 -4
  101. package/dist/rooms-tasks/types.d.ts +92 -7
  102. package/dist/rooms-tasks/types.js +14 -1
  103. package/dist/runner.d.ts +3 -0
  104. package/dist/runner.js +91 -44
  105. package/dist/session/acp.d.ts +4 -1
  106. package/dist/session/acp.js +29 -13
  107. package/dist/session/arbiter.d.ts +2 -1
  108. package/dist/session/arbiter.js +2 -0
  109. package/dist/session/codex-app-server-transport.d.ts +53 -0
  110. package/dist/session/codex-app-server-transport.js +184 -0
  111. package/dist/session/codex-app-server.d.ts +122 -0
  112. package/dist/session/codex-app-server.js +1031 -0
  113. package/dist/session/control.d.ts +1 -1
  114. package/dist/session/control.js +17 -1
  115. package/dist/session/conversation-types.d.ts +4 -4
  116. package/dist/session/types.d.ts +24 -6
  117. package/dist/session/types.js +28 -0
  118. package/dist/spawn.d.ts +9 -0
  119. package/dist/spawn.js +77 -9
  120. package/dist/web/fleet-config-service.d.ts +1 -0
  121. package/dist/web/fleet-config-service.js +25 -7
  122. package/dist/web/runtime.js +11 -6
  123. package/dist/web/server.js +28 -1
  124. package/dist/web-app/assets/{index-BbTc5KtZ.js → index-C0h3ALvs.js} +8 -8
  125. package/dist/web-app/index.html +1 -1
  126. package/package.json +4 -4
  127. package/presets/brain-catalog.json +17 -0
  128. package/presets/fleet/{agents → agent_templates}/Critic.yaml +2 -0
  129. package/presets/fleet/{agents/Agent.yaml → agent_templates/Developer.yaml} +3 -1
  130. package/presets/fleet/agent_templates/LocalCoordinator.yaml +50 -0
  131. package/presets/fleet/agents/{Developer.yaml → FleetCoordinator.yaml} +1 -1
  132. package/presets/fleet/brains/claude-fable-5-high.yaml +5 -0
  133. package/presets/fleet/brains/claude-fable-5-low.yaml +5 -0
  134. package/presets/fleet/brains/claude-fable-5-max.yaml +5 -0
  135. package/presets/fleet/brains/claude-fable-5-medium.yaml +5 -0
  136. package/presets/fleet/brains/claude-fable-5-xhigh.yaml +5 -0
  137. package/presets/fleet/brains/claude-opus-5-high.yaml +5 -0
  138. package/presets/fleet/brains/claude-opus-5-low.yaml +5 -0
  139. package/presets/fleet/brains/claude-opus-5-max.yaml +5 -0
  140. package/presets/fleet/brains/claude-opus-5-medium.yaml +5 -0
  141. package/presets/fleet/brains/claude-opus-5-xhigh.yaml +5 -0
  142. package/presets/fleet/brains/claude-sonnet-5-high.yaml +5 -0
  143. package/presets/fleet/brains/claude-sonnet-5-low.yaml +5 -0
  144. package/presets/fleet/brains/claude-sonnet-5-max.yaml +5 -0
  145. package/presets/fleet/brains/claude-sonnet-5-medium.yaml +5 -0
  146. package/presets/fleet/brains/claude-sonnet-5-xhigh.yaml +5 -0
  147. package/presets/fleet/brains/codex-gpt-5-3-codex-spark-high.yaml +5 -0
  148. package/presets/fleet/brains/codex-gpt-5-3-codex-spark-low.yaml +5 -0
  149. package/presets/fleet/brains/codex-gpt-5-3-codex-spark-medium.yaml +5 -0
  150. package/presets/fleet/brains/codex-gpt-5-3-codex-spark-xhigh.yaml +5 -0
  151. package/presets/fleet/brains/codex-gpt-5-4-high.yaml +5 -0
  152. package/presets/fleet/brains/codex-gpt-5-4-low.yaml +5 -0
  153. package/presets/fleet/brains/codex-gpt-5-4-medium.yaml +5 -0
  154. package/presets/fleet/brains/codex-gpt-5-4-mini-high.yaml +5 -0
  155. package/presets/fleet/brains/codex-gpt-5-4-mini-low.yaml +5 -0
  156. package/presets/fleet/brains/codex-gpt-5-4-mini-medium.yaml +5 -0
  157. package/presets/fleet/brains/codex-gpt-5-4-mini-xhigh.yaml +5 -0
  158. package/presets/fleet/brains/codex-gpt-5-4-xhigh.yaml +5 -0
  159. package/presets/fleet/brains/codex-gpt-5-5-high.yaml +5 -0
  160. package/presets/fleet/brains/codex-gpt-5-5-low.yaml +5 -0
  161. package/presets/fleet/brains/codex-gpt-5-5-medium.yaml +5 -0
  162. package/presets/fleet/brains/codex-gpt-5-5-xhigh.yaml +5 -0
  163. package/presets/fleet/brains/codex-gpt-5-6-luna-high.yaml +5 -0
  164. package/presets/fleet/brains/codex-gpt-5-6-luna-low.yaml +5 -0
  165. package/presets/fleet/brains/codex-gpt-5-6-luna-max.yaml +5 -0
  166. package/presets/fleet/brains/codex-gpt-5-6-luna-medium.yaml +5 -0
  167. package/presets/fleet/brains/codex-gpt-5-6-luna-xhigh.yaml +5 -0
  168. package/presets/fleet/brains/codex-gpt-5-6-sol-high.yaml +5 -0
  169. package/presets/fleet/brains/codex-gpt-5-6-sol-low.yaml +5 -0
  170. package/presets/fleet/brains/codex-gpt-5-6-sol-max.yaml +5 -0
  171. package/presets/fleet/brains/codex-gpt-5-6-sol-medium.yaml +5 -0
  172. package/presets/fleet/brains/codex-gpt-5-6-sol-ultra.yaml +5 -0
  173. package/presets/fleet/brains/codex-gpt-5-6-sol-xhigh.yaml +5 -0
  174. package/presets/fleet/brains/codex-gpt-5-6-terra-high.yaml +5 -0
  175. package/presets/fleet/brains/codex-gpt-5-6-terra-low.yaml +5 -0
  176. package/presets/fleet/brains/codex-gpt-5-6-terra-max.yaml +5 -0
  177. package/presets/fleet/brains/codex-gpt-5-6-terra-medium.yaml +5 -0
  178. package/presets/fleet/brains/codex-gpt-5-6-terra-ultra.yaml +5 -0
  179. package/presets/fleet/brains/codex-gpt-5-6-terra-xhigh.yaml +5 -0
  180. package/presets/fleet/brains/codex-gpt-6-astra-high.yaml +5 -0
  181. package/presets/fleet/brains/codex-gpt-6-astra-low.yaml +5 -0
  182. package/presets/fleet/brains/codex-gpt-6-astra-max.yaml +5 -0
  183. package/presets/fleet/brains/codex-gpt-6-astra-medium.yaml +5 -0
  184. package/presets/fleet/brains/codex-gpt-6-astra-ultra.yaml +5 -0
  185. package/presets/fleet/brains/codex-gpt-6-astra-xhigh.yaml +5 -0
  186. package/presets/fleet/roles/Coordinator.yaml +37 -0
  187. package/presets/fleet/roles/Critic.yaml +23 -1
  188. package/presets/fleet/roles/Developer.yaml +27 -5
  189. package/presets/fleet/roles/LocalCoordinator.yaml +35 -0
  190. package/presets/fleet/room_templates/pair.yaml +9 -7
  191. package/presets/fleet/room_templates/single.yaml +5 -4
  192. package/presets/fleet/room_templates/team.yaml +12 -8
  193. package/presets/manifest.json +2 -1
  194. package/presets/fleet/agents/Architect.yaml +0 -3
  195. package/presets/fleet/agents/Secretary.yaml +0 -3
  196. package/presets/fleet/agents/Tester.yaml +0 -3
  197. package/presets/fleet/roles/Agent.yaml +0 -6
  198. package/presets/fleet/roles/Architect.yaml +0 -6
  199. package/presets/fleet/roles/Secretary.yaml +0 -6
  200. package/presets/fleet/roles/Tester.yaml +0 -6
@@ -0,0 +1,35 @@
1
+ mission: Coordinate sequencing, handoffs, shared context, and blockers inside the assigned task room.
2
+ persona: |
3
+ Coordinate only the existing members of this task and room. Keep decisions, evidence, ownership,
4
+ and handoffs explicit; use direct room coordination before treating a peer as absent. Unless the
5
+ room contract defines another window, wait 10 minutes after a direct room attempt and honor any
6
+ later absolute ETA from the peer's timestamp or stated start time.
7
+ Task state, progress, checkpoints, findings, review verdicts, completion, handoffs, and ordinary
8
+ errors are routine task communication: coordinate and report them only in the assigned Cowork room.
9
+ A LocalCoordinator does not become a separate reporting channel: members follow your instructions
10
+ directly in the room and keep their replies and evidence in that same room. Fleet Coordinator
11
+ ownership of lifecycle operations does not make it the routine task-communication sink.
12
+
13
+ Normal asynchronous latency, task difficulty, review disagreement, implementation defects, normal
14
+ review findings, test failures under active diagnosis, and incomplete work are not infrastructure
15
+ failures.
16
+
17
+ Do not implement task work, spawn, provision, replace, or manage agents, create tasks or rooms, or
18
+ invoke Fleet task/room lifecycle operations. Never claim Owner or Fleet Coordinator authority.
19
+ Only the configured Fleet Coordinator may recover, block, unblock, review, finish, delete, replace,
20
+ or respawn Fleet resources.
21
+
22
+ For peer nonresponse, report only after that documented attempt and window; continued nonresponse
23
+ then confirms an orchestration blocker. For any other confirmed infrastructure or orchestration
24
+ blocker, send a direct message only when the confirmed blocker or infrastructure or orchestration
25
+ problem prevents safe progress or room communication and
26
+ requires Fleet-level action. Report it once to the configured Fleet Coordinator without waiting for the peer window.
27
+ Include authenticated sender,
28
+ available task/room context, observed state, bounded safe attempts, and the canonical next action.
29
+ Never include invites or invite fingerprints, keys, tokens, unrelated messages, or private workspace
30
+ content. Retry only transient blocker-report transport at most once after backoff. Never retry the
31
+ failed identity, room, or lifecycle operation after an identity/CID mismatch, consumed or invalid
32
+ invite, permission failure, or lost lifecycle state. Avoid busy-polling
33
+ and duplicate alerts; continue independent safe coordination when useful. If progress is impossible,
34
+ declare your own work state BLOCKED or resting instead of silently hanging; never invoke a Fleet task block.
35
+ bio: Task-local coordinator; engage for sequencing, handoffs, shared context, and blockers among existing room members, not Fleet lifecycle or implementation work.
@@ -1,11 +1,13 @@
1
1
  version: 1
2
- description: "Deliberation pair: Secretary writes code, Critic reviews — every decision deliberated together"
2
+ description: "Implementation pair: Developer executes and Critic independently reviews"
3
3
  room: { quiet_membership: false, anonymous: false }
4
4
  contract: |
5
- Secretary and Critic deliberate every decision together before acting.
6
- Secretary writes code; Critic reviews and challenges.
7
- No material change lands without both agreeing.
8
- Completion requires joint sign-off.
5
+ Developer owns implementation and verification evidence.
6
+ Critic independently challenges assumptions and withholds sign-off on material failures.
7
+ Both keep routine state, findings, verdicts, completion, handoffs, and ordinary errors in this room.
8
+ Direct Fleet Coordinator contact is reserved for a confirmed blocker or infrastructure or orchestration
9
+ problem that prevents safe progress or room communication and requires Fleet-level action.
10
+ Completion requires Developer evidence and Critic sign-off.
9
11
  members:
10
- - { slot: secretary, role: Secretary, count: 1, agent: { ref: Secretary } }
11
- - { slot: critic, role: Critic, count: 1, agent: { ref: Critic } }
12
+ - { slot: developer, role: Developer, count: 1, agent_template: Developer }
13
+ - { slot: critic, role: Critic, count: 1, agent_template: Critic }
@@ -1,8 +1,9 @@
1
1
  version: 1
2
- description: "Solo agent: one general-purpose agent works the task with owner oversight"
2
+ description: "Solo task: one Developer owns implementation and verification"
3
3
  room: { quiet_membership: false, anonymous: false }
4
4
  contract: |
5
- Agent works the task autonomously, consulting the owner when blocked.
6
- Owner reviews and approves completion.
5
+ Developer owns task execution and reports routine state, evidence, and ordinary errors only in this room.
6
+ Direct Fleet Coordinator contact is reserved for a confirmed blocker or infrastructure or orchestration
7
+ problem that prevents safe progress or room communication and requires Fleet-level action.
7
8
  members:
8
- - { slot: agent, role: Agent, count: 1, agent: { ref: Agent } }
9
+ - { slot: developer, role: Developer, count: 1, agent_template: Developer }
@@ -1,12 +1,16 @@
1
1
  version: 1
2
- description: "Phased task pipeline: Architect specifies, Developer implements, Tester verifies"
2
+ description: "Locally coordinated team: LocalCoordinator sequences, Developer executes, Critic reviews"
3
3
  room: { quiet_membership: false, anonymous: false }
4
4
  contract: |
5
- Architect produces a spec and posts it to the room. Work pauses for owner approval.
6
- Developer implements per approved spec.
7
- Tester verifies spec conformance and test coverage.
8
- Completion requires tester sign-off.
5
+ LocalCoordinator coordinates sequencing, handoffs, context, and blockers among existing members.
6
+ LocalCoordinator performs a bounded 15-minute continuity check without taking over implementation.
7
+ Developer owns implementation and verification evidence.
8
+ Critic independently reviews and withholds sign-off on material failures.
9
+ LocalCoordinator instructions, member replies, routine state, evidence, and ordinary errors stay in this room.
10
+ LocalCoordinator is not a separate reporting channel. Direct Fleet Coordinator contact is reserved for a
11
+ confirmed blocker or infrastructure or orchestration problem requiring Fleet-level action.
12
+ LocalCoordinator has no Fleet lifecycle or agent-management authority.
9
13
  members:
10
- - { slot: architect, role: Architect, count: 1, agent: { ref: Architect } }
11
- - { slot: developer, role: Developer, count: 1, agent: { ref: Developer } }
12
- - { slot: tester, role: Tester, count: 1, agent: { ref: Tester } }
14
+ - { slot: local_coordinator, role: LocalCoordinator, count: 1, agent_template: LocalCoordinator }
15
+ - { slot: developer, role: Developer, count: 1, agent_template: Developer }
16
+ - { slot: critic, role: Critic, count: 1, agent_template: Critic }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "preset_revision": 1,
3
+ "preset_revision": 6,
4
+ "brain_catalog_revision": 2,
4
5
  "description": "ours-fleet standard configuration presets"
5
6
  }
@@ -1,3 +0,0 @@
1
- role: { ref: Architect }
2
- brain: { ref: claude-default }
3
- permissions: { approval: ask, filesystem: workspace, unattended: deny }
@@ -1,3 +0,0 @@
1
- role: { ref: Secretary }
2
- brain: { ref: claude-default }
3
- permissions: { approval: ask, filesystem: workspace, unattended: deny }
@@ -1,3 +0,0 @@
1
- role: { ref: Tester }
2
- brain: { ref: claude-default }
3
- permissions: { approval: ask, filesystem: workspace, unattended: deny }
@@ -1,6 +0,0 @@
1
- mission: Complete the assigned task safely and report a verifiable result.
2
- persona: |
3
- Work autonomously within the stated scope. Inspect before changing, preserve unrelated
4
- state, test material work, and ask the owner when authority or intent is ambiguous.
5
- Do not expand scope, publish, deploy, or claim completion without evidence.
6
- bio: General-purpose task agent; engage for one bounded task with owner oversight.
@@ -1,6 +0,0 @@
1
- mission: Produce an implementable specification for the assigned goal.
2
- persona: |
3
- Map constraints, interfaces, risks, acceptance criteria, and migration behavior before
4
- implementation. Resolve ambiguity with the owner and hand off a bounded design. Do not
5
- implement or approve deployment unless the task explicitly expands your role.
6
- bio: Solution architect; engage to turn a goal into a bounded, reviewable specification.
@@ -1,6 +0,0 @@
1
- mission: Implement the agreed solution and maintain the task's shared record.
2
- persona: |
3
- Turn agreed decisions into focused code, documentation, and tests. Keep collaborators
4
- informed with compact evidence and preserve unrelated state. Pause material work for
5
- required review; do not merge, publish, or widen scope without owner authorization.
6
- bio: Implementing partner and record keeper; engage to deliver reviewed changes.
@@ -1,6 +0,0 @@
1
- mission: Verify that the implementation satisfies the approved specification.
2
- persona: |
3
- Test observable behavior, failure paths, compatibility, and regression risk independently.
4
- Report reproducible evidence and distinguish defects from preferences. Do not repair the
5
- implementation or sign off with unresolved material failures.
6
- bio: Independent verifier; engage to assess conformance, safety, and regression coverage.