overlord-cli 0.2611141137.0 → 0.2611151135.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.
@@ -1 +1 @@
1
- 0.3.60
1
+ 0.3.63
@@ -1,4 +1,4 @@
1
- contractVersion: "171.0.0"
1
+ contractVersion: "172.3.0"
2
2
  componentType: connector
3
3
  componentKey: antigravity
4
4
  label: "Antigravity Connector"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://antigravity.google/schemas/v1/plugin.json",
3
3
  "name": "overlord",
4
- "version": "0.3.60",
4
+ "version": "0.3.63",
5
5
  "description": "Chat-driven access to Overlord mission protocol workflows through skills and MCP.",
6
6
  "author": {
7
7
  "name": "Cooperativ",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord",
3
- "version": "0.3.60",
3
+ "version": "0.3.63",
4
4
  "description": "Overlord mission protocol workflow for Claude Code — attach/update/ask/deliver, slash commands, and hook-driven activity capture.",
5
5
  "author": {
6
6
  "name": "Cooperativ",
@@ -1,4 +1,4 @@
1
- contractVersion: "171.0.0"
1
+ contractVersion: "172.3.0"
2
2
  componentType: connector
3
3
  componentKey: claude
4
4
  label: "Claude Code Connector"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord",
3
- "version": "0.3.60",
3
+ "version": "0.3.63",
4
4
  "description": "Chat-driven access to Overlord mission protocol workflows with hook-driven activity capture.",
5
5
  "author": {
6
6
  "name": "Cooperativ",
@@ -1,4 +1,4 @@
1
- contractVersion: "171.0.0"
1
+ contractVersion: "172.3.0"
2
2
  componentType: connector
3
3
  componentKey: codex
4
4
  label: "Codex Connector"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord",
3
- "version": "0.3.60",
3
+ "version": "0.3.63",
4
4
  "description": "Overlord mission protocol workflow for Cursor — attach/update/ask/deliver, slash commands, MCP bridge, and follow-up capture.",
5
5
  "author": {
6
6
  "name": "Cooperativ",
@@ -1,4 +1,4 @@
1
- contractVersion: "171.0.0"
1
+ contractVersion: "172.3.0"
2
2
  componentType: connector
3
3
  componentKey: cursor
4
4
  label: "Cursor Connector"
@@ -1,4 +1,4 @@
1
- contractVersion: "171.0.0"
1
+ contractVersion: "172.3.0"
2
2
  componentType: connector
3
3
  componentKey: opencode
4
4
  label: "OpenCode Connector"
@@ -1,4 +1,4 @@
1
- contractVersion: "171.0.0"
1
+ contractVersion: "172.3.0"
2
2
  componentType: connector
3
3
  componentKey: pi
4
4
  label: "PI Connector"
@@ -387,7 +387,7 @@ When creating missions from within a repository:
387
387
  - Use `create --unassigned-to-project` only when the user deliberately requests an account-owned inbox capture.
388
388
  - Create multiple missions when each prompt represents a different feature or goal.
389
389
  - 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 '[{"objective":"..."}]'`.
390
- - `create` and `prompt` require `--objectives-json` or `--objectives-file` with an ordered array of `{ "objective": "...", "title": "...", "autoAdvance": true }` objects. A single objective is just an array with one item. `--auto-advance` / `--no-auto-advance` set the default when an item omits `autoAdvance` (default off).
390
+ - `create` and `prompt` require `--objectives-json` or `--objectives-file` with an ordered array of `{ "objective": "...", "title": "...", "description": "...", "autoAdvance": true }` objects. A single objective is just an array with one item. `--auto-advance` / `--no-auto-advance` set the default when an item omits `autoAdvance` (default off).
391
391
  - `add-objectives` uses the same per-item `autoAdvance` field and `--auto-advance` / `--no-auto-advance` default.
392
392
  - **Assign the agent on the objectives you are already creating.** Every objective item on `create`, `prompt`, and `add-objectives` takes optional `"agent"` (and `"model"`, which requires an agent), and `--objective-agent <id>` / `--objective-model <id>` set the default for items that name no `agent` of their own. Never create a mission and then append a second objective just to name an agent — that leaves a duplicate objective behind. Note this is **not** `--agent`, which records who created the mission (and, on `prompt`, which agent attaches).
393
393
  - To change auto-advance on an existing objective: `ovld protocol update-objective --objective-id <id> --auto-advance` or `--no-auto-advance`.
@@ -428,6 +428,18 @@ ovld protocol discover-project --directory /path/to/repo
428
428
 
429
429
  Use `--project-id` when the project ID or name is already known (names are unique per organization, matched case-insensitively). Use `--directory` to override cwd path matching; resource-directory matching automatically prefers the device the CLI is running on (its identity is sent as request headers). Set `OVERLORD_DEVICE_FINGERPRINT` to pin a stable execution-target identity across disposable containers that share one environment (AgentPod sets this). Set `OVERLORD_DEVICE_LABEL` to override the display name (defaults to hostname); alone it does not change the fingerprint.
430
430
 
431
+ #### Objective Descriptions
432
+
433
+ Each objective has **instructions** (the `objective` text) and an optional **description**. They have different readers:
434
+
435
+ - Instructions are for the executing agent. Make them complete; the agent receives nothing else.
436
+ - The description is for the person who decides whether to launch the objective. It is never sent to the executing agent. Write one to three short prose paragraphs in Simplified Technical English style: open with the goal, close with the done-when sentence, about 120 words (a target, not a cap).
437
+ - You may omit it. Overlord writes one automatically for long (280+ characters) agent-written objectives. Shorter instructions are shown in full and are not summarized.
438
+ - Pass it as per-item `"description"` in `--objectives-json` (`create`, `prompt`, `add-objectives`), as `--objective-description <text>` / `--objective-description-file <path|->` with a single `--objective`, or later with `ovld protocol update-objective --objective-id <id> --description <text>` (or `--description-file`). `--description-request summarize|regenerate|retry` asks Overlord to write one instead.
439
+ - Agents may change descriptions only on `draft` objectives (400 `description_not_editable`). An empty `--description` removes the summary.
440
+ - Style issues come back as advisory `warnings` (`description_style`); the text is stored as written. Fix them if you can, but they never block the write.
441
+ - **Never fight a person's removal.** If a person removed the summary, your text is not stored (warning `description_suppressed`) and summary requests are refused (409 `description_suppressed`). Do not retry or work around it; only the person's Summarize in the app turns summaries back on.
442
+
431
443
  ### Creating Projects
432
444
 
433
445
  Users and agents can create a project directly from the CLI. By default the current
@@ -529,4 +541,4 @@ objective** list grouped by resource. Prepare delivery cheaply:
529
541
  - [reference/context.md](reference/context.md) — Shared state, attachments, and large artifact policy
530
542
  - [reference/shell-escaping.md](reference/shell-escaping.md) — Heredoc input through explicit `--*-file -` flags
531
543
 
532
- <!-- version: 0.8.0 -->
544
+ <!-- version: 0.9.0 -->
@@ -183,9 +183,11 @@ When creating missions from within a repository:
183
183
  - Use `create --unassigned-to-project` only when the user deliberately requests an account-owned inbox capture.
184
184
  - Create multiple missions when each prompt represents a different feature or goal.
185
185
  - 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 '[{"objective":"..."}]'`.
186
- - `create` and `prompt` require `--objectives-json` or `--objectives-file` with an ordered array of `{ "objective": "...", "title": "...", "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).
186
+ - `create` and `prompt` require `--objectives-json` or `--objectives-file` with an ordered array of `{ "objective": "...", "title": "...", "description": "...", "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).
187
187
  - `add-objectives` uses the same per-item `autoAdvance` field and `--auto-advance` / `--no-auto-advance` mapping.
188
188
  - 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).
189
+ - Objective `"description"` (optional, on every item of `create`, `prompt`, and `add-objectives`) is the human-facing summary; the `objective` text stays the complete instruction for the executing agent, which never receives the description. Write one to three short prose paragraphs in Simplified Technical English style that open with the goal and close with the done-when sentence (about 120 words). Omit it and Overlord writes one for long (280+ characters) agent-written objectives. With a single `--objective`, use `--objective-description <text>` or `--objective-description-file <path|->` instead (rejected with `--objectives-json`). Style issues come back as advisory `warnings` (`{ code, message, rule?, excerpt?, suggestion? }`, code `description_style` or `description_suppressed`) on the matching created objective; the text is stored as written.
190
+ - `update-objective --description <text>` / `--description-file <path|->` sets the description (empty removes it); `--description-request summarize|regenerate|retry` asks Overlord to write one (it cannot be combined with `--description`). Agents may do both only on `draft` objectives (400 `description_not_editable`). `retry` re-requests only a failed generation (409 `description_not_failed`); instructions under 280 characters are not summarized (409 `description_not_eligible`). If a person removed the summary, agent text is not stored (warning `description_suppressed`) and summarize/regenerate are refused (409 `description_suppressed`); only the person's Summarize in the app turns summaries back on. The response carries a top-level `warnings` array.
189
191
  - Use `ovld protocol run-queue [--project-id <id|slug|name>|--objective-id <id>|--mission-id <id>] [--queue <id|name>]` to inspect live queues. Entry operations use `queue-objective --objective-id <id> [--queue <id|name>] [--after <queued-entry|objective>|--front|--position <rank>]`, `dequeue-objective --objective-id <id>`, and `reorder-run-queue --queue <id|name> --ordered-entries-json <json>`; they require `execution_request:create`. Queue-definition operations use `create-run-queue`, `update-run-queue`, `delete-run-queue`, and `reorder-project-run-queues`; they require `project:update` and therefore a full-scope token.
190
192
  - `record-work` creates exactly one **completed** objective from a single `--objective` (or positional / an `objective` field in `--payload-json`) plus a `--summary` and optional `declaredPaths` — it does not take `--objectives-json`. See [record-work.md](record-work.md).
191
193
 
@@ -212,6 +214,12 @@ ovld protocol add-objectives --mission-id 1:899 --objectives-json '[{"objective"
212
214
  ovld protocol update-objective --objective-id <objective-uuid> --auto-advance
213
215
  ```
214
216
 
217
+ ```bash
218
+ ovld protocol update-objective --objective-id <objective-uuid> --description-file - <<'EOF'
219
+ Add retry with backoff to the sync worker. ... The work is done when the retry test passes.
220
+ EOF
221
+ ```
222
+
215
223
  ### Record Completed Work
216
224
 
217
225
  Record already-finished chat work as a completed review mission in one call — no
@@ -13,7 +13,7 @@ ovld protocol attachment-download-url --session-key <sessionKey> --attachment-id
13
13
  ovld protocol attachment-download-url --session-key <sessionKey> --attachment-id <attachment-id> --output ./attachment.pdf
14
14
  ```
15
15
 
16
- The `attach` and `load-context` responses already include an `attachments` array plus `previousObjectives` and `futureObjectives` arrays — use those for `<attachment-id>` and `<objective-id>` values. The objective currently being executed is not repeated in those arrays; it is the top-level `objective`. `previousObjectives` are the objectives already worked (before the current one) and `futureObjectives` are the ones queued after it. Run `attachment-list` mid-session if new files have been uploaded since attach. `--mission-id` is optional for attachment calls when `--objective-id` is a full display ID that lets the server derive the mission; an attachment ID alone does not carry mission scope.
16
+ The `attach` and `load-context` responses already include an `attachments` array plus `previousObjectives` and `futureObjectives` arrays — use those for `<attachment-id>` and `<objective-id>` values. The objective currently being executed is not repeated in those arrays; it is the top-level `objective`. `previousObjectives` are positioned before the current objective and `futureObjectives` after it. Both are positional, not objective states: there is no `future` state, and because objectives can launch out of order a lower-position objective may still be an unstarted draft — check each item's `state`. Run `attachment-list` mid-session if new files have been uploaded since attach. `--mission-id` is optional for attachment calls when `--objective-id` is a full display ID that lets the server derive the mission; an attachment ID alone does not carry mission scope.
17
17
 
18
18
  Attachment HTTPS URLs require Overlord authentication. Use `--output` to save
19
19
  the bytes through the CLI's existing authenticated client; it creates a new
@@ -9,6 +9,7 @@
9
9
  - Normal delivery requires only a summary, written by behavior or component; there is no per-file explanation input, and the retired `changeRationales` / `changedFiles` fields are rejected. `overlord_update_session`, `overlord_deliver_session`, and `overlord_record_work` accept optional `declaredPaths`: a JSON array of repository-relative paths you know you changed that native capture missed, such as script outputs, deletes, and both rename endpoints. They are recorded as Declared evidence and never block the call.
10
10
  - `overlord_changes` (hosted MCP) reads one objective's synchronized file evidence across every session, resource, and device (`scope: "server_objective"`, rows capped at 200 with a pre-cap `total` and `truncated`, plus capture warnings). It needs no attached session, mutates nothing, and cannot see unsynchronized local rows; the local `ovld protocol changes --objective-id` read covers this checkout's pending evidence. The route is `POST /api/protocol/objective-changes`.
11
11
  - `overlord_create_mission` requires `projectId` for a mission, unless `unassignedToProject: true` deliberately requests an account-owned inbox item; omission of both is rejected. `overlord_create_inbox_item` is also explicit by name.
12
+ - Objective descriptions: `overlord_create_mission` and each `overlord_add_objectives` item take optional `description` (the human-facing summary; never sent to the executing agent, which reads only the instructions), and `overlord_update_objective` takes `description` (empty removes it) and `descriptionRequest` (`summarize` | `regenerate` | `retry`, not combined with `description`). The local shim forwards the same fields. Agents may write descriptions or request summaries only on `draft` objectives (400 `description_not_editable`); `retry` needs a failed generation (409 `description_not_failed`); instructions under 280 characters are not summarized (409 `description_not_eligible`). After a person removed the summary, agent text is not stored and summary requests are refused (`description_suppressed`). Responses carry advisory `warnings` (`{ code, message, rule?, excerpt?, suggestion? }`, code `description_style` or `description_suppressed`): per created objective on create/add, top-level on update. See the Objective Descriptions section of the skill for the writing style.
12
13
  - `overlord_record_work` (hosted MCP) and `ovld protocol record-work` (CLI) record already-completed chat work as a single review-column mission with a completed objective, optional declared paths, and the standard Gemini delivery summary — no `attach`/`deliver`. Both require an explicit project reference. The submission format is in [record-work.md](record-work.md). The route is `POST /api/protocol/record-work`.
13
14
  - `overlord_add_artifact` (hosted MCP) and `ovld protocol add-artifact` (CLI) create a mission artifact during a turn without delivering. Required: `type` / `--type`, `label` / `--label`, mission scope (`missionId` / `--mission-id`, or an objective display id as `objectiveId` / `--objective-id`), plus at least one of `contentText` / `--content-text`/`--content-text-file` or `externalUrl` / `--external-url`. Optional `sessionKey` / `--session-key` stamps session/objective provenance; `objectiveId` / `--objective-id` does the same when there is no live session, and the session key wins if both are given. Same service as REST `POST /api/missions/:id/artifacts`. The route is `POST /api/protocol/add-artifact`.
14
15
  - `overlord_update_artifact` (hosted MCP) and `ovld protocol update-artifact` (CLI) revise an existing mission artifact's label, Markdown content, and/or HTTP(S) URL in place. Required: `artifactId` / `--artifact-id`, `expectedRevision` / `--expected-revision`, and mission scope (`missionId` / `--mission-id`, or an objective display id as `objectiveId` / `--objective-id`). Provide at least one editable field. No session key is required. Same service as REST `PATCH /api/missions/:id/artifacts/:artifactId`. The route is `POST /api/protocol/update-artifact`.
@@ -326,6 +326,11 @@ const tools = [
326
326
  type: 'string',
327
327
  description: 'Initial objective text.'
328
328
  },
329
+ description: {
330
+ type: 'string',
331
+ description:
332
+ 'Optional human-facing summary of the objective for the people who decide whether to launch it: one to three short prose paragraphs in Simplified Technical English style that open with the goal and close with the done-when sentence, about 120 words. The objective text stays the complete instruction for the executing agent; the summary is never sent to it. Omit it and Overlord writes one for long agent-written objectives. Style issues come back as warnings; the text is stored as written.'
333
+ },
329
334
  title: {
330
335
  type: 'string',
331
336
  description: 'Optional mission title.'
@@ -519,10 +524,10 @@ const tools = [
519
524
  }
520
525
  },
521
526
  {
522
- name: 'overlord_reorder_future_objectives',
523
- title: 'Reorder future objectives',
527
+ name: 'overlord_reorder_objectives',
528
+ title: 'Reorder draft objectives',
524
529
  description:
525
- 'Use this only when the user explicitly asks to change the order of future objectives in one mission. Supply every future objective UUID in its complete desired top-to-bottom order; draft, active, and completed objectives cannot be moved by this tool.',
530
+ "Use this only when the user explicitly asks to change the order of one mission's unstarted objectives. Supply every draft and submitted objective UUID exactly once, in the complete desired top-to-bottom order; launching, active, and completed objectives keep their positions and cannot be listed. A stale set is rejected; reload and retry.",
526
531
  inputSchema: {
527
532
  type: 'object',
528
533
  properties: {
@@ -533,10 +538,10 @@ const tools = [
533
538
  orderedObjectiveIds: {
534
539
  type: 'array',
535
540
  description:
536
- 'Complete desired top-to-bottom UUID order of every objective currently in the future state.',
541
+ 'Complete desired top-to-bottom UUID order of every objective currently in the draft or submitted state.',
537
542
  items: {
538
543
  type: 'string',
539
- description: 'Future objective UUID.'
544
+ description: 'Draft or submitted objective UUID.'
540
545
  }
541
546
  }
542
547
  },
@@ -570,7 +575,7 @@ const tools = [
570
575
  objectives: {
571
576
  type: 'array',
572
577
  description:
573
- 'Objective objects with objective text and optional title, agent/model launch selection, resourceKey, and autoAdvance.',
578
+ 'Objective objects with objective text and optional title, description, agent/model launch selection, resourceKey, and autoAdvance.',
574
579
  items: {
575
580
  type: 'object',
576
581
  properties: {
@@ -582,6 +587,11 @@ const tools = [
582
587
  type: 'string',
583
588
  description: 'Optional objective title.'
584
589
  },
590
+ description: {
591
+ type: 'string',
592
+ description:
593
+ 'Optional human-facing summary of the objective for the people who decide whether to launch it: one to three short prose paragraphs in Simplified Technical English style that open with the goal and close with the done-when sentence, about 120 words. The objective text stays the complete instruction for the executing agent; the summary is never sent to it. Omit it and Overlord writes one for long agent-written objectives. Style issues come back as warnings; the text is stored as written.'
594
+ },
585
595
  agent: {
586
596
  type: 'string',
587
597
  description:
@@ -619,7 +629,7 @@ const tools = [
619
629
  name: 'overlord_update_objective',
620
630
  title: 'Update objective',
621
631
  description:
622
- 'Use this to rewrite an objective title in any state, turn auto-advance on or off, edit instruction text on a draft or future objective, and/or reassign the objective to another agent or to a person (agent manual, alias human).',
632
+ 'Use this to rewrite an objective title in any state, turn auto-advance on or off, edit instruction text or the human-facing description (summary) on a draft objective, request a generated summary on a draft objective, and/or reassign the objective to another agent or to a person (agent manual, alias human).',
623
633
  inputSchema: {
624
634
  type: 'object',
625
635
  properties: {
@@ -640,7 +650,18 @@ const tools = [
640
650
  instructionText: {
641
651
  type: 'string',
642
652
  description:
643
- 'Replacement instruction text. Allowed only when the objective is in draft or future state; blank clears the text in those states.'
653
+ 'Replacement instruction text. Allowed only when the objective is in draft state; blank clears the text.'
654
+ },
655
+ description: {
656
+ type: 'string',
657
+ description:
658
+ 'Replacement human-facing summary, allowed only when the objective is in draft state: one to three short prose paragraphs in Simplified Technical English style that open with the goal and close with the done-when sentence. It is never sent to the executing agent. An empty string removes the summary; Overlord then writes none until a person selects Summarize. When a person has removed the summary, your text is not stored and a description_suppressed warning is returned.'
659
+ },
660
+ descriptionRequest: {
661
+ type: 'string',
662
+ enum: ['summarize', 'regenerate', 'retry'],
663
+ description:
664
+ 'Ask Overlord to write the summary (summarize/regenerate) or to retry a failed generation (retry). Allowed only in draft state and only for instructions of at least 280 characters. Refused with description_suppressed when a person removed the summary: only a person can turn summaries back on. Cannot be combined with description.'
644
665
  },
645
666
  agent: {
646
667
  type: 'string',
@@ -1160,7 +1181,7 @@ const tools = [
1160
1181
  deferredWork: {
1161
1182
  type: 'array',
1162
1183
  description:
1163
- 'Each deferredWork item is one recommended objective outside this mission. Be very concise. title names the work in an imperative phrase. change states only the specific change that is needed. location says where to find it in the code: the file, function, component, or command. doneWhen states the observable result in one sentence. Do not add instructions on how to do the work, background, or rationale. The operator turns the item into an objective or a mission as written, so it must read as a task, not as a note. Omit queued future objectives, leftover current-objective work, and human follow-up (those belong in humanActions). Vague: { title: "Fix flaky test", change: "The sync worker has a flaky test.", location: "backend", doneWhen: "It passes." }. Good: { title: "Advance the fake clock before the second retry", change: "The test asserts the retry fired but never advances the fake clock between attempts, so it passes or fails on real time.", location: "backend/sync-worker.test.ts › retries after a 503", doneWhen: "The test passes 20 consecutive runs with the fake clock driving both attempts." }.',
1184
+ 'Each deferredWork item is one recommended objective outside this mission. Be very concise. title names the work in an imperative phrase. change states only the specific change that is needed. location says where to find it in the code: the file, function, component, or command. doneWhen states the observable result in one sentence. Do not add instructions on how to do the work, background, or rationale. The operator turns the item into an objective or a mission as written, so it must read as a task, not as a note. Omit work already queued as later objectives of this mission, leftover current-objective work, and human follow-up (those belong in humanActions). Vague: { title: "Fix flaky test", change: "The sync worker has a flaky test.", location: "backend", doneWhen: "It passes." }. Good: { title: "Advance the fake clock before the second retry", change: "The test asserts the retry fired but never advances the fake clock between attempts, so it passes or fails on real time.", location: "backend/sync-worker.test.ts › retries after a 503", doneWhen: "The test passes 20 consecutive runs with the fake clock driving both attempts." }.',
1164
1185
  items: {
1165
1186
  type: 'object',
1166
1187
  properties: {
@@ -1500,6 +1521,9 @@ async function callOverlordTool(name, args) {
1500
1521
  : {}),
1501
1522
  ...(args.unassignedToProject === true ? { 'unassigned-to-project': true } : {}),
1502
1523
  objective: requiredString(args, 'objective'),
1524
+ ...(typeof args.description === 'string'
1525
+ ? { 'objective-description': args.description }
1526
+ : {}),
1503
1527
  ...(optionalString(args, 'title') ? { title: requiredString(args, 'title') } : {}),
1504
1528
  ...(optionalString(args, 'resourceKey')
1505
1529
  ? { resource: requiredString(args, 'resourceKey') }
@@ -1551,11 +1575,11 @@ async function callOverlordTool(name, args) {
1551
1575
  : {})
1552
1576
  });
1553
1577
  }
1554
- if (name === 'overlord_reorder_future_objectives') {
1578
+ if (name === 'overlord_reorder_objectives') {
1555
1579
  if (!Array.isArray(args.orderedObjectiveIds)) {
1556
1580
  throw new Error('orderedObjectiveIds must be an array');
1557
1581
  }
1558
- return runProtocol('reorder-future-objectives', {
1582
+ return runProtocol('reorder-objectives', {
1559
1583
  'mission-id': requiredString(args, 'missionId'),
1560
1584
  'ordered-objective-ids-json': args.orderedObjectiveIds
1561
1585
  });
@@ -1572,8 +1596,19 @@ async function callOverlordTool(name, args) {
1572
1596
  const hasAutoAdvance = typeof args.autoAdvance === 'boolean';
1573
1597
  const hasInstructionText = typeof args.instructionText === 'string';
1574
1598
  const hasAgent = typeof args.agent === 'string';
1575
- if (!hasTitle && !hasAutoAdvance && !hasInstructionText && !hasAgent) {
1576
- throw new Error('Provide title, autoAdvance, instructionText, and/or agent');
1599
+ const hasDescription = typeof args.description === 'string';
1600
+ const hasDescriptionRequest = typeof args.descriptionRequest === 'string';
1601
+ if (
1602
+ !hasTitle &&
1603
+ !hasAutoAdvance &&
1604
+ !hasInstructionText &&
1605
+ !hasAgent &&
1606
+ !hasDescription &&
1607
+ !hasDescriptionRequest
1608
+ ) {
1609
+ throw new Error(
1610
+ 'Provide title, description, descriptionRequest, autoAdvance, instructionText, and/or agent'
1611
+ );
1577
1612
  }
1578
1613
  return runProtocol('update-objective', {
1579
1614
  'objective-id': requiredString(args, 'objectiveId'),
@@ -1586,6 +1621,9 @@ async function callOverlordTool(name, args) {
1586
1621
  ...(hasInstructionText
1587
1622
  ? { 'instruction-text': requiredString(args, 'instructionText') }
1588
1623
  : {}),
1624
+ // An empty description is Remove; pass it through verbatim.
1625
+ ...(hasDescription ? { description: args.description } : {}),
1626
+ ...(hasDescriptionRequest ? { 'description-request': args.descriptionRequest } : {}),
1589
1627
  // Validated by the protocol handler (model requires agent; manual takes none).
1590
1628
  ...(hasAgent ? { 'objective-agent': args.agent } : {}),
1591
1629
  ...(typeof args.model === 'string' ? { 'objective-model': args.model } : {}),
@@ -1862,7 +1900,7 @@ process.stdin.on('data', async chunk => {
1862
1900
  result: {
1863
1901
  protocolVersion: PROTOCOL_VERSION,
1864
1902
  capabilities: { tools: { listChanged: false } },
1865
- serverInfo: { name: 'overlord-__OVERLORD_ADAPTER_KEY__', version: '0.3.60' }
1903
+ serverInfo: { name: 'overlord-__OVERLORD_ADAPTER_KEY__', version: '0.3.63' }
1866
1904
  }
1867
1905
  });
1868
1906
  continue;
package/dist/index.js CHANGED
@@ -949,7 +949,6 @@ var init_search = __esm({
949
949
  "use strict";
950
950
  init_vocabulary();
951
951
  SEARCH_OBJECTIVE_STATES = vocabulary()([
952
- "future",
953
952
  "draft",
954
953
  "submitted",
955
954
  "launching",
@@ -44206,6 +44205,11 @@ function objectiveTitleText(objective) {
44206
44205
  if (!instruction) return null;
44207
44206
  return instruction.length > 80 ? `${instruction.slice(0, 77).trimEnd()}\u2026` : instruction;
44208
44207
  }
44208
+ function nextRunnableDraft(objectives) {
44209
+ return [...objectives].filter((objective) => objective.state === "draft" && objectiveInstruction(objective).trim()).sort(
44210
+ (a, b) => Number(a.position ?? 0) - Number(b.position ?? 0) || String(a.id ?? "").localeCompare(String(b.id ?? ""))
44211
+ )[0];
44212
+ }
44209
44213
  function pickLaunchObjective(objectives, objectiveId) {
44210
44214
  const pin = objectiveId?.trim();
44211
44215
  if (pin) {
@@ -44213,7 +44217,7 @@ function pickLaunchObjective(objectives, objectiveId) {
44213
44217
  (objective) => objective.id === pin || objective.displayId === pin || objective.displayKey === pin
44214
44218
  );
44215
44219
  }
44216
- return objectives.find((objective) => objective.state === "executing") ?? objectives.find((objective) => objective.state === "launching") ?? objectives.find((objective) => objective.state === "pending_delivery") ?? objectives.find((objective) => objective.state === "draft") ?? objectives.find((objective) => objective.state !== "complete") ?? objectives[0];
44220
+ return objectives.find((objective) => objective.state === "executing") ?? objectives.find((objective) => objective.state === "launching") ?? objectives.find((objective) => objective.state === "pending_delivery") ?? objectives.find((objective) => objective.state === "submitted") ?? nextRunnableDraft(objectives) ?? objectives.find((objective) => objective.state === "draft") ?? objectives.find((objective) => objective.state !== "complete") ?? objectives[0];
44217
44221
  }
44218
44222
  async function loadMissionContext({
44219
44223
  runtime,
@@ -45011,13 +45015,12 @@ Subcommands:
45011
45015
  load-context Read mission context without creating a session
45012
45016
  list-deliveries List normalized deliveries for one mission
45013
45017
  launch-objective Queue an objective for execution
45014
- reorder-future-objectives
45015
- Reorder all future objectives in one mission
45018
+ reorder-objectives Replace one mission's complete order of unstarted (draft/submitted) objectives
45016
45019
  search Find grouped mission/objective/delivery matches
45017
45020
  statuses List one project's ordered board columns
45018
45021
  discuss-objective Mark a draft objective as submitted (does not start execution)
45019
45022
  add-objectives Append ordered objectives to an existing mission
45020
- update-objective Set title, auto-advance, instruction text, and/or agent on an objective
45023
+ update-objective Set title, description, auto-advance, instruction text, and/or agent on an objective
45021
45024
  delete-missions Confirmed bulk soft-delete of missions
45022
45025
  delete-objectives Confirmed bulk soft-delete of objectives
45023
45026
  create Create a draft mission without attaching
@@ -45220,18 +45223,19 @@ launch-objective:
45220
45223
  The queued or already-active ExecutionRequestDto. Existing launchability,
45221
45224
  authorization, target resolution, sibling, and idempotency rules apply.
45222
45225
 
45223
- reorder-future-objectives:
45226
+ reorder-objectives:
45224
45227
  Purpose:
45225
- Change the order of one mission's future objectives without moving draft,
45226
- active, or complete objectives.
45228
+ Replace one mission's complete order of unstarted (draft/submitted)
45229
+ objectives. Launching, active, and complete objectives keep their positions.
45227
45230
  Required:
45228
45231
  --mission-id <uuid>
45229
45232
  --ordered-objective-ids-json <json>
45230
45233
  Returns:
45231
45234
  The mission's full ObjectiveDto[] list in its new order.
45232
45235
  Rules:
45233
- Supply every future objective UUID in the complete desired top-to-bottom order.
45234
- Duplicate, missing, and non-future objective ids are rejected.
45236
+ Supply every draft and submitted objective UUID exactly once, in the complete
45237
+ desired top-to-bottom order; the head may move. Duplicate, missing, extra, and
45238
+ non-queued objective ids are rejected; a stale set is rejected (reload and retry).
45235
45239
 
45236
45240
  run-queue:
45237
45241
  Purpose:
@@ -45466,20 +45470,26 @@ add-objectives:
45466
45470
  Default launch selection for items that name no "agent" of their own.
45467
45471
  --objective-model requires --objective-agent.
45468
45472
  Notes:
45469
- Each item is { "objective": "...", "title": "...", "agent": "codex",
45470
- "model": "gpt-6.1-terra", "autoAdvance": true|false, "resourceKey": "..." }.
45473
+ Each item is { "objective": "...", "title": "...", "description": "...",
45474
+ "agent": "codex", "model": "gpt-6.1-terra", "autoAdvance": true|false,
45475
+ "resourceKey": "..." }.
45471
45476
  model requires agent. Per-item autoAdvance and agent win over the flags.
45477
+ "description" is the optional human-facing summary (see create); style
45478
+ issues come back as "warnings" on the matching created objective.
45472
45479
  Use agent "manual" (alias "human") to assign an objective to a person; it
45473
45480
  takes no model and is never launched.
45474
45481
 
45475
45482
  update-objective:
45476
45483
  Purpose:
45477
- Rewrite an objective title, queue or dequeue compatibility auto-advance,
45478
- edit instruction text, and/or reassign the agent on an existing objective.
45484
+ Rewrite an objective title or description, queue or dequeue compatibility
45485
+ auto-advance, edit instruction text, request a generated summary, and/or
45486
+ reassign the agent on an existing objective.
45479
45487
  Required:
45480
45488
  --objective-id <id>
45481
45489
  At least one of:
45482
45490
  --title <text>
45491
+ --description <text> or --description-file <path|->
45492
+ --description-request summarize | regenerate | retry
45483
45493
  --auto-advance or --no-auto-advance
45484
45494
  --instruction-text <text> or --instruction-text-file <path|->
45485
45495
  --objective-agent <id>
@@ -45494,11 +45504,24 @@ update-objective:
45494
45504
  Run Queue holds it as blocked until an agent is assigned.
45495
45505
  Title edits are allowed in any objective state. An empty title clears the
45496
45506
  custom title and restores instruction-derived presentation.
45497
- Instruction text may be edited only when the objective is in draft or future state.
45498
- Blank instruction text is allowed in those states.
45507
+ Instruction text may be edited only when the objective is in draft state.
45508
+ Blank instruction text is allowed in that state.
45509
+ The description (and --description-request) may be changed by an agent
45510
+ only in draft state; people edit descriptions in any state in the app.
45511
+ An empty --description removes the summary: Overlord then writes none,
45512
+ even after instruction edits, until a person selects Summarize. While a
45513
+ person's removal is in force, agent text is not stored (warning
45514
+ description_suppressed) and summary requests are refused (409).
45515
+ --description-request summarize|regenerate asks Overlord to write the
45516
+ summary; retry re-requests a failed one. Instructions shorter than 280
45517
+ characters are shown in full and are not summarized (409
45518
+ description_not_eligible).
45499
45519
  Returns:
45500
45520
  The updated objective JSON, including assignedAgent, model, reasoningEffort,
45501
- and resourceKey. autoAdvance is deprecated and derived from live queueEntry membership.
45521
+ resourceKey, description and its summary state (descriptionSource,
45522
+ descriptionStatus, descriptionSuppressed), plus "warnings": advisory
45523
+ description_style issues and description_suppressed. autoAdvance is
45524
+ deprecated and derived from live queueEntry membership.
45502
45525
 
45503
45526
  delete-missions:
45504
45527
  Purpose:
@@ -45549,6 +45572,17 @@ create:
45549
45572
  objective just to name an agent. This is not --agent, which records
45550
45573
  creation provenance. Seeds only items with no "agent" of their own;
45551
45574
  --objective-model requires --objective-agent.
45575
+ --objective-description <text> or --objective-description-file <path|->
45576
+ Human-facing summary of the single --objective (see Notes). With
45577
+ --objectives-json, set "description" on each item instead.
45578
+ Notes:
45579
+ The objective text is the complete instruction for the executing agent.
45580
+ A description is a short summary for the people who decide whether to
45581
+ launch it: one to three prose paragraphs in Simplified Technical English
45582
+ style that open with the goal and close with the done-when sentence (about
45583
+ 120 words). It is never sent to the executing agent. Omit it and Overlord
45584
+ writes one for long agent-written objectives. Style issues come back as
45585
+ "warnings" on the created objective; the text is stored as written.
45552
45586
 
45553
45587
  prompt:
45554
45588
  Purpose:
@@ -45568,6 +45602,9 @@ prompt:
45568
45602
  --objective-agent <id> / --objective-model <id>
45569
45603
  Assign a launch agent (and its model) to the objectives created here.
45570
45604
  Distinct from --agent, which names the attaching agent for the session.
45605
+ --objective-description <text> or --objective-description-file <path|->
45606
+ Human-facing summary of the single --objective (see Notes). With
45607
+ --objectives-json, set "description" on each item instead.
45571
45608
  Returns:
45572
45609
  New mission/session JSON plus SESSION_KEY on stderr when available.
45573
45610
 
@@ -45921,7 +45958,7 @@ var init_protocol_help = __esm({
45921
45958
  "read-context",
45922
45959
  "record-work",
45923
45960
  "register-target",
45924
- "reorder-future-objectives",
45961
+ "reorder-objectives",
45925
45962
  "reorder-project-run-queues",
45926
45963
  "reorder-run-queue",
45927
45964
  "run-queue",
@@ -47821,6 +47858,7 @@ async function runManagementCommand({
47821
47858
  withAgentSelection({
47822
47859
  objective,
47823
47860
  title: flagValue(parsed.flags, "--title") ?? null,
47861
+ ...flagValue(parsed.flags, "--objective-description") !== void 0 ? { description: flagValue(parsed.flags, "--objective-description") } : {},
47824
47862
  ...autoAdvance !== void 0 ? { autoAdvance } : {},
47825
47863
  ...flagValue(parsed.flags, "--resource") ? { resourceKey: flagValue(parsed.flags, "--resource") } : {}
47826
47864
  })
@@ -48711,7 +48749,10 @@ var init_commands = __esm({
48711
48749
  "--ordered-queues-file",
48712
48750
  "--ordered-objective-ids-file",
48713
48751
  "--mission-ids-file",
48714
- "--objective-ids-file"
48752
+ "--objective-ids-file",
48753
+ "--instruction-text-file",
48754
+ "--description-file",
48755
+ "--objective-description-file"
48715
48756
  ];
48716
48757
  SESSION_KEY_SUBCOMMANDS = /* @__PURE__ */ new Set([
48717
48758
  "add-artifact",
@@ -49021,7 +49062,7 @@ Agents:
49021
49062
  ${primaryCommand} launch <agent> --mission-id <missionId>
49022
49063
  Use ${primaryCommand} protocol help for the full mission lifecycle reference.
49023
49064
  Key protocol commands: auth-status, discover-project, create, prompt, attach,
49024
- connect, load-context, list-deliveries, launch-objective, reorder-future-objectives,
49065
+ connect, load-context, list-deliveries, launch-objective, reorder-objectives,
49025
49066
  update, heartbeat, ask, deliver.
49026
49067
 
49027
49068
  Protocol (JSON output by default):
@@ -49035,7 +49076,7 @@ Protocol (JSON output by default):
49035
49076
  ${primaryCommand} protocol load-context --mission-id <id>
49036
49077
  ${primaryCommand} protocol list-deliveries --mission-id <id>
49037
49078
  ${primaryCommand} protocol launch-objective --objective-id <id> --agent <agent>
49038
- ${primaryCommand} protocol reorder-future-objectives --mission-id <id> --ordered-objective-ids-json '["<id>"]'
49079
+ ${primaryCommand} protocol reorder-objectives --mission-id <id> --ordered-objective-ids-json '["<id>"]'
49039
49080
  ${primaryCommand} protocol help
49040
49081
 
49041
49082
  After installation, run \`${primaryCommand} auth login\` to choose your backend.