@amoree-code/ocean 2.7.0 → 2.9.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 (31) hide show
  1. package/dist/infrastructure/providers/task-reviewer.js +35 -0
  2. package/dist/interfaces/cli/help-command.js +1 -1
  3. package/dist/interfaces/cli/memory-command.js +36 -10
  4. package/dist/interfaces/cli/operate-command.js +2 -0
  5. package/dist/interfaces/cli/tasks-command.js +18 -3
  6. package/node_modules/@ocean/brain/dist/brain/brain-eval.js +45 -9
  7. package/node_modules/@ocean/brain/dist/brain/brain-markdown.js +10 -1
  8. package/node_modules/@ocean/brain/dist/brain/brain-reindex.js +4 -1
  9. package/node_modules/@ocean/brain/dist/brain/brain-service.js +69 -8
  10. package/node_modules/@ocean/brain/dist/infrastructure/brain/brain-index.js +5 -3
  11. package/node_modules/@ocean/brain/dist/memory/lesson-learning.js +35 -3
  12. package/node_modules/@ocean/brain/dist/memory/session-promotion.js +2 -1
  13. package/node_modules/@ocean/brain/package.json +1 -1
  14. package/node_modules/@ocean/context/package.json +1 -1
  15. package/node_modules/@ocean/core/dist/domain/ports/brain-index-port.js +3 -2
  16. package/node_modules/@ocean/core/package.json +1 -1
  17. package/node_modules/@ocean/loop/dist/infrastructure/persistence/session-store.js +15 -0
  18. package/node_modules/@ocean/loop/dist/operations/task-operations.js +6 -1
  19. package/node_modules/@ocean/loop/dist/tasks/archive-tasks.js +11 -9
  20. package/node_modules/@ocean/loop/dist/tasks/claim-task.js +11 -3
  21. package/node_modules/@ocean/loop/dist/tasks/task-git.js +28 -0
  22. package/node_modules/@ocean/loop/dist/tasks/task-verification.js +302 -0
  23. package/node_modules/@ocean/loop/dist/tasks/verify-task.js +69 -21
  24. package/node_modules/@ocean/loop/package.json +1 -1
  25. package/node_modules/@ocean/market/package.json +1 -1
  26. package/node_modules/@ocean/services/dist/infrastructure/mcp/ocean-server.js +18 -0
  27. package/node_modules/@ocean/services/package.json +1 -1
  28. package/ocean-marketplace.json +34 -34
  29. package/package.json +7 -7
  30. package/templates/workspace/charter/policies/contracts/task.md +44 -1
  31. package/templates/workspace/charter/policies/task.md +5 -1
@@ -5,9 +5,9 @@
5
5
  {
6
6
  "kind": "skill",
7
7
  "name": "dev.ocean.skills.business-logic",
8
- "version": "2.7.0",
8
+ "version": "2.9.0",
9
9
  "engines": {
10
- "ocean": ">=2.7.0"
10
+ "ocean": ">=2.9.0"
11
11
  },
12
12
  "source": {
13
13
  "type": "path",
@@ -23,9 +23,9 @@
23
23
  {
24
24
  "kind": "skill",
25
25
  "name": "dev.ocean.skills.catch-up",
26
- "version": "2.7.0",
26
+ "version": "2.9.0",
27
27
  "engines": {
28
- "ocean": ">=2.7.0"
28
+ "ocean": ">=2.9.0"
29
29
  },
30
30
  "source": {
31
31
  "type": "path",
@@ -41,9 +41,9 @@
41
41
  {
42
42
  "kind": "skill",
43
43
  "name": "dev.ocean.skills.core-thinking",
44
- "version": "2.7.0",
44
+ "version": "2.9.0",
45
45
  "engines": {
46
- "ocean": ">=2.7.0"
46
+ "ocean": ">=2.9.0"
47
47
  },
48
48
  "source": {
49
49
  "type": "path",
@@ -59,9 +59,9 @@
59
59
  {
60
60
  "kind": "skill",
61
61
  "name": "dev.ocean.skills.daily-harvest",
62
- "version": "2.7.0",
62
+ "version": "2.9.0",
63
63
  "engines": {
64
- "ocean": ">=2.7.0"
64
+ "ocean": ">=2.9.0"
65
65
  },
66
66
  "source": {
67
67
  "type": "path",
@@ -77,9 +77,9 @@
77
77
  {
78
78
  "kind": "skill",
79
79
  "name": "dev.ocean.skills.design-thinking",
80
- "version": "2.7.0",
80
+ "version": "2.9.0",
81
81
  "engines": {
82
- "ocean": ">=2.7.0"
82
+ "ocean": ">=2.9.0"
83
83
  },
84
84
  "source": {
85
85
  "type": "path",
@@ -95,9 +95,9 @@
95
95
  {
96
96
  "kind": "skill",
97
97
  "name": "dev.ocean.skills.graft",
98
- "version": "2.7.0",
98
+ "version": "2.9.0",
99
99
  "engines": {
100
- "ocean": ">=2.7.0"
100
+ "ocean": ">=2.9.0"
101
101
  },
102
102
  "source": {
103
103
  "type": "path",
@@ -113,9 +113,9 @@
113
113
  {
114
114
  "kind": "skill",
115
115
  "name": "dev.ocean.skills.loop",
116
- "version": "2.7.0",
116
+ "version": "2.9.0",
117
117
  "engines": {
118
- "ocean": ">=2.7.0"
118
+ "ocean": ">=2.9.0"
119
119
  },
120
120
  "source": {
121
121
  "type": "path",
@@ -131,9 +131,9 @@
131
131
  {
132
132
  "kind": "skill",
133
133
  "name": "dev.ocean.skills.memory-review",
134
- "version": "2.7.0",
134
+ "version": "2.9.0",
135
135
  "engines": {
136
- "ocean": ">=2.7.0"
136
+ "ocean": ">=2.9.0"
137
137
  },
138
138
  "source": {
139
139
  "type": "path",
@@ -149,9 +149,9 @@
149
149
  {
150
150
  "kind": "skill",
151
151
  "name": "dev.ocean.skills.session-handoff",
152
- "version": "2.7.0",
152
+ "version": "2.9.0",
153
153
  "engines": {
154
- "ocean": ">=2.7.0"
154
+ "ocean": ">=2.9.0"
155
155
  },
156
156
  "source": {
157
157
  "type": "path",
@@ -167,9 +167,9 @@
167
167
  {
168
168
  "kind": "skill",
169
169
  "name": "dev.ocean.skills.use-browser",
170
- "version": "2.7.0",
170
+ "version": "2.9.0",
171
171
  "engines": {
172
- "ocean": ">=2.7.0"
172
+ "ocean": ">=2.9.0"
173
173
  },
174
174
  "source": {
175
175
  "type": "path",
@@ -185,9 +185,9 @@
185
185
  {
186
186
  "kind": "skill",
187
187
  "name": "dev.ocean.skills.verification",
188
- "version": "2.7.0",
188
+ "version": "2.9.0",
189
189
  "engines": {
190
- "ocean": ">=2.7.0"
190
+ "ocean": ">=2.9.0"
191
191
  },
192
192
  "source": {
193
193
  "type": "path",
@@ -203,9 +203,9 @@
203
203
  {
204
204
  "kind": "skill",
205
205
  "name": "dev.ocean.skills.weekly-review",
206
- "version": "2.7.0",
206
+ "version": "2.9.0",
207
207
  "engines": {
208
- "ocean": ">=2.7.0"
208
+ "ocean": ">=2.9.0"
209
209
  },
210
210
  "source": {
211
211
  "type": "path",
@@ -247,9 +247,9 @@
247
247
  "npx"
248
248
  ]
249
249
  },
250
- "version": "2.7.0",
250
+ "version": "2.9.0",
251
251
  "engines": {
252
- "ocean": ">=2.7.0"
252
+ "ocean": ">=2.9.0"
253
253
  },
254
254
  "source": {
255
255
  "type": "path",
@@ -299,9 +299,9 @@
299
299
  "kind": "mcp",
300
300
  "name": "dev.ocean/mcp-gateway",
301
301
  "description": "One MCP endpoint for every registered server: Ocean's own and those installed from the marketplace.",
302
- "version": "2.7.0",
302
+ "version": "2.9.0",
303
303
  "engines": {
304
- "ocean": ">=2.7.0"
304
+ "ocean": ">=2.9.0"
305
305
  },
306
306
  "source": {
307
307
  "type": "path",
@@ -343,9 +343,9 @@
343
343
  "kind": "mcp",
344
344
  "name": "dev.ocean/obsidian",
345
345
  "description": "Ocean's Obsidian vault bridge over MCP.",
346
- "version": "2.7.0",
346
+ "version": "2.9.0",
347
347
  "engines": {
348
- "ocean": ">=2.7.0"
348
+ "ocean": ">=2.9.0"
349
349
  },
350
350
  "source": {
351
351
  "type": "path",
@@ -387,9 +387,9 @@
387
387
  "kind": "mcp",
388
388
  "name": "dev.ocean/ocean",
389
389
  "description": "Ocean's own MCP server: workspace status, tasks, handoffs, sessions and the brain.",
390
- "version": "2.7.0",
390
+ "version": "2.9.0",
391
391
  "engines": {
392
- "ocean": ">=2.7.0"
392
+ "ocean": ">=2.9.0"
393
393
  },
394
394
  "source": {
395
395
  "type": "path",
@@ -441,9 +441,9 @@
441
441
  "npx"
442
442
  ]
443
443
  },
444
- "version": "2.7.0",
444
+ "version": "2.9.0",
445
445
  "engines": {
446
- "ocean": ">=2.7.0"
446
+ "ocean": ">=2.9.0"
447
447
  },
448
448
  "source": {
449
449
  "type": "path",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@amoree-code/ocean",
3
3
  "description": "Local-first memory, tasks and session capture shared by every AI coding client: one private workspace for Claude, Codex, Gemini and more.",
4
- "version": "2.7.0",
4
+ "version": "2.9.0",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "author": "AMEER ABDULKAREEM JABBAR LAMI",
@@ -53,12 +53,12 @@
53
53
  "@langchain/core": "1.2.14",
54
54
  "@langchain/langgraph": "1.4.19",
55
55
  "@modelcontextprotocol/sdk": "1.32.0",
56
- "@ocean/brain": "2.7.0",
57
- "@ocean/context": "2.7.0",
58
- "@ocean/core": "2.7.0",
59
- "@ocean/loop": "2.7.0",
60
- "@ocean/market": "2.7.0",
61
- "@ocean/services": "2.7.0",
56
+ "@ocean/brain": "2.9.0",
57
+ "@ocean/context": "2.9.0",
58
+ "@ocean/core": "2.9.0",
59
+ "@ocean/loop": "2.9.0",
60
+ "@ocean/market": "2.9.0",
61
+ "@ocean/services": "2.9.0",
62
62
  "playwright-core": "^1.48.0",
63
63
  "sqlite-vec": "0.1.9",
64
64
  "zod": "^4.6.5"
@@ -75,6 +75,48 @@ session is working on the task right now (T-270). `claimed_at` is an ISO-8601 UT
75
75
  removed by `ocean tasks release` — it is not part of the task's lasting description. Rules
76
76
  and commands: `ocean policy task`, "Claims".
77
77
 
78
+ ### Verification fields (T-320)
79
+
80
+ ```yaml
81
+ verify: # the checks · inline `verify: pnpm test, ocean tasks doctor`, or a block list:
82
+ - AC-1: pnpm build && pnpm test # `AC-n:` names the Definition-of-done item it proves
83
+ - AC-2: ocean tasks doctor
84
+ review: agent # optional · agent | none — owner opt-in to the model review
85
+ verified: yes # written by `ocean tasks verify` · yes | no | partial | unknown
86
+ verified_at: 2026-11-21T09:00:00.000Z # written · ISO-8601 UTC
87
+ evidence: [AC-1:event:812, AC-2:event:813] # written · one event id per check
88
+ assumed: [independent review not run] # what was not checked; verify appends, never removes
89
+ base_commit: 3f2a… # written by the first `ocean tasks claim`, never changed after
90
+ ```
91
+
92
+ `verify:` is read from the frontmatter only (never a body line); without it, the fenced block
93
+ in `## Verification`, where a line may also start with `AC-n:`. Only allowlisted commands run
94
+ — a check never publishes, signs in or installs globally.
95
+
96
+ `ocean tasks verify <ID>` runs the checks with no model involved, then decides:
97
+
98
+ | `verified` | when |
99
+ | ---------- | ------------------------------------------------------------------------------------------ |
100
+ | `yes` | every check passed, and every `AC-n` in the Definition of done has a passing check |
101
+ | `partial` | every check passed, but an `AC-n` has no check of its own, or an opted-in review could not run |
102
+ | `no` | a check failed, nothing runnable was declared, the claimed paths never changed, or the review failed |
103
+ | `unknown` | never verified |
104
+
105
+ Each check becomes a `task_verify` evidence event in a `tasks-verify` session linked to the
106
+ task; the same events are copied to every session already linked to it, whose
107
+ `verification_status` becomes `proven` (yes) or `not_proven`. Lesson learning counts only
108
+ `task_verify` and `test` evidence — a provider exiting 0 proves nothing.
109
+
110
+ **Base commit.** While the task is claimed with `claimed_paths`, verify fails when nothing
111
+ under those paths changed since `base_commit` (committed, staged, unstaged or untracked).
112
+
113
+ **Lanes.** `class: low | medium` (or `small`) is verify only. `class: high | large` asks for
114
+ verify + review, but the review runs only when the task sets `review: agent` (the owner opts in
115
+ per task — no subagent runs on its own); without it the verdict stands and `assumed:` records
116
+ that no review ran. The review runs after the deterministic checks and never when they failed:
117
+ the cheapest model, read-only, checking only that every claimed item points to evidence, ending
118
+ with one line, `pass` or `fail — <reason>`.
119
+
78
120
  `artifacts` lists what actually exists beside `task.md`, and nothing more. It is a
79
121
  manifest, not a plan: a name appears here the moment the file is written and never
80
122
  before. An empty list is the normal, healthy value.
@@ -179,7 +221,8 @@ checklist to satisfy.
179
221
 
180
222
  When a task reaches `done`:
181
223
 
182
- 1. The verification in `## Verification` has actually run, and its real output is recorded.
224
+ 1. `ocean tasks verify <ID>` has run, and the task carries `verified: yes` (or `partial`)
225
+ with its `evidence` ids — `ocean tasks doctor` fails a `done` task without them.
183
226
  2. Each artifact is resolved once — promoted to `05-knowledge/<kind>/` if reusable,
184
227
  left with the task if not. Nothing is copied to both places.
185
228
  3. `state: done`, `updated:` bumped, the index line updated.
@@ -111,7 +111,11 @@ Most tasks produce `task.md` and nothing else. That is the correct outcome, not
111
111
 
112
112
  ## On completion — automatic, not on request
113
113
 
114
- 1. **Final verification** — run it, and report the real output.
114
+ 1. **Final verification** — `ocean tasks verify <ID>` runs the task's `verify:` commands with
115
+ no model, and writes `verified`, `verified_at` and `evidence` (event ids) into the task
116
+ and `verification_status` onto its sessions; report its real output. `tasks complete`
117
+ runs the same thing. A model's "done" is never evidence. A `done` task with no recorded
118
+ evidence fails `ocean tasks doctor`. Fields and lanes: the task contract, §2.
115
119
  2. **Lifecycle reading** — `ocean lifecycle --task <ID> --complete --verification passed|failed`.
116
120
  This is the boundary hook: a task finishing is exactly the `TASK_COMPLETED` trigger, and
117
121
  this is the one place it fires, deterministically, on every completion. Act on the