@unbrained/pm-cli 2026.10.10 → 2026.10.12

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 (180) hide show
  1. package/.claude-plugin/marketplace.json +1 -36
  2. package/CHANGELOG.md +31 -4
  3. package/dist/cli/commander-usage.d.ts +5 -5
  4. package/dist/cli/commander-usage.js +3 -3
  5. package/dist/cli/error-guidance.d.ts +2 -0
  6. package/dist/cli/error-guidance.js +2 -2
  7. package/dist/cli/help-json-payload.js +1 -1
  8. package/dist/cli/main.d.ts +1 -0
  9. package/dist/cli/main.js +4 -4
  10. package/dist/cli/register-operations.d.ts +9 -4
  11. package/dist/cli/register-operations.js +1 -1
  12. package/dist/cli-bundle/bundle-manifest.json +1 -382
  13. package/dist/cli-bundle/chunks/{chunk-2JYTSTQP.js → chunk-3LQTJN4J.js} +2 -2
  14. package/dist/cli-bundle/chunks/{chunk-YMLF6QT7.js → chunk-6PZPUJW3.js} +28 -28
  15. package/dist/cli-bundle/chunks/{chunk-RUT3CCAG.js → chunk-B465HPS5.js} +2 -2
  16. package/dist/cli-bundle/chunks/{chunk-ESRACL6K.js → chunk-DT3KUUKY.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-SSY4OSJR.js → chunk-GUVKPOY6.js} +2 -2
  18. package/dist/cli-bundle/chunks/chunk-ILQEZ4Y6.js +2 -0
  19. package/dist/cli-bundle/chunks/{chunk-RBPOO46D.js → chunk-JRRXWH5B.js} +2 -2
  20. package/dist/cli-bundle/chunks/{chunk-MEWBSWE3.js → chunk-LH5QDBMN.js} +2 -2
  21. package/dist/cli-bundle/chunks/{chunk-KNW3RSLS.js → chunk-M5NDSW6E.js} +30 -30
  22. package/dist/cli-bundle/chunks/{chunk-K2UTE75T.js → chunk-MHPU2LDF.js} +2 -2
  23. package/dist/cli-bundle/chunks/{chunk-OBLO45UM.js → chunk-QM3M7GB5.js} +2 -2
  24. package/dist/cli-bundle/chunks/{chunk-S445XEYT.js → chunk-UABZJXIS.js} +2 -2
  25. package/dist/cli-bundle/chunks/{chunk-ZWRLAOA4.js → chunk-X2I2EEAS.js} +2 -2
  26. package/dist/cli-bundle/chunks/{register-list-query-T6BOR67M.js → register-list-query-OR33UEML.js} +2 -2
  27. package/dist/cli-bundle/chunks/{register-mutation-6NXR7SAJ.js → register-mutation-R34EJ3NH.js} +2 -2
  28. package/dist/cli-bundle/chunks/register-operations-UHSMEHSF.js +2 -0
  29. package/dist/cli-bundle/chunks/{register-setup-MAYFPKBX.js → register-setup-5E3PT22L.js} +2 -2
  30. package/dist/cli-bundle/focused-chunks/{chunk-SIEGIPNT.js → chunk-7QIZB2F2.js} +7 -7
  31. package/dist/cli-bundle/focused-chunks/{chunk-PLTTMQAW.js → chunk-AJG3DBXR.js} +2 -2
  32. package/dist/cli-bundle/focused-chunks/chunk-AXBO53EQ.js +2 -0
  33. package/dist/cli-bundle/focused-chunks/{chunk-W5AE7GKZ.js → chunk-CYEZLKLL.js} +2 -2
  34. package/dist/cli-bundle/focused-chunks/{chunk-PBCYGO7X.js → chunk-FXRWJEQ5.js} +2 -2
  35. package/dist/cli-bundle/focused-chunks/{chunk-GVGFUD52.js → chunk-IKJFAU32.js} +2 -2
  36. package/dist/cli-bundle/focused-chunks/{chunk-DMSADMEU.js → chunk-OGOLIS5R.js} +2 -2
  37. package/dist/cli-bundle/focused-chunks/chunk-PPH5N26M.js +2 -0
  38. package/dist/cli-bundle/focused-chunks/{chunk-WAOXID5J.js → chunk-RNAWRTQV.js} +2 -2
  39. package/dist/cli-bundle/focused-chunks/{chunk-B3YW6H2I.js → chunk-RZVNGUT7.js} +2 -2
  40. package/dist/cli-bundle/focused-chunks/{chunk-52UJEHEV.js → chunk-SV6YYZLR.js} +2 -2
  41. package/dist/cli-bundle/focused-chunks/{chunk-EIOQNLBQ.js → chunk-TS46OZD5.js} +2 -2
  42. package/dist/cli-bundle/focused-chunks/{chunk-KNJR2WUO.js → chunk-VBTLX5SN.js} +62 -62
  43. package/dist/cli-bundle/focused-chunks/{chunk-JGFSSR3G.js → chunk-YCOJLIDI.js} +3 -3
  44. package/dist/cli-bundle/focused-chunks/chunk-YDJT33JU.js +2 -0
  45. package/dist/cli-bundle/focused-chunks/{chunk-AU6VJGTY.js → chunk-Z4T3637Y.js} +2 -2
  46. package/dist/cli-bundle/main.js +22 -22
  47. package/dist/cli-bundle/sdk-authoring.js +1 -1
  48. package/dist/cli-bundle/sdk-contracts.js +1 -1
  49. package/dist/cli-bundle/sdk-core.js +31 -31
  50. package/dist/cli-bundle/sdk-governance.js +1 -1
  51. package/dist/cli-bundle/sdk-graph.js +1 -1
  52. package/dist/cli-bundle/sdk-merge.js +24 -24
  53. package/dist/cli-bundle/sdk-query.js +1 -1
  54. package/dist/cli-bundle/sdk-runtime.js +1 -1
  55. package/dist/cli-bundle/sdk-testing.js +1 -1
  56. package/dist/cli-bundle/sdk.js +9 -9
  57. package/dist/core/history/event-classification.d.ts +1 -1
  58. package/dist/core/history/event-classification.js +1 -1
  59. package/dist/core/item/item-format.d.ts +2 -0
  60. package/dist/core/item/item-format.js +2 -2
  61. package/dist/core/telemetry/runtime.d.ts +1 -1
  62. package/dist/core/telemetry/runtime.js +2 -2
  63. package/dist/core/test/background-runs.d.ts +1 -0
  64. package/dist/core/test/background-runs.js +2 -2
  65. package/dist/sdk/agent/command-suggestions.d.ts +2 -0
  66. package/dist/sdk/agent/command-suggestions.js +1 -1
  67. package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
  68. package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +1 -1
  69. package/dist/sdk/cli-contracts/grammar-contracts.js +1 -1
  70. package/dist/sdk/cli-contracts/registration-helpers.d.ts +1 -4
  71. package/dist/sdk/cli-contracts/registration-helpers.js +1 -1
  72. package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
  73. package/dist/sdk/cli-contracts/tool-schema.d.ts +1 -1
  74. package/dist/sdk/cli-contracts/tool-schema.js +1 -1
  75. package/dist/sdk/core.d.ts +1 -0
  76. package/dist/sdk/core.js +1 -1
  77. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
  78. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
  79. package/dist/sdk/governance/artifact-ledgers.d.ts +59 -0
  80. package/dist/sdk/governance/artifact-ledgers.js +2 -0
  81. package/dist/sdk/governance.d.ts +1 -0
  82. package/dist/sdk/governance.js +1 -1
  83. package/dist/sdk/index.d.ts +2 -0
  84. package/dist/sdk/index.js +1 -1
  85. package/dist/sdk/public-surface.json +1 -1
  86. package/dist/sdk/test/batch.js +1 -1
  87. package/dist/sdk/test/command-args.d.ts +4 -0
  88. package/dist/sdk/test/command-args.js +2 -0
  89. package/dist/sdk/test/entry.d.ts +3 -0
  90. package/dist/sdk/test/entry.js +1 -1
  91. package/dist/sdk/test/execution.d.ts +15 -4
  92. package/dist/sdk/test/execution.js +2 -2
  93. package/dist/sdk/test/prerequisites.d.ts +6 -0
  94. package/dist/sdk/test/prerequisites.js +2 -0
  95. package/dist/sdk/test/trust.js +1 -1
  96. package/dist/sdk/test/update.d.ts +55 -0
  97. package/dist/sdk/test/update.js +2 -0
  98. package/dist/types.d.ts +4 -0
  99. package/dist/types.js +1 -1
  100. package/docs/LINKED_TEST_EDITS.md +79 -0
  101. package/docs/RELEASE_LEDGER_RECONCILIATION.md +148 -0
  102. package/docs/RELEASE_RELIABILITY.md +4 -0
  103. package/docs/RELEASING.md +53 -13
  104. package/docs/SDK.md +178 -636
  105. package/docs/SDK_EVIDENCE_TRACEABILITY.md +4 -0
  106. package/docs/TESTING.md +13 -0
  107. package/docs/agent-task-token-baseline.json +1 -292
  108. package/docs/agent-task-transcripts.json +1 -478
  109. package/docs/ecosystem-review-2026-09-28.json +1 -2866
  110. package/docs/examples/policy-restricted-extension/manifest.json +1 -22
  111. package/docs/examples/policy-restricted-extension/package.json +1 -8
  112. package/docs/examples/sdk-agent-environment/package.json +1 -8
  113. package/docs/examples/sdk-app-embedding/package.json +1 -9
  114. package/docs/examples/sdk-contract-consumer/package.json +1 -11
  115. package/docs/examples/sdk-custom-tool/package.json +1 -13
  116. package/docs/examples/starter-extension/manifest.json +1 -33
  117. package/docs/examples/starter-extension/package.json +1 -10
  118. package/docs/generated/FLAG_LEXICON_BUDGETS.md +2 -2
  119. package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +8 -3
  120. package/docs/performance/corpus-shape-comparison.json +1 -108
  121. package/docs/performance/latest-scale-report.json +1 -418
  122. package/docs/performance/runner-qualification.md +36 -0
  123. package/docs/performance/scale-100k-report.json +1 -418
  124. package/docs/schemas/extension-manifest.schema.json +1 -165
  125. package/marketplace.json +1 -36
  126. package/package.json +1 -1
  127. package/packages/pm-beads/extensions/beads/manifest.json +1 -28
  128. package/packages/pm-beads/extensions/beads/package.json +1 -3
  129. package/packages/pm-beads/package.json +1 -50
  130. package/packages/pm-calendar/extensions/calendar/manifest.json +1 -22
  131. package/packages/pm-calendar/extensions/calendar/package.json +1 -3
  132. package/packages/pm-calendar/package.json +1 -51
  133. package/packages/pm-command-kit/extensions/command-kit/manifest.json +1 -22
  134. package/packages/pm-command-kit/extensions/command-kit/package.json +1 -3
  135. package/packages/pm-command-kit/package.json +1 -53
  136. package/packages/pm-digital-twin/extensions/digital-twin/manifest.json +1 -19
  137. package/packages/pm-digital-twin/extensions/digital-twin/package.json +1 -3
  138. package/packages/pm-digital-twin/package.json +1 -58
  139. package/packages/pm-governance-audit/extensions/governance-audit/manifest.json +1 -19
  140. package/packages/pm-governance-audit/extensions/governance-audit/package.json +1 -3
  141. package/packages/pm-governance-audit/package.json +1 -55
  142. package/packages/pm-guide-shell/extensions/guide-shell/manifest.json +1 -22
  143. package/packages/pm-guide-shell/extensions/guide-shell/package.json +1 -3
  144. package/packages/pm-guide-shell/package.json +1 -52
  145. package/packages/pm-kanban/extensions/kanban/manifest.json +1 -19
  146. package/packages/pm-kanban/extensions/kanban/package.json +1 -3
  147. package/packages/pm-kanban/package.json +1 -57
  148. package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/manifest.json +1 -19
  149. package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/package.json +1 -3
  150. package/packages/pm-lifecycle-hooks/package.json +1 -52
  151. package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/manifest.json +1 -29
  152. package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/package.json +1 -3
  153. package/packages/pm-linked-test-adapters/package.json +1 -53
  154. package/packages/pm-search-advanced/extensions/search-advanced/manifest.json +1 -29
  155. package/packages/pm-search-advanced/extensions/search-advanced/package.json +1 -3
  156. package/packages/pm-search-advanced/package.json +1 -54
  157. package/packages/pm-templates/extensions/templates/manifest.json +1 -22
  158. package/packages/pm-templates/extensions/templates/package.json +1 -3
  159. package/packages/pm-templates/package.json +1 -50
  160. package/packages/pm-todos/extensions/todos/manifest.json +1 -29
  161. package/packages/pm-todos/extensions/todos/package.json +1 -3
  162. package/packages/pm-todos/package.json +1 -51
  163. package/packages/pm-vcs/extensions/vcs/manifest.json +1 -19
  164. package/packages/pm-vcs/extensions/vcs/package.json +1 -3
  165. package/packages/pm-vcs/package.json +1 -55
  166. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -25
  167. package/plugins/pm-claude/.mcp.json +1 -8
  168. package/plugins/pm-claude/hooks/hooks.json +1 -17
  169. package/plugins/pm-claude/package.json +1 -9
  170. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -45
  171. package/plugins/pm-codex/.mcp.json +1 -11
  172. package/plugins/pm-codex/mcp.json +1 -11
  173. package/plugins/pm-codex/package.json +1 -9
  174. package/plugins/pm-codex/plugin.json +1 -45
  175. package/runtime-dependencies.json +1 -512
  176. package/dist/cli-bundle/chunks/chunk-BXSXT5Z6.js +0 -2
  177. package/dist/cli-bundle/chunks/register-operations-PDOBQZUJ.js +0 -2
  178. package/dist/cli-bundle/focused-chunks/chunk-2CJWTLQG.js +0 -2
  179. package/dist/cli-bundle/focused-chunks/chunk-MJQ253F3.js +0 -2
  180. package/dist/cli-bundle/focused-chunks/chunk-WOEZJUA2.js +0 -2
@@ -1,478 +1 @@
1
- {
2
- "version": 2,
3
- "orientation": {
4
- "canonical_task_id": "orientation-context-intent",
5
- "required_capabilities": [
6
- "workspace_state",
7
- "active_ownership",
8
- "actionable_work"
9
- ],
10
- "protocols": [
11
- {
12
- "task_id": "orientation-context-intent",
13
- "capabilities": [
14
- "workspace_state",
15
- "active_ownership",
16
- "actionable_work"
17
- ],
18
- "capability_evidence": {
19
- "workspace_state": [
20
- {
21
- "step_id": "context",
22
- "field_path": "summary.active_items"
23
- }
24
- ],
25
- "active_ownership": [
26
- {
27
- "step_id": "context",
28
- "field_path": "activity"
29
- }
30
- ],
31
- "actionable_work": [
32
- {
33
- "step_id": "context",
34
- "field_path": "hierarchy"
35
- }
36
- ]
37
- }
38
- },
39
- {
40
- "task_id": "orientation-contracts-next",
41
- "capabilities": [
42
- "workspace_state",
43
- "active_ownership",
44
- "actionable_work"
45
- ],
46
- "capability_evidence": {
47
- "workspace_state": [
48
- {
49
- "step_id": "next",
50
- "field_path": "summary.in_progress"
51
- }
52
- ],
53
- "active_ownership": [
54
- {
55
- "step_id": "next",
56
- "field_path": "held_by_others"
57
- }
58
- ],
59
- "actionable_work": [
60
- {
61
- "step_id": "next",
62
- "field_path": "recommended.id"
63
- }
64
- ]
65
- }
66
- },
67
- {
68
- "task_id": "orientation-operating-rules",
69
- "capabilities": [
70
- "workspace_state",
71
- "active_ownership",
72
- "actionable_work"
73
- ],
74
- "capability_evidence": {
75
- "workspace_state": [
76
- {
77
- "step_id": "context",
78
- "field_path": "summary.active_items"
79
- }
80
- ],
81
- "active_ownership": [
82
- {
83
- "step_id": "in-progress",
84
- "field_path": "items"
85
- }
86
- ],
87
- "actionable_work": [
88
- {
89
- "step_id": "open",
90
- "field_path": "items"
91
- }
92
- ]
93
- }
94
- }
95
- ]
96
- },
97
- "tasks": [
98
- {
99
- "id": "orientation-context-intent",
100
- "description": "Build sufficient cold-start workspace, ownership, and actionable-work context with the bounded orientation intent.",
101
- "steps": [
102
- {
103
- "id": "context",
104
- "args": ["context", "--for", "orient", "--limit", "10"],
105
- "expected_exit_code": 0,
106
- "expected_output_kind": "diagnostic",
107
- "expected_accounting_mode": "self_reported",
108
- "required_fields": ["summary.active_items", "hierarchy", "activity"]
109
- }
110
- ]
111
- },
112
- {
113
- "id": "orientation-contracts-next",
114
- "description": "Compare the proposed contracts-summary plus next cold-start protocol on the same fixed workspace.",
115
- "steps": [
116
- {
117
- "id": "contracts",
118
- "args": ["contracts", "--summary"],
119
- "expected_exit_code": 0,
120
- "expected_output_kind": "collection",
121
- "expected_accounting_mode": "self_reported",
122
- "required_fields": ["commands"]
123
- },
124
- {
125
- "id": "next",
126
- "args": ["next", "--for", "execute", "--ready-only", "--limit", "3"],
127
- "expected_exit_code": 0,
128
- "expected_output_kind": "diagnostic",
129
- "expected_accounting_mode": "self_reported",
130
- "required_fields": [
131
- "summary.in_progress",
132
- "held_by_others",
133
- "recommended.id"
134
- ]
135
- }
136
- ]
137
- },
138
- {
139
- "id": "orientation-operating-rules",
140
- "description": "Compare the historical context, search, open-list, and in-progress-list orientation sequence.",
141
- "steps": [
142
- {
143
- "id": "context",
144
- "args": ["context", "--for", "orient", "--limit", "10"],
145
- "expected_exit_code": 0,
146
- "expected_output_kind": "diagnostic",
147
- "expected_accounting_mode": "self_reported",
148
- "required_fields": ["summary.active_items", "hierarchy", "activity"]
149
- },
150
- {
151
- "id": "search",
152
- "args": ["search", "agent task", "--status", "all", "--limit", "10"],
153
- "expected_exit_code": 0,
154
- "expected_output_kind": "collection",
155
- "expected_accounting_mode": "self_reported",
156
- "required_fields": ["items"]
157
- },
158
- {
159
- "id": "open",
160
- "args": ["list", "--status", "open", "--limit", "20"],
161
- "expected_exit_code": 0,
162
- "expected_output_kind": "collection",
163
- "expected_accounting_mode": "self_reported",
164
- "required_fields": ["items"]
165
- },
166
- {
167
- "id": "in-progress",
168
- "args": ["list", "--status", "in_progress", "--limit", "20"],
169
- "expected_exit_code": 0,
170
- "expected_output_kind": "collection",
171
- "expected_accounting_mode": "self_reported",
172
- "required_fields": ["items"]
173
- }
174
- ]
175
- },
176
- {
177
- "id": "context-bootstrap",
178
- "description": "Orient in a scaled workspace and inspect the canonical focus item.",
179
- "steps": [
180
- {
181
- "id": "triage",
182
- "args": ["list", "--for", "triage", "--limit", "2"],
183
- "expected_exit_code": 0,
184
- "expected_output_kind": "collection",
185
- "expected_accounting_mode": "self_reported",
186
- "required_fields": ["items"]
187
- },
188
- {
189
- "id": "orient",
190
- "args": ["context", "--for", "orient", "--limit", "5"],
191
- "expected_exit_code": 0,
192
- "expected_output_kind": "diagnostic",
193
- "expected_accounting_mode": "self_reported",
194
- "required_fields": ["summary.active_items", "hierarchy", "activity"]
195
- },
196
- {
197
- "id": "inspect",
198
- "args": ["get", "$ANCHOR_ID", "--for", "inspect"],
199
- "expected_exit_code": 0,
200
- "expected_output_kind": "entity",
201
- "expected_accounting_mode": "self_reported",
202
- "required_fields": ["item.id"]
203
- }
204
- ]
205
- },
206
- {
207
- "id": "closed-domain-recovery",
208
- "description": "Reject an invalid context intent and execute the advertised shell-free retry.",
209
- "steps": [
210
- {
211
- "id": "refuse-intent",
212
- "args": ["get", "$ANCHOR_ID", "--for", "invalid-agent-intent"],
213
- "expected_exit_code": 2,
214
- "expected_output_kind": "refusal",
215
- "expected_accounting_mode": "self_reported",
216
- "required_fields": ["code", "refusal", "recovery"],
217
- "expected_error_code": "unknown_context_intent",
218
- "expected_field_values": {
219
- "recovery.recovery_mode": "compact"
220
- },
221
- "expected_refusal_surface": "--for"
222
- },
223
- {
224
- "id": "retry-intent",
225
- "args": ["get", "$ANCHOR_ID", "--for", "inspect"],
226
- "expected_exit_code": 0,
227
- "expected_output_kind": "entity",
228
- "expected_accounting_mode": "self_reported",
229
- "required_fields": ["item.id"],
230
- "recovery_for": "refuse-intent"
231
- }
232
- ]
233
- },
234
- {
235
- "id": "unknown-option-recovery",
236
- "description": "Identify an unsupported option after valid flags and continue with the corrected command.",
237
- "steps": [
238
- {
239
- "id": "refuse-option",
240
- "args": [
241
- "search",
242
- "agent task",
243
- "--status",
244
- "open",
245
- "--limit",
246
- "5",
247
- "--include-body"
248
- ],
249
- "expected_exit_code": 2,
250
- "expected_output_kind": "refusal",
251
- "expected_accounting_mode": "self_reported",
252
- "required_fields": ["code", "refusal", "recovery"],
253
- "expected_error_code": "unknown_option",
254
- "expected_refusal_surface": "--include-body"
255
- },
256
- {
257
- "id": "retry-option",
258
- "args": ["search", "agent task", "--status", "open", "--limit", "5"],
259
- "expected_exit_code": 0,
260
- "expected_output_kind": "collection",
261
- "expected_accounting_mode": "self_reported",
262
- "required_fields": ["items"],
263
- "recovery_for": "refuse-option"
264
- }
265
- ]
266
- },
267
- {
268
- "id": "lifecycle-mutation",
269
- "description": "Create, inspect, close, and confirm a project item through public CLI receipts.",
270
- "steps": [
271
- {
272
- "id": "create",
273
- "args": [
274
- "create",
275
- "--id",
276
- "$LIFECYCLE_ID",
277
- "--title",
278
- "Transcript lifecycle item",
279
- "--description",
280
- "Golden multi-step lifecycle task",
281
- "--type",
282
- "Task",
283
- "--status",
284
- "open",
285
- "--create-mode",
286
- "progressive"
287
- ],
288
- "expected_exit_code": 0,
289
- "expected_output_kind": "mutation_receipt",
290
- "expected_accounting_mode": "self_reported",
291
- "required_fields": ["id", "changed_field_count"]
292
- },
293
- {
294
- "id": "inspect-open",
295
- "args": ["get", "$LIFECYCLE_ID", "--for", "inspect"],
296
- "expected_exit_code": 0,
297
- "expected_output_kind": "entity",
298
- "expected_accounting_mode": "self_reported",
299
- "required_fields": ["item.id", "item.status"],
300
- "expected_field_values": {
301
- "item.status": "open"
302
- }
303
- },
304
- {
305
- "id": "close",
306
- "args": ["close", "$LIFECYCLE_ID", "Golden task completed"],
307
- "expected_exit_code": 0,
308
- "expected_output_kind": "mutation_receipt",
309
- "expected_accounting_mode": "self_reported",
310
- "required_fields": ["id", "status", "close_reason"]
311
- },
312
- {
313
- "id": "inspect-closed",
314
- "args": ["get", "$LIFECYCLE_ID", "--for", "inspect"],
315
- "expected_exit_code": 0,
316
- "expected_output_kind": "entity",
317
- "expected_accounting_mode": "self_reported",
318
- "required_fields": ["item.id", "item.status"],
319
- "expected_field_values": {
320
- "item.status": "closed"
321
- }
322
- }
323
- ]
324
- },
325
- {
326
- "id": "bulk-effect-outcomes",
327
- "description": "Preserve successful partial-effect and no-effect outcomes across a bulk lifecycle task.",
328
- "steps": [
329
- {
330
- "id": "create-bulk-target",
331
- "args": [
332
- "create",
333
- "--id",
334
- "$BULK_ID",
335
- "--title",
336
- "Transcript bulk effect target",
337
- "--description",
338
- "Golden bulk outcome transcript target",
339
- "--type",
340
- "Task",
341
- "--status",
342
- "open",
343
- "--create-mode",
344
- "progressive"
345
- ],
346
- "expected_exit_code": 0,
347
- "expected_output_kind": "mutation_receipt",
348
- "expected_accounting_mode": "self_reported",
349
- "required_fields": ["id", "status", "changed_field_count"]
350
- },
351
- {
352
- "id": "partial-effect",
353
- "args": [
354
- "close-many",
355
- "--ids",
356
- "$BULK_ID,pm-transcript-missing",
357
- "--reason",
358
- "Golden partial-effect transcript",
359
- "--validate-close",
360
- "off",
361
- "--no-checkpoint"
362
- ],
363
- "expected_exit_code": 7,
364
- "expected_output_kind": "collection",
365
- "expected_accounting_mode": "self_reported",
366
- "required_fields": ["rows", "outcome", "exit_code"],
367
- "expected_field_values": {
368
- "outcome": "partial_effect"
369
- }
370
- },
371
- {
372
- "id": "no-effect",
373
- "args": [
374
- "close-many",
375
- "--ids",
376
- "$BULK_ID",
377
- "--reason",
378
- "Golden no-effect transcript",
379
- "--validate-close",
380
- "off",
381
- "--no-checkpoint"
382
- ],
383
- "expected_exit_code": 6,
384
- "expected_output_kind": "collection",
385
- "expected_accounting_mode": "self_reported",
386
- "required_fields": ["rows", "outcome", "exit_code"],
387
- "expected_field_values": {
388
- "outcome": "no_effect"
389
- }
390
- }
391
- ]
392
- },
393
- {
394
- "id": "plan-execution-mutations",
395
- "description": "Create a Plan, add and complete a step, then inspect its durable evidence without echoing the full Plan on each mutation.",
396
- "steps": [
397
- {
398
- "id": "create-plan",
399
- "args": [
400
- "create",
401
- "--id",
402
- "pm-transcript-plan",
403
- "--type",
404
- "Plan",
405
- "--title",
406
- "Transcript execution Plan",
407
- "--create-mode",
408
- "progressive"
409
- ],
410
- "expected_exit_code": 0,
411
- "expected_output_kind": "mutation_receipt",
412
- "expected_accounting_mode": "self_reported",
413
- "required_fields": ["id", "status"]
414
- },
415
- {
416
- "id": "add-step",
417
- "args": [
418
- "plan",
419
- "add-step",
420
- "pm-transcript-plan",
421
- "--step-title",
422
- "Verify result",
423
- "--step-body",
424
- "Durable execution context retained for later inspection."
425
- ],
426
- "expected_exit_code": 0,
427
- "expected_output_kind": "diagnostic",
428
- "expected_accounting_mode": "self_reported",
429
- "required_fields": [
430
- "id",
431
- "step.id",
432
- "steps_summary.total",
433
- "inspection_command"
434
- ],
435
- "expected_field_values": {
436
- "kind": "plan_mutation",
437
- "steps_summary.total": 1
438
- }
439
- },
440
- {
441
- "id": "complete-step",
442
- "args": [
443
- "plan",
444
- "complete-step",
445
- "pm-transcript-plan",
446
- "plan-step-001",
447
- "--step-evidence",
448
- "Verified result"
449
- ],
450
- "expected_exit_code": 0,
451
- "expected_output_kind": "diagnostic",
452
- "expected_accounting_mode": "self_reported",
453
- "required_fields": [
454
- "id",
455
- "step.status",
456
- "steps_summary.completed",
457
- "omission_receipt"
458
- ],
459
- "expected_field_values": {
460
- "step.status": "completed",
461
- "steps_summary.completed": 1
462
- }
463
- },
464
- {
465
- "id": "inspect-plan",
466
- "args": ["plan", "show", "pm-transcript-plan", "--depth", "deep"],
467
- "expected_exit_code": 0,
468
- "expected_output_kind": "diagnostic",
469
- "expected_accounting_mode": "self_reported",
470
- "required_fields": ["plan.steps", "plan.steps_summary.completed"],
471
- "expected_field_values": {
472
- "plan.steps_summary.completed": 1
473
- }
474
- }
475
- ]
476
- }
477
- ]
478
- }
1
+ {"version":2,"orientation":{"canonical_task_id":"orientation-context-intent","required_capabilities":["workspace_state","active_ownership","actionable_work"],"protocols":[{"task_id":"orientation-context-intent","capabilities":["workspace_state","active_ownership","actionable_work"],"capability_evidence":{"workspace_state":[{"step_id":"context","field_path":"summary.active_items"}],"active_ownership":[{"step_id":"context","field_path":"activity"}],"actionable_work":[{"step_id":"context","field_path":"hierarchy"}]}},{"task_id":"orientation-contracts-next","capabilities":["workspace_state","active_ownership","actionable_work"],"capability_evidence":{"workspace_state":[{"step_id":"next","field_path":"summary.in_progress"}],"active_ownership":[{"step_id":"next","field_path":"held_by_others"}],"actionable_work":[{"step_id":"next","field_path":"recommended.id"}]}},{"task_id":"orientation-operating-rules","capabilities":["workspace_state","active_ownership","actionable_work"],"capability_evidence":{"workspace_state":[{"step_id":"context","field_path":"summary.active_items"}],"active_ownership":[{"step_id":"in-progress","field_path":"items"}],"actionable_work":[{"step_id":"open","field_path":"items"}]}}]},"tasks":[{"id":"orientation-context-intent","description":"Build sufficient cold-start workspace, ownership, and actionable-work context with the bounded orientation intent.","steps":[{"id":"context","args":["context","--for","orient","--limit","10"],"expected_exit_code":0,"expected_output_kind":"diagnostic","expected_accounting_mode":"self_reported","required_fields":["summary.active_items","hierarchy","activity"]}]},{"id":"orientation-contracts-next","description":"Compare the proposed contracts-summary plus next cold-start protocol on the same fixed workspace.","steps":[{"id":"contracts","args":["contracts","--summary"],"expected_exit_code":0,"expected_output_kind":"collection","expected_accounting_mode":"self_reported","required_fields":["commands"]},{"id":"next","args":["next","--for","execute","--ready-only","--limit","3"],"expected_exit_code":0,"expected_output_kind":"diagnostic","expected_accounting_mode":"self_reported","required_fields":["summary.in_progress","held_by_others","recommended.id"]}]},{"id":"orientation-operating-rules","description":"Compare the historical context, search, open-list, and in-progress-list orientation sequence.","steps":[{"id":"context","args":["context","--for","orient","--limit","10"],"expected_exit_code":0,"expected_output_kind":"diagnostic","expected_accounting_mode":"self_reported","required_fields":["summary.active_items","hierarchy","activity"]},{"id":"search","args":["search","agent task","--status","all","--limit","10"],"expected_exit_code":0,"expected_output_kind":"collection","expected_accounting_mode":"self_reported","required_fields":["items"]},{"id":"open","args":["list","--status","open","--limit","20"],"expected_exit_code":0,"expected_output_kind":"collection","expected_accounting_mode":"self_reported","required_fields":["items"]},{"id":"in-progress","args":["list","--status","in_progress","--limit","20"],"expected_exit_code":0,"expected_output_kind":"collection","expected_accounting_mode":"self_reported","required_fields":["items"]}]},{"id":"context-bootstrap","description":"Orient in a scaled workspace and inspect the canonical focus item.","steps":[{"id":"triage","args":["list","--for","triage","--limit","2"],"expected_exit_code":0,"expected_output_kind":"collection","expected_accounting_mode":"self_reported","required_fields":["items"]},{"id":"orient","args":["context","--for","orient","--limit","5"],"expected_exit_code":0,"expected_output_kind":"diagnostic","expected_accounting_mode":"self_reported","required_fields":["summary.active_items","hierarchy","activity"]},{"id":"inspect","args":["get","$ANCHOR_ID","--for","inspect"],"expected_exit_code":0,"expected_output_kind":"entity","expected_accounting_mode":"self_reported","required_fields":["item.id"]}]},{"id":"closed-domain-recovery","description":"Reject an invalid context intent and execute the advertised shell-free retry.","steps":[{"id":"refuse-intent","args":["get","$ANCHOR_ID","--for","invalid-agent-intent"],"expected_exit_code":2,"expected_output_kind":"refusal","expected_accounting_mode":"self_reported","required_fields":["code","refusal","recovery"],"expected_error_code":"unknown_context_intent","expected_field_values":{"recovery.recovery_mode":"compact"},"expected_refusal_surface":"--for"},{"id":"retry-intent","args":["get","$ANCHOR_ID","--for","inspect"],"expected_exit_code":0,"expected_output_kind":"entity","expected_accounting_mode":"self_reported","required_fields":["item.id"],"recovery_for":"refuse-intent"}]},{"id":"unknown-option-recovery","description":"Identify an unsupported option after valid flags and continue with the corrected command.","steps":[{"id":"refuse-option","args":["search","agent task","--status","open","--limit","5","--include-body"],"expected_exit_code":2,"expected_output_kind":"refusal","expected_accounting_mode":"self_reported","required_fields":["code","refusal","recovery"],"expected_error_code":"unknown_option","expected_refusal_surface":"--include-body"},{"id":"retry-option","args":["search","agent task","--status","open","--limit","5"],"expected_exit_code":0,"expected_output_kind":"collection","expected_accounting_mode":"self_reported","required_fields":["items"],"recovery_for":"refuse-option"}]},{"id":"lifecycle-mutation","description":"Create, inspect, close, and confirm a project item through public CLI receipts.","steps":[{"id":"create","args":["create","--id","$LIFECYCLE_ID","--title","Transcript lifecycle item","--description","Golden multi-step lifecycle task","--type","Task","--status","open","--create-mode","progressive"],"expected_exit_code":0,"expected_output_kind":"mutation_receipt","expected_accounting_mode":"self_reported","required_fields":["id","changed_field_count"]},{"id":"inspect-open","args":["get","$LIFECYCLE_ID","--for","inspect"],"expected_exit_code":0,"expected_output_kind":"entity","expected_accounting_mode":"self_reported","required_fields":["item.id","item.status"],"expected_field_values":{"item.status":"open"}},{"id":"close","args":["close","$LIFECYCLE_ID","Golden task completed"],"expected_exit_code":0,"expected_output_kind":"mutation_receipt","expected_accounting_mode":"self_reported","required_fields":["id","status","close_reason"]},{"id":"inspect-closed","args":["get","$LIFECYCLE_ID","--for","inspect"],"expected_exit_code":0,"expected_output_kind":"entity","expected_accounting_mode":"self_reported","required_fields":["item.id","item.status"],"expected_field_values":{"item.status":"closed"}}]},{"id":"bulk-effect-outcomes","description":"Preserve successful partial-effect and no-effect outcomes across a bulk lifecycle task.","steps":[{"id":"create-bulk-target","args":["create","--id","$BULK_ID","--title","Transcript bulk effect target","--description","Golden bulk outcome transcript target","--type","Task","--status","open","--create-mode","progressive"],"expected_exit_code":0,"expected_output_kind":"mutation_receipt","expected_accounting_mode":"self_reported","required_fields":["id","status","changed_field_count"]},{"id":"partial-effect","args":["close-many","--ids","$BULK_ID,pm-transcript-missing","--reason","Golden partial-effect transcript","--validate-close","off","--no-checkpoint"],"expected_exit_code":7,"expected_output_kind":"collection","expected_accounting_mode":"self_reported","required_fields":["rows","outcome","exit_code"],"expected_field_values":{"outcome":"partial_effect"}},{"id":"no-effect","args":["close-many","--ids","$BULK_ID","--reason","Golden no-effect transcript","--validate-close","off","--no-checkpoint"],"expected_exit_code":6,"expected_output_kind":"collection","expected_accounting_mode":"self_reported","required_fields":["rows","outcome","exit_code"],"expected_field_values":{"outcome":"no_effect"}}]},{"id":"plan-execution-mutations","description":"Create a Plan, add and complete a step, then inspect its durable evidence without echoing the full Plan on each mutation.","steps":[{"id":"create-plan","args":["create","--id","pm-transcript-plan","--type","Plan","--title","Transcript execution Plan","--create-mode","progressive"],"expected_exit_code":0,"expected_output_kind":"mutation_receipt","expected_accounting_mode":"self_reported","required_fields":["id","status"]},{"id":"add-step","args":["plan","add-step","pm-transcript-plan","--step-title","Verify result","--step-body","Durable execution context retained for later inspection."],"expected_exit_code":0,"expected_output_kind":"diagnostic","expected_accounting_mode":"self_reported","required_fields":["id","step.id","steps_summary.total","inspection_command"],"expected_field_values":{"kind":"plan_mutation","steps_summary.total":1}},{"id":"complete-step","args":["plan","complete-step","pm-transcript-plan","plan-step-001","--step-evidence","Verified result"],"expected_exit_code":0,"expected_output_kind":"diagnostic","expected_accounting_mode":"self_reported","required_fields":["id","step.status","steps_summary.completed","omission_receipt"],"expected_field_values":{"step.status":"completed","steps_summary.completed":1}},{"id":"inspect-plan","args":["plan","show","pm-transcript-plan","--depth","deep"],"expected_exit_code":0,"expected_output_kind":"diagnostic","expected_accounting_mode":"self_reported","required_fields":["plan.steps","plan.steps_summary.completed"],"expected_field_values":{"plan.steps_summary.completed":1}}]}]}