@cleocode/contracts 2026.10.27 → 2026.11.1-canary.11
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/README.md +2 -1
- package/dist/.source-stamp.json +4 -0
- package/dist/__tests__/acceptance-gate.test.js +15 -3
- package/dist/__tests__/acceptance-gate.test.js.map +1 -1
- package/dist/__tests__/completion-operation-contracts.test.js +1 -1
- package/dist/__tests__/completion-operation-contracts.test.js.map +1 -1
- package/dist/__tests__/evidence-atom-schema.test.js +3 -1
- package/dist/__tests__/evidence-atom-schema.test.js.map +1 -1
- package/dist/__tests__/gateway-contract.test.js +1 -1
- package/dist/__tests__/gateway-contract.test.js.map +1 -1
- package/dist/__tests__/memory-wire-shapes.test.js.map +1 -1
- package/dist/__tests__/operation-def.test.js +4 -3
- package/dist/__tests__/operation-def.test.js.map +1 -1
- package/dist/acceptance-gate-schema.d.ts +25 -0
- package/dist/acceptance-gate-schema.d.ts.map +1 -1
- package/dist/acceptance-gate-schema.js +5 -0
- package/dist/acceptance-gate-schema.js.map +1 -1
- package/dist/acceptance-gate.d.ts +8 -0
- package/dist/acceptance-gate.d.ts.map +1 -1
- package/dist/brain-graph.d.ts +1 -1
- package/dist/brain-graph.js +1 -1
- package/dist/caamp-markers.d.ts +11 -0
- package/dist/caamp-markers.d.ts.map +1 -1
- package/dist/config/manifest.d.ts.map +1 -1
- package/dist/config/manifest.js +13 -0
- package/dist/config/manifest.js.map +1 -1
- package/dist/{config.d.ts → config/types.d.ts} +130 -6
- package/dist/config/types.d.ts.map +1 -0
- package/dist/{config.js → config/types.js} +1 -1
- package/dist/config/types.js.map +1 -0
- package/dist/config/worker-policy.d.ts +42 -0
- package/dist/config/worker-policy.d.ts.map +1 -0
- package/dist/config/worker-policy.js +35 -0
- package/dist/config/worker-policy.js.map +1 -0
- package/dist/data-accessor.d.ts +15 -0
- package/dist/data-accessor.d.ts.map +1 -1
- package/dist/data-accessor.js.map +1 -1
- package/dist/dependency.d.ts +2 -0
- package/dist/dependency.d.ts.map +1 -1
- package/dist/dispatch/__tests__/operation-envelope-snapshots.test.js +0 -6
- package/dist/dispatch/__tests__/operation-envelope-snapshots.test.js.map +1 -1
- package/dist/dispatch/identity.d.ts +3 -8
- package/dist/dispatch/identity.d.ts.map +1 -1
- package/dist/dispatch/identity.js +2 -8
- package/dist/dispatch/identity.js.map +1 -1
- package/dist/dispatch/operations-registry.d.ts.map +1 -1
- package/dist/dispatch/operations-registry.js +360 -513
- package/dist/dispatch/operations-registry.js.map +1 -1
- package/dist/docs/modernize.d.ts +468 -0
- package/dist/docs/modernize.d.ts.map +1 -0
- package/dist/docs/modernize.js +145 -0
- package/dist/docs/modernize.js.map +1 -0
- package/dist/docs/provenance.d.ts +6 -6
- package/dist/docs-taxonomy.d.ts +6 -0
- package/dist/docs-taxonomy.d.ts.map +1 -1
- package/dist/docs-taxonomy.js +38 -1
- package/dist/docs-taxonomy.js.map +1 -1
- package/dist/done-plan.d.ts +34 -3
- package/dist/done-plan.d.ts.map +1 -1
- package/dist/evidence-atom-schema.d.ts +78 -4
- package/dist/evidence-atom-schema.d.ts.map +1 -1
- package/dist/evidence-atom-schema.js +136 -11
- package/dist/evidence-atom-schema.js.map +1 -1
- package/dist/evidence-record-schema.d.ts +2 -2
- package/dist/exit-codes.d.ts +93 -0
- package/dist/exit-codes.d.ts.map +1 -1
- package/dist/exit-codes.js +93 -0
- package/dist/exit-codes.js.map +1 -1
- package/dist/{gateway.d.ts → gateway/index.d.ts} +4 -4
- package/dist/gateway/index.d.ts.map +1 -0
- package/dist/{gateway.js → gateway/index.js} +2 -2
- package/dist/gateway/index.js.map +1 -0
- package/dist/gateway/rpc/messages.d.ts +4 -4
- package/dist/gateway/rpc/messages.js +1 -1
- package/dist/gateway/rpc/messages.js.map +1 -1
- package/dist/git-hooks.d.ts +29 -3
- package/dist/git-hooks.d.ts.map +1 -1
- package/dist/git-hooks.js +34 -3
- package/dist/git-hooks.js.map +1 -1
- package/dist/heavy-command-hook.d.ts +5 -0
- package/dist/heavy-command-hook.d.ts.map +1 -1
- package/dist/index.d.ts +23 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/invariants/sync-write-invariants.d.ts.map +1 -1
- package/dist/invariants/sync-write-invariants.js +29 -1
- package/dist/invariants/sync-write-invariants.js.map +1 -1
- package/dist/jobs.d.ts +5 -0
- package/dist/jobs.d.ts.map +1 -1
- package/dist/lease-ipc/messages.d.ts +5 -5
- package/dist/llm/onboarding.d.ts +1 -1
- package/dist/llm/system-of-use.d.ts +1 -1
- package/dist/llm/system-of-use.d.ts.map +1 -1
- package/dist/llm/system-resolver.d.ts +1 -1
- package/dist/llm/system-resolver.d.ts.map +1 -1
- package/dist/{memory.d.ts → memory/index.d.ts} +1 -1
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/{memory.js → memory/index.js} +1 -1
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/search.d.ts +20 -2
- package/dist/memory/search.d.ts.map +1 -1
- package/dist/merge-close.d.ts +277 -0
- package/dist/merge-close.d.ts.map +1 -0
- package/dist/merge-close.js +16 -0
- package/dist/merge-close.js.map +1 -0
- package/dist/nexus-cloud.d.ts +1 -1
- package/dist/operations/admin.d.ts +6 -0
- package/dist/operations/admin.d.ts.map +1 -1
- package/dist/operations/docs.d.ts +233 -9
- package/dist/operations/docs.d.ts.map +1 -1
- package/dist/operations/docs.js.map +1 -1
- package/dist/operations/index.d.ts +0 -1
- package/dist/operations/index.d.ts.map +1 -1
- package/dist/operations/index.js +0 -1
- package/dist/operations/index.js.map +1 -1
- package/dist/operations/memory.d.ts +7 -4
- package/dist/operations/memory.d.ts.map +1 -1
- package/dist/operations/nexus-scope-map.d.ts +0 -8
- package/dist/operations/nexus-scope-map.d.ts.map +1 -1
- package/dist/operations/nexus-scope-map.js +0 -8
- package/dist/operations/nexus-scope-map.js.map +1 -1
- package/dist/operations/nexus.d.ts +2 -10
- package/dist/operations/nexus.d.ts.map +1 -1
- package/dist/operations/nexus.js.map +1 -1
- package/dist/operations/orchestrate.d.ts +219 -6
- package/dist/operations/orchestrate.d.ts.map +1 -1
- package/dist/operations/orchestrate.js +329 -1
- package/dist/operations/orchestrate.js.map +1 -1
- package/dist/operations/output-contracts-data.js +1 -1
- package/dist/operations/output-contracts-data.js.map +1 -1
- package/dist/operations/release.d.ts +0 -79
- package/dist/operations/release.d.ts.map +1 -1
- package/dist/operations/session.d.ts +1 -1
- package/dist/operations/session.d.ts.map +1 -1
- package/dist/operations/tasks.d.ts +18 -6
- package/dist/operations/tasks.d.ts.map +1 -1
- package/dist/operations/tasks.js.map +1 -1
- package/dist/operations/validate.d.ts +6 -0
- package/dist/operations/validate.d.ts.map +1 -1
- package/dist/operations/worktree.d.ts +209 -19
- package/dist/operations/worktree.d.ts.map +1 -1
- package/dist/orca-execution.d.ts +533 -0
- package/dist/orca-execution.d.ts.map +1 -0
- package/dist/orca-execution.js +385 -0
- package/dist/orca-execution.js.map +1 -0
- package/dist/project-context.d.ts +31 -0
- package/dist/project-context.d.ts.map +1 -1
- package/dist/project-hooks.d.ts +8 -8
- package/dist/release/authorization.d.ts +46 -0
- package/dist/release/authorization.d.ts.map +1 -0
- package/dist/release/authorization.js +10 -0
- package/dist/release/authorization.js.map +1 -0
- package/dist/release/hook-pilot.d.ts +1 -1
- package/dist/resource-governor.d.ts +44 -0
- package/dist/resource-governor.d.ts.map +1 -1
- package/dist/resource-governor.js +10 -0
- package/dist/resource-governor.js.map +1 -1
- package/dist/review-verdict.d.ts +253 -0
- package/dist/review-verdict.d.ts.map +1 -0
- package/dist/review-verdict.js +20 -0
- package/dist/review-verdict.js.map +1 -0
- package/dist/row-identity.d.ts +11 -0
- package/dist/row-identity.d.ts.map +1 -1
- package/dist/session-journal.d.ts.map +1 -1
- package/dist/session-journal.js +7 -1
- package/dist/session-journal.js.map +1 -1
- package/dist/session.d.ts +11 -0
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js.map +1 -1
- package/dist/skills/migrate.d.ts +1 -1
- package/dist/skills/migrate.js +1 -1
- package/dist/skills/stats.d.ts +1 -1
- package/dist/skills/stats.js +1 -1
- package/dist/spawn-types.d.ts +57 -0
- package/dist/spawn-types.d.ts.map +1 -1
- package/dist/spawn.d.ts +43 -0
- package/dist/spawn.d.ts.map +1 -1
- package/dist/spawn.js +1 -0
- package/dist/spawn.js.map +1 -1
- package/dist/status-registry.d.ts +27 -0
- package/dist/status-registry.d.ts.map +1 -1
- package/dist/status-registry.js +28 -0
- package/dist/status-registry.js.map +1 -1
- package/dist/table-classification.d.ts +22 -0
- package/dist/table-classification.d.ts.map +1 -1
- package/dist/task-id.d.ts +8 -10
- package/dist/task-id.d.ts.map +1 -1
- package/dist/task-id.js +9 -48
- package/dist/task-id.js.map +1 -1
- package/dist/task-record.d.ts +10 -1
- package/dist/task-record.d.ts.map +1 -1
- package/dist/task.d.ts +177 -4
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js.map +1 -1
- package/dist/{tasks.d.ts → tasks/index.d.ts} +3 -3
- package/dist/tasks/index.d.ts.map +1 -0
- package/dist/{tasks.js → tasks/index.js} +2 -2
- package/dist/tasks/index.js.map +1 -0
- package/dist/templates/manifest.d.ts +1 -1
- package/dist/tools/build-task-tree.d.ts +1 -1
- package/dist/tools/build-task-tree.d.ts.map +1 -1
- package/dist/workgraph.d.ts +56 -56
- package/package.json +22 -6
- package/schemas/acceptance-gate.schema.json +24 -0
- package/schemas/task.schema.json +24 -0
- package/src/__tests__/__snapshots__/operations-registry.test.ts.snap +1 -1
- package/src/__tests__/acceptance-gate.test.ts +16 -3
- package/src/__tests__/completion-operation-contracts.test.ts +1 -1
- package/src/__tests__/evidence-atom-schema.test.ts +3 -1
- package/src/__tests__/gateway-contract.test.ts +1 -1
- package/src/__tests__/llm-config-schema.test.ts +1 -1
- package/src/__tests__/memory-wire-shapes.test.ts +4 -1
- package/src/__tests__/operation-def.test.ts +4 -3
- package/src/acceptance-gate-schema.ts +5 -0
- package/src/acceptance-gate.ts +9 -0
- package/src/brain-graph.ts +1 -1
- package/src/caamp-markers.ts +11 -0
- package/src/config/manifest.ts +13 -0
- package/src/{config.ts → config/types.ts} +134 -5
- package/src/config/worker-policy.ts +55 -0
- package/src/data-accessor.ts +16 -0
- package/src/dependency.ts +2 -0
- package/src/dispatch/__tests__/operation-envelope-snapshots.test.ts +0 -6
- package/src/dispatch/identity.ts +2 -8
- package/src/dispatch/operations-registry.ts +377 -525
- package/src/docs/modernize.ts +442 -0
- package/src/docs-taxonomy.ts +44 -1
- package/src/done-plan.ts +33 -2
- package/src/evidence-atom-schema.ts +167 -14
- package/src/exit-codes.ts +95 -0
- package/src/{gateway.ts → gateway/index.ts} +3 -3
- package/src/gateway/rpc/messages.ts +1 -1
- package/src/git-hooks.ts +43 -3
- package/src/heavy-command-hook.ts +5 -0
- package/src/index.ts +132 -48
- package/src/invariants/sync-write-invariants.ts +30 -0
- package/src/jobs.ts +5 -0
- package/src/llm/onboarding.ts +1 -1
- package/src/llm/system-of-use.ts +1 -1
- package/src/llm/system-resolver.ts +1 -1
- package/src/memory/search.ts +17 -2
- package/src/merge-close.ts +291 -0
- package/src/operations/admin.ts +6 -0
- package/src/operations/docs.ts +242 -10
- package/src/operations/index.ts +0 -1
- package/src/operations/memory.ts +7 -4
- package/src/operations/nexus-scope-map.ts +0 -8
- package/src/operations/nexus.ts +2 -11
- package/src/operations/orchestrate.ts +490 -6
- package/src/operations/output-contracts-data.ts +1 -1
- package/src/operations/release.ts +0 -87
- package/src/operations/session.ts +1 -1
- package/src/operations/tasks.ts +20 -7
- package/src/operations/validate.ts +6 -0
- package/src/operations/worktree.ts +216 -19
- package/src/orca-execution.ts +528 -0
- package/src/project-context.ts +33 -0
- package/src/release/authorization.ts +48 -0
- package/src/resource-governor.ts +47 -0
- package/src/review-verdict.ts +265 -0
- package/src/row-identity.ts +11 -0
- package/src/session-journal.ts +7 -1
- package/src/session.ts +11 -0
- package/src/skills/migrate.ts +1 -1
- package/src/skills/stats.ts +1 -1
- package/src/spawn-types.ts +75 -0
- package/src/spawn.ts +48 -0
- package/src/status-registry.ts +37 -0
- package/src/table-classification.ts +23 -0
- package/src/task-id.ts +9 -47
- package/src/task-record.ts +10 -1
- package/src/task.ts +171 -4
- package/src/{tasks.ts → tasks/index.ts} +3 -3
- package/src/tools/build-task-tree.ts +1 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/gateway.d.ts.map +0 -1
- package/dist/gateway.js.map +0 -1
- package/dist/memory.d.ts.map +0 -1
- package/dist/memory.js.map +0 -1
- package/dist/operations/conduit.d.ts +0 -285
- package/dist/operations/conduit.d.ts.map +0 -1
- package/dist/operations/conduit.js +0 -39
- package/dist/operations/conduit.js.map +0 -1
- package/dist/tasks.d.ts.map +0 -1
- package/dist/tasks.js.map +0 -1
- package/src/operations/conduit.ts +0 -348
- /package/src/{memory.ts → memory/index.ts} +0 -0
|
@@ -160,6 +160,48 @@ export const OPERATIONS: OperationDef[] = [
|
|
|
160
160
|
],
|
|
161
161
|
},
|
|
162
162
|
},
|
|
163
|
+
{
|
|
164
|
+
gateway: 'mutate',
|
|
165
|
+
domain: 'tasks',
|
|
166
|
+
operation: 'req.move',
|
|
167
|
+
description:
|
|
168
|
+
'Move one acceptance criterion to another open task as its next AC<n>, keeping its uid and history; audited on both tasks (T14200)',
|
|
169
|
+
tier: 1,
|
|
170
|
+
idempotent: false,
|
|
171
|
+
sessionRequired: true,
|
|
172
|
+
requiredParams: ['taskId', 'criterion', 'to'],
|
|
173
|
+
params: [
|
|
174
|
+
{ ...requirementTaskParam, description: 'Task the criterion leaves' },
|
|
175
|
+
{
|
|
176
|
+
name: 'criterion',
|
|
177
|
+
type: 'string',
|
|
178
|
+
required: true,
|
|
179
|
+
description: 'The criterion to move, as AC<n>',
|
|
180
|
+
cli: { positional: true },
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: 'to',
|
|
184
|
+
type: 'string',
|
|
185
|
+
required: true,
|
|
186
|
+
description: 'Task that gains the criterion',
|
|
187
|
+
cli: { flag: 'to' },
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
inputSchema: {
|
|
191
|
+
operation: 'tasks.req.move',
|
|
192
|
+
schema: {
|
|
193
|
+
type: 'object',
|
|
194
|
+
required: ['taskId', 'criterion', 'to'],
|
|
195
|
+
additionalProperties: false,
|
|
196
|
+
properties: {
|
|
197
|
+
taskId: { type: 'string', minLength: 1 },
|
|
198
|
+
criterion: { type: 'string', minLength: 1 },
|
|
199
|
+
to: { type: 'string', minLength: 1 },
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
examples: [{ name: 'move', value: { taskId: 'T121', criterion: 'AC2', to: 'T122' } }],
|
|
203
|
+
},
|
|
204
|
+
},
|
|
163
205
|
{
|
|
164
206
|
gateway: 'query',
|
|
165
207
|
domain: 'tasks',
|
|
@@ -263,12 +305,6 @@ export const OPERATIONS: OperationDef[] = [
|
|
|
263
305
|
required: false,
|
|
264
306
|
description: 'Include lifecycle stage history in the response',
|
|
265
307
|
},
|
|
266
|
-
{
|
|
267
|
-
name: 'ivtr-history',
|
|
268
|
-
type: 'boolean',
|
|
269
|
-
required: false,
|
|
270
|
-
description: 'Include IVTR phase chain history in the response',
|
|
271
|
-
},
|
|
272
308
|
{
|
|
273
309
|
name: 'relations',
|
|
274
310
|
type: 'boolean',
|
|
@@ -1075,114 +1111,6 @@ export const OPERATIONS: OperationDef[] = [
|
|
|
1075
1111
|
},
|
|
1076
1112
|
] satisfies ParamDef[],
|
|
1077
1113
|
},
|
|
1078
|
-
// T811 — IVTR multi-agent enforcement
|
|
1079
|
-
{
|
|
1080
|
-
gateway: 'query',
|
|
1081
|
-
domain: 'orchestrate',
|
|
1082
|
-
operation: 'ivtr.status',
|
|
1083
|
-
description: 'orchestrate.ivtr.status (query) — current IVTR phase + history',
|
|
1084
|
-
tier: 1,
|
|
1085
|
-
idempotent: true,
|
|
1086
|
-
sessionRequired: false,
|
|
1087
|
-
requiredParams: ['taskId'],
|
|
1088
|
-
params: [
|
|
1089
|
-
{
|
|
1090
|
-
name: 'taskId',
|
|
1091
|
-
type: 'string',
|
|
1092
|
-
required: true,
|
|
1093
|
-
description: 'taskId parameter',
|
|
1094
|
-
cli: { positional: true },
|
|
1095
|
-
},
|
|
1096
|
-
] satisfies ParamDef[],
|
|
1097
|
-
},
|
|
1098
|
-
{
|
|
1099
|
-
gateway: 'mutate',
|
|
1100
|
-
domain: 'orchestrate',
|
|
1101
|
-
operation: 'ivtr.start',
|
|
1102
|
-
description: 'orchestrate.ivtr.start (mutate) — begin Implement phase',
|
|
1103
|
-
tier: 1,
|
|
1104
|
-
idempotent: false,
|
|
1105
|
-
sessionRequired: true,
|
|
1106
|
-
requiredParams: ['taskId'],
|
|
1107
|
-
params: [
|
|
1108
|
-
{
|
|
1109
|
-
name: 'taskId',
|
|
1110
|
-
type: 'string',
|
|
1111
|
-
required: true,
|
|
1112
|
-
description: 'taskId parameter',
|
|
1113
|
-
cli: { positional: true },
|
|
1114
|
-
},
|
|
1115
|
-
] satisfies ParamDef[],
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
gateway: 'mutate',
|
|
1119
|
-
domain: 'orchestrate',
|
|
1120
|
-
operation: 'ivtr.next',
|
|
1121
|
-
description: 'orchestrate.ivtr.next (mutate) — advance to next phase (requires prior evidence)',
|
|
1122
|
-
tier: 1,
|
|
1123
|
-
idempotent: false,
|
|
1124
|
-
sessionRequired: true,
|
|
1125
|
-
requiredParams: ['taskId'],
|
|
1126
|
-
params: [
|
|
1127
|
-
{
|
|
1128
|
-
name: 'taskId',
|
|
1129
|
-
type: 'string',
|
|
1130
|
-
required: true,
|
|
1131
|
-
description: 'taskId parameter',
|
|
1132
|
-
cli: { positional: true },
|
|
1133
|
-
},
|
|
1134
|
-
] satisfies ParamDef[],
|
|
1135
|
-
},
|
|
1136
|
-
{
|
|
1137
|
-
gateway: 'mutate',
|
|
1138
|
-
domain: 'orchestrate',
|
|
1139
|
-
operation: 'ivtr.release',
|
|
1140
|
-
description: 'orchestrate.ivtr.release (mutate) — final gate, requires I+V+T evidence',
|
|
1141
|
-
tier: 1,
|
|
1142
|
-
idempotent: false,
|
|
1143
|
-
sessionRequired: true,
|
|
1144
|
-
requiredParams: ['taskId'],
|
|
1145
|
-
params: [
|
|
1146
|
-
{
|
|
1147
|
-
name: 'taskId',
|
|
1148
|
-
type: 'string',
|
|
1149
|
-
required: true,
|
|
1150
|
-
description: 'taskId parameter',
|
|
1151
|
-
cli: { positional: true },
|
|
1152
|
-
},
|
|
1153
|
-
] satisfies ParamDef[],
|
|
1154
|
-
},
|
|
1155
|
-
{
|
|
1156
|
-
gateway: 'mutate',
|
|
1157
|
-
domain: 'orchestrate',
|
|
1158
|
-
operation: 'ivtr.loop-back',
|
|
1159
|
-
description: 'orchestrate.ivtr.loop-back (mutate) — rewind to phase on failure',
|
|
1160
|
-
tier: 1,
|
|
1161
|
-
idempotent: false,
|
|
1162
|
-
sessionRequired: true,
|
|
1163
|
-
requiredParams: ['taskId', 'phase', 'reason'],
|
|
1164
|
-
params: [
|
|
1165
|
-
{
|
|
1166
|
-
name: 'taskId',
|
|
1167
|
-
type: 'string',
|
|
1168
|
-
required: true,
|
|
1169
|
-
description: 'taskId parameter',
|
|
1170
|
-
cli: { positional: true },
|
|
1171
|
-
},
|
|
1172
|
-
{
|
|
1173
|
-
name: 'phase',
|
|
1174
|
-
type: 'string',
|
|
1175
|
-
required: true,
|
|
1176
|
-
description: 'phase parameter',
|
|
1177
|
-
},
|
|
1178
|
-
{
|
|
1179
|
-
name: 'reason',
|
|
1180
|
-
type: 'string',
|
|
1181
|
-
required: true,
|
|
1182
|
-
description: 'reason parameter',
|
|
1183
|
-
},
|
|
1184
|
-
] satisfies ParamDef[],
|
|
1185
|
-
},
|
|
1186
1114
|
{
|
|
1187
1115
|
gateway: 'query',
|
|
1188
1116
|
domain: 'orchestrate',
|
|
@@ -6806,18 +6734,6 @@ export const OPERATIONS: OperationDef[] = [
|
|
|
6806
6734
|
},
|
|
6807
6735
|
],
|
|
6808
6736
|
},
|
|
6809
|
-
{
|
|
6810
|
-
gateway: 'mutate' as const,
|
|
6811
|
-
domain: 'nexus',
|
|
6812
|
-
operation: 'conduit-scan',
|
|
6813
|
-
description:
|
|
6814
|
-
'nexus.conduit-scan (mutate) — scan conduit messages for symbol mentions and write conduit_mentions_symbol edges to brain_page_edges; gracefully no-ops when conduit.db or nexus.db is absent',
|
|
6815
|
-
tier: 2,
|
|
6816
|
-
idempotent: false,
|
|
6817
|
-
sessionRequired: false,
|
|
6818
|
-
requiredParams: [],
|
|
6819
|
-
params: [],
|
|
6820
|
-
},
|
|
6821
6737
|
|
|
6822
6738
|
// ---------------------------------------------------------------------------
|
|
6823
6739
|
// T1080 — nexus.profile — user identity / preference profile (PSYCHE Wave 1)
|
|
@@ -7720,89 +7636,106 @@ export const OPERATIONS: OperationDef[] = [
|
|
|
7720
7636
|
// orchestrate — Wave 7a: analyze parallel-safety mode (T410)
|
|
7721
7637
|
// Note: orchestrate.analyze already registered above; this documents the new
|
|
7722
7638
|
// mode="parallel-safety" variant via the existing analyze operation's params.
|
|
7723
|
-
//
|
|
7724
|
-
//
|
|
7725
|
-
//
|
|
7726
|
-
|
|
7727
|
-
// persists to conduit.db. ORCHESTRATE handles wave planning + spawn-prompt
|
|
7728
|
-
// generation. The 10-domain invariant that justified the fold has lapsed.
|
|
7639
|
+
// ===========================================================================
|
|
7640
|
+
// intelligence — Predictive Quality Intelligence (query-only)
|
|
7641
|
+
// ===========================================================================
|
|
7642
|
+
|
|
7729
7643
|
{
|
|
7730
|
-
gateway: 'query'
|
|
7731
|
-
domain: '
|
|
7732
|
-
operation: '
|
|
7733
|
-
description: '
|
|
7734
|
-
tier:
|
|
7644
|
+
gateway: 'query',
|
|
7645
|
+
domain: 'intelligence',
|
|
7646
|
+
operation: 'predict',
|
|
7647
|
+
description: 'Calculate risk score for a task, or predict validation outcome for a stage',
|
|
7648
|
+
tier: 1,
|
|
7735
7649
|
idempotent: true,
|
|
7736
7650
|
sessionRequired: false,
|
|
7737
|
-
requiredParams: [],
|
|
7651
|
+
requiredParams: ['taskId'],
|
|
7738
7652
|
params: [
|
|
7653
|
+
{ name: 'taskId', type: 'string' as const, required: true, description: 'Task ID to assess' },
|
|
7739
7654
|
{
|
|
7740
|
-
name: '
|
|
7655
|
+
name: 'stage',
|
|
7741
7656
|
type: 'string' as const,
|
|
7742
7657
|
required: false,
|
|
7743
|
-
description: '
|
|
7658
|
+
description: 'Lifecycle stage for validation outcome prediction',
|
|
7744
7659
|
},
|
|
7745
7660
|
],
|
|
7746
7661
|
},
|
|
7747
7662
|
{
|
|
7748
|
-
gateway: 'query'
|
|
7749
|
-
domain: '
|
|
7750
|
-
operation: '
|
|
7751
|
-
description: '
|
|
7752
|
-
tier:
|
|
7663
|
+
gateway: 'query',
|
|
7664
|
+
domain: 'intelligence',
|
|
7665
|
+
operation: 'suggest',
|
|
7666
|
+
description: 'Suggest verification gate focus for a task',
|
|
7667
|
+
tier: 1,
|
|
7753
7668
|
idempotent: true,
|
|
7754
7669
|
sessionRequired: false,
|
|
7755
|
-
requiredParams: [],
|
|
7670
|
+
requiredParams: ['taskId'],
|
|
7756
7671
|
params: [
|
|
7757
7672
|
{
|
|
7758
|
-
name: '
|
|
7673
|
+
name: 'taskId',
|
|
7759
7674
|
type: 'string' as const,
|
|
7760
|
-
required:
|
|
7761
|
-
description: '
|
|
7675
|
+
required: true,
|
|
7676
|
+
description: 'Task ID to analyze',
|
|
7762
7677
|
},
|
|
7678
|
+
],
|
|
7679
|
+
},
|
|
7680
|
+
{
|
|
7681
|
+
gateway: 'query',
|
|
7682
|
+
domain: 'intelligence',
|
|
7683
|
+
operation: 'learn-errors',
|
|
7684
|
+
description: 'Extract recurring failure patterns from task and brain history',
|
|
7685
|
+
tier: 1,
|
|
7686
|
+
idempotent: true,
|
|
7687
|
+
sessionRequired: false,
|
|
7688
|
+
requiredParams: [],
|
|
7689
|
+
params: [
|
|
7763
7690
|
{
|
|
7764
7691
|
name: 'limit',
|
|
7765
7692
|
type: 'number' as const,
|
|
7766
7693
|
required: false,
|
|
7767
|
-
description: '
|
|
7694
|
+
description: 'Maximum number of patterns to return',
|
|
7768
7695
|
},
|
|
7769
7696
|
],
|
|
7770
7697
|
},
|
|
7771
7698
|
{
|
|
7772
|
-
gateway: '
|
|
7773
|
-
domain: '
|
|
7774
|
-
operation: '
|
|
7775
|
-
description: '
|
|
7776
|
-
tier:
|
|
7699
|
+
gateway: 'query',
|
|
7700
|
+
domain: 'intelligence',
|
|
7701
|
+
operation: 'confidence',
|
|
7702
|
+
description: 'Score verification confidence for a task based on current gate state',
|
|
7703
|
+
tier: 1,
|
|
7777
7704
|
idempotent: true,
|
|
7778
7705
|
sessionRequired: false,
|
|
7779
|
-
requiredParams: [],
|
|
7706
|
+
requiredParams: ['taskId'],
|
|
7707
|
+
params: [
|
|
7708
|
+
{ name: 'taskId', type: 'string' as const, required: true, description: 'Task ID to score' },
|
|
7709
|
+
],
|
|
7710
|
+
},
|
|
7711
|
+
{
|
|
7712
|
+
gateway: 'query',
|
|
7713
|
+
domain: 'intelligence',
|
|
7714
|
+
operation: 'match',
|
|
7715
|
+
description: 'Match known brain patterns against a task',
|
|
7716
|
+
tier: 1,
|
|
7717
|
+
idempotent: true,
|
|
7718
|
+
sessionRequired: false,
|
|
7719
|
+
requiredParams: ['taskId'],
|
|
7780
7720
|
params: [
|
|
7781
7721
|
{
|
|
7782
|
-
name: '
|
|
7722
|
+
name: 'taskId',
|
|
7783
7723
|
type: 'string' as const,
|
|
7784
|
-
required:
|
|
7785
|
-
description: '
|
|
7786
|
-
},
|
|
7787
|
-
{
|
|
7788
|
-
name: 'pollIntervalMs',
|
|
7789
|
-
type: 'number' as const,
|
|
7790
|
-
required: false,
|
|
7791
|
-
description: 'Poll interval in milliseconds (default: 5000)',
|
|
7792
|
-
},
|
|
7793
|
-
{
|
|
7794
|
-
name: 'groupConversationIds',
|
|
7795
|
-
type: 'array' as const,
|
|
7796
|
-
required: false,
|
|
7797
|
-
description: 'Group conversation IDs to monitor for @mentions',
|
|
7724
|
+
required: true,
|
|
7725
|
+
description: 'Task ID to match patterns against',
|
|
7798
7726
|
},
|
|
7799
7727
|
],
|
|
7800
7728
|
},
|
|
7729
|
+
|
|
7730
|
+
// ===========================================================================
|
|
7731
|
+
// DIAGNOSTICS domain (T624) — opt-in telemetry for self-improvement
|
|
7732
|
+
// ===========================================================================
|
|
7733
|
+
|
|
7801
7734
|
{
|
|
7802
|
-
gateway: '
|
|
7803
|
-
domain: '
|
|
7804
|
-
operation: '
|
|
7805
|
-
description: '
|
|
7735
|
+
gateway: 'query',
|
|
7736
|
+
domain: 'diagnostics',
|
|
7737
|
+
operation: 'status',
|
|
7738
|
+
description: 'diagnostics.status (query) — show telemetry opt-in state and DB path',
|
|
7806
7739
|
tier: 2,
|
|
7807
7740
|
idempotent: true,
|
|
7808
7741
|
sessionRequired: false,
|
|
@@ -7810,262 +7743,29 @@ export const OPERATIONS: OperationDef[] = [
|
|
|
7810
7743
|
params: [],
|
|
7811
7744
|
},
|
|
7812
7745
|
{
|
|
7813
|
-
gateway: '
|
|
7814
|
-
domain: '
|
|
7815
|
-
operation: '
|
|
7816
|
-
description:
|
|
7746
|
+
gateway: 'query',
|
|
7747
|
+
domain: 'diagnostics',
|
|
7748
|
+
operation: 'analyze',
|
|
7749
|
+
description:
|
|
7750
|
+
'diagnostics.analyze (query) — aggregate telemetry patterns; surface failing/slow commands and generate BRAIN observations',
|
|
7817
7751
|
tier: 2,
|
|
7818
|
-
idempotent:
|
|
7752
|
+
idempotent: true,
|
|
7819
7753
|
sessionRequired: false,
|
|
7820
|
-
requiredParams: [
|
|
7754
|
+
requiredParams: [],
|
|
7821
7755
|
params: [
|
|
7822
7756
|
{
|
|
7823
|
-
name: '
|
|
7824
|
-
type: '
|
|
7757
|
+
name: 'days',
|
|
7758
|
+
type: 'number' as const,
|
|
7825
7759
|
required: false,
|
|
7826
|
-
description: '
|
|
7760
|
+
description: 'Analysis window in days (default: 30)',
|
|
7761
|
+
cli: { flag: 'days', short: '-d' },
|
|
7827
7762
|
},
|
|
7828
7763
|
{
|
|
7829
|
-
name: '
|
|
7830
|
-
type: '
|
|
7764
|
+
name: 'noBrain',
|
|
7765
|
+
type: 'boolean' as const,
|
|
7831
7766
|
required: false,
|
|
7832
|
-
description: '
|
|
7833
|
-
|
|
7834
|
-
{
|
|
7835
|
-
name: 'content',
|
|
7836
|
-
type: 'string' as const,
|
|
7837
|
-
required: true,
|
|
7838
|
-
description: 'Message content to send',
|
|
7839
|
-
},
|
|
7840
|
-
{
|
|
7841
|
-
name: 'agentId',
|
|
7842
|
-
type: 'string' as const,
|
|
7843
|
-
required: false,
|
|
7844
|
-
description: 'Send as this agent (defaults to active agent)',
|
|
7845
|
-
},
|
|
7846
|
-
],
|
|
7847
|
-
},
|
|
7848
|
-
{
|
|
7849
|
-
gateway: 'mutate' as const,
|
|
7850
|
-
domain: 'conduit',
|
|
7851
|
-
operation: 'publish',
|
|
7852
|
-
description: 'conduit.publish (mutate) — publish message to a topic (A2A, T1252)',
|
|
7853
|
-
tier: 2,
|
|
7854
|
-
idempotent: false,
|
|
7855
|
-
sessionRequired: false,
|
|
7856
|
-
requiredParams: ['topicName', 'payload'],
|
|
7857
|
-
params: [
|
|
7858
|
-
{
|
|
7859
|
-
name: 'topicName',
|
|
7860
|
-
type: 'string' as const,
|
|
7861
|
-
required: true,
|
|
7862
|
-
description: 'Topic to publish to',
|
|
7863
|
-
},
|
|
7864
|
-
{
|
|
7865
|
-
name: 'payload',
|
|
7866
|
-
type: 'string' as const,
|
|
7867
|
-
required: true,
|
|
7868
|
-
description: 'Message payload (JSON-stringified object)',
|
|
7869
|
-
},
|
|
7870
|
-
{
|
|
7871
|
-
name: 'agentId',
|
|
7872
|
-
type: 'string' as const,
|
|
7873
|
-
required: false,
|
|
7874
|
-
description: 'Publish as this agent (defaults to active agent)',
|
|
7875
|
-
},
|
|
7876
|
-
],
|
|
7877
|
-
},
|
|
7878
|
-
{
|
|
7879
|
-
gateway: 'mutate' as const,
|
|
7880
|
-
domain: 'conduit',
|
|
7881
|
-
operation: 'subscribe',
|
|
7882
|
-
description: 'conduit.subscribe (mutate) — subscribe agent to a topic (A2A, T1252)',
|
|
7883
|
-
tier: 2,
|
|
7884
|
-
idempotent: true,
|
|
7885
|
-
sessionRequired: false,
|
|
7886
|
-
requiredParams: ['topicName'],
|
|
7887
|
-
params: [
|
|
7888
|
-
{
|
|
7889
|
-
name: 'topicName',
|
|
7890
|
-
type: 'string' as const,
|
|
7891
|
-
required: true,
|
|
7892
|
-
description: 'Topic to subscribe to',
|
|
7893
|
-
},
|
|
7894
|
-
{
|
|
7895
|
-
name: 'agentId',
|
|
7896
|
-
type: 'string' as const,
|
|
7897
|
-
required: false,
|
|
7898
|
-
description: 'Agent to subscribe (defaults to active agent)',
|
|
7899
|
-
},
|
|
7900
|
-
{
|
|
7901
|
-
name: 'filter',
|
|
7902
|
-
type: 'string' as const,
|
|
7903
|
-
required: false,
|
|
7904
|
-
description: 'Optional filter expression (JSON-stringified) for subscription',
|
|
7905
|
-
},
|
|
7906
|
-
],
|
|
7907
|
-
},
|
|
7908
|
-
{
|
|
7909
|
-
gateway: 'query' as const,
|
|
7910
|
-
domain: 'conduit',
|
|
7911
|
-
operation: 'listen',
|
|
7912
|
-
description: 'conduit.listen (query) — one-shot poll for topic messages (A2A, T1252)',
|
|
7913
|
-
tier: 2,
|
|
7914
|
-
idempotent: true,
|
|
7915
|
-
sessionRequired: false,
|
|
7916
|
-
requiredParams: ['topicName'],
|
|
7917
|
-
params: [
|
|
7918
|
-
{
|
|
7919
|
-
name: 'topicName',
|
|
7920
|
-
type: 'string' as const,
|
|
7921
|
-
required: true,
|
|
7922
|
-
description: 'Topic to poll',
|
|
7923
|
-
},
|
|
7924
|
-
{
|
|
7925
|
-
name: 'agentId',
|
|
7926
|
-
type: 'string' as const,
|
|
7927
|
-
required: false,
|
|
7928
|
-
description: 'Agent to poll as (defaults to active agent)',
|
|
7929
|
-
},
|
|
7930
|
-
{
|
|
7931
|
-
name: 'max',
|
|
7932
|
-
type: 'number' as const,
|
|
7933
|
-
required: false,
|
|
7934
|
-
description: 'Max messages to return (default: 20)',
|
|
7935
|
-
},
|
|
7936
|
-
],
|
|
7937
|
-
},
|
|
7938
|
-
|
|
7939
|
-
// ===========================================================================
|
|
7940
|
-
// intelligence — Predictive Quality Intelligence (query-only)
|
|
7941
|
-
// ===========================================================================
|
|
7942
|
-
|
|
7943
|
-
{
|
|
7944
|
-
gateway: 'query',
|
|
7945
|
-
domain: 'intelligence',
|
|
7946
|
-
operation: 'predict',
|
|
7947
|
-
description: 'Calculate risk score for a task, or predict validation outcome for a stage',
|
|
7948
|
-
tier: 1,
|
|
7949
|
-
idempotent: true,
|
|
7950
|
-
sessionRequired: false,
|
|
7951
|
-
requiredParams: ['taskId'],
|
|
7952
|
-
params: [
|
|
7953
|
-
{ name: 'taskId', type: 'string' as const, required: true, description: 'Task ID to assess' },
|
|
7954
|
-
{
|
|
7955
|
-
name: 'stage',
|
|
7956
|
-
type: 'string' as const,
|
|
7957
|
-
required: false,
|
|
7958
|
-
description: 'Lifecycle stage for validation outcome prediction',
|
|
7959
|
-
},
|
|
7960
|
-
],
|
|
7961
|
-
},
|
|
7962
|
-
{
|
|
7963
|
-
gateway: 'query',
|
|
7964
|
-
domain: 'intelligence',
|
|
7965
|
-
operation: 'suggest',
|
|
7966
|
-
description: 'Suggest verification gate focus for a task',
|
|
7967
|
-
tier: 1,
|
|
7968
|
-
idempotent: true,
|
|
7969
|
-
sessionRequired: false,
|
|
7970
|
-
requiredParams: ['taskId'],
|
|
7971
|
-
params: [
|
|
7972
|
-
{
|
|
7973
|
-
name: 'taskId',
|
|
7974
|
-
type: 'string' as const,
|
|
7975
|
-
required: true,
|
|
7976
|
-
description: 'Task ID to analyze',
|
|
7977
|
-
},
|
|
7978
|
-
],
|
|
7979
|
-
},
|
|
7980
|
-
{
|
|
7981
|
-
gateway: 'query',
|
|
7982
|
-
domain: 'intelligence',
|
|
7983
|
-
operation: 'learn-errors',
|
|
7984
|
-
description: 'Extract recurring failure patterns from task and brain history',
|
|
7985
|
-
tier: 1,
|
|
7986
|
-
idempotent: true,
|
|
7987
|
-
sessionRequired: false,
|
|
7988
|
-
requiredParams: [],
|
|
7989
|
-
params: [
|
|
7990
|
-
{
|
|
7991
|
-
name: 'limit',
|
|
7992
|
-
type: 'number' as const,
|
|
7993
|
-
required: false,
|
|
7994
|
-
description: 'Maximum number of patterns to return',
|
|
7995
|
-
},
|
|
7996
|
-
],
|
|
7997
|
-
},
|
|
7998
|
-
{
|
|
7999
|
-
gateway: 'query',
|
|
8000
|
-
domain: 'intelligence',
|
|
8001
|
-
operation: 'confidence',
|
|
8002
|
-
description: 'Score verification confidence for a task based on current gate state',
|
|
8003
|
-
tier: 1,
|
|
8004
|
-
idempotent: true,
|
|
8005
|
-
sessionRequired: false,
|
|
8006
|
-
requiredParams: ['taskId'],
|
|
8007
|
-
params: [
|
|
8008
|
-
{ name: 'taskId', type: 'string' as const, required: true, description: 'Task ID to score' },
|
|
8009
|
-
],
|
|
8010
|
-
},
|
|
8011
|
-
{
|
|
8012
|
-
gateway: 'query',
|
|
8013
|
-
domain: 'intelligence',
|
|
8014
|
-
operation: 'match',
|
|
8015
|
-
description: 'Match known brain patterns against a task',
|
|
8016
|
-
tier: 1,
|
|
8017
|
-
idempotent: true,
|
|
8018
|
-
sessionRequired: false,
|
|
8019
|
-
requiredParams: ['taskId'],
|
|
8020
|
-
params: [
|
|
8021
|
-
{
|
|
8022
|
-
name: 'taskId',
|
|
8023
|
-
type: 'string' as const,
|
|
8024
|
-
required: true,
|
|
8025
|
-
description: 'Task ID to match patterns against',
|
|
8026
|
-
},
|
|
8027
|
-
],
|
|
8028
|
-
},
|
|
8029
|
-
|
|
8030
|
-
// ===========================================================================
|
|
8031
|
-
// DIAGNOSTICS domain (T624) — opt-in telemetry for self-improvement
|
|
8032
|
-
// ===========================================================================
|
|
8033
|
-
|
|
8034
|
-
{
|
|
8035
|
-
gateway: 'query',
|
|
8036
|
-
domain: 'diagnostics',
|
|
8037
|
-
operation: 'status',
|
|
8038
|
-
description: 'diagnostics.status (query) — show telemetry opt-in state and DB path',
|
|
8039
|
-
tier: 2,
|
|
8040
|
-
idempotent: true,
|
|
8041
|
-
sessionRequired: false,
|
|
8042
|
-
requiredParams: [],
|
|
8043
|
-
params: [],
|
|
8044
|
-
},
|
|
8045
|
-
{
|
|
8046
|
-
gateway: 'query',
|
|
8047
|
-
domain: 'diagnostics',
|
|
8048
|
-
operation: 'analyze',
|
|
8049
|
-
description:
|
|
8050
|
-
'diagnostics.analyze (query) — aggregate telemetry patterns; surface failing/slow commands and generate BRAIN observations',
|
|
8051
|
-
tier: 2,
|
|
8052
|
-
idempotent: true,
|
|
8053
|
-
sessionRequired: false,
|
|
8054
|
-
requiredParams: [],
|
|
8055
|
-
params: [
|
|
8056
|
-
{
|
|
8057
|
-
name: 'days',
|
|
8058
|
-
type: 'number' as const,
|
|
8059
|
-
required: false,
|
|
8060
|
-
description: 'Analysis window in days (default: 30)',
|
|
8061
|
-
cli: { flag: 'days', short: '-d' },
|
|
8062
|
-
},
|
|
8063
|
-
{
|
|
8064
|
-
name: 'noBrain',
|
|
8065
|
-
type: 'boolean' as const,
|
|
8066
|
-
required: false,
|
|
8067
|
-
description: 'Skip pushing observations to BRAIN',
|
|
8068
|
-
cli: { flag: 'no-brain' },
|
|
7767
|
+
description: 'Skip pushing observations to BRAIN',
|
|
7768
|
+
cli: { flag: 'no-brain' },
|
|
8069
7769
|
},
|
|
8070
7770
|
],
|
|
8071
7771
|
},
|
|
@@ -8727,6 +8427,13 @@ export const OPERATIONS: OperationDef[] = [
|
|
|
8727
8427
|
required: false,
|
|
8728
8428
|
description: 'Age threshold in days for the stale-drafts check (default 30)',
|
|
8729
8429
|
},
|
|
8430
|
+
{
|
|
8431
|
+
name: 'only',
|
|
8432
|
+
type: 'string' as const,
|
|
8433
|
+
required: false,
|
|
8434
|
+
description:
|
|
8435
|
+
'Comma-separated repair classes to scope the plan (and apply) to, e.g. publication-ledger-drift (T14174)',
|
|
8436
|
+
},
|
|
8730
8437
|
],
|
|
8731
8438
|
},
|
|
8732
8439
|
// ── docs.triage (T13446 — Epic T13340 / Saga T13339) ──────────────────────
|
|
@@ -8780,6 +8487,29 @@ export const OPERATIONS: OperationDef[] = [
|
|
|
8780
8487
|
requiredParams: [],
|
|
8781
8488
|
params: [],
|
|
8782
8489
|
},
|
|
8490
|
+
// ── docs.rot (T14111 — Epic T14106) ──────────────────────────────────────
|
|
8491
|
+
{
|
|
8492
|
+
gateway: 'query',
|
|
8493
|
+
domain: 'docs',
|
|
8494
|
+
operation: 'rot',
|
|
8495
|
+
description:
|
|
8496
|
+
'docs.rot (query) — docs-rot report from git alone: docs whose covers: code changed ' +
|
|
8497
|
+
'after them (stale), duplicate docs, and orphaned docs (dead covers globs, ' +
|
|
8498
|
+
'unreferenced docs/ files). changed:<base>..<head> also lists the docs that merged ' +
|
|
8499
|
+
'change left stale. Read-only.',
|
|
8500
|
+
tier: 1,
|
|
8501
|
+
idempotent: true,
|
|
8502
|
+
sessionRequired: false,
|
|
8503
|
+
requiredParams: [],
|
|
8504
|
+
params: [
|
|
8505
|
+
{
|
|
8506
|
+
name: 'changed',
|
|
8507
|
+
type: 'string' as const,
|
|
8508
|
+
required: false,
|
|
8509
|
+
description: 'Git range <base>..<head> of a merged change to flag docs for',
|
|
8510
|
+
},
|
|
8511
|
+
],
|
|
8512
|
+
},
|
|
8783
8513
|
{
|
|
8784
8514
|
gateway: 'mutate',
|
|
8785
8515
|
domain: 'docs',
|
|
@@ -8816,6 +8546,13 @@ export const OPERATIONS: OperationDef[] = [
|
|
|
8816
8546
|
required: false,
|
|
8817
8547
|
description: 'Age threshold in days for the stale-drafts check (default 30)',
|
|
8818
8548
|
},
|
|
8549
|
+
{
|
|
8550
|
+
name: 'only',
|
|
8551
|
+
type: 'string' as const,
|
|
8552
|
+
required: false,
|
|
8553
|
+
description:
|
|
8554
|
+
'Comma-separated repair classes to scope the plan (and apply) to, e.g. publication-ledger-drift (T14174)',
|
|
8555
|
+
},
|
|
8819
8556
|
],
|
|
8820
8557
|
},
|
|
8821
8558
|
// ── docs.migrate (T13360 — Epic T13340 / Saga T13339) ─────────────────────
|
|
@@ -8834,7 +8571,112 @@ export const OPERATIONS: OperationDef[] = [
|
|
|
8834
8571
|
idempotent: true,
|
|
8835
8572
|
sessionRequired: false,
|
|
8836
8573
|
requiredParams: [],
|
|
8837
|
-
params: [
|
|
8574
|
+
params: [
|
|
8575
|
+
{
|
|
8576
|
+
name: 'limit',
|
|
8577
|
+
type: 'number' as const,
|
|
8578
|
+
required: false,
|
|
8579
|
+
description:
|
|
8580
|
+
'At most this many docs per run, oldest first (T14329); default all. Run again to continue',
|
|
8581
|
+
},
|
|
8582
|
+
{
|
|
8583
|
+
name: 'dryRun',
|
|
8584
|
+
type: 'boolean' as const,
|
|
8585
|
+
required: false,
|
|
8586
|
+
description: 'Report the plan counts and write nothing (T14331)',
|
|
8587
|
+
},
|
|
8588
|
+
],
|
|
8589
|
+
},
|
|
8590
|
+
// ── docs.modernize (T14113 — Epic T14106) ─────────────────────────────────
|
|
8591
|
+
{
|
|
8592
|
+
gateway: 'mutate',
|
|
8593
|
+
domain: 'docs',
|
|
8594
|
+
operation: 'modernize',
|
|
8595
|
+
description:
|
|
8596
|
+
'docs.modernize (mutate) — turn a messy docs folder into clean, linked CleoDocs. Dry run ' +
|
|
8597
|
+
'by default: proposes per file a kind, a stable slug (no task, session or date tokens) ' +
|
|
8598
|
+
'and keep/rename/merge-into/delete with reasons and any System One judgment. --apply ' +
|
|
8599
|
+
'stores, merges, supersedes, moves files and writes wikilink edges with a receipt; ' +
|
|
8600
|
+
'--rollback <runId> reverses a run.',
|
|
8601
|
+
tier: 1,
|
|
8602
|
+
idempotent: false,
|
|
8603
|
+
sessionRequired: false,
|
|
8604
|
+
requiredParams: [],
|
|
8605
|
+
params: [
|
|
8606
|
+
{
|
|
8607
|
+
name: 'path',
|
|
8608
|
+
type: 'string' as const,
|
|
8609
|
+
required: false,
|
|
8610
|
+
description: 'Folder to modernize (required unless --rollback)',
|
|
8611
|
+
},
|
|
8612
|
+
{
|
|
8613
|
+
name: 'apply',
|
|
8614
|
+
type: 'boolean' as const,
|
|
8615
|
+
required: false,
|
|
8616
|
+
description: 'Execute the plan (default: dry run, nothing written)',
|
|
8617
|
+
},
|
|
8618
|
+
{
|
|
8619
|
+
name: 'planFile',
|
|
8620
|
+
type: 'string' as const,
|
|
8621
|
+
required: false,
|
|
8622
|
+
description: 'Apply this saved plan JSON verbatim',
|
|
8623
|
+
},
|
|
8624
|
+
{
|
|
8625
|
+
name: 'out',
|
|
8626
|
+
type: 'string' as const,
|
|
8627
|
+
required: false,
|
|
8628
|
+
description: 'Save the plan JSON to this path',
|
|
8629
|
+
},
|
|
8630
|
+
{
|
|
8631
|
+
name: 'rollback',
|
|
8632
|
+
type: 'string' as const,
|
|
8633
|
+
required: false,
|
|
8634
|
+
description: 'Roll back the apply run with this id',
|
|
8635
|
+
},
|
|
8636
|
+
{
|
|
8637
|
+
name: 'exclude',
|
|
8638
|
+
type: 'string' as const,
|
|
8639
|
+
required: false,
|
|
8640
|
+
description: 'Extra folder names to skip, comma-separated',
|
|
8641
|
+
},
|
|
8642
|
+
{
|
|
8643
|
+
name: 'overrides',
|
|
8644
|
+
type: 'string' as const,
|
|
8645
|
+
required: false,
|
|
8646
|
+
description: 'Reviewer decisions JSON keyed by path (DocsModernizeOverrides)',
|
|
8647
|
+
},
|
|
8648
|
+
{
|
|
8649
|
+
name: 'kind',
|
|
8650
|
+
type: 'string' as const,
|
|
8651
|
+
required: false,
|
|
8652
|
+
description: 'Use this kind for every file instead of classifying',
|
|
8653
|
+
},
|
|
8654
|
+
{
|
|
8655
|
+
name: 'storeOnly',
|
|
8656
|
+
type: 'boolean' as const,
|
|
8657
|
+
required: false,
|
|
8658
|
+
description: 'Ingest every file into the store and leave the folder untouched',
|
|
8659
|
+
},
|
|
8660
|
+
{
|
|
8661
|
+
name: 'allowDirty',
|
|
8662
|
+
type: 'boolean' as const,
|
|
8663
|
+
required: false,
|
|
8664
|
+
description: 'Apply even when the root is not a clean git checkout',
|
|
8665
|
+
},
|
|
8666
|
+
{
|
|
8667
|
+
name: 'wikilinks',
|
|
8668
|
+
type: 'boolean' as const,
|
|
8669
|
+
required: false,
|
|
8670
|
+
description:
|
|
8671
|
+
'Rewrite relative links to planned docs as [[slug]] wikilinks (default: keep markdown links, re-pointed at the new paths)',
|
|
8672
|
+
},
|
|
8673
|
+
{
|
|
8674
|
+
name: 'store',
|
|
8675
|
+
type: 'boolean' as const,
|
|
8676
|
+
required: false,
|
|
8677
|
+
description: 'Modernize the docs already in the store instead of a folder',
|
|
8678
|
+
},
|
|
8679
|
+
],
|
|
8838
8680
|
},
|
|
8839
8681
|
// ── docs.generate (T798) ─────────────────────────────────────────────────
|
|
8840
8682
|
{
|
|
@@ -9491,108 +9333,11 @@ export const OPERATIONS: OperationDef[] = [
|
|
|
9491
9333
|
// Release domain — T1726 SDK surface parity
|
|
9492
9334
|
//
|
|
9493
9335
|
// Release ops dispatched via ReleaseHandler (registered under 'release' in
|
|
9494
|
-
// the DomainHandler map)
|
|
9495
|
-
// ivtr-suggest
|
|
9496
|
-
//
|
|
9497
|
-
// T1597 / ADR-063 that route through the core release module directly.
|
|
9336
|
+
// the DomainHandler map). The IVTR-only ops `release.gate` and
|
|
9337
|
+
// `release.ivtr-suggest` were deleted in T14311 with the retired
|
|
9338
|
+
// `ivtr_state` column.
|
|
9498
9339
|
// ---------------------------------------------------------------------------
|
|
9499
9340
|
|
|
9500
|
-
// release query: gate
|
|
9501
|
-
{
|
|
9502
|
-
gateway: 'query',
|
|
9503
|
-
domain: 'release',
|
|
9504
|
-
operation: 'gate',
|
|
9505
|
-
description:
|
|
9506
|
-
'release.gate (query) — check all IVTR loops in a release epic have reached the released phase before allowing release.ship (T820 RELEASE-03)',
|
|
9507
|
-
tier: 1,
|
|
9508
|
-
idempotent: true,
|
|
9509
|
-
sessionRequired: false,
|
|
9510
|
-
requiredParams: ['epicId'],
|
|
9511
|
-
params: [
|
|
9512
|
-
{
|
|
9513
|
-
name: 'epicId',
|
|
9514
|
-
type: 'string',
|
|
9515
|
-
required: true,
|
|
9516
|
-
description: 'Epic ID whose child tasks should be inspected',
|
|
9517
|
-
},
|
|
9518
|
-
{
|
|
9519
|
-
name: 'force',
|
|
9520
|
-
type: 'boolean',
|
|
9521
|
-
required: false,
|
|
9522
|
-
description: 'Bypass the IVTR gate — requires explicit owner confirmation',
|
|
9523
|
-
},
|
|
9524
|
-
] satisfies ParamDef[],
|
|
9525
|
-
},
|
|
9526
|
-
|
|
9527
|
-
// release mutate: gate
|
|
9528
|
-
{
|
|
9529
|
-
gateway: 'mutate',
|
|
9530
|
-
domain: 'release',
|
|
9531
|
-
operation: 'gate',
|
|
9532
|
-
description:
|
|
9533
|
-
'release.gate (mutate) — same IVTR gate check as query.gate; safe in both gateways (no DB writes)',
|
|
9534
|
-
tier: 1,
|
|
9535
|
-
idempotent: true,
|
|
9536
|
-
sessionRequired: false,
|
|
9537
|
-
requiredParams: ['epicId'],
|
|
9538
|
-
params: [
|
|
9539
|
-
{
|
|
9540
|
-
name: 'epicId',
|
|
9541
|
-
type: 'string',
|
|
9542
|
-
required: true,
|
|
9543
|
-
description: 'Epic ID whose child tasks should be inspected',
|
|
9544
|
-
},
|
|
9545
|
-
{
|
|
9546
|
-
name: 'force',
|
|
9547
|
-
type: 'boolean',
|
|
9548
|
-
required: false,
|
|
9549
|
-
description: 'Bypass the IVTR gate — requires explicit owner confirmation',
|
|
9550
|
-
},
|
|
9551
|
-
] satisfies ParamDef[],
|
|
9552
|
-
},
|
|
9553
|
-
|
|
9554
|
-
// release query: ivtr-suggest
|
|
9555
|
-
{
|
|
9556
|
-
gateway: 'query',
|
|
9557
|
-
domain: 'release',
|
|
9558
|
-
operation: 'ivtr-suggest',
|
|
9559
|
-
description:
|
|
9560
|
-
'release.ivtr-suggest (query) — check if all epic tasks are released and suggest cleo release ship (T820 RELEASE-07)',
|
|
9561
|
-
tier: 1,
|
|
9562
|
-
idempotent: true,
|
|
9563
|
-
sessionRequired: false,
|
|
9564
|
-
requiredParams: ['taskId'],
|
|
9565
|
-
params: [
|
|
9566
|
-
{
|
|
9567
|
-
name: 'taskId',
|
|
9568
|
-
type: 'string',
|
|
9569
|
-
required: true,
|
|
9570
|
-
description: 'Task ID that just reached the released phase',
|
|
9571
|
-
},
|
|
9572
|
-
] satisfies ParamDef[],
|
|
9573
|
-
},
|
|
9574
|
-
|
|
9575
|
-
// release mutate: ivtr-suggest
|
|
9576
|
-
{
|
|
9577
|
-
gateway: 'mutate',
|
|
9578
|
-
domain: 'release',
|
|
9579
|
-
operation: 'ivtr-suggest',
|
|
9580
|
-
description:
|
|
9581
|
-
'release.ivtr-suggest (mutate) — same auto-suggest as query.ivtr-suggest; safe in both gateways (no DB writes)',
|
|
9582
|
-
tier: 1,
|
|
9583
|
-
idempotent: true,
|
|
9584
|
-
sessionRequired: false,
|
|
9585
|
-
requiredParams: ['taskId'],
|
|
9586
|
-
params: [
|
|
9587
|
-
{
|
|
9588
|
-
name: 'taskId',
|
|
9589
|
-
type: 'string',
|
|
9590
|
-
required: true,
|
|
9591
|
-
description: 'Task ID that just reached the released phase',
|
|
9592
|
-
},
|
|
9593
|
-
] satisfies ParamDef[],
|
|
9594
|
-
},
|
|
9595
|
-
|
|
9596
9341
|
// release.start / release.verify / release.publish removed in T9540
|
|
9597
9342
|
// (Phase 6 of T9499) — backing functions in
|
|
9598
9343
|
// `packages/core/src/release/pipeline.ts` (the legacy 4-step pipeline)
|
|
@@ -9782,6 +9527,113 @@ export const OPERATIONS: OperationDef[] = [
|
|
|
9782
9527
|
] satisfies ParamDef[],
|
|
9783
9528
|
},
|
|
9784
9529
|
|
|
9530
|
+
// release mutate: cut (T14102 — one-command release from the newest green
|
|
9531
|
+
// default-branch commit; replaces plan → open → bump-PR → hand tag).
|
|
9532
|
+
{
|
|
9533
|
+
gateway: 'mutate',
|
|
9534
|
+
domain: 'release',
|
|
9535
|
+
operation: 'cut',
|
|
9536
|
+
description:
|
|
9537
|
+
'release.cut (mutate) — tag the newest default-branch commit with green CI as v<version> once confirmed with --yes (D11211/D11212); release.yml writes the CHANGELOG from changesets and publishes. Without --yes it reports the commit, notes, packages and task status and prints the confirm command (T14102).',
|
|
9538
|
+
tier: 1,
|
|
9539
|
+
idempotent: false,
|
|
9540
|
+
sessionRequired: false,
|
|
9541
|
+
requiredParams: ['version'],
|
|
9542
|
+
params: [
|
|
9543
|
+
{
|
|
9544
|
+
name: 'version',
|
|
9545
|
+
type: 'string',
|
|
9546
|
+
required: true,
|
|
9547
|
+
description: 'Release version (accepts v2026.10.28 or 2026.10.28)',
|
|
9548
|
+
cli: { positional: true },
|
|
9549
|
+
},
|
|
9550
|
+
{
|
|
9551
|
+
name: 'sha',
|
|
9552
|
+
type: 'string',
|
|
9553
|
+
required: false,
|
|
9554
|
+
description: 'Pin the commit instead of the newest green one; it must itself be green',
|
|
9555
|
+
},
|
|
9556
|
+
{
|
|
9557
|
+
name: 'lead',
|
|
9558
|
+
type: 'string',
|
|
9559
|
+
required: false,
|
|
9560
|
+
description: 'Markdown file that leads the notes (Update now + Highlights)',
|
|
9561
|
+
},
|
|
9562
|
+
{
|
|
9563
|
+
name: 'dryRun',
|
|
9564
|
+
type: 'boolean',
|
|
9565
|
+
required: false,
|
|
9566
|
+
description: 'Report the commit, notes, packages and tasks without creating the tag',
|
|
9567
|
+
},
|
|
9568
|
+
{
|
|
9569
|
+
name: 'yes',
|
|
9570
|
+
type: 'boolean',
|
|
9571
|
+
required: false,
|
|
9572
|
+
description:
|
|
9573
|
+
'Create the tag (D11212): the version typed on the controlling terminal (/dev/tty), or a standing release authorization (T14141), allows it. Without it the cut only reports and prints the confirm command',
|
|
9574
|
+
},
|
|
9575
|
+
{
|
|
9576
|
+
name: 'allowInFlight',
|
|
9577
|
+
type: 'boolean',
|
|
9578
|
+
required: false,
|
|
9579
|
+
description:
|
|
9580
|
+
"Cut even while a lower tag's release.yml run is still in progress; its entries repeat in these notes (T14184)",
|
|
9581
|
+
},
|
|
9582
|
+
] satisfies ParamDef[],
|
|
9583
|
+
},
|
|
9584
|
+
|
|
9585
|
+
// release mutate: write-changelog (T14102 — CHANGELOG section from the
|
|
9586
|
+
// changesets since the previous tag; run by release.yml on the tagged checkout).
|
|
9587
|
+
{
|
|
9588
|
+
gateway: 'mutate',
|
|
9589
|
+
domain: 'release',
|
|
9590
|
+
operation: 'write-changelog',
|
|
9591
|
+
description:
|
|
9592
|
+
'release.write-changelog (mutate) — write the ## [VERSION] CHANGELOG.md section from the changesets added since the previous release tag, led by the tag annotation; leaves an existing section untouched (T14102).',
|
|
9593
|
+
tier: 1,
|
|
9594
|
+
idempotent: true,
|
|
9595
|
+
sessionRequired: false,
|
|
9596
|
+
requiredParams: ['version'],
|
|
9597
|
+
params: [
|
|
9598
|
+
{
|
|
9599
|
+
name: 'version',
|
|
9600
|
+
type: 'string',
|
|
9601
|
+
required: true,
|
|
9602
|
+
description: 'Release version (accepts v2026.10.28 or 2026.10.28)',
|
|
9603
|
+
cli: { positional: true },
|
|
9604
|
+
},
|
|
9605
|
+
{
|
|
9606
|
+
name: 'ref',
|
|
9607
|
+
type: 'string',
|
|
9608
|
+
required: false,
|
|
9609
|
+
description: 'Commit the release was cut from (default: tag v<version>, else HEAD)',
|
|
9610
|
+
},
|
|
9611
|
+
] satisfies ParamDef[],
|
|
9612
|
+
},
|
|
9613
|
+
|
|
9614
|
+
// release query: verify-tag (T14102 — release.yml refuses to publish a tag
|
|
9615
|
+
// that is not a green first-parent commit of the default branch).
|
|
9616
|
+
{
|
|
9617
|
+
gateway: 'query',
|
|
9618
|
+
domain: 'release',
|
|
9619
|
+
operation: 'verify-tag',
|
|
9620
|
+
description:
|
|
9621
|
+
'release.verify-tag (query) — refuse a release tag whose commit is not a first-parent commit of origin/main with every required check (release.prRequiredWorkflows, app-pinned) green on its push run. Run by release.yml before publishing (T14102).',
|
|
9622
|
+
tier: 1,
|
|
9623
|
+
idempotent: true,
|
|
9624
|
+
sessionRequired: false,
|
|
9625
|
+
requiredParams: ['version'],
|
|
9626
|
+
params: [
|
|
9627
|
+
{
|
|
9628
|
+
name: 'version',
|
|
9629
|
+
type: 'string',
|
|
9630
|
+
required: true,
|
|
9631
|
+
description: 'Release version whose tag is checked (accepts v2026.10.28 or 2026.10.28)',
|
|
9632
|
+
cli: { positional: true },
|
|
9633
|
+
},
|
|
9634
|
+
] satisfies ParamDef[],
|
|
9635
|
+
},
|
|
9636
|
+
|
|
9785
9637
|
// release query: validate-changelog (T9937 / Saga T9862 — canonical CHANGELOG
|
|
9786
9638
|
// header validator that replaces the brittle inline grep step in
|
|
9787
9639
|
// .github/workflows/release.yml). Read-only — exposed only under the query
|
|
@@ -10206,7 +10058,7 @@ export const OPERATIONS: OperationDef[] = [
|
|
|
10206
10058
|
domain: 'worktree',
|
|
10207
10059
|
operation: 'list',
|
|
10208
10060
|
description:
|
|
10209
|
-
'worktree.list (query) — enumerate git worktrees with
|
|
10061
|
+
'worktree.list (query) — enumerate git worktrees with 4 status categories (active|redundant|keep|unknown) from the disposal proof (T14274). Reads tasks.db for owning-task status. 60s git timeout (T9546).',
|
|
10210
10062
|
tier: 1,
|
|
10211
10063
|
idempotent: true,
|
|
10212
10064
|
sessionRequired: false,
|