@quolu/lattice 0.63.0 → 0.63.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 +3 -1
- 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 -85
- 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/project-cli.mjs +164 -24
- package/src/todo-authoring-input.mjs +35 -5
- package/src/todo-cli.mjs +2 -2
- package/src/todo-store.mjs +52 -21
|
@@ -1,150 +1,150 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.todo_extraction.v3.schema.json",
|
|
4
|
-
"title": "lattice.todo_extraction.v3",
|
|
5
|
-
"description": "AI-authored ToDo migration artifact. Every task carries a non-blank Markdown design_memo. After the complete plan is written, run `lattice plan scope-review` and confirm that every registered task preserves an owner-supplied work specification without adding a product purpose. If no plan exists, write NO_PLAN explicitly.",
|
|
6
|
-
"$comment": "あなたがこのToDoに対して、何も考えていないならば、設計メモに `NO_PLAN` と書いてください。Runtime validation also enforces UTF-8 byte bounds, exact keys, strict sort order, referential integrity, disposition consistency, and the canonical self-digest.",
|
|
7
|
-
"type": "object",
|
|
8
|
-
"additionalProperties": false,
|
|
9
|
-
"required": [
|
|
10
|
-
"schema", "project_id", "plan_key", "plan_version", "actor", "recorded_at",
|
|
11
|
-
"tasks", "hard_dependencies", "joins", "extraction_digest"
|
|
12
|
-
],
|
|
13
|
-
"properties": {
|
|
14
|
-
"schema": { "const": "lattice.todo_extraction.v3" },
|
|
15
|
-
"project_id": { "$ref": "#/$defs/identifier" },
|
|
16
|
-
"plan_key": { "$ref": "#/$defs/identifier" },
|
|
17
|
-
"plan_version": { "$ref": "#/$defs/identifier" },
|
|
18
|
-
"actor": { "$ref": "#/$defs/actor" },
|
|
19
|
-
"recorded_at": { "$ref": "#/$defs/strictTimestamp" },
|
|
20
|
-
"tasks": { "type": "array", "minItems": 1, "maxItems": 512, "items": { "$ref": "#/$defs/task" } },
|
|
21
|
-
"hard_dependencies": {
|
|
22
|
-
"type": "array", "maxItems": 2048,
|
|
23
|
-
"items": {
|
|
24
|
-
"type": "object", "additionalProperties": false, "required": ["from", "to"],
|
|
25
|
-
"properties": {
|
|
26
|
-
"from": { "$ref": "#/$defs/nodeRef" },
|
|
27
|
-
"to": { "$ref": "#/$defs/nodeRef" },
|
|
28
|
-
"reason": { "$ref": "#/$defs/text" }
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"joins": {
|
|
33
|
-
"type": "array", "maxItems": 128,
|
|
34
|
-
"items": {
|
|
35
|
-
"type": "object", "additionalProperties": false, "required": ["id", "after", "before"],
|
|
36
|
-
"properties": {
|
|
37
|
-
"id": { "$ref": "#/$defs/identifier" },
|
|
38
|
-
"after": { "type": "array", "minItems": 1, "maxItems": 512, "items": { "$ref": "#/$defs/nodeRef" } },
|
|
39
|
-
"before": { "$ref": "#/$defs/nodeRef" }
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"extraction_digest": { "$ref": "#/$defs/digest" }
|
|
44
|
-
},
|
|
45
|
-
"$defs": {
|
|
46
|
-
"identifier": { "type": "string", "pattern": "^[0-9A-Za-z](?:[0-9A-Za-z._-]{0,127})$" },
|
|
47
|
-
"digest": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
48
|
-
"repoRef": {
|
|
49
|
-
"type": "string", "minLength": 1, "maxLength": 1024,
|
|
50
|
-
"pattern": "^(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))(?!.*\\\\)(?!.*[\\u0000-\\u001f\\u007f])[^/]+(?:/[^/]+)*$"
|
|
51
|
-
},
|
|
52
|
-
"text": { "type": "string", "minLength": 1, "maxLength": 16384 },
|
|
53
|
-
"designMemo": {
|
|
54
|
-
"type": "string", "minLength": 1, "maxLength": 16384, "pattern": "\\S",
|
|
55
|
-
"description": "Markdown design memo. Use the literal NO_PLAN only when no plan exists."
|
|
56
|
-
},
|
|
57
|
-
"nullableText": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/text" }] },
|
|
58
|
-
"strictTimestamp": {
|
|
59
|
-
"type": "string",
|
|
60
|
-
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
61
|
-
},
|
|
62
|
-
"actor": {
|
|
63
|
-
"type": "object", "additionalProperties": false, "required": ["host", "session", "agent"],
|
|
64
|
-
"properties": {
|
|
65
|
-
"host": { "$ref": "#/$defs/identifier" },
|
|
66
|
-
"session": { "$ref": "#/$defs/identifier" },
|
|
67
|
-
"agent": { "$ref": "#/$defs/identifier" }
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"nodeRef": {
|
|
71
|
-
"type": "object", "additionalProperties": false, "required": ["project_id", "plan_key", "task_id"],
|
|
72
|
-
"properties": {
|
|
73
|
-
"project_id": { "$ref": "#/$defs/identifier" },
|
|
74
|
-
"plan_key": { "$ref": "#/$defs/identifier" },
|
|
75
|
-
"task_id": { "$ref": "#/$defs/identifier" },
|
|
76
|
-
"expected_topology_digest": { "$ref": "#/$defs/digest" }
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"sourceLocation": {
|
|
80
|
-
"type": "object", "additionalProperties": false,
|
|
81
|
-
"required": ["origin_plan_ref", "origin_line", "source_commit", "heading_path", "markdown_depth", "parent_task_id", "checkbox_state"],
|
|
82
|
-
"properties": {
|
|
83
|
-
"origin_plan_ref": { "$ref": "#/$defs/repoRef" },
|
|
84
|
-
"origin_line": { "type": "integer", "minimum": 1 },
|
|
85
|
-
"source_commit": { "type": "string", "pattern": "^(?:[0-9a-f]{40}|[0-9a-f]{64})$" },
|
|
86
|
-
"heading_path": { "type": "array", "maxItems": 32, "items": { "type": "string", "minLength": 1, "maxLength": 1024 } },
|
|
87
|
-
"markdown_depth": { "type": "integer", "minimum": 0, "maximum": 64 },
|
|
88
|
-
"parent_task_id": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/identifier" }] },
|
|
89
|
-
"checkbox_state": { "enum": ["checked", "unchecked", "absent", "ambiguous"] }
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"migrationContext": {
|
|
93
|
-
"type": "object", "additionalProperties": false,
|
|
94
|
-
"required": ["external_canonical_ref", "carry_over_ref", "h_required", "condition", "evidence_refs", "notes"],
|
|
95
|
-
"properties": {
|
|
96
|
-
"external_canonical_ref": { "$ref": "#/$defs/nullableText" },
|
|
97
|
-
"carry_over_ref": { "$ref": "#/$defs/nullableText" },
|
|
98
|
-
"h_required": { "type": "boolean" },
|
|
99
|
-
"condition": { "$ref": "#/$defs/nullableText" },
|
|
100
|
-
"evidence_refs": { "type": "array", "maxItems": 64, "items": { "type": "string", "minLength": 1, "maxLength": 4096 } },
|
|
101
|
-
"notes": { "type": "array", "maxItems": 64, "items": { "type": "string", "minLength": 1, "maxLength": 4096 } }
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"historicalStart": {
|
|
105
|
-
"type": "object", "additionalProperties": false, "required": ["start_mode", "status", "started_at"],
|
|
106
|
-
"properties": {
|
|
107
|
-
"start_mode": { "const": "historical_import" }, "status": { "const": "in-progress" },
|
|
108
|
-
"started_at": { "oneOf": [{ "const": "unknown_requires_evidence" }, { "$ref": "#/$defs/strictTimestamp" }] }
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
"historicalCompletion": {
|
|
112
|
-
"type": "object", "additionalProperties": false, "required": ["done_mode", "completed_at"],
|
|
113
|
-
"properties": {
|
|
114
|
-
"done_mode": { "const": "historical_import" },
|
|
115
|
-
"completed_at": { "oneOf": [{ "const": "unknown_requires_evidence" }, { "$ref": "#/$defs/strictTimestamp" }] }
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"task": {
|
|
119
|
-
"type": "object", "additionalProperties": false,
|
|
120
|
-
"required": [
|
|
121
|
-
"task_id", "title", "lane", "design_memo", "narrative_ref", "compile_binding",
|
|
122
|
-
"disposition", "start", "completion", "source", "migration_context"
|
|
123
|
-
],
|
|
124
|
-
"properties": {
|
|
125
|
-
"task_id": { "$ref": "#/$defs/identifier" },
|
|
126
|
-
"title": { "$ref": "#/$defs/text" },
|
|
127
|
-
"lane": { "$ref": "#/$defs/identifier" },
|
|
128
|
-
"design_memo": { "$ref": "#/$defs/designMemo" },
|
|
129
|
-
"narrative_ref": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/repoRef" }] },
|
|
130
|
-
"compile_binding": { "type": "null" },
|
|
131
|
-
"disposition": { "enum": ["register_pending", "register_in_progress", "register_done", "exclude_superseded", "exclude_compatibility_record", "unknown_requires_evidence"] },
|
|
132
|
-
"start": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/historicalStart" }] },
|
|
133
|
-
"completion": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/historicalCompletion" }] },
|
|
134
|
-
"source": { "$ref": "#/$defs/sourceLocation" },
|
|
135
|
-
"migration_context": { "$ref": "#/$defs/migrationContext" }
|
|
136
|
-
},
|
|
137
|
-
"allOf": [
|
|
138
|
-
{
|
|
139
|
-
"if": { "properties": { "disposition": { "const": "register_in_progress" } }, "required": ["disposition"] },
|
|
140
|
-
"then": { "properties": { "start": { "$ref": "#/$defs/historicalStart" }, "completion": { "type": "null" } } },
|
|
141
|
-
"else": {
|
|
142
|
-
"if": { "properties": { "disposition": { "const": "register_done" } }, "required": ["disposition"] },
|
|
143
|
-
"then": { "properties": { "start": { "type": "null" }, "completion": { "$ref": "#/$defs/historicalCompletion" } } },
|
|
144
|
-
"else": { "properties": { "start": { "type": "null" }, "completion": { "type": "null" } } }
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
]
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.todo_extraction.v3.schema.json",
|
|
4
|
+
"title": "lattice.todo_extraction.v3",
|
|
5
|
+
"description": "AI-authored ToDo migration artifact. Every task carries a non-blank Markdown design_memo. After the complete plan is written, run `lattice plan scope-review` and confirm that every registered task preserves an owner-supplied work specification without adding a product purpose. If no plan exists, write NO_PLAN explicitly.",
|
|
6
|
+
"$comment": "あなたがこのToDoに対して、何も考えていないならば、設計メモに `NO_PLAN` と書いてください。Runtime validation also enforces UTF-8 byte bounds, exact keys, strict sort order, referential integrity, disposition consistency, and the canonical self-digest.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"required": [
|
|
10
|
+
"schema", "project_id", "plan_key", "plan_version", "actor", "recorded_at",
|
|
11
|
+
"tasks", "hard_dependencies", "joins", "extraction_digest"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"schema": { "const": "lattice.todo_extraction.v3" },
|
|
15
|
+
"project_id": { "$ref": "#/$defs/identifier" },
|
|
16
|
+
"plan_key": { "$ref": "#/$defs/identifier" },
|
|
17
|
+
"plan_version": { "$ref": "#/$defs/identifier" },
|
|
18
|
+
"actor": { "$ref": "#/$defs/actor" },
|
|
19
|
+
"recorded_at": { "$ref": "#/$defs/strictTimestamp" },
|
|
20
|
+
"tasks": { "type": "array", "minItems": 1, "maxItems": 512, "items": { "$ref": "#/$defs/task" } },
|
|
21
|
+
"hard_dependencies": {
|
|
22
|
+
"type": "array", "maxItems": 2048,
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object", "additionalProperties": false, "required": ["from", "to"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"from": { "$ref": "#/$defs/nodeRef" },
|
|
27
|
+
"to": { "$ref": "#/$defs/nodeRef" },
|
|
28
|
+
"reason": { "$ref": "#/$defs/text" }
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"joins": {
|
|
33
|
+
"type": "array", "maxItems": 128,
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "object", "additionalProperties": false, "required": ["id", "after", "before"],
|
|
36
|
+
"properties": {
|
|
37
|
+
"id": { "$ref": "#/$defs/identifier" },
|
|
38
|
+
"after": { "type": "array", "minItems": 1, "maxItems": 512, "items": { "$ref": "#/$defs/nodeRef" } },
|
|
39
|
+
"before": { "$ref": "#/$defs/nodeRef" }
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"extraction_digest": { "$ref": "#/$defs/digest" }
|
|
44
|
+
},
|
|
45
|
+
"$defs": {
|
|
46
|
+
"identifier": { "type": "string", "pattern": "^[0-9A-Za-z](?:[0-9A-Za-z._-]{0,127})$" },
|
|
47
|
+
"digest": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
48
|
+
"repoRef": {
|
|
49
|
+
"type": "string", "minLength": 1, "maxLength": 1024,
|
|
50
|
+
"pattern": "^(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))(?!.*\\\\)(?!.*[\\u0000-\\u001f\\u007f])[^/]+(?:/[^/]+)*$"
|
|
51
|
+
},
|
|
52
|
+
"text": { "type": "string", "minLength": 1, "maxLength": 16384 },
|
|
53
|
+
"designMemo": {
|
|
54
|
+
"type": "string", "minLength": 1, "maxLength": 16384, "pattern": "\\S",
|
|
55
|
+
"description": "Markdown design memo. Use the literal NO_PLAN only when no plan exists."
|
|
56
|
+
},
|
|
57
|
+
"nullableText": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/text" }] },
|
|
58
|
+
"strictTimestamp": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
61
|
+
},
|
|
62
|
+
"actor": {
|
|
63
|
+
"type": "object", "additionalProperties": false, "required": ["host", "session", "agent"],
|
|
64
|
+
"properties": {
|
|
65
|
+
"host": { "$ref": "#/$defs/identifier" },
|
|
66
|
+
"session": { "$ref": "#/$defs/identifier" },
|
|
67
|
+
"agent": { "$ref": "#/$defs/identifier" }
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"nodeRef": {
|
|
71
|
+
"type": "object", "additionalProperties": false, "required": ["project_id", "plan_key", "task_id"],
|
|
72
|
+
"properties": {
|
|
73
|
+
"project_id": { "$ref": "#/$defs/identifier" },
|
|
74
|
+
"plan_key": { "$ref": "#/$defs/identifier" },
|
|
75
|
+
"task_id": { "$ref": "#/$defs/identifier" },
|
|
76
|
+
"expected_topology_digest": { "$ref": "#/$defs/digest" }
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"sourceLocation": {
|
|
80
|
+
"type": "object", "additionalProperties": false,
|
|
81
|
+
"required": ["origin_plan_ref", "origin_line", "source_commit", "heading_path", "markdown_depth", "parent_task_id", "checkbox_state"],
|
|
82
|
+
"properties": {
|
|
83
|
+
"origin_plan_ref": { "$ref": "#/$defs/repoRef" },
|
|
84
|
+
"origin_line": { "type": "integer", "minimum": 1 },
|
|
85
|
+
"source_commit": { "type": "string", "pattern": "^(?:[0-9a-f]{40}|[0-9a-f]{64})$" },
|
|
86
|
+
"heading_path": { "type": "array", "maxItems": 32, "items": { "type": "string", "minLength": 1, "maxLength": 1024 } },
|
|
87
|
+
"markdown_depth": { "type": "integer", "minimum": 0, "maximum": 64 },
|
|
88
|
+
"parent_task_id": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/identifier" }] },
|
|
89
|
+
"checkbox_state": { "enum": ["checked", "unchecked", "absent", "ambiguous"] }
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"migrationContext": {
|
|
93
|
+
"type": "object", "additionalProperties": false,
|
|
94
|
+
"required": ["external_canonical_ref", "carry_over_ref", "h_required", "condition", "evidence_refs", "notes"],
|
|
95
|
+
"properties": {
|
|
96
|
+
"external_canonical_ref": { "$ref": "#/$defs/nullableText" },
|
|
97
|
+
"carry_over_ref": { "$ref": "#/$defs/nullableText" },
|
|
98
|
+
"h_required": { "type": "boolean" },
|
|
99
|
+
"condition": { "$ref": "#/$defs/nullableText" },
|
|
100
|
+
"evidence_refs": { "type": "array", "maxItems": 64, "items": { "type": "string", "minLength": 1, "maxLength": 4096 } },
|
|
101
|
+
"notes": { "type": "array", "maxItems": 64, "items": { "type": "string", "minLength": 1, "maxLength": 4096 } }
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"historicalStart": {
|
|
105
|
+
"type": "object", "additionalProperties": false, "required": ["start_mode", "status", "started_at"],
|
|
106
|
+
"properties": {
|
|
107
|
+
"start_mode": { "const": "historical_import" }, "status": { "const": "in-progress" },
|
|
108
|
+
"started_at": { "oneOf": [{ "const": "unknown_requires_evidence" }, { "$ref": "#/$defs/strictTimestamp" }] }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"historicalCompletion": {
|
|
112
|
+
"type": "object", "additionalProperties": false, "required": ["done_mode", "completed_at"],
|
|
113
|
+
"properties": {
|
|
114
|
+
"done_mode": { "const": "historical_import" },
|
|
115
|
+
"completed_at": { "oneOf": [{ "const": "unknown_requires_evidence" }, { "$ref": "#/$defs/strictTimestamp" }] }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"task": {
|
|
119
|
+
"type": "object", "additionalProperties": false,
|
|
120
|
+
"required": [
|
|
121
|
+
"task_id", "title", "lane", "design_memo", "narrative_ref", "compile_binding",
|
|
122
|
+
"disposition", "start", "completion", "source", "migration_context"
|
|
123
|
+
],
|
|
124
|
+
"properties": {
|
|
125
|
+
"task_id": { "$ref": "#/$defs/identifier" },
|
|
126
|
+
"title": { "$ref": "#/$defs/text" },
|
|
127
|
+
"lane": { "$ref": "#/$defs/identifier" },
|
|
128
|
+
"design_memo": { "$ref": "#/$defs/designMemo" },
|
|
129
|
+
"narrative_ref": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/repoRef" }] },
|
|
130
|
+
"compile_binding": { "type": "null" },
|
|
131
|
+
"disposition": { "enum": ["register_pending", "register_in_progress", "register_done", "exclude_superseded", "exclude_compatibility_record", "unknown_requires_evidence"] },
|
|
132
|
+
"start": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/historicalStart" }] },
|
|
133
|
+
"completion": { "oneOf": [{ "type": "null" }, { "$ref": "#/$defs/historicalCompletion" }] },
|
|
134
|
+
"source": { "$ref": "#/$defs/sourceLocation" },
|
|
135
|
+
"migration_context": { "$ref": "#/$defs/migrationContext" }
|
|
136
|
+
},
|
|
137
|
+
"allOf": [
|
|
138
|
+
{
|
|
139
|
+
"if": { "properties": { "disposition": { "const": "register_in_progress" } }, "required": ["disposition"] },
|
|
140
|
+
"then": { "properties": { "start": { "$ref": "#/$defs/historicalStart" }, "completion": { "type": "null" } } },
|
|
141
|
+
"else": {
|
|
142
|
+
"if": { "properties": { "disposition": { "const": "register_done" } }, "required": ["disposition"] },
|
|
143
|
+
"then": { "properties": { "start": { "type": "null" }, "completion": { "$ref": "#/$defs/historicalCompletion" } } },
|
|
144
|
+
"else": { "properties": { "start": { "type": "null" }, "completion": { "type": "null" } } }
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|