overlord-cli 0.2611151135.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 +111 -2
  16. package/dist/connectors/core/overlord-mission/reference/cli.md +43 -1
  17. package/dist/connectors/core/overlord-mission/reference/mcp.md +1 -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 +133 -25
  21. package/dist/index.js +40077 -39954
  22. package/dist/index.js.map +4 -4
  23. package/package.json +1 -1
@@ -1 +1 @@
1
- 0.3.63
1
+ 0.3.64
@@ -1,4 +1,4 @@
1
- contractVersion: "172.3.0"
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.63",
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.63",
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.3.0"
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.63",
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.3.0"
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.63",
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.3.0"
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.3.0"
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.3.0"
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
@@ -522,6 +630,7 @@ objective** list grouped by resource. Prepare delivery cheaply:
522
630
  - During follow-up execution, post progress updates and let the objective ledger capture file evidence as during initial execution.
523
631
  - Record important non-file decisions with `--event-type decision` or `--event-type discussion_summary`.
524
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**.
525
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).
526
635
  - Use `write-context` for facts a future agent session should know.
527
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.
@@ -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:
@@ -224,7 +264,9 @@ EOF
224
264
 
225
265
  Record already-finished chat work as a completed review mission in one call — no
226
266
  `attach`/`deliver`. Creates a mission with one completed objective, records declared paths as
227
- 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`.
228
270
 
229
271
  ```bash
230
272
  ovld protocol record-work --payload-file - <<'EOF'
@@ -7,6 +7,7 @@
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.
12
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.
@@ -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.
@@ -59,7 +59,14 @@ async function runProtocol(subcommand, args = {}) {
59
59
  };
60
60
  } catch (error) {
61
61
  const message = error instanceof Error ? error.message : String(error);
62
- return { content: [{ type: 'text', text: message }], isError: true };
62
+ // A self-servicing failure (for example mission_summary_conflict) prints its
63
+ // JSON body, such as the fresh mission summary baseline, on stdout.
64
+ const stdout =
65
+ error && typeof error === 'object' && typeof error.stdout === 'string'
66
+ ? error.stdout.trim()
67
+ : '';
68
+ const text = stdout ? `${message}\n${stdout}` : message;
69
+ return { content: [{ type: 'text', text }], isError: true };
63
70
  }
64
71
  }
65
72
 
@@ -1215,6 +1222,55 @@ const tools = [
1215
1222
  type: 'string',
1216
1223
  description: 'Material implementation assumption.'
1217
1224
  }
1225
+ },
1226
+ missionSummary: {
1227
+ type: 'object',
1228
+ properties: {
1229
+ baseContentRevision: {
1230
+ type: 'integer',
1231
+ minimum: 0,
1232
+ description:
1233
+ 'missionSummary.contentRevision from attach. Required with headline and summary; a stale value rejects the whole delivery with mission_summary_conflict and a fresh baseline.'
1234
+ },
1235
+ headline: {
1236
+ type: 'string',
1237
+ description: 'One sentence, at most 140 characters. Send together with summary.'
1238
+ },
1239
+ summary: {
1240
+ type: 'string',
1241
+ description:
1242
+ 'Markdown, at most 1,200 characters, rewritten to be true now: what the mission provides and why it matters, current limits, then what a person must do. Say whether claims are implemented, tested or deployed. Do not restate open actions or suggestions.'
1243
+ },
1244
+ closeItems: {
1245
+ type: 'array',
1246
+ maxItems: 50,
1247
+ description:
1248
+ 'Open items of this mission (ids from the attach baseline openItems) that you checked are addressed (done) or no longer apply (dismissed). Unknown, foreign or already-closed ids are skipped with a warning.',
1249
+ items: {
1250
+ type: 'object',
1251
+ properties: {
1252
+ id: {
1253
+ type: 'string',
1254
+ description: 'Item id from missionSummary.openItems.'
1255
+ },
1256
+ status: {
1257
+ type: 'string',
1258
+ enum: ['done', 'dismissed']
1259
+ },
1260
+ reason: {
1261
+ type: 'string',
1262
+ description: 'Required. Why, at most 280 characters. Shown to people.'
1263
+ }
1264
+ },
1265
+ required: ['id', 'status', 'reason'],
1266
+ additionalProperties: false
1267
+ }
1268
+ }
1269
+ },
1270
+ required: [],
1271
+ additionalProperties: false,
1272
+ description:
1273
+ 'Optional agent-written mission summary for people: a replacement headline and summary based on the attach baseline, and open items to close. On mission_summary_conflict nothing is delivered: rewrite from error details.missionSummary and retry once, then deliver without headline and summary.'
1218
1274
  }
1219
1275
  },
1220
1276
  required: ['sessionKey', 'summary'],
@@ -1362,6 +1418,55 @@ const tools = [
1362
1418
  artifacts: {
1363
1419
  type: 'array',
1364
1420
  description: 'Optional artifacts: next_steps, test_results, decision, note, or url.'
1421
+ },
1422
+ missionSummary: {
1423
+ type: 'object',
1424
+ properties: {
1425
+ baseContentRevision: {
1426
+ type: 'integer',
1427
+ minimum: 0,
1428
+ description:
1429
+ 'Not needed: record-work creates a new mission with no summary to conflict with.'
1430
+ },
1431
+ headline: {
1432
+ type: 'string',
1433
+ description: 'One sentence, at most 140 characters. Send together with summary.'
1434
+ },
1435
+ summary: {
1436
+ type: 'string',
1437
+ description:
1438
+ 'Markdown, at most 1,200 characters, rewritten to be true now: what the mission provides and why it matters, current limits, then what a person must do. Say whether claims are implemented, tested or deployed. Do not restate open actions or suggestions.'
1439
+ },
1440
+ closeItems: {
1441
+ type: 'array',
1442
+ maxItems: 50,
1443
+ description:
1444
+ 'Open items of this mission (ids from the attach baseline openItems) that you checked are addressed (done) or no longer apply (dismissed). Unknown, foreign or already-closed ids are skipped with a warning.',
1445
+ items: {
1446
+ type: 'object',
1447
+ properties: {
1448
+ id: {
1449
+ type: 'string',
1450
+ description: 'Item id from missionSummary.openItems.'
1451
+ },
1452
+ status: {
1453
+ type: 'string',
1454
+ enum: ['done', 'dismissed']
1455
+ },
1456
+ reason: {
1457
+ type: 'string',
1458
+ description: 'Required. Why, at most 280 characters. Shown to people.'
1459
+ }
1460
+ },
1461
+ required: ['id', 'status', 'reason'],
1462
+ additionalProperties: false
1463
+ }
1464
+ }
1465
+ },
1466
+ required: [],
1467
+ additionalProperties: false,
1468
+ description:
1469
+ 'Optional agent-written mission summary for the new mission: headline and summary.'
1365
1470
  }
1366
1471
  },
1367
1472
  required: ['projectId', 'objective', 'summary'],
@@ -1381,6 +1486,28 @@ function optionalString(args, name) {
1381
1486
  return typeof value === 'string' && value.trim() ? value.trim() : null;
1382
1487
  }
1383
1488
 
1489
+ function isPlainObject(value) {
1490
+ return Boolean(value) && typeof value === 'object' && !Array.isArray(value);
1491
+ }
1492
+
1493
+ /**
1494
+ * The deliver `--payload-json` envelope: the structured delivery report and the
1495
+ * agent-authored mission summary write, when either is present.
1496
+ */
1497
+ function deliverPayload(args) {
1498
+ const reportKeys = ['humanActions', 'tradeoffsMade', 'knownRisks', 'deferredWork', 'assumptions'];
1499
+ const agentReport = Object.fromEntries(
1500
+ reportKeys.filter(key => Array.isArray(args[key])).map(key => [key, args[key]])
1501
+ );
1502
+ const payload = {
1503
+ ...(Object.keys(agentReport).length > 0
1504
+ ? { deliveryReport: { schemaVersion: 1, agentReport } }
1505
+ : {}),
1506
+ ...(isPlainObject(args.missionSummary) ? { missionSummary: args.missionSummary } : {})
1507
+ };
1508
+ return Object.keys(payload).length > 0 ? { payload } : {};
1509
+ }
1510
+
1384
1511
  function requiredString(args, name) {
1385
1512
  const value = optionalString(args, name);
1386
1513
  if (!value) throw new Error(`Missing required argument: ${name}`);
@@ -1815,30 +1942,10 @@ async function callOverlordTool(name, args) {
1815
1942
  summary: requiredString(args, 'summary'),
1816
1943
  ...(Array.isArray(args.artifacts) ? { 'artifacts-json': args.artifacts } : {}),
1817
1944
  ...(Array.isArray(args.declaredPaths) ? { 'declared-paths-json': args.declaredPaths } : {}),
1818
- ...(Array.isArray(args.humanActions) ||
1819
- Array.isArray(args.tradeoffsMade) ||
1820
- Array.isArray(args.knownRisks) ||
1821
- Array.isArray(args.deferredWork) ||
1822
- Array.isArray(args.assumptions)
1823
- ? {
1824
- payload: {
1825
- deliveryReport: {
1826
- schemaVersion: 1,
1827
- agentReport: {
1828
- ...(Array.isArray(args.humanActions) ? { humanActions: args.humanActions } : {}),
1829
- ...(Array.isArray(args.tradeoffsMade)
1830
- ? { tradeoffsMade: args.tradeoffsMade }
1831
- : {}),
1832
- ...(Array.isArray(args.knownRisks) ? { knownRisks: args.knownRisks } : {}),
1833
- ...(Array.isArray(args.deferredWork) ? { deferredWork: args.deferredWork } : {}),
1834
- ...(Array.isArray(args.assumptions) ? { assumptions: args.assumptions } : {})
1835
- }
1836
- }
1837
- }
1838
- }
1839
- : {})
1945
+ ...deliverPayload(args)
1840
1946
  });
1841
1947
  }
1948
+
1842
1949
  if (name === 'overlord_add_artifact') {
1843
1950
  const hasContentText = typeof args.contentText === 'string' && args.contentText.trim() !== '';
1844
1951
  const hasExternalUrl = typeof args.externalUrl === 'string' && args.externalUrl.trim() !== '';
@@ -1883,7 +1990,8 @@ async function callOverlordTool(name, args) {
1883
1990
  summary: requiredString(args, 'summary'),
1884
1991
  ...(optionalString(args, 'title') ? { title: requiredString(args, 'title') } : {}),
1885
1992
  ...(Array.isArray(args.declaredPaths) ? { declaredPaths: args.declaredPaths } : {}),
1886
- ...(Array.isArray(args.artifacts) ? { artifacts: args.artifacts } : {})
1993
+ ...(Array.isArray(args.artifacts) ? { artifacts: args.artifacts } : {}),
1994
+ ...(isPlainObject(args.missionSummary) ? { missionSummary: args.missionSummary } : {})
1887
1995
  }
1888
1996
  });
1889
1997
  }
@@ -1900,7 +2008,7 @@ process.stdin.on('data', async chunk => {
1900
2008
  result: {
1901
2009
  protocolVersion: PROTOCOL_VERSION,
1902
2010
  capabilities: { tools: { listChanged: false } },
1903
- serverInfo: { name: 'overlord-__OVERLORD_ADAPTER_KEY__', version: '0.3.63' }
2011
+ serverInfo: { name: 'overlord-__OVERLORD_ADAPTER_KEY__', version: '0.3.64' }
1904
2012
  }
1905
2013
  });
1906
2014
  continue;