overlord-cli 0.2611272048.0 → 0.2611291037.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 (43) hide show
  1. package/README.md +1 -1
  2. package/dist/connectors/VERSION +1 -1
  3. package/dist/connectors/adapters/antigravity/conformance-manifest.yaml +1 -1
  4. package/dist/connectors/adapters/antigravity/plugin.json +1 -1
  5. package/dist/connectors/adapters/antigravity/skills/add-objectives.md +1 -1
  6. package/dist/connectors/adapters/antigravity/skills/create.md +4 -3
  7. package/dist/connectors/adapters/antigravity/skills/overlord-mission/SKILL.md +5 -5
  8. package/dist/connectors/adapters/antigravity/skills/prompt.md +4 -3
  9. package/dist/connectors/adapters/antigravity/skills/record-work.md +2 -3
  10. package/dist/connectors/adapters/claude/.claude-plugin/plugin.json +1 -1
  11. package/dist/connectors/adapters/claude/commands/add-objectives.md +1 -1
  12. package/dist/connectors/adapters/claude/commands/create.md +4 -3
  13. package/dist/connectors/adapters/claude/commands/prompt.md +4 -3
  14. package/dist/connectors/adapters/claude/commands/record-work.md +2 -2
  15. package/dist/connectors/adapters/claude/conformance-manifest.yaml +1 -1
  16. package/dist/connectors/adapters/claude/skills/overlord-mission/SKILL.md +8 -4
  17. package/dist/connectors/adapters/codex/.codex-plugin/plugin.json +1 -1
  18. package/dist/connectors/adapters/codex/conformance-manifest.yaml +1 -1
  19. package/dist/connectors/adapters/codex/skills/overlord-mission/SKILL.md +8 -4
  20. package/dist/connectors/adapters/codex-app-server/CAPABILITIES.md +2 -2
  21. package/dist/connectors/adapters/codex-app-server/conformance-manifest.yaml +2 -2
  22. package/dist/connectors/adapters/codex-app-server/fixtures/control-plane-delivery-projection.json +14 -0
  23. package/dist/connectors/adapters/codex-app-server/fixtures/human-answers-control-plane-cards.json +1 -3
  24. package/dist/connectors/adapters/codex-app-server/harness-capabilities.yaml +4 -1
  25. package/dist/connectors/adapters/cursor/.cursor-plugin/plugin.json +1 -1
  26. package/dist/connectors/adapters/cursor/commands/add-objectives.md +1 -1
  27. package/dist/connectors/adapters/cursor/commands/create.md +4 -3
  28. package/dist/connectors/adapters/cursor/commands/prompt.md +4 -3
  29. package/dist/connectors/adapters/cursor/commands/record-work.md +1 -1
  30. package/dist/connectors/adapters/cursor/conformance-manifest.yaml +1 -1
  31. package/dist/connectors/adapters/cursor/skills/overlord-mission/SKILL.md +4 -4
  32. package/dist/connectors/adapters/opencode/conformance-manifest.yaml +1 -1
  33. package/dist/connectors/adapters/pi/conformance-manifest.yaml +1 -1
  34. package/dist/connectors/adapters/pi/skills/overlord-mission/SKILL.md +3 -3
  35. package/dist/connectors/core/overlord-mission/SKILL.md +22 -7
  36. package/dist/connectors/core/overlord-mission/reference/cli.md +34 -4
  37. package/dist/connectors/core/overlord-mission/reference/mcp.md +19 -0
  38. package/dist/connectors/core/overlord-mission/reference/record-work.md +3 -3
  39. package/dist/connectors/core/scripts/overlord-mcp.mjs +108 -1
  40. package/dist/connectors/docs/testing.md +40 -0
  41. package/dist/index.js +2515 -2495
  42. package/dist/index.js.map +4 -4
  43. package/package.json +1 -1
@@ -182,7 +182,7 @@ When creating missions from within a repository:
182
182
  - Use `create --unassigned-to-project` only when the user deliberately requests an account-owned inbox capture.
183
183
  - Create multiple missions when each prompt represents a different feature or goal.
184
184
  - Add objectives to the same mission when each prompt is a sequential step toward the same feature or goal; use `ovld protocol add-objectives --mission-id <mission_id> --objectives-json '[{"instructions":"..."}]'`.
185
- - `create` and `prompt` require `--objectives-json` or `--objectives-file` with an ordered array of `{ "instructions": "...", "title": "...", "summary": "...", "autoAdvance": true }` objects. A single objective is just an array with one item. `--auto-advance` / `--no-auto-advance` map each opted-in item to authoritative Run Queue membership (default off).
185
+ - `create` and `prompt` accept `--objective-instructions` or `--objective-instructions-file` for one objective and `--objective-summary` or `--objective-summary-file` for its optional overview. All three authoring commands (`create`, `prompt`, `add-objectives`) accept `--objectives-json` or `--objectives-file` with an ordered array of `{ "instructions": "...", "title": "...", "summary": "...", "autoAdvance": true }` objects. An array can also contain a single item. `--auto-advance` / `--no-auto-advance` map each opted-in item to authoritative Run Queue membership (default off).
186
186
  - `add-objectives` uses the same per-item `autoAdvance` field and `--auto-advance` / `--no-auto-advance` mapping.
187
187
  - Every objective item on `create`, `prompt`, and `add-objectives` also takes optional `"agent"` and `"model"` (a model requires an agent), and `--objective-agent <id>` / `--objective-model <id>` set the default for items that name no `agent` of their own. Assign the agent on the objectives you are already creating rather than appending a second objective just to name one. `--objective-agent` is distinct from `--agent`, which records creation provenance (and, on `prompt`, the attaching agent).
188
188
  - Each item carries `"instructions"` (required): the complete brief the executing agent receives, usually the LONG text. Optional `"summary"` is a short overview for people, usually the SHORT text, never sent to the agent: one to three prose paragraphs in Simplified Technical English style that open with the goal and close with the done-when sentence (about 120 words), with no headings or numbered steps. Omit it and Overlord writes one for long (280+ characters) agent-written objectives. With `--objective-instructions <text>` (or `--objective-instructions-file <path|->`), use `--objective-summary <text>` or `--objective-summary-file <path|->` (rejected with `--objectives-json`). The old names `--objective`, `--objective-description` and item keys `objective` / `description` are refused. A summary that looks swapped with its instructions (3x as long and 400+ characters, or a weaker signal) is stored and returns an `objective_fields_swapped` warning naming both fields; fix it with `update-objective`. Style issues come back as advisory `warnings` (`{ code, message, rule?, excerpt?, suggestion? }`, code `summary_style`, `summary_suppressed` or `objective_fields_swapped`) on the matching created objective; the text is stored as written.
@@ -203,6 +203,13 @@ ovld protocol create --agent <agent-identifier> \
203
203
 
204
204
  ```bash
205
205
  ovld protocol prompt --project-id <project-id> --agent <agent-identifier> --objectives-json '[{"instructions":"Implement feature X"}]'
206
+
207
+ # Read a single brief and its optional overview from files.
208
+ ovld protocol create --project-id <project-id> \
209
+ --objective-instructions-file <brief-file> --objective-summary-file <overview-file>
210
+
211
+ # Read the ordered array of objective items from a file.
212
+ ovld protocol add-objectives --mission-id 1:899 --objectives-file <objectives-file>
206
213
  ```
207
214
 
208
215
  ```bash
@@ -210,11 +217,13 @@ ovld protocol add-objectives --mission-id 1:899 --objectives-json '[{"instructio
210
217
  ```
211
218
 
212
219
  ```bash
213
- ovld protocol update-objective --objective-id <objective-uuid> --auto-advance
220
+ ovld protocol update-objective --objective-id coo:756.k7xm --auto-advance
221
+ ovld protocol update-objective --objective-id coo:756.k7xm \
222
+ --instruction-text-file <brief-file> --summary-file <overview-file>
214
223
  ```
215
224
 
216
225
  ```bash
217
- ovld protocol update-objective --objective-id <objective-uuid> --summary-file - <<'EOF'
226
+ ovld protocol update-objective --objective-id coo:756.k7xm --summary-file - <<'EOF'
218
227
  Add retry with backoff to the sync worker. ... The work is done when the retry test passes.
219
228
  EOF
220
229
  ```
@@ -228,7 +237,7 @@ Declared evidence, lands it in review, and runs the Gemini delivery summary. An
228
237
  without a `baseContentRevision`.
229
238
 
230
239
  ```bash
231
- ovld protocol record-work --payload-file - <<'EOF'
240
+ ovld protocol record-work --project-id <project-id> --payload-file - <<'EOF'
232
241
  {
233
242
  "objective": "Add a CSV export button to the reports page.",
234
243
  "summary": "Added a CSV export control and the serializer behind it.",
@@ -296,3 +305,24 @@ When you need a project ID for a protocol command and the mission prompt did not
296
305
  3. As a last resort, try `workingDirectory` / `working_directory` resolution. If a device fingerprint is available, include `deviceFingerprint` / `device_fingerprint`.
297
306
 
298
307
  A checkout may be linked to more than one project. Default mission association to the `isPrimary: true` project — that is whichever project most recently set this resource as primary. `ovld protocol discover-project` returns that project plus additive `linkedProjects`. Only ask the user which linked project to use when you need a different one than that default or the canonical primary entry is missing.
308
+
309
+ ### Coordinate a bounded run
310
+
311
+ Use these commands from a coordinator chat. The example selects two objectives,
312
+ runs one at a time and stops to review the first. The preview reports the
313
+ assignments and queue effects. Use the run ID it returns after reviewing the scope.
314
+
315
+ ```bash
316
+ ovld protocol mission-status --mission-id "$MISSION_ID"
317
+ ovld protocol mission-run --mission-id "$MISSION_ID" --action preview \
318
+ --objectives-json '["coo:756.k7xm","coo:756.p4jt"]' \
319
+ --reviews-json '["coo:756.k7xm"]' --parallelism 1
320
+ ovld protocol mission-run --mission-id "$MISSION_ID" --action start --run-id "$RUN_ID"
321
+ ovld protocol mission-status --mission-id "$MISSION_ID" --cursor "$CURSOR" --wait-ms 5000
322
+ ovld protocol mission-run --mission-id "$MISSION_ID" --action inspect --run-id "$RUN_ID"
323
+ ovld protocol load-context --objective-id coo:756.k7xm
324
+ ovld protocol list-deliveries --mission-id "$MISSION_ID"
325
+ # After review approval, use the stopped objective's UUID from the run plan.
326
+ ovld protocol mission-run --mission-id "$MISSION_ID" --action resume \
327
+ --run-id "$RUN_ID" --approve-review "$REVIEW_OBJECTIVE_UUID"
328
+ ```
@@ -20,3 +20,22 @@
20
20
  - Run Queue MCP stays a thin Protocol surface: `overlord_list_run_queues` reads compact/full state; `overlord_reorder_run_queue` atomically replaces one queue's complete entry order; and `overlord_queue_objective` accepts `objectiveId`, optional `queue` / `after` / `front` / `position`, and `remove`. `overlord_manage_run_queue` creates, updates, deletes, and reorders queue definitions. Entry operations use `execution_request:create`; definition operations use `project:update`, so they require a full-scope token. Instruction text remains editable only in `draft` or `future` state. The routes are `POST /api/protocol/run-queue`, `reorder-run-queue`, `queue-objective`, `dequeue-objective`, `create-run-queue`, `update-run-queue`, `delete-run-queue`, `reorder-project-run-queues`, and `update-objective`.
21
21
  - Objective attachment tools follow the `<verb>_<noun>` MCP naming: `list_attachments`, `prepare_attachment_upload`, `finalize_attachment_upload`, `get_attachment_download_url`, `upload_attachment_file`. CLI commands use `attachment-*`. `mission_id` / `missionId` is optional for attachment calls when the objective or attachment id lets the server derive mission scope.
22
22
  - "Artifacts" may be published mid-turn with `add-artifact` / `overlord_add_artifact`, revised with `update-artifact` / `overlord_update_artifact`, or attached at `deliver` time (next_steps, test_results, migration, decision, note, url) — not user-uploaded files. Files attached by users live on objectives via the attachment tools above.
23
+
24
+ ## Coordinate a bounded run
25
+
26
+ These mission tools use the same arguments in the local connector and hosted MCP.
27
+
28
+ - `overlord_mission_status({ missionId })` gives the full roster and a cursor. Repeat
29
+ with `{ missionId, cursor, waitMs: 5000 }` to wait for a change. Follow the
30
+ reported blocker actor, actions and human route. Use the mission or worker
31
+ terminal for a native approval.
32
+ - `overlord_mission_run({ missionId, action: "preview", objectiveIds, reviewAfter, parallelism })`
33
+ previews an ordered scope. Check assignments, targets, queue effects and review stops.
34
+ Dispatch the accepted preview using `{ missionId, action: "start", runId }`.
35
+ - For a handoff, share the mission ID, run ID, latest cursor and any pending decision.
36
+ In a fresh chat, use `{ missionId, action: "inspect", runId }` and resume status
37
+ waits with the cursor. After review approval, use
38
+ `{ missionId, action: "resume", runId, approveReview: objectiveUuid }`.
39
+ - Compare the full brief in `overlord_load_mission_context({ objectiveId })` using
40
+ an objective display ID with the matching evidence in
41
+ `overlord_list_deliveries({ missionId })`. Report any unverified acceptance criteria.
@@ -86,7 +86,7 @@ identical across the CLI (`--payload-file -`) and the hosted MCP tool
86
86
  Stream the envelope on stdin with a single-quoted heredoc (safe for backticks/`$vars`):
87
87
 
88
88
  ```bash
89
- ovld protocol record-work --payload-file - <<'EOF'
89
+ ovld protocol record-work --project-id <project-id> --payload-file - <<'EOF'
90
90
  {
91
91
  "objective": "Add a CSV export button to the reports page.",
92
92
  "summary": "Added a CSV export control and the serializer behind it.",
@@ -95,8 +95,8 @@ ovld protocol record-work --payload-file - <<'EOF'
95
95
  EOF
96
96
  ```
97
97
 
98
- - Project resolution: matches the current directory to a project resource. Pass
99
- `--project-id <id-or-name>` when running outside a linked checkout or to be explicit.
98
+ - Pass the required `--project-id <id-or-name>`. Run `ovld protocol discover-project`
99
+ first when the project is known only from the checkout.
100
100
  - The command prints the new mission (and `MISSION_ID`); report it back to the user.
101
101
  - Inline `--*-json` flags are capped (~8 KB) — prefer `--payload-file -` on stdin.
102
102
 
@@ -744,6 +744,90 @@ const tools = [
744
744
  openWorldHint: false
745
745
  }
746
746
  },
747
+ {
748
+ name: 'overlord_mission_run',
749
+ title: 'Coordinate a bounded mission run',
750
+ description:
751
+ 'Use this to preview ordered objective IDs, worker and target assignments, queue effects and review stops. Start the accepted preview by runId. Inspect from a fresh chat or resume the named review with approveReview.',
752
+ inputSchema: {
753
+ type: 'object',
754
+ properties: {
755
+ missionId: {
756
+ type: 'string',
757
+ description: 'Mission UUID or display id.'
758
+ },
759
+ action: {
760
+ type: 'string',
761
+ enum: ['preview', 'start', 'inspect', 'resume']
762
+ },
763
+ objectiveIds: {
764
+ type: 'array',
765
+ maxItems: 100,
766
+ items: {
767
+ type: 'string'
768
+ }
769
+ },
770
+ reviewAfter: {
771
+ type: 'array',
772
+ maxItems: 100,
773
+ items: {
774
+ type: 'string'
775
+ }
776
+ },
777
+ parallelism: {
778
+ type: 'integer',
779
+ minimum: 1,
780
+ maximum: 100
781
+ },
782
+ runId: {
783
+ type: 'string',
784
+ description: 'Durable preview/run UUID.'
785
+ },
786
+ approveReview: {
787
+ type: 'string',
788
+ description: 'Objective UUID of the completed review stop.'
789
+ }
790
+ },
791
+ required: ['missionId', 'action'],
792
+ additionalProperties: false
793
+ },
794
+ annotations: {
795
+ readOnlyHint: false,
796
+ destructiveHint: false,
797
+ openWorldHint: false
798
+ }
799
+ },
800
+ {
801
+ name: 'overlord_mission_status',
802
+ title: 'Read or wait for mission status',
803
+ description:
804
+ 'Use this to read every objective, including queue and launch blockers, responsible actors, available actions, human decision routes and worker answer delivery. Hand native approvals to a person. Reuse the cursor to check for changes or wait up to five seconds. On cursor_expired, read again without a cursor.',
805
+ inputSchema: {
806
+ type: 'object',
807
+ properties: {
808
+ missionId: {
809
+ type: 'string',
810
+ description: 'Mission UUID or display id.'
811
+ },
812
+ cursor: {
813
+ type: 'string',
814
+ description: 'Opaque cursor from a previous read of this mission.'
815
+ },
816
+ waitMs: {
817
+ type: 'integer',
818
+ minimum: 0,
819
+ maximum: 5000
820
+ }
821
+ },
822
+ required: ['missionId'],
823
+ additionalProperties: false
824
+ },
825
+ annotations: {
826
+ readOnlyHint: true,
827
+ destructiveHint: false,
828
+ openWorldHint: false
829
+ }
830
+ },
747
831
  {
748
832
  name: 'overlord_mission_items',
749
833
  title: 'Read full mission items',
@@ -2221,6 +2305,29 @@ async function callOverlordTool(name, args) {
2221
2305
  ...(args.offset !== undefined ? { offset: String(args.offset) } : {})
2222
2306
  });
2223
2307
  }
2308
+ if (name === 'overlord_mission_run')
2309
+ return runProtocol('mission-run', {
2310
+ 'mission-id': requiredString(args, 'missionId'),
2311
+ action: requiredString(args, 'action'),
2312
+ ...(args.objectiveIds !== undefined
2313
+ ? { 'objectives-json': JSON.stringify(args.objectiveIds) }
2314
+ : {}),
2315
+ ...(args.reviewAfter !== undefined
2316
+ ? { 'reviews-json': JSON.stringify(args.reviewAfter) }
2317
+ : {}),
2318
+ ...(args.parallelism !== undefined ? { parallelism: String(args.parallelism) } : {}),
2319
+ ...(args.runId !== undefined ? { 'run-id': requiredString(args, 'runId') } : {}),
2320
+ ...(args.approveReview !== undefined
2321
+ ? { 'approve-review': requiredString(args, 'approveReview') }
2322
+ : {})
2323
+ });
2324
+ if (name === 'overlord_mission_status') {
2325
+ return runProtocol('mission-status', {
2326
+ 'mission-id': requiredString(args, 'missionId'),
2327
+ ...(args.cursor !== undefined ? { cursor: requiredString(args, 'cursor') } : {}),
2328
+ ...(args.waitMs !== undefined ? { 'wait-ms': String(args.waitMs) } : {})
2329
+ });
2330
+ }
2224
2331
  if (name === 'overlord_mission_items') {
2225
2332
  return runProtocol('mission-items', {
2226
2333
  ...missionScopeFlags(args),
@@ -3183,7 +3290,7 @@ async function handleMessage(message) {
3183
3290
  capabilities: STATUS_LINE_ENABLED
3184
3291
  ? { tools: { listChanged: false }, resources: { listChanged: false } }
3185
3292
  : { tools: { listChanged: false } },
3186
- serverInfo: { name: 'overlord-__OVERLORD_ADAPTER_KEY__', version: '0.3.84' }
3293
+ serverInfo: { name: 'overlord-__OVERLORD_ADAPTER_KEY__', version: '0.3.88' }
3187
3294
  }
3188
3295
  });
3189
3296
  return;
@@ -184,3 +184,43 @@ connectors/
184
184
  core-extends.test.ts # E
185
185
  admission.test.ts # F
186
186
  ```
187
+
188
+ ## Coordinator walkthrough
189
+
190
+ The same walkthrough runs separately for each coordinator path against a test
191
+ database. It selects two objectives for a CSV export check, assigns a Claude
192
+ worker to report the header and a Codex worker to report the row count, and
193
+ leaves a third objective idle.
194
+
195
+ | Coordinator | Tool path exercised | Client evidence |
196
+ | --- | --- | --- |
197
+ | Claude | MCP stdio frames to the rendered Claude shim in mission-tool mode, then the repository CLI and local protocol HTTP endpoint | The test driver supplies the tool calls. Claude Code's plugin registers this shim in hooks mode. Its normal shell path uses the same CLI. |
198
+ | ChatGPT | MCP JSON-RPC over HTTP to the hosted `/mcp` handler in the test server | The test driver supplies the tool calls under a fixture workspace identity. |
199
+
200
+ Both paths assert that the full roster and selected briefs are readable, the
201
+ preview lists the workers and review stop in order, starting again preserves the
202
+ same execution request, and a cursor returns an unchanged timeout before
203
+ dispatch. The first request is visible before worker attachment. Once attached,
204
+ the worker's question identifies the terminal handoff and exposes no coordinator
205
+ answer action. After the first delivery, the saved run ID and cursor recover the
206
+ review stop through fresh calls. Review approval releases the second objective.
207
+ The final check matches the two reported CSV values and delivery IDs against
208
+ the original briefs and verifies the third objective stayed idle.
209
+
210
+ The fixture drives worker attachment, the terminal handoff, approval and
211
+ delivery. It uses synthetic CSV evidence and calls the queue sweep directly.
212
+ The walkthrough covers the connector, CLI, hosted handler and persisted
213
+ lifecycle. Native Claude and ChatGPT conversations, hosted OAuth, actual runner
214
+ process launch and a person's terminal interaction require live evidence.
215
+
216
+ Run from the repository root:
217
+
218
+ ```bash
219
+ node --import tsx --test backend/mission-status.postgres-conformance.test.ts \
220
+ backend/mission-run.postgres-conformance.test.ts
221
+ ```
222
+
223
+ The default run covers SQLite. Set `TEST_DATABASE_URL` to an isolated Postgres
224
+ test instance to repeat the checks there. The assembled CLI adapter test
225
+ `cli/test/connector-core-render.test.ts` reads the packaged manifests, renders
226
+ managed Markdown and checks the authoring examples with the protocol parsers.