@quolu/lattice 0.64.0 → 0.64.2
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/LICENSE +147 -147
- package/README.ja.md +378 -378
- package/README.md +303 -303
- package/bin/lattice-mcp.mjs +0 -0
- package/bin/lattice-scripted-adapter.mjs +0 -0
- package/bin/lattice-scripted-worker.mjs +0 -0
- package/bin/lattice-work-order-adapter.mjs +0 -0
- package/bin/lattice.mjs +0 -0
- package/docs/bridge-setup.md +248 -248
- package/docs/schemas/lattice.executor_packet.v1.schema.json +57 -57
- package/docs/schemas/lattice.executor_receipt.v1.schema.json +66 -66
- package/docs/schemas/lattice.phase_todo_revision.v3.schema.json +360 -360
- package/docs/schemas/lattice.plan_create_input.v1.schema.json +56 -56
- package/docs/schemas/lattice.plan_create_input.v2.schema.json +72 -72
- package/docs/schemas/lattice.plan_create_input.v3.schema.json +81 -81
- package/docs/schemas/lattice.plan_create_input.v4.schema.json +357 -357
- package/docs/schemas/lattice.plan_scope_review.v1.schema.json +55 -55
- package/docs/schemas/lattice.run_request.v1.schema.json +238 -238
- package/docs/schemas/lattice.runtime_adapter_capabilities.v2.schema.json +55 -55
- package/docs/schemas/lattice.runtime_adapter_registration_input.v1.schema.json +78 -78
- package/docs/schemas/lattice.runtime_adapter_registration_input.v2.schema.json +86 -86
- package/docs/schemas/lattice.todo_extraction.v2.schema.json +298 -298
- package/docs/schemas/lattice.todo_extraction.v3.schema.json +150 -150
- package/docs/schemas/lattice.todo_extraction.v4.schema.json +161 -161
- package/docs/schemas/lattice.todo_revision.v2.schema.json +260 -260
- package/docs/schemas/lattice.todo_revision_set.v3.schema.json +363 -363
- package/docs/schemas/lattice.todo_structure_binding.v1.schema.json +47 -47
- package/docs/schemas/lattice.todo_structure_realization.v1.schema.json +55 -55
- package/docs/schemas/lattice.todo_structure_set.v1.schema.json +264 -264
- package/package.json +109 -109
- package/sensor/LICENSE +21 -21
- package/sensor/NOTICE +19 -19
- package/sensor/dist/bin/lattice-sensor.js +9 -9
- package/sensor/dist/db/index.js +24 -24
- package/sensor/dist/db/migrations.js +41 -41
- package/sensor/dist/db/queries.js +164 -164
- package/sensor/dist/db/schema.sql +205 -205
- package/sensor/dist/directory.js +5 -5
- package/sensor/dist/extraction/wasm/tree-sitter-c_sharp.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-cfml.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-cfquery.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-cfscript.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-cobol.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-erlang.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-go.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-java.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-javascript.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-nix.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-pascal.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-python.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-tsx.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-typescript.wasm +0 -0
- package/sensor/dist/extraction/wasm/tree-sitter-vbnet.wasm +0 -0
- package/sensor/dist/mcp/liveness-watchdog.js +53 -53
- package/sensor/dist/mcp/server-instructions.js +95 -95
- package/sensor/package.json +56 -56
- package/src/cli-help.mjs +2 -0
- package/src/hooks-cli.mjs +0 -1
- package/src/project-cli.mjs +8 -1
- package/src/todo-cli.mjs +20 -2
- package/src/todo-store-worktree-eol.mjs +191 -0
- package/src/todo-store.mjs +35 -17
|
@@ -1,357 +1,357 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.plan_create_input.v4.schema.json",
|
|
4
|
-
"title": "lattice.plan_create_input.v4",
|
|
5
|
-
"description": "Canonical initial authoring input for a phase-audited plan. Every task requires a design memo. After the complete plan is written, run `lattice plan scope-review` and confirm that every task preserves an owner-supplied work specification without adding a product purpose. あなたがこのToDoに対して、何も考えていないならば、設計メモに `NO_PLAN` と書いてください",
|
|
6
|
-
"$comment": "Runtime validation additionally enforces canonical JSON+LF bytes, sorted identifiers and edges, unique ids, combined task/phase acyclicity, byte bounds, non-empty design_memo, and input_digest.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"required": [
|
|
10
|
-
"schema",
|
|
11
|
-
"project_id",
|
|
12
|
-
"plan_key",
|
|
13
|
-
"plan_version",
|
|
14
|
-
"actor",
|
|
15
|
-
"recorded_at",
|
|
16
|
-
"tasks",
|
|
17
|
-
"phases",
|
|
18
|
-
"hard_dependencies",
|
|
19
|
-
"joins",
|
|
20
|
-
"phase_accept_dependencies",
|
|
21
|
-
"input_digest"
|
|
22
|
-
],
|
|
23
|
-
"properties": {
|
|
24
|
-
"schema": {
|
|
25
|
-
"const": "lattice.plan_create_input.v4"
|
|
26
|
-
},
|
|
27
|
-
"project_id": {
|
|
28
|
-
"$ref": "#/$defs/identifier"
|
|
29
|
-
},
|
|
30
|
-
"plan_key": {
|
|
31
|
-
"$ref": "#/$defs/identifier"
|
|
32
|
-
},
|
|
33
|
-
"plan_version": {
|
|
34
|
-
"$ref": "#/$defs/identifier"
|
|
35
|
-
},
|
|
36
|
-
"actor": {
|
|
37
|
-
"$ref": "#/$defs/actor"
|
|
38
|
-
},
|
|
39
|
-
"recorded_at": {
|
|
40
|
-
"$ref": "#/$defs/strictTimestamp"
|
|
41
|
-
},
|
|
42
|
-
"tasks": {
|
|
43
|
-
"type": "array",
|
|
44
|
-
"minItems": 1,
|
|
45
|
-
"maxItems": 512,
|
|
46
|
-
"items": {
|
|
47
|
-
"$ref": "#/$defs/task"
|
|
48
|
-
},
|
|
49
|
-
"description": "task_idの昇順・重複なしで並べる。整列はJSON Schemaでは表現できないがCLIは拒否する。"
|
|
50
|
-
},
|
|
51
|
-
"phases": {
|
|
52
|
-
"type": "array",
|
|
53
|
-
"minItems": 1,
|
|
54
|
-
"maxItems": 512,
|
|
55
|
-
"items": {
|
|
56
|
-
"$ref": "#/$defs/phase"
|
|
57
|
-
},
|
|
58
|
-
"description": "phase_idの昇順・重複なしで並べる。全taskのphase_idはここに存在しなければならない。"
|
|
59
|
-
},
|
|
60
|
-
"hard_dependencies": {
|
|
61
|
-
"type": "array",
|
|
62
|
-
"maxItems": 2048,
|
|
63
|
-
"items": {
|
|
64
|
-
"$ref": "#/$defs/edge"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"joins": {
|
|
68
|
-
"type": "array",
|
|
69
|
-
"maxItems": 128,
|
|
70
|
-
"items": {
|
|
71
|
-
"$ref": "#/$defs/join"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"phase_accept_dependencies": {
|
|
75
|
-
"type": "array",
|
|
76
|
-
"maxItems": 2048,
|
|
77
|
-
"items": {
|
|
78
|
-
"$ref": "#/$defs/phaseAcceptDependency"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"input_digest": {
|
|
82
|
-
"$ref": "#/$defs/authoringDigest"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"$defs": {
|
|
86
|
-
"identifier": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"pattern": "^[0-9A-Za-z](?:[0-9A-Za-z._-]{0,127})$"
|
|
89
|
-
},
|
|
90
|
-
"digest": {
|
|
91
|
-
"type": "string",
|
|
92
|
-
"pattern": "^[0-9a-f]{64}$"
|
|
93
|
-
},
|
|
94
|
-
"repoRef": {
|
|
95
|
-
"type": "string",
|
|
96
|
-
"minLength": 1,
|
|
97
|
-
"maxLength": 1024
|
|
98
|
-
},
|
|
99
|
-
"strictTimestamp": {
|
|
100
|
-
"type": "string",
|
|
101
|
-
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
102
|
-
},
|
|
103
|
-
"nullableRepoRef": {
|
|
104
|
-
"oneOf": [
|
|
105
|
-
{
|
|
106
|
-
"type": "null"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"$ref": "#/$defs/repoRef"
|
|
110
|
-
}
|
|
111
|
-
]
|
|
112
|
-
},
|
|
113
|
-
"nullableIdentifier": {
|
|
114
|
-
"oneOf": [
|
|
115
|
-
{
|
|
116
|
-
"type": "null"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"$ref": "#/$defs/identifier"
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
|
-
"actor": {
|
|
124
|
-
"type": "object",
|
|
125
|
-
"additionalProperties": false,
|
|
126
|
-
"required": [
|
|
127
|
-
"host",
|
|
128
|
-
"session",
|
|
129
|
-
"agent"
|
|
130
|
-
],
|
|
131
|
-
"properties": {
|
|
132
|
-
"host": {
|
|
133
|
-
"$ref": "#/$defs/identifier"
|
|
134
|
-
},
|
|
135
|
-
"session": {
|
|
136
|
-
"$ref": "#/$defs/identifier"
|
|
137
|
-
},
|
|
138
|
-
"agent": {
|
|
139
|
-
"$ref": "#/$defs/identifier"
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
"task": {
|
|
144
|
-
"type": "object",
|
|
145
|
-
"additionalProperties": false,
|
|
146
|
-
"required": [
|
|
147
|
-
"task_id",
|
|
148
|
-
"title",
|
|
149
|
-
"lane",
|
|
150
|
-
"design_memo",
|
|
151
|
-
"narrative_ref",
|
|
152
|
-
"narrative_anchor",
|
|
153
|
-
"compile_binding",
|
|
154
|
-
"parent_task_id",
|
|
155
|
-
"phase_id"
|
|
156
|
-
],
|
|
157
|
-
"properties": {
|
|
158
|
-
"task_id": {
|
|
159
|
-
"$ref": "#/$defs/identifier"
|
|
160
|
-
},
|
|
161
|
-
"title": {
|
|
162
|
-
"oneOf": [
|
|
163
|
-
{
|
|
164
|
-
"type": "null"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"type": "string",
|
|
168
|
-
"minLength": 1,
|
|
169
|
-
"maxLength": 16384
|
|
170
|
-
}
|
|
171
|
-
]
|
|
172
|
-
},
|
|
173
|
-
"lane": {
|
|
174
|
-
"$ref": "#/$defs/identifier"
|
|
175
|
-
},
|
|
176
|
-
"design_memo": {
|
|
177
|
-
"type": "string",
|
|
178
|
-
"minLength": 1,
|
|
179
|
-
"maxLength": 16384,
|
|
180
|
-
"description": "Markdown design memo. あなたがこのToDoに対して、何も考えていないならば、設計メモに `NO_PLAN` と書いてください"
|
|
181
|
-
},
|
|
182
|
-
"narrative_ref": {
|
|
183
|
-
"$ref": "#/$defs/nullableRepoRef"
|
|
184
|
-
},
|
|
185
|
-
"narrative_anchor": {
|
|
186
|
-
"type": "null"
|
|
187
|
-
},
|
|
188
|
-
"compile_binding": {
|
|
189
|
-
"type": "null"
|
|
190
|
-
},
|
|
191
|
-
"parent_task_id": {
|
|
192
|
-
"$ref": "#/$defs/nullableIdentifier"
|
|
193
|
-
},
|
|
194
|
-
"phase_id": {
|
|
195
|
-
"$ref": "#/$defs/identifier"
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
"phase": {
|
|
200
|
-
"type": "object",
|
|
201
|
-
"additionalProperties": false,
|
|
202
|
-
"required": [
|
|
203
|
-
"phase_id",
|
|
204
|
-
"title",
|
|
205
|
-
"gate_policy",
|
|
206
|
-
"predecessor_phase_ids",
|
|
207
|
-
"required_evidence_slots"
|
|
208
|
-
],
|
|
209
|
-
"properties": {
|
|
210
|
-
"phase_id": {
|
|
211
|
-
"$ref": "#/$defs/identifier"
|
|
212
|
-
},
|
|
213
|
-
"title": {
|
|
214
|
-
"oneOf": [
|
|
215
|
-
{
|
|
216
|
-
"type": "null"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"type": "string",
|
|
220
|
-
"minLength": 1,
|
|
221
|
-
"maxLength": 16384
|
|
222
|
-
}
|
|
223
|
-
]
|
|
224
|
-
},
|
|
225
|
-
"gate_policy": {
|
|
226
|
-
"$ref": "#/$defs/identifier",
|
|
227
|
-
"description": "Phase gateの呼び名。製品はこの値で分岐しないので統制語彙は無く、identifierなら何でもよい。表示に使う。慣用は 'heavy'(重監査)と 'terminal-audit'(暗黙の終端Phaseが使う)。"
|
|
228
|
-
},
|
|
229
|
-
"predecessor_phase_ids": {
|
|
230
|
-
"type": "array",
|
|
231
|
-
"items": {
|
|
232
|
-
"$ref": "#/$defs/identifier"
|
|
233
|
-
},
|
|
234
|
-
"uniqueItems": true,
|
|
235
|
-
"description": "先行Phase。identifierの昇順・重複なしで並べる。"
|
|
236
|
-
},
|
|
237
|
-
"required_evidence_slots": {
|
|
238
|
-
"type": "array",
|
|
239
|
-
"minItems": 1,
|
|
240
|
-
"items": {
|
|
241
|
-
"$ref": "#/$defs/identifier"
|
|
242
|
-
},
|
|
243
|
-
"uniqueItems": true,
|
|
244
|
-
"description": "Phase gateが要求する証跡slot。1つ以上必須で、identifierの昇順・重複なしで並べる。"
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
"nodeRef": {
|
|
249
|
-
"type": "object",
|
|
250
|
-
"additionalProperties": false,
|
|
251
|
-
"required": [
|
|
252
|
-
"project_id",
|
|
253
|
-
"plan_key",
|
|
254
|
-
"task_id"
|
|
255
|
-
],
|
|
256
|
-
"properties": {
|
|
257
|
-
"project_id": {
|
|
258
|
-
"$ref": "#/$defs/identifier"
|
|
259
|
-
},
|
|
260
|
-
"plan_key": {
|
|
261
|
-
"$ref": "#/$defs/identifier"
|
|
262
|
-
},
|
|
263
|
-
"task_id": {
|
|
264
|
-
"$ref": "#/$defs/identifier"
|
|
265
|
-
},
|
|
266
|
-
"expected_topology_digest": {
|
|
267
|
-
"$ref": "#/$defs/digest"
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
"phaseRef": {
|
|
272
|
-
"type": "object",
|
|
273
|
-
"additionalProperties": false,
|
|
274
|
-
"required": [
|
|
275
|
-
"project_id",
|
|
276
|
-
"plan_key",
|
|
277
|
-
"phase_id"
|
|
278
|
-
],
|
|
279
|
-
"properties": {
|
|
280
|
-
"project_id": {
|
|
281
|
-
"$ref": "#/$defs/identifier"
|
|
282
|
-
},
|
|
283
|
-
"plan_key": {
|
|
284
|
-
"$ref": "#/$defs/identifier"
|
|
285
|
-
},
|
|
286
|
-
"phase_id": {
|
|
287
|
-
"$ref": "#/$defs/identifier"
|
|
288
|
-
},
|
|
289
|
-
"expected_topology_digest": {
|
|
290
|
-
"$ref": "#/$defs/digest"
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
"edge": {
|
|
295
|
-
"type": "object",
|
|
296
|
-
"additionalProperties": false,
|
|
297
|
-
"required": [
|
|
298
|
-
"from",
|
|
299
|
-
"to"
|
|
300
|
-
],
|
|
301
|
-
"properties": {
|
|
302
|
-
"from": {
|
|
303
|
-
"$ref": "#/$defs/nodeRef"
|
|
304
|
-
},
|
|
305
|
-
"to": {
|
|
306
|
-
"$ref": "#/$defs/nodeRef"
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
"phaseAcceptDependency": {
|
|
311
|
-
"type": "object",
|
|
312
|
-
"additionalProperties": false,
|
|
313
|
-
"required": [
|
|
314
|
-
"from",
|
|
315
|
-
"to"
|
|
316
|
-
],
|
|
317
|
-
"properties": {
|
|
318
|
-
"from": {
|
|
319
|
-
"$ref": "#/$defs/phaseRef"
|
|
320
|
-
},
|
|
321
|
-
"to": {
|
|
322
|
-
"$ref": "#/$defs/nodeRef"
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
"join": {
|
|
327
|
-
"type": "object",
|
|
328
|
-
"additionalProperties": false,
|
|
329
|
-
"required": [
|
|
330
|
-
"id",
|
|
331
|
-
"after",
|
|
332
|
-
"before"
|
|
333
|
-
],
|
|
334
|
-
"properties": {
|
|
335
|
-
"id": {
|
|
336
|
-
"$ref": "#/$defs/identifier"
|
|
337
|
-
},
|
|
338
|
-
"after": {
|
|
339
|
-
"type": "array",
|
|
340
|
-
"minItems": 1,
|
|
341
|
-
"maxItems": 512,
|
|
342
|
-
"items": {
|
|
343
|
-
"$ref": "#/$defs/nodeRef"
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
"before": {
|
|
347
|
-
"$ref": "#/$defs/nodeRef"
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
"authoringDigest": {
|
|
352
|
-
"type": "string",
|
|
353
|
-
"pattern": "^(|[0-9a-f]{64})$",
|
|
354
|
-
"description": "canonical入力から算出される自己digest。CLIが読み込み時に必ず再計算して埋めるので、authorは空文字 \"\" を置けばよい。手で計算する必要はない。"
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.plan_create_input.v4.schema.json",
|
|
4
|
+
"title": "lattice.plan_create_input.v4",
|
|
5
|
+
"description": "Canonical initial authoring input for a phase-audited plan. Every task requires a design memo. After the complete plan is written, run `lattice plan scope-review` and confirm that every task preserves an owner-supplied work specification without adding a product purpose. あなたがこのToDoに対して、何も考えていないならば、設計メモに `NO_PLAN` と書いてください",
|
|
6
|
+
"$comment": "Runtime validation additionally enforces canonical JSON+LF bytes, sorted identifiers and edges, unique ids, combined task/phase acyclicity, byte bounds, non-empty design_memo, and input_digest.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"required": [
|
|
10
|
+
"schema",
|
|
11
|
+
"project_id",
|
|
12
|
+
"plan_key",
|
|
13
|
+
"plan_version",
|
|
14
|
+
"actor",
|
|
15
|
+
"recorded_at",
|
|
16
|
+
"tasks",
|
|
17
|
+
"phases",
|
|
18
|
+
"hard_dependencies",
|
|
19
|
+
"joins",
|
|
20
|
+
"phase_accept_dependencies",
|
|
21
|
+
"input_digest"
|
|
22
|
+
],
|
|
23
|
+
"properties": {
|
|
24
|
+
"schema": {
|
|
25
|
+
"const": "lattice.plan_create_input.v4"
|
|
26
|
+
},
|
|
27
|
+
"project_id": {
|
|
28
|
+
"$ref": "#/$defs/identifier"
|
|
29
|
+
},
|
|
30
|
+
"plan_key": {
|
|
31
|
+
"$ref": "#/$defs/identifier"
|
|
32
|
+
},
|
|
33
|
+
"plan_version": {
|
|
34
|
+
"$ref": "#/$defs/identifier"
|
|
35
|
+
},
|
|
36
|
+
"actor": {
|
|
37
|
+
"$ref": "#/$defs/actor"
|
|
38
|
+
},
|
|
39
|
+
"recorded_at": {
|
|
40
|
+
"$ref": "#/$defs/strictTimestamp"
|
|
41
|
+
},
|
|
42
|
+
"tasks": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"minItems": 1,
|
|
45
|
+
"maxItems": 512,
|
|
46
|
+
"items": {
|
|
47
|
+
"$ref": "#/$defs/task"
|
|
48
|
+
},
|
|
49
|
+
"description": "task_idの昇順・重複なしで並べる。整列はJSON Schemaでは表現できないがCLIは拒否する。"
|
|
50
|
+
},
|
|
51
|
+
"phases": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"minItems": 1,
|
|
54
|
+
"maxItems": 512,
|
|
55
|
+
"items": {
|
|
56
|
+
"$ref": "#/$defs/phase"
|
|
57
|
+
},
|
|
58
|
+
"description": "phase_idの昇順・重複なしで並べる。全taskのphase_idはここに存在しなければならない。"
|
|
59
|
+
},
|
|
60
|
+
"hard_dependencies": {
|
|
61
|
+
"type": "array",
|
|
62
|
+
"maxItems": 2048,
|
|
63
|
+
"items": {
|
|
64
|
+
"$ref": "#/$defs/edge"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"joins": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"maxItems": 128,
|
|
70
|
+
"items": {
|
|
71
|
+
"$ref": "#/$defs/join"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"phase_accept_dependencies": {
|
|
75
|
+
"type": "array",
|
|
76
|
+
"maxItems": 2048,
|
|
77
|
+
"items": {
|
|
78
|
+
"$ref": "#/$defs/phaseAcceptDependency"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"input_digest": {
|
|
82
|
+
"$ref": "#/$defs/authoringDigest"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"$defs": {
|
|
86
|
+
"identifier": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"pattern": "^[0-9A-Za-z](?:[0-9A-Za-z._-]{0,127})$"
|
|
89
|
+
},
|
|
90
|
+
"digest": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
93
|
+
},
|
|
94
|
+
"repoRef": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"minLength": 1,
|
|
97
|
+
"maxLength": 1024
|
|
98
|
+
},
|
|
99
|
+
"strictTimestamp": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
102
|
+
},
|
|
103
|
+
"nullableRepoRef": {
|
|
104
|
+
"oneOf": [
|
|
105
|
+
{
|
|
106
|
+
"type": "null"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"$ref": "#/$defs/repoRef"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"nullableIdentifier": {
|
|
114
|
+
"oneOf": [
|
|
115
|
+
{
|
|
116
|
+
"type": "null"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"$ref": "#/$defs/identifier"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"actor": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"additionalProperties": false,
|
|
126
|
+
"required": [
|
|
127
|
+
"host",
|
|
128
|
+
"session",
|
|
129
|
+
"agent"
|
|
130
|
+
],
|
|
131
|
+
"properties": {
|
|
132
|
+
"host": {
|
|
133
|
+
"$ref": "#/$defs/identifier"
|
|
134
|
+
},
|
|
135
|
+
"session": {
|
|
136
|
+
"$ref": "#/$defs/identifier"
|
|
137
|
+
},
|
|
138
|
+
"agent": {
|
|
139
|
+
"$ref": "#/$defs/identifier"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"task": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"required": [
|
|
147
|
+
"task_id",
|
|
148
|
+
"title",
|
|
149
|
+
"lane",
|
|
150
|
+
"design_memo",
|
|
151
|
+
"narrative_ref",
|
|
152
|
+
"narrative_anchor",
|
|
153
|
+
"compile_binding",
|
|
154
|
+
"parent_task_id",
|
|
155
|
+
"phase_id"
|
|
156
|
+
],
|
|
157
|
+
"properties": {
|
|
158
|
+
"task_id": {
|
|
159
|
+
"$ref": "#/$defs/identifier"
|
|
160
|
+
},
|
|
161
|
+
"title": {
|
|
162
|
+
"oneOf": [
|
|
163
|
+
{
|
|
164
|
+
"type": "null"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "string",
|
|
168
|
+
"minLength": 1,
|
|
169
|
+
"maxLength": 16384
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
"lane": {
|
|
174
|
+
"$ref": "#/$defs/identifier"
|
|
175
|
+
},
|
|
176
|
+
"design_memo": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"minLength": 1,
|
|
179
|
+
"maxLength": 16384,
|
|
180
|
+
"description": "Markdown design memo. あなたがこのToDoに対して、何も考えていないならば、設計メモに `NO_PLAN` と書いてください"
|
|
181
|
+
},
|
|
182
|
+
"narrative_ref": {
|
|
183
|
+
"$ref": "#/$defs/nullableRepoRef"
|
|
184
|
+
},
|
|
185
|
+
"narrative_anchor": {
|
|
186
|
+
"type": "null"
|
|
187
|
+
},
|
|
188
|
+
"compile_binding": {
|
|
189
|
+
"type": "null"
|
|
190
|
+
},
|
|
191
|
+
"parent_task_id": {
|
|
192
|
+
"$ref": "#/$defs/nullableIdentifier"
|
|
193
|
+
},
|
|
194
|
+
"phase_id": {
|
|
195
|
+
"$ref": "#/$defs/identifier"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"phase": {
|
|
200
|
+
"type": "object",
|
|
201
|
+
"additionalProperties": false,
|
|
202
|
+
"required": [
|
|
203
|
+
"phase_id",
|
|
204
|
+
"title",
|
|
205
|
+
"gate_policy",
|
|
206
|
+
"predecessor_phase_ids",
|
|
207
|
+
"required_evidence_slots"
|
|
208
|
+
],
|
|
209
|
+
"properties": {
|
|
210
|
+
"phase_id": {
|
|
211
|
+
"$ref": "#/$defs/identifier"
|
|
212
|
+
},
|
|
213
|
+
"title": {
|
|
214
|
+
"oneOf": [
|
|
215
|
+
{
|
|
216
|
+
"type": "null"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"type": "string",
|
|
220
|
+
"minLength": 1,
|
|
221
|
+
"maxLength": 16384
|
|
222
|
+
}
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"gate_policy": {
|
|
226
|
+
"$ref": "#/$defs/identifier",
|
|
227
|
+
"description": "Phase gateの呼び名。製品はこの値で分岐しないので統制語彙は無く、identifierなら何でもよい。表示に使う。慣用は 'heavy'(重監査)と 'terminal-audit'(暗黙の終端Phaseが使う)。"
|
|
228
|
+
},
|
|
229
|
+
"predecessor_phase_ids": {
|
|
230
|
+
"type": "array",
|
|
231
|
+
"items": {
|
|
232
|
+
"$ref": "#/$defs/identifier"
|
|
233
|
+
},
|
|
234
|
+
"uniqueItems": true,
|
|
235
|
+
"description": "先行Phase。identifierの昇順・重複なしで並べる。"
|
|
236
|
+
},
|
|
237
|
+
"required_evidence_slots": {
|
|
238
|
+
"type": "array",
|
|
239
|
+
"minItems": 1,
|
|
240
|
+
"items": {
|
|
241
|
+
"$ref": "#/$defs/identifier"
|
|
242
|
+
},
|
|
243
|
+
"uniqueItems": true,
|
|
244
|
+
"description": "Phase gateが要求する証跡slot。1つ以上必須で、identifierの昇順・重複なしで並べる。"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"nodeRef": {
|
|
249
|
+
"type": "object",
|
|
250
|
+
"additionalProperties": false,
|
|
251
|
+
"required": [
|
|
252
|
+
"project_id",
|
|
253
|
+
"plan_key",
|
|
254
|
+
"task_id"
|
|
255
|
+
],
|
|
256
|
+
"properties": {
|
|
257
|
+
"project_id": {
|
|
258
|
+
"$ref": "#/$defs/identifier"
|
|
259
|
+
},
|
|
260
|
+
"plan_key": {
|
|
261
|
+
"$ref": "#/$defs/identifier"
|
|
262
|
+
},
|
|
263
|
+
"task_id": {
|
|
264
|
+
"$ref": "#/$defs/identifier"
|
|
265
|
+
},
|
|
266
|
+
"expected_topology_digest": {
|
|
267
|
+
"$ref": "#/$defs/digest"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"phaseRef": {
|
|
272
|
+
"type": "object",
|
|
273
|
+
"additionalProperties": false,
|
|
274
|
+
"required": [
|
|
275
|
+
"project_id",
|
|
276
|
+
"plan_key",
|
|
277
|
+
"phase_id"
|
|
278
|
+
],
|
|
279
|
+
"properties": {
|
|
280
|
+
"project_id": {
|
|
281
|
+
"$ref": "#/$defs/identifier"
|
|
282
|
+
},
|
|
283
|
+
"plan_key": {
|
|
284
|
+
"$ref": "#/$defs/identifier"
|
|
285
|
+
},
|
|
286
|
+
"phase_id": {
|
|
287
|
+
"$ref": "#/$defs/identifier"
|
|
288
|
+
},
|
|
289
|
+
"expected_topology_digest": {
|
|
290
|
+
"$ref": "#/$defs/digest"
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"edge": {
|
|
295
|
+
"type": "object",
|
|
296
|
+
"additionalProperties": false,
|
|
297
|
+
"required": [
|
|
298
|
+
"from",
|
|
299
|
+
"to"
|
|
300
|
+
],
|
|
301
|
+
"properties": {
|
|
302
|
+
"from": {
|
|
303
|
+
"$ref": "#/$defs/nodeRef"
|
|
304
|
+
},
|
|
305
|
+
"to": {
|
|
306
|
+
"$ref": "#/$defs/nodeRef"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"phaseAcceptDependency": {
|
|
311
|
+
"type": "object",
|
|
312
|
+
"additionalProperties": false,
|
|
313
|
+
"required": [
|
|
314
|
+
"from",
|
|
315
|
+
"to"
|
|
316
|
+
],
|
|
317
|
+
"properties": {
|
|
318
|
+
"from": {
|
|
319
|
+
"$ref": "#/$defs/phaseRef"
|
|
320
|
+
},
|
|
321
|
+
"to": {
|
|
322
|
+
"$ref": "#/$defs/nodeRef"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"join": {
|
|
327
|
+
"type": "object",
|
|
328
|
+
"additionalProperties": false,
|
|
329
|
+
"required": [
|
|
330
|
+
"id",
|
|
331
|
+
"after",
|
|
332
|
+
"before"
|
|
333
|
+
],
|
|
334
|
+
"properties": {
|
|
335
|
+
"id": {
|
|
336
|
+
"$ref": "#/$defs/identifier"
|
|
337
|
+
},
|
|
338
|
+
"after": {
|
|
339
|
+
"type": "array",
|
|
340
|
+
"minItems": 1,
|
|
341
|
+
"maxItems": 512,
|
|
342
|
+
"items": {
|
|
343
|
+
"$ref": "#/$defs/nodeRef"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"before": {
|
|
347
|
+
"$ref": "#/$defs/nodeRef"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"authoringDigest": {
|
|
352
|
+
"type": "string",
|
|
353
|
+
"pattern": "^(|[0-9a-f]{64})$",
|
|
354
|
+
"description": "canonical入力から算出される自己digest。CLIが読み込み時に必ず再計算して埋めるので、authorは空文字 \"\" を置けばよい。手で計算する必要はない。"
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|