overlord-cli 0.2611141623.0 → 0.2611160906.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 (23) hide show
  1. package/dist/connectors/VERSION +1 -1
  2. package/dist/connectors/adapters/antigravity/conformance-manifest.yaml +1 -1
  3. package/dist/connectors/adapters/antigravity/plugin.json +1 -1
  4. package/dist/connectors/adapters/antigravity/skills/record-work.md +1 -0
  5. package/dist/connectors/adapters/claude/.claude-plugin/plugin.json +1 -1
  6. package/dist/connectors/adapters/claude/commands/record-work.md +2 -1
  7. package/dist/connectors/adapters/claude/conformance-manifest.yaml +1 -1
  8. package/dist/connectors/adapters/codex/.codex-plugin/plugin.json +1 -1
  9. package/dist/connectors/adapters/codex/conformance-manifest.yaml +1 -1
  10. package/dist/connectors/adapters/cursor/.cursor-plugin/plugin.json +1 -1
  11. package/dist/connectors/adapters/cursor/commands/record-work.md +2 -1
  12. package/dist/connectors/adapters/cursor/conformance-manifest.yaml +1 -1
  13. package/dist/connectors/adapters/opencode/conformance-manifest.yaml +1 -1
  14. package/dist/connectors/adapters/pi/conformance-manifest.yaml +1 -1
  15. package/dist/connectors/core/overlord-mission/SKILL.md +125 -4
  16. package/dist/connectors/core/overlord-mission/reference/cli.md +52 -2
  17. package/dist/connectors/core/overlord-mission/reference/mcp.md +2 -0
  18. package/dist/connectors/core/overlord-mission/reference/record-work.md +16 -2
  19. package/dist/connectors/core/overlord-mission/reference/shell-escaping.md +2 -0
  20. package/dist/connectors/core/scripts/overlord-mcp.mjs +175 -29
  21. package/dist/index.js +40093 -39933
  22. package/dist/index.js.map +4 -4
  23. package/package.json +1 -1
@@ -1 +1 @@
1
- 0.3.62
1
+ 0.3.64
@@ -1,4 +1,4 @@
1
- contractVersion: "172.0.1"
1
+ contractVersion: "173.0.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.62",
4
+ "version": "0.3.64",
5
5
  "description": "Chat-driven access to Overlord mission protocol workflows through skills and MCP.",
6
6
  "author": {
7
7
  "name": "Cooperativ",
@@ -12,6 +12,7 @@ Synthesize from the current conversation:
12
12
  - `declaredPaths` (optional): repository-relative paths you know this work changed, as a JSON string array (deleted files and both rename endpoints are valid). They are recorded as Declared; never infer them from a shared-worktree-wide status or diff, and never explain files one by one.
13
13
  - `title` (optional): mission title; defaults to a title derived from the objective.
14
14
  - `artifacts` (optional): `next_steps`, `test_results`, `decision`, `note`, `url`.
15
+ - `missionSummary` (optional): `{ "headline": "...", "summary": "..." }`, the new mission's headline (at most 140 characters) and summary (Markdown, at most 1,200 characters) for people: what the work provides, its limits, and what a person must do. No `baseContentRevision` is needed. Omit it to let Overlord write the summary.
15
16
 
16
17
  If a command argument is present, treat it as additional context to weave into the summary.
17
18
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord",
3
- "version": "0.3.62",
3
+ "version": "0.3.64",
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",
@@ -12,6 +12,7 @@ Synthesize from the current conversation:
12
12
  - `declaredPaths` (optional): repository-relative paths you know this work changed, as a JSON string array (deleted files and both rename endpoints are valid). They are recorded as Declared; never infer them from a shared-worktree-wide status or diff, and never explain files one by one.
13
13
  - `title` (optional): mission title; defaults to a title derived from the objective.
14
14
  - `artifacts` (optional): `next_steps`, `test_results`, `decision`, `note`, `url`.
15
+ - `missionSummary` (optional): `{ "headline": "...", "summary": "..." }`, the new mission's headline (at most 140 characters) and summary (Markdown, at most 1,200 characters) for people: what the work provides, its limits, and what a person must do. No `baseContentRevision` is needed. Omit it to let Overlord write the summary.
15
16
 
16
17
  If `$ARGUMENTS` is non-empty, treat it as additional context to weave into the summary.
17
18
 
@@ -21,7 +22,7 @@ Run:
21
22
  and stream a single JSON object on stdin via a single-quoted heredoc (`<<'EOF'`):
22
23
 
23
24
  ```
24
- { "objective": "...", "summary": "...", "title": "...", "declaredPaths": [...], "artifacts": [...] }
25
+ { "objective": "...", "summary": "...", "title": "...", "declaredPaths": [...], "artifacts": [...], "missionSummary": { "headline": "...", "summary": "..." } }
25
26
  ```
26
27
 
27
28
  After the command succeeds, report the new `MISSION_ID`.
@@ -1,4 +1,4 @@
1
- contractVersion: "172.0.1"
1
+ contractVersion: "173.0.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.62",
3
+ "version": "0.3.64",
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: "172.0.1"
1
+ contractVersion: "173.0.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.62",
3
+ "version": "0.3.64",
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",
@@ -6,10 +6,11 @@ Synthesize from the current conversation:
6
6
  - `declaredPaths` (optional): repository-relative paths you know this work changed, as a JSON string array (deleted files and both rename endpoints are valid). They are recorded as Declared; never infer them from a shared-worktree-wide status or diff, and never explain files one by one.
7
7
  - `title` (optional): mission title; defaults to a title derived from the objective.
8
8
  - `artifacts` (optional): `next_steps`, `test_results`, `decision`, `note`, `url`.
9
+ - `missionSummary` (optional): `{ "headline": "...", "summary": "..." }`, the new mission's headline (at most 140 characters) and summary (Markdown, at most 1,200 characters) for people: what the work provides, its limits, and what a person must do. No `baseContentRevision` is needed. Omit it to let Overlord write the summary.
9
10
 
10
11
  If text was provided after `/record-work`, treat it as additional context for the summary.
11
12
 
12
- Run `ovld protocol record-work --payload-file -` and stream a single JSON object `{ "objective": "...", "summary": "...", "title": "...", "declaredPaths": [...], "artifacts": [...] }` on stdin via a single-quoted heredoc.
13
+ Run `ovld protocol record-work --payload-file -` and stream a single JSON object `{ "objective": "...", "summary": "...", "title": "...", "declaredPaths": [...], "artifacts": [...], "missionSummary": { "headline": "...", "summary": "..." } }` on stdin via a single-quoted heredoc.
13
14
 
14
15
  After the command succeeds, report the new MISSION_ID.
15
16
 
@@ -1,4 +1,4 @@
1
- contractVersion: "172.0.1"
1
+ contractVersion: "173.0.0"
2
2
  componentType: connector
3
3
  componentKey: cursor
4
4
  label: "Cursor Connector"
@@ -1,4 +1,4 @@
1
- contractVersion: "172.0.1"
1
+ contractVersion: "173.0.0"
2
2
  componentType: connector
3
3
  componentKey: opencode
4
4
  label: "OpenCode Connector"
@@ -1,4 +1,4 @@
1
- contractVersion: "172.0.1"
1
+ contractVersion: "173.0.0"
2
2
  componentType: connector
3
3
  componentKey: pi
4
4
  label: "PI Connector"
@@ -18,13 +18,13 @@ Use this mode when the prompt already contains a mission ID or explicitly says t
18
18
  **An objective display id is a complete address.** `coo:695.k7xm` already spells its mission, so `--mission-id` is optional on every command whenever you pass a full objective display id as `--objective-id`; Overlord derives `coo:695` from it. This is the identifier to reach for when reconnecting to a mission that is running more than one objective, where "the active objective" is ambiguous and a mission id alone is not enough. An objective **UUID** names no mission, so it still needs `--mission-id` alongside it.
19
19
 
20
20
  1. Attach first with `ovld protocol attach --mission-id <mission_id> [--objective-id <objective_id>]`.
21
- 2. The attach response prints JSON to stdout containing `session.sessionKey`. The CLI also persists this key automatically so subsequent `ovld protocol` commands in the same working directory resolve it without `--session-key`. If auto-resolution fails, pass `--session-key <sessionKey>` explicitly on every subsequent call.
21
+ 2. The attach response prints JSON to stdout containing `session.sessionKey`. The CLI also persists this key automatically so subsequent `ovld protocol` commands in the same working directory resolve it without `--session-key`. If auto-resolution fails, pass `--session-key <sessionKey>` explicitly on every subsequent call. When the mission has a summary, the response also carries a top-level `missionSummary` baseline that you rewrite when you deliver (see **Mission Summary** below).
22
22
  3. Treat the Overlord mission prompt as authoritative for the objective, constraints, and delivery target. Begin executing the current objective immediately after attach; do not wait for more instructions or ask for confirmation. This differs from `connect` or `load-context`, which only retrieve mission context and never imply the agent should act.
23
23
  4. Post updates while working: `ovld protocol update --session-key <sessionKey> --mission-id <mission_id> --summary "..." --phase execute`.
24
24
  During long mechanical stretches with nothing meaningful to post, send `ovld protocol heartbeat --session-key <sessionKey> --mission-id <mission_id> [--phase execute] [--note "..."]` instead of an empty update.
25
25
  5. Follow-up messages after the initial mission are captured automatically by the installed `UserPromptSubmit` hook and stay in discussion intent while the mission is in review. Do not post `user_follow_up` manually unless the hook is unavailable.
26
26
  6. If blocked, call `ovld protocol ask --session-key <sessionKey> --mission-id <mission_id> --question "..."` and stop.
27
- 7. Deliver last with `ovld protocol deliver --session-key <sessionKey> --mission-id <mission_id> --summary "..."`. Normal delivery is summary-only; objective-ledger evidence syncs independently.
27
+ 7. Deliver last with `ovld protocol deliver --session-key <sessionKey> --mission-id <mission_id> --summary "..."`. Normal delivery is summary-only; objective-ledger evidence syncs independently. When attach returned `missionSummary`, also send the rewritten mission headline and summary and any items you closed (see **Mission Summary** below).
28
28
 
29
29
  When review facts genuinely apply, you may add `deliveryReport.agentReport` through `--payload-json` / `--payload-file`: use
30
30
  `humanActions`, `tradeoffsMade`, `knownRisks`, `deferredWork`, and `assumptions`, with empty arrays
@@ -205,6 +205,114 @@ else under `.overlord/tmp` is yours to delete.
205
205
 
206
206
  If `heartbeat` succeeds but `deliver` or `update` fails, the session is likely fine — retry with the corresponding `--*-file -` flag instead of inline `--*-json`.
207
207
 
208
+ ### Mission Summary
209
+
210
+ People read the mission summary to learn what the whole mission has produced, what still limits
211
+ it, and what they must do. You have seen the repository, so you write it when you deliver. It is
212
+ separate from the delivery `--summary`, which describes only this objective's work for the
213
+ reviewer.
214
+
215
+ **Baseline at attach.** `attach` and `resume-follow-up` return a top-level `missionSummary` when
216
+ the mission has a summary (`load-context` and `connect` never do):
217
+
218
+ ```json
219
+ {
220
+ "missionSummary": {
221
+ "contentRevision": 7,
222
+ "headline": "Current headline, or empty before the first write.",
223
+ "summary": "Current summary Markdown, or empty.",
224
+ "author": "agent",
225
+ "openItems": [
226
+ { "id": "<item id>", "kind": "risk", "objective": "coo:1260.7taz", "text": "…" },
227
+ { "id": "<item id>", "kind": "human_action", "objective": "coo:1260.7taz", "text": "…", "blocking": true },
228
+ { "id": "<item id>", "kind": "suggestion", "objective": "coo:1260.7taz", "text": "…" }
229
+ ],
230
+ "truncated": false
231
+ }
232
+ }
233
+ ```
234
+
235
+ `author` is `agent`, `gemini`, `deterministic`, or `null` before the first write. `openItems`
236
+ holds at most 60 entries; `truncated: true` means more are open. If attach returned no
237
+ `missionSummary`, do not send one.
238
+
239
+ **Write at delivery.** Add `missionSummary` to the delivery payload:
240
+
241
+ ```json
242
+ {
243
+ "missionSummary": {
244
+ "baseContentRevision": 7,
245
+ "headline": "One sentence, at most 140 characters.",
246
+ "summary": "Markdown, at most 1,200 characters.",
247
+ "closeItems": [
248
+ { "id": "<item id>", "status": "done", "reason": "Fixed by the retry guard added in this objective." },
249
+ { "id": "<item id>", "status": "dismissed", "reason": "The endpoint this warned about was removed." }
250
+ ]
251
+ }
252
+ }
253
+ ```
254
+
255
+ - `baseContentRevision` is `missionSummary.contentRevision` from attach. It is required when you
256
+ send `headline` and `summary`.
257
+ - `headline` and `summary` go together; send both or neither. `closeItems` may be sent alone.
258
+ - Write the headline and summary for a person, not for an agent: what the mission now provides and
259
+ why it matters, then current limits, then what a person must do. Say whether each claim is
260
+ implemented, tested or deployed; do not merge them. Rewrite the whole summary so it is true now;
261
+ do not append to the previous text. Do not restate open human actions or suggestions in the
262
+ prose; they are shown as their own lists.
263
+ - Close an item only after you checked it in the code or the mission history. Use `done` when the
264
+ item was addressed and `dismissed` when it no longer applies. `reason` is required (at most 280
265
+ characters) and is shown to people. Use only ids from `openItems`; an unknown id, an item of
266
+ another mission, or an item that is no longer open is skipped with a warning and never fails
267
+ the delivery. At most 50 entries.
268
+ - Malformed input (partial or over-long prose, a missing base with prose, a close entry without
269
+ a reason or with another status) is rejected with 400 `invalid_input` before anything is written.
270
+
271
+ The most efficient form is one JSON envelope on stdin, which carries the delivery `summary` too:
272
+
273
+ ```bash
274
+ ovld protocol deliver --session-key <sessionKey> --objective-id $OBJECTIVE_ID --payload-file - <<'EOF'
275
+ {
276
+ "summary": "Narrative for the reviewer: what this objective did and how it was verified.",
277
+ "missionSummary": {
278
+ "baseContentRevision": 7,
279
+ "headline": "Retries now survive provider outages; deployment is pending.",
280
+ "summary": "The sync worker retries failed calls with backoff. This is implemented and tested, not deployed.",
281
+ "closeItems": [{ "id": "<item id>", "status": "done", "reason": "Retry guard added and tested in this objective." }]
282
+ }
283
+ }
284
+ EOF
285
+ ```
286
+
287
+ `--mission-summary-file <path|->` sends the same object on its own and wins over a
288
+ `missionSummary` field in the payload. Only one `--*-file` flag may read stdin, so with
289
+ `--mission-summary-file -` keep `--summary` inline or put other input in a file under
290
+ `$OVERLORD_TMPDIR`.
291
+
292
+ The deliver response carries `missionSummary { contentRevision, narrativeWritten, closedItemIds,
293
+ warnings }`. Warnings never block: `mission_summary_item_skipped` names a skipped close entry,
294
+ `mission_summary_style` is advisory style feedback on the prose, and `mission_summary_disabled`
295
+ means the mission keeps no summary so the prose was not stored.
296
+
297
+ **Conflict.** If another objective of the mission wrote the summary after you attached, deliver
298
+ fails with 409 `mission_summary_conflict` and **nothing is delivered**. The CLI exits non-zero and
299
+ prints `{ "code": "mission_summary_conflict", "baseContentRevision": …, "missionSummary": { … } }`
300
+ on stdout; over MCP the error text carries `{ code, details }` with `details.missionSummary`.
301
+ That `missionSummary` is the fresh baseline in the attach shape. Then:
302
+
303
+ 1. Read the new headline, summary and open items. Keep what the other objective wrote that is
304
+ still true, and add what your objective changed.
305
+ 2. Deliver again once with the new `contentRevision` as `baseContentRevision`. Drop close entries
306
+ for items that are no longer in `openItems`.
307
+ 3. If that delivery conflicts again, deliver without `headline` and `summary` (`closeItems` alone
308
+ are fine) and say in the delivery summary that the mission summary was not updated because of
309
+ a conflict. Overlord then writes the mission summary automatically.
310
+
311
+ An installed CLI or connector that omits `missionSummary` still delivers; Overlord then writes the
312
+ mission summary automatically. `record-work` accepts the same object, but needs no
313
+ `baseContentRevision` because it creates a new mission (see
314
+ [reference/record-work.md](reference/record-work.md)).
315
+
208
316
  ### Delivery Evidence
209
317
 
210
318
  Send agent-authored facts in the delivery payload; Overlord stores an immediate deterministic
@@ -387,7 +495,7 @@ When creating missions from within a repository:
387
495
  - Use `create --unassigned-to-project` only when the user deliberately requests an account-owned inbox capture.
388
496
  - Create multiple missions when each prompt represents a different feature or goal.
389
497
  - 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).
498
+ - `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
499
  - `add-objectives` uses the same per-item `autoAdvance` field and `--auto-advance` / `--no-auto-advance` default.
392
500
  - **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
501
  - To change auto-advance on an existing objective: `ovld protocol update-objective --objective-id <id> --auto-advance` or `--no-auto-advance`.
@@ -428,6 +536,18 @@ ovld protocol discover-project --directory /path/to/repo
428
536
 
429
537
  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
538
 
539
+ #### Objective Descriptions
540
+
541
+ Each objective has **instructions** (the `objective` text) and an optional **description**. They have different readers:
542
+
543
+ - Instructions are for the executing agent. Make them complete; the agent receives nothing else.
544
+ - 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).
545
+ - 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.
546
+ - 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.
547
+ - Agents may change descriptions only on `draft` objectives (400 `description_not_editable`). An empty `--description` removes the summary.
548
+ - 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.
549
+ - **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.
550
+
431
551
  ### Creating Projects
432
552
 
433
553
  Users and agents can create a project directly from the CLI. By default the current
@@ -510,6 +630,7 @@ objective** list grouped by resource. Prepare delivery cheaply:
510
630
  - During follow-up execution, post progress updates and let the objective ledger capture file evidence as during initial execution.
511
631
  - Record important non-file decisions with `--event-type decision` or `--event-type discussion_summary`.
512
632
  - The `summary` in deliver is what the PM reads first, so write it as a narrative, not a command list.
633
+ - When attach returned `missionSummary`, deliver with a rewritten mission headline and summary and close the open items you verified. On `mission_summary_conflict`, rewrite from the fresh baseline and retry once; on a second conflict deliver without headline and summary and say so. See **Mission Summary**.
513
634
  - When a summary or question contains backticks, `$vars`, or other shell-special characters, always use `--summary-file -` (or `--question-file -`) with a single-quoted heredoc (`<<'EOF'`). Never retry by stripping or escaping content — pipe stdin instead. See [reference/shell-escaping.md](reference/shell-escaping.md).
514
635
  - Use `write-context` for facts a future agent session should know.
515
636
  - Use `add-artifact` (or MCP `overlord_add_artifact`) to publish a plan, notes, decision, or URL artifact during a turn without delivering. Delivery may still attach additional artifacts later.
@@ -529,4 +650,4 @@ objective** list grouped by resource. Prepare delivery cheaply:
529
650
  - [reference/context.md](reference/context.md) — Shared state, attachments, and large artifact policy
530
651
  - [reference/shell-escaping.md](reference/shell-escaping.md) — Heredoc input through explicit `--*-file -` flags
531
652
 
532
- <!-- version: 0.8.0 -->
653
+ <!-- version: 0.9.0 -->
@@ -32,6 +32,11 @@ ovld protocol attach --objective-id coo:756.k7xm
32
32
 
33
33
  `attach` establishes the objective/session binding used by the local change ledger. It does not snapshot or diff the working tree.
34
34
 
35
+ For a mission with a summary, the attach JSON (and `resume-follow-up`) also carries a top-level
36
+ `missionSummary` editing baseline: `{ contentRevision, headline, summary, author, openItems:
37
+ [{ id, kind, objective, text, blocking? }], truncated }`. `load-context` and `connect` never
38
+ carry it. You rewrite it at delivery; see **Mission summary at delivery** below.
39
+
35
40
  ## Update
36
41
 
37
42
  ```bash
@@ -99,6 +104,41 @@ flag.
99
104
 
100
105
  If `heartbeat` succeeds but `deliver` or `update` fails, the session is likely fine — retry with the corresponding `--*-file -` flag instead of inline `--*-json`.
101
106
 
107
+ ### Mission summary at delivery
108
+
109
+ When attach returned `missionSummary`, send the rewritten mission headline and summary and the
110
+ items you closed, either as a `missionSummary` field of `--payload-json` / `--payload-file` or
111
+ with `--mission-summary-file <path|->` (which wins over the payload field):
112
+
113
+ ```bash
114
+ ovld protocol deliver --session-key <sessionKey> --objective-id $OBJECTIVE_ID --payload-file - <<'EOF'
115
+ {
116
+ "summary": "Narrative for the reviewer about this objective.",
117
+ "missionSummary": {
118
+ "baseContentRevision": 7,
119
+ "headline": "One sentence, at most 140 characters.",
120
+ "summary": "Markdown, at most 1,200 characters, true for the whole mission now.",
121
+ "closeItems": [{ "id": "<openItems[].id>", "status": "done", "reason": "Why, at most 280 characters." }]
122
+ }
123
+ }
124
+ EOF
125
+ ```
126
+
127
+ - `baseContentRevision` is `missionSummary.contentRevision` from attach; required with prose.
128
+ - `headline` and `summary` go together; `closeItems` may be sent alone (at most 50 entries).
129
+ - `status` is `done` (addressed) or `dismissed` (no longer applies); `reason` is required.
130
+ - Malformed input is rejected with 400 `invalid_input` before anything is written. Unknown,
131
+ foreign or already-closed ids are skipped with a `mission_summary_item_skipped` warning.
132
+ - The response carries `missionSummary { contentRevision, narrativeWritten, closedItemIds,
133
+ warnings }`; `mission_summary_style` warnings are advisory.
134
+ - Only one `--*-file` flag may read stdin at a time.
135
+
136
+ On 409 `mission_summary_conflict` nothing is delivered. The CLI exits non-zero and prints
137
+ `{ error, code, baseContentRevision, missionSummary }` on stdout, where `missionSummary` is the
138
+ fresh baseline. Rewrite from it and deliver again once with its `contentRevision`. If that
139
+ conflicts again, deliver without `headline` and `summary` and say so in the delivery summary.
140
+ Writing guidance is in the **Mission Summary** section of the skill.
141
+
102
142
  ### Captured file evidence
103
143
 
104
144
  Read the objective's captured paths once before writing the delivery summary:
@@ -183,9 +223,11 @@ When creating missions from within a repository:
183
223
  - Use `create --unassigned-to-project` only when the user deliberately requests an account-owned inbox capture.
184
224
  - Create multiple missions when each prompt represents a different feature or goal.
185
225
  - 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).
226
+ - `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
227
  - `add-objectives` uses the same per-item `autoAdvance` field and `--auto-advance` / `--no-auto-advance` mapping.
188
228
  - 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).
229
+ - 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.
230
+ - `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
231
  - 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
232
  - `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
233
 
@@ -212,11 +254,19 @@ ovld protocol add-objectives --mission-id 1:899 --objectives-json '[{"objective"
212
254
  ovld protocol update-objective --objective-id <objective-uuid> --auto-advance
213
255
  ```
214
256
 
257
+ ```bash
258
+ ovld protocol update-objective --objective-id <objective-uuid> --description-file - <<'EOF'
259
+ Add retry with backoff to the sync worker. ... The work is done when the retry test passes.
260
+ EOF
261
+ ```
262
+
215
263
  ### Record Completed Work
216
264
 
217
265
  Record already-finished chat work as a completed review mission in one call — no
218
266
  `attach`/`deliver`. Creates a mission with one completed objective, records declared paths as
219
- Declared evidence, lands it in review, and runs the Gemini delivery summary.
267
+ Declared evidence, lands it in review, and runs the Gemini delivery summary. An optional
268
+ `missionSummary` (or `--mission-summary-file`) writes the new mission's headline and summary
269
+ without a `baseContentRevision`.
220
270
 
221
271
  ```bash
222
272
  ovld protocol record-work --payload-file - <<'EOF'
@@ -7,8 +7,10 @@
7
7
  - `permission-request` is invoked by connector permission hooks installed by adapter bundles. Agents do not normally call it directly.
8
8
  - Execution request tools (`request_execution`, `claim_execution`, `list_execution_requests`, `clear_execution_requests`, `complete_execution_launch`, `fail_execution_launch`) back the local runner queue. Agents normally work missions with `attach`/`update`/`deliver`; runner processes use these queue tools.
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
+ - Mission summary: for a mission with a summary, `overlord_attach_session` returns the top-level `missionSummary` editing baseline (`contentRevision`, `headline`, `summary`, `author`, `openItems` with item ids, `truncated`); `overlord_load_mission_context` does not. `overlord_deliver_session` and `overlord_record_work` accept an optional `missionSummary` argument (the key is `missionSummary` on both the hosted server and the local shim): `{ baseContentRevision, headline, summary, closeItems: [{ id, status: "done" | "dismissed", reason }] }`. `baseContentRevision` is required with prose on deliver and not used on record-work. The result carries `missionSummary { contentRevision, narrativeWritten, closedItemIds, warnings }`. A stale base fails the tool call with `mission_summary_conflict` and nothing is delivered; the error text ends with `{ code, details }`, and `details.missionSummary` is the fresh baseline. Rewrite from it and deliver again once; on a second conflict deliver without `headline` and `summary` and say so in the delivery summary. Writing guidance is in the **Mission Summary** section of the skill.
10
11
  - `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
12
  - `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.
13
+ - 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
14
  - `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
15
  - `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
16
  - `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`.
@@ -27,7 +27,11 @@ identical across the CLI (`--payload-file -`) and the hosted MCP tool
27
27
  "declaredPaths": ["src/widget.ts", "src/generated.ts"], // optional repository-relative paths
28
28
  "artifacts": [
29
29
  { "type": "next_steps", "label": "Next steps", "content": "…" } // optional
30
- ]
30
+ ],
31
+ "missionSummary": { // optional
32
+ "headline": "One sentence for people, at most 140 characters.",
33
+ "summary": "Markdown, at most 1,200 characters: what the work provides, limits, what a person must do."
34
+ }
31
35
  }
32
36
  ```
33
37
 
@@ -61,6 +65,15 @@ identical across the CLI (`--payload-file -`) and the hosted MCP tool
61
65
  current objective, or human implementation follow-up (those belong in `humanActions`).
62
66
  Use an empty array when nothing qualifies. It improves review visibility but never blocks the record.
63
67
 
68
+ - **`missionSummary`** (optional) — the new mission's headline and summary for people,
69
+ written as in `deliver` (see the **Mission Summary** section of the skill). `headline`
70
+ and `summary` go together. No `baseContentRevision` is needed: the mission is new, so
71
+ there is nothing to conflict with. `closeItems` is accepted with the same rules, but a
72
+ new mission has no earlier open items to close. Malformed input is rejected with
73
+ `invalid_input` before anything is written; style issues come back as advisory
74
+ warnings. Without it, Overlord writes the mission summary automatically. On the CLI,
75
+ `--mission-summary-file <path|->` sends the same object and wins over the envelope field.
76
+
64
77
  ## CLI
65
78
 
66
79
  Stream the envelope on stdin with a single-quoted heredoc (safe for backticks/`$vars`):
@@ -95,4 +108,5 @@ Call `overlord_record_work` with the same fields as first-class arguments
95
108
  ```
96
109
 
97
110
  The tool returns the created review-column mission and the `deliveryId` whose Gemini
98
- summary is composing asynchronously.
111
+ summary is composing asynchronously. The same `missionSummary` object is accepted as a
112
+ first-class argument.
@@ -24,6 +24,8 @@ If `heartbeat` succeeds but `deliver` or `update` fails, the session is likely f
24
24
 
25
25
  Declared paths that contain commas, or long path lists, go through `--paths-file -` as a JSON string array rather than `--paths`.
26
26
 
27
+ Only one `--*-file` flag may read stdin (`-`) per command. To send a summary with backticks together with a mission summary write, put both in one envelope: `--payload-file -` with `{ "summary": "…", "missionSummary": { … } }`. If you use `--mission-summary-file -`, pass the delivery summary inline or from a file under `$OVERLORD_TMPDIR`.
28
+
27
29
  Use `--payload-file -` when the full delivery object (summary, artifacts, delivery report, and declared paths together) exceeds the inline limit.
28
30
 
29
31
  If the summary contains special characters, use `--summary-file -` and pipe via a single-quoted heredoc (`<<'EOF'`) to prevent shell expansion.