overlord-cli 0.2611171501.0 → 0.2611181900.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.
- package/dist/connectors/VERSION +1 -1
- package/dist/connectors/adapters/antigravity/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/antigravity/plugin.json +1 -1
- package/dist/connectors/adapters/claude/.claude-plugin/plugin.json +1 -1
- package/dist/connectors/adapters/claude/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/codex/.codex-plugin/plugin.json +1 -1
- package/dist/connectors/adapters/codex/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/cursor/.cursor-plugin/plugin.json +1 -1
- package/dist/connectors/adapters/cursor/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/opencode/conformance-manifest.yaml +1 -1
- package/dist/connectors/adapters/pi/conformance-manifest.yaml +1 -1
- package/dist/connectors/core/overlord-mission/SKILL.md +1 -1
- package/dist/connectors/core/overlord-mission/reference/cli.md +51 -0
- package/dist/connectors/core/overlord-mission/reference/mcp.md +3 -1
- package/dist/connectors/core/overlord-mission/reference/mission-summary.md +67 -11
- package/dist/connectors/core/overlord-mission/reference/record-work.md +11 -2
- package/dist/connectors/core/scripts/overlord-mcp.mjs +476 -9
- package/dist/index.js +823 -246
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/connectors/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.74
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://antigravity.google/schemas/v1/plugin.json",
|
|
3
3
|
"name": "overlord",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.74",
|
|
5
5
|
"description": "Chat-driven access to Overlord mission protocol workflows through skills and MCP.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Cooperativ",
|
|
@@ -11,7 +11,7 @@ Connector adapters may add harness-specific commands, hooks, MCP tools, or launc
|
|
|
11
11
|
|
|
12
12
|
## After You Attach
|
|
13
13
|
|
|
14
|
-
Once attached, whether from chat or because Overlord launched the session, follow the instructions in the attach response. They carry the working rules, delivery rules, mission summary rules and recovery steps, and take precedence over this skill. Payload examples, limits and error shapes are in [reference/mission-summary.md](reference/mission-summary.md).
|
|
14
|
+
Once attached, whether from chat or because Overlord launched the session, follow the instructions in the attach response. They carry the working rules, delivery rules, mission summary rules and recovery steps, and take precedence over this skill. Payload examples, limits and error shapes are in [reference/mission-summary.md](reference/mission-summary.md). When attach reports other missions’ open items, use `project-items` / `overlord_project_items` before delivery and verify each resolution before closing. Standalone and delivery closes are both valid. Retain delivery retry identity/body; accepted withheld prose uses fresh publication bases and a separate retained publication operation id, never another close submission.
|
|
15
15
|
|
|
16
16
|
**`<mission_id>` is always the short display id** (`coo:695`, `1:899`). **`<objective_id>`** is the objective display id (`coo:695.k7xm`) or UUID. Never pass an objective id as `--mission-id`. A full objective display id already names its mission, so `--mission-id` is then optional; an objective UUID still needs `--mission-id`. If you only find a bare UUID, run `ovld protocol search` rather than guessing.
|
|
17
17
|
|
|
@@ -40,6 +40,38 @@ After attach, follow the instructions in the attach response.
|
|
|
40
40
|
ovld protocol update --session-key <sessionKey> --mission-id $MISSION_ID --summary "What you did and why." --phase execute
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
### Draft report evidence (opt-in)
|
|
44
|
+
|
|
45
|
+
When the attach instructions or the user opt you in, record report evidence while you work
|
|
46
|
+
instead of reconstructing it at delivery. Batch discoveries (a few per update), not one
|
|
47
|
+
call per tool use. Each batch carries **your own** `operationId`: choose it before sending
|
|
48
|
+
and keep it in the file you send, so re-running the same command after a timeout replays
|
|
49
|
+
the original result instead of applying it twice.
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
cat > /tmp/draft-batch.json <<'JSON'
|
|
53
|
+
{ "operationId": "risks-0001", "expectedRevision": 0,
|
|
54
|
+
"operations": [
|
|
55
|
+
{ "op": "upsert", "entryId": "risk-cache", "kind": "known_risk",
|
|
56
|
+
"content": { "text": "Cache invalidation is untested on Postgres." } } ] }
|
|
57
|
+
JSON
|
|
58
|
+
ovld protocol update --session-key <sessionKey> --mission-id $MISSION_ID \
|
|
59
|
+
--report-draft-file /tmp/draft-batch.json
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
- Kinds: `human_action`, `tradeoff`, `deferred_work` (the deliver report shapes) and
|
|
63
|
+
`known_risk`, `assumption` (`{ "text" }`). Upsert the same `entryId` to amend an
|
|
64
|
+
observation; `withdraw` it with a reason once resolved. At most 12 active entries per kind.
|
|
65
|
+
- Send the revision from the previous result as `expectedRevision`. `409
|
|
66
|
+
report_draft_conflict` means nothing was applied; the printed details carry the fresh draft.
|
|
67
|
+
- Before delivering, read it once: `ovld protocol report-draft --session-key <sessionKey>
|
|
68
|
+
--mission-id $MISSION_ID`. Fix what the `inspection` warns about, then deliver with
|
|
69
|
+
`--expected-draft-revision <revision>`. A session with a draft cannot deliver without it.
|
|
70
|
+
- Draft entries are provisional: they become mission items only when deliver seals them.
|
|
71
|
+
- After `attach`, `reportDraft.abandoned` lists drafts an earlier execution of this objective
|
|
72
|
+
left behind; import the observations that still apply with `{ "op": "import",
|
|
73
|
+
"sourceDraftId": "...", "sourceEntryId": "..." }`.
|
|
74
|
+
|
|
43
75
|
## Heartbeat
|
|
44
76
|
|
|
45
77
|
```bash
|
|
@@ -101,6 +133,25 @@ flag.
|
|
|
101
133
|
|
|
102
134
|
If `heartbeat` succeeds but `deliver` or `update` fails, the session is likely fine — retry with the corresponding `--*-file -` flag instead of inline `--*-json`.
|
|
103
135
|
|
|
136
|
+
### Lost responses and retries
|
|
137
|
+
|
|
138
|
+
`deliver` and `record-work` are safe to retry. Before sending, the CLI saves an owner-only
|
|
139
|
+
attempt record with an operation id. If the command times out or the process restarts, run
|
|
140
|
+
the **same command again**: it reuses that operation id and Overlord returns the original
|
|
141
|
+
result (`"replayed": true`) instead of delivering or recording twice. Never work around a
|
|
142
|
+
timeout by changing the request or starting a new operation.
|
|
143
|
+
|
|
144
|
+
- `--retry-operation <id>` resumes a saved attempt by id (the stderr warning names it); a
|
|
145
|
+
different request is refused.
|
|
146
|
+
- `--operation-id <id>` sends an id you keep yourself (8-128 of `A-Z a-z 0-9 . _ : -`).
|
|
147
|
+
- `--new-operation` starts separate work, for example recording identical `record-work`
|
|
148
|
+
twice on purpose. An identical `record-work` that was already accepted is otherwise refused.
|
|
149
|
+
- `ovld protocol delivery-receipt --operation-id <id>` (or `--delivery-id`) shows your
|
|
150
|
+
accepted receipt. A not-found answer does not prove the attempt failed: retry the same
|
|
151
|
+
operation instead.
|
|
152
|
+
- A session delivers once. `409 delivery_already_accepted` prints the existing `deliveryId`:
|
|
153
|
+
do not deliver again; use `resume-follow-up` for new work.
|
|
154
|
+
|
|
104
155
|
### Delivery payloads
|
|
105
156
|
|
|
106
157
|
Mission summary, delivery report, changed-files reads and missed-path declarations follow the
|
|
@@ -7,7 +7,9 @@
|
|
|
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
|
-
-
|
|
10
|
+
- Retry identity: `overlord_deliver_session` and `overlord_record_work` accept `operationId`. Choose one value yourself before the first call of an attempt and send the same value on every retry of it (for example after a timeout or lost response); Overlord then returns the original result with `replayed: true` instead of delivering or recording twice. Use a new value only for intentionally separate work. The same value with a different request fails with `delivery_operation_conflict`. `overlord_delivery_receipt` reads your accepted receipt by `operationId` or `deliveryId`; not-found does not prove a concurrent attempt failed, so retry the original call. A session delivers once: `delivery_already_accepted` names the existing `deliveryId` — do not deliver again.
|
|
11
|
+
- Draft report evidence (opt-in, only when your instructions enable it): `overlord_update_session` accepts `reportDraft { operationId, expectedRevision, operations }` (`summary` is then optional) to record provisional risks, human actions, tradeoffs, deferred work and assumptions by stable `entryId` (`upsert`, `withdraw`, `import`). Choose `operationId` yourself and resend the same batch on retry; Overlord returns the original receipt instead of applying it twice. Read `overlord_report_draft` once before delivering and pass its `revision` as `reportDraft.expectedRevision` on `overlord_deliver_session`; a session with a draft cannot deliver without it. Drafts never become mission items until delivery seals them.
|
|
12
|
+
- Mission summary: `overlord_attach_session` returns the `missionSummary` baseline; `overlord_deliver_session` and `overlord_record_work` accept a `missionSummary` argument (same key on the hosted server and the local shim). Stale or absent prose never rejects a delivery; `overlord_delivery_summary_context` and `overlord_publish_delivery_summary` (required caller-retained `operationId`) publish it once afterwards for your own delivery. The rules are in the attach and delivery responses; shapes and errors are in [mission-summary.md](mission-summary.md).
|
|
11
13
|
- `overlord_changes` (hosted MCP) reads one objective's synchronized file evidence across sessions, resources and devices; it needs no attached session and mutates nothing. The route is `POST /api/protocol/objective-changes`. See [mission-summary.md](mission-summary.md).
|
|
12
14
|
- `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
15
|
- 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.
|
|
@@ -14,6 +14,9 @@ Returned by `attach` and `resume-follow-up` when the mission has a summary. `loa
|
|
|
14
14
|
{
|
|
15
15
|
"missionSummary": {
|
|
16
16
|
"contentRevision": 7,
|
|
17
|
+
"evidenceRevision": 15,
|
|
18
|
+
"narrative": { "state": "outdated", "evidenceRevision": 15, "publishedEvidenceRevision": 14,
|
|
19
|
+
"outstandingDeliveryId": null, "…": "…" },
|
|
17
20
|
"headline": "Current headline, or empty before the first write.",
|
|
18
21
|
"summary": "Current summary Markdown, or empty.",
|
|
19
22
|
"author": "agent",
|
|
@@ -27,8 +30,10 @@ Returned by `attach` and `resume-follow-up` when the mission has a summary. `loa
|
|
|
27
30
|
}
|
|
28
31
|
```
|
|
29
32
|
|
|
30
|
-
`author` is `agent`, `gemini`, `deterministic`, or `null`
|
|
31
|
-
holds at most 60 entries; `truncated: true` means more are open.
|
|
33
|
+
`author` is `agent`, `gemini`, `deterministic`, or `null` when there is no prose. `openItems`
|
|
34
|
+
holds at most 60 entries; `truncated: true` means more are open. `narrative.state` is `absent`,
|
|
35
|
+
`current`, `outdated` (later work changed the mission) or `legacy` (older text with no recorded
|
|
36
|
+
basis). Only agents write the summary; nothing generates or repairs it.
|
|
32
37
|
|
|
33
38
|
## Delivery payload
|
|
34
39
|
|
|
@@ -37,6 +42,7 @@ holds at most 60 entries; `truncated: true` means more are open.
|
|
|
37
42
|
"summary": "Narrative for the reviewer: what this objective did and how it was verified.",
|
|
38
43
|
"missionSummary": {
|
|
39
44
|
"baseContentRevision": 7,
|
|
45
|
+
"baseEvidenceRevision": 15,
|
|
40
46
|
"headline": "At most 140 characters.",
|
|
41
47
|
"summary": "Markdown, at most 1,200 characters.",
|
|
42
48
|
"closeItems": [
|
|
@@ -59,13 +65,14 @@ holds at most 60 entries; `truncated: true` means more are open.
|
|
|
59
65
|
|
|
60
66
|
```bash
|
|
61
67
|
ovld protocol deliver --session-key <sessionKey> --objective-id $OBJECTIVE_ID --payload-file - <<'EOF'
|
|
62
|
-
{ "summary": "…", "missionSummary": { "baseContentRevision": 7, "headline": "…", "summary": "…", "closeItems": [] } }
|
|
68
|
+
{ "summary": "…", "missionSummary": { "baseContentRevision": 7, "baseEvidenceRevision": 15, "headline": "…", "summary": "…", "closeItems": [] } }
|
|
63
69
|
EOF
|
|
64
70
|
```
|
|
65
71
|
|
|
66
72
|
Limits and validation:
|
|
67
73
|
|
|
68
74
|
- `baseContentRevision` is required with `headline` and `summary`; those two go together.
|
|
75
|
+
Send `baseEvidenceRevision` too: without it the prose is withheld.
|
|
69
76
|
`closeItems` may be sent alone (at most 50 entries, `reason` at most 280 characters).
|
|
70
77
|
- `--mission-summary-file <path|->` sends the same object on its own and wins over the payload
|
|
71
78
|
field. Only one `--*-file` flag may read stdin.
|
|
@@ -74,16 +81,42 @@ Limits and validation:
|
|
|
74
81
|
- `record-work` accepts the same `missionSummary` object without `baseContentRevision`
|
|
75
82
|
(see [record-work.md](record-work.md)).
|
|
76
83
|
|
|
77
|
-
Deliver response: `missionSummary { contentRevision, narrativeWritten, closedItemIds, warnings
|
|
78
|
-
Warnings never block:
|
|
79
|
-
`mission_summary_disabled
|
|
84
|
+
Deliver response: `missionSummary { contentRevision, narrativeWritten, closedItemIds, warnings,
|
|
85
|
+
publication: { id, available, withheldReason }, baseline? }`. Warnings never block:
|
|
86
|
+
`mission_summary_item_skipped`, `mission_summary_style`, `mission_summary_disabled`,
|
|
87
|
+
`mission_summary_withheld`.
|
|
80
88
|
|
|
81
|
-
##
|
|
89
|
+
## Withheld or omitted prose
|
|
82
90
|
|
|
83
|
-
|
|
84
|
-
`
|
|
85
|
-
|
|
86
|
-
|
|
91
|
+
A stale `baseContentRevision` or `baseEvidenceRevision` (other work was accepted since your
|
|
92
|
+
baseline), a missing `baseEvidenceRevision`, or no prose never rejects the delivery. The delivery
|
|
93
|
+
and closes are accepted, the existing text stays, and `publication.available` is `true`
|
|
94
|
+
(`withheldReason`: `stale_content`, `stale_evidence`, `missing_evidence_base` or `absent`). The
|
|
95
|
+
instruction in the response leads with the publication step:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
ovld protocol delivery-summary-context --mission-id <mission> --delivery-id <deliveryId> --session-key <sessionKey>
|
|
99
|
+
ovld protocol publish-delivery-summary --mission-id <mission> --delivery-id <deliveryId> \
|
|
100
|
+
--session-key <sessionKey> --payload-file - <<'JSON'
|
|
101
|
+
{ "baseContentRevision": 8, "baseEvidenceRevision": 16, "headline": "…", "summary": "…" }
|
|
102
|
+
JSON
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Over MCP: `overlord_delivery_summary_context` and `overlord_publish_delivery_summary` (choose an
|
|
106
|
+
`operationId` yourself and reuse it on retries). Rewrite for the whole mission from the returned
|
|
107
|
+
baseline. One publication per delivery; the same operation id and text replays. `record-work`
|
|
108
|
+
deliveries need no session key. There is no deadline.
|
|
109
|
+
|
|
110
|
+
Errors (nothing is written):
|
|
111
|
+
|
|
112
|
+
- 409 `mission_summary_conflict`: bases are stale. The CLI prints `{ code, missionSummary,
|
|
113
|
+
publication, instruction }` on stdout; MCP error details carry the same. Reconcile and try once
|
|
114
|
+
more, then stop and say the summary is not updated.
|
|
115
|
+
- 409 `mission_summary_publication_superseded`: newer work, a follow-up or a reopen owns the next
|
|
116
|
+
summary. Say the mission summary is outdated.
|
|
117
|
+
- 409 `mission_summary_already_published`; 404 `mission_summary_publication_not_found`.
|
|
118
|
+
|
|
119
|
+
Never deliver again or resume follow-up only to update the mission summary.
|
|
87
120
|
|
|
88
121
|
## Delivery report items
|
|
89
122
|
|
|
@@ -168,3 +201,26 @@ EOF
|
|
|
168
201
|
checkout with the same `OVLD_HOME` to restore native capture.
|
|
169
202
|
- Retired inputs: `--change-rationales-*`, `--changed-files-*`, and the `changeRationales` /
|
|
170
203
|
`changedFiles` payload fields are rejected.
|
|
204
|
+
|
|
205
|
+
## Other missions' unresolved items
|
|
206
|
+
|
|
207
|
+
Attach includes only `missionSummary.otherMissionOpenItems`. When positive, run
|
|
208
|
+
`ovld protocol project-items --mission-id <id>` (MCP `overlord_project_items`)
|
|
209
|
+
before delivery. It uses your live objective change ledger plus comma-separated
|
|
210
|
+
`--path` evidence to rank accepted open items from other missions in this project.
|
|
211
|
+
`--query` is a case-insensitive text substring, never an id lookup. Filter with
|
|
212
|
+
`--kind risk,human_action,suggestion`; default limit is 20, max 100, with `--offset`.
|
|
213
|
+
`--include-own-mission` includes your own items. Draft observations never count.
|
|
214
|
+
`scanTruncated` means only the newest 2,000 rows were scanned; `ledger.captureGap`
|
|
215
|
+
means supply explicit paths. Restart pages after concurrent changes. Full detail
|
|
216
|
+
requires an authorized mission read; compact matches are leads, not proof.
|
|
217
|
+
|
|
218
|
+
Verify in code that the work resolved or obsoleted an item before closing it, with
|
|
219
|
+
a reason naming the verified change. Both standalone `close-items` and delivery
|
|
220
|
+
`missionSummary.closeItems` are valid for same-project items. Retain the exact
|
|
221
|
+
delivery operation id and semantic body for uncertain-response replay. If accepted
|
|
222
|
+
prose is withheld, use delivery-summary-context and publish-delivery-summary with
|
|
223
|
+
fresh content/evidence bases and a separate retained publication operation id.
|
|
224
|
+
Never resend closes to publication or redeliver to repair accepted prose.
|
|
225
|
+
Opt-in report drafts remain provisional: retain batch ids/digests on retry, rebase
|
|
226
|
+
CAS refusals, inspect current revision and seal at delivery; discovery reads no drafts.
|
|
@@ -28,6 +28,7 @@ identical across the CLI (`--payload-file -`) and the hosted MCP tool
|
|
|
28
28
|
"artifacts": [
|
|
29
29
|
{ "type": "next_steps", "label": "Next steps", "content": "…" } // optional
|
|
30
30
|
],
|
|
31
|
+
"operationId": "rw-2026-11-18-parser-fix", // optional; your retry identity
|
|
31
32
|
"missionSummary": { // optional
|
|
32
33
|
"headline": "One sentence for people, at most 140 characters.",
|
|
33
34
|
"summary": "Markdown, at most 1,200 characters: what the work provides, limits, what a person must do."
|
|
@@ -37,6 +38,12 @@ identical across the CLI (`--payload-file -`) and the hosted MCP tool
|
|
|
37
38
|
|
|
38
39
|
### Field rules
|
|
39
40
|
|
|
41
|
+
- **`operationId`** (optional) — the retry identity of this submission. Send the same value
|
|
42
|
+
when retrying after a timeout or lost response and Overlord returns the original mission
|
|
43
|
+
instead of creating a second one; use a new value only for separate work. The CLI saves
|
|
44
|
+
and reuses an attempt id for you (`--retry-operation <id>`, `--new-operation`); on MCP,
|
|
45
|
+
choose it yourself before the first call. Without it, every call creates a new mission.
|
|
46
|
+
|
|
40
47
|
- **`objective`** (required) — the completed objective text. May also be passed as
|
|
41
48
|
`--objective`/positional on the CLI; a flag always wins over the envelope.
|
|
42
49
|
- **`summary`** (required) — narrative, not a command list.
|
|
@@ -107,6 +114,8 @@ Call `overlord_record_work` with the same fields as first-class arguments
|
|
|
107
114
|
}
|
|
108
115
|
```
|
|
109
116
|
|
|
110
|
-
The tool returns the created review-column mission and the `deliveryId` whose
|
|
111
|
-
|
|
117
|
+
The tool returns the created review-column mission and the `deliveryId` whose delivery
|
|
118
|
+
presentation is composing asynchronously. Nothing writes the mission headline and summary for
|
|
119
|
+
you: without `missionSummary`, the result's `instruction` says how to publish it once later
|
|
120
|
+
with `publish-delivery-summary` (no session key). The same `missionSummary` object is accepted as a
|
|
112
121
|
first-class argument.
|