@quolu/lattice 0.85.1 → 0.85.3

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/bin/lattice.mjs CHANGED
@@ -122,7 +122,7 @@ if (help !== null) {
122
122
  cwd: process.cwd(), planInputRef: flags['plan-input'], reviewRef: flags.review, stdout: process.stdout,
123
123
  });
124
124
  } catch (error) {
125
- process.exitCode = projectCliFailure(process.stderr, error);
125
+ process.exitCode = projectCliFailure(process.stderr, error, { command: 'scope-review', flags });
126
126
  }
127
127
  }
128
128
  } else if (args.length === 4 && args[0] === 'plan' && args[1] === 'revise'
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.plan_create_input.v4.schema.json",
4
4
  "title": "lattice.plan_create_input.v4",
5
- "description": "Canonical initial authoring input for a phase-audited plan. Every task carries a design memo; an omitted, null or blank one is recorded as `NO_PLAN`. After the complete plan is written, run `lattice plan scope-review --plan-input <file> --review <scope-review.json> --json` (the review input: `lattice plan scope-review --schema --json`) and confirm that every task preserves an owner-supplied work specification without adding a product purpose. あなたがこのToDoに対して、何も考えていないならば、設計メモに `NO_PLAN` と書いてください actor, recorded_at, input_digest and tasks[].design_memo may be omitted: the machine fills the seat actor, the current time and NO_PLAN, recomputes input_digest and sorts every list into canonical order.",
5
+ "description": "Canonical initial authoring input for a phase-audited plan. Every task carries a design memo; an omitted, null or blank one is recorded as `NO_PLAN`. After the complete plan is written, run `lattice plan scope-review --plan-input <file> --review <scope-review.json> --json` (the review input: `lattice plan scope-review --schema --json`) and confirm that every task preserves an owner-supplied work specification without adding a product purpose. actor, recorded_at, input_digest and tasks[].design_memo may be omitted: the machine fills the seat actor, the current time and NO_PLAN, recomputes input_digest and sorts every list into canonical order.",
6
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 (omitted, null or blank becomes NO_PLAN), and input_digest (recomputed). tasks, hard_dependencies, joins, phases and phase_accept_dependencies are sorted into canonical order and exact duplicates dropped before validation.",
7
7
  "type": "object",
8
8
  "additionalProperties": false,
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.plan_create_input.v5.schema.json",
4
4
  "title": "lattice.plan_create_input.v5",
5
- "description": "Canonical initial authoring input for a phase-audited plan. Every task carries a design memo; an omitted, null or blank one is recorded as `NO_PLAN`. After the complete plan is written, run `lattice plan scope-review --plan-input <file> --review <scope-review.json> --json` (the review input: `lattice plan scope-review --schema --json`) and confirm that every task preserves an owner-supplied work specification without adding a product purpose. あなたがこのToDoに対して、何も考えていないならば、設計メモに `NO_PLAN` と書いてください v5 adds the per-task authored `done_condition`: plain text (or null when the author states none) that Lattice records and shows but never evaluates, never assigns and never records as done. Builds lattice.todo_plan.v8. The author writes intent: ids, titles, phases and edges (see `lattice plan create --template --json`). Every key whose value is constant or null may be omitted and the machine fills it: schema (this version), project_id (the store's project id; with no store yet, the repository directory name as a lower-case identifier; a different value is refused as project_id_mismatch), plan_version (v1; `lattice plan revise` uses the active plan's), actor (the seat actor), recorded_at (the current time; an ISO-8601 date-time with an explicit zone is normalised to UTC milliseconds), input_digest (recomputed), tasks[].design_memo (NO_PLAN), tasks[].lane (main), tasks[].narrative_ref, narrative_anchor, compile_binding, parent_task_id and done_condition (null), phases[].gate_policy (heavy), phases[].predecessor_phase_ids ([]), phases[].required_evidence_slots ([\"acceptance\"]), hard_dependencies, joins and phase_accept_dependencies ([]), and project_id/plan_key of an edge reference (this input's own). Every list is sorted into canonical order. A refusal lists every problem at once in detail.problems. Edge direction: from is the prerequisite; to starts after from is done.",
5
+ "description": "Canonical initial authoring input for a phase-audited plan. Every task carries a design memo; an omitted, null or blank one is recorded as `NO_PLAN`. After the complete plan is written, run `lattice plan scope-review --plan-input <file> --review <scope-review.json> --json` (the review input: `lattice plan scope-review --schema --json`) and confirm that every task preserves an owner-supplied work specification without adding a product purpose. v5 adds the per-task authored `done_condition`: plain text (or null when the author states none) that Lattice records and shows but never evaluates, never assigns and never records as done. Builds lattice.todo_plan.v8. The author writes intent: ids, titles, phases and edges (see `lattice plan create --template --json`). Every key whose value is constant or null may be omitted and the machine fills it: schema (this version), project_id (the store's project id; with no store yet, the repository directory name as a lower-case identifier; a different value is refused as project_id_mismatch), plan_version (v1; `lattice plan revise` uses the active plan's), actor (the seat actor), recorded_at (the current time; an ISO-8601 date-time with an explicit zone is normalised to UTC milliseconds), input_digest (recomputed), tasks[].design_memo (NO_PLAN), tasks[].lane (main), tasks[].narrative_ref, narrative_anchor, compile_binding, parent_task_id and done_condition (null), phases[].gate_policy (heavy), phases[].predecessor_phase_ids ([]), phases[].required_evidence_slots ([\"acceptance\"]), hard_dependencies, joins and phase_accept_dependencies ([]), and project_id/plan_key of an edge reference (this input's own). Every list is sorted into canonical order. A refusal lists every problem at once in detail.problems. Edge direction: from is the prerequisite; to starts after from is done.",
6
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 (omitted, null or blank becomes NO_PLAN), and input_digest (recomputed). v5 additionally accepts hard_dependencies, joins, each joins[].after, phase_accept_dependencies, phases, phases[].predecessor_phase_ids and phases[].required_evidence_slots in any order or with exact duplicates: they are sorted into canonical order and de-duplicated before validation. tasks are sorted by task_id. Entries with the same key but different content are still refused.",
7
7
  "type": "object",
8
8
  "additionalProperties": false,
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.plan_revise_input.v1.schema.json",
4
4
  "title": "lattice.plan_revise_input.v1",
5
- "description": "工程全体のdesired stateと、必要なら状態移行の指定。継続方針は機械が全ての旧taskについて算出する(desiredに在れば既定carry、無ければretire)。predecessor/CAS/digest/後継versionも機械が算出する。旧版は保持する。",
5
+ "description": "工程全体のdesired stateと、必要なら状態移行の指定。継続方針は機械が全ての旧taskについて算出する(desiredに在れば既定carry、無ければretire)。predecessor/CAS/digest/後継versionも機械が算出する。旧版は保持する。この包みを使わず、desiredの中身(plan createと同じ形の計画の全体)だけを--inputへ渡してもよい(a31)。そのとき継続方針はすべて機械が算出する。現行planが無いplan_keyはplan createで作る。",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
8
  "required": [
@@ -2,12 +2,12 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.plan_scope_review.v1.schema.json",
4
4
  "title": "lattice.plan_scope_review.v1",
5
- "description": "AI-authored review performed after the complete plan is written and before it is registered. Every planned task is judged against the owner-supplied work specifications; task splitting and parallelization are allowed, but a new product purpose is not.",
6
- "$comment": "Lattice validates complete task coverage, known work-spec references, verdict consistency, and digest binding. The operating AI owns the semantic judgment.",
5
+ "description": "AI-authored review performed after the complete plan is written and before it is registered. Every planned task is judged against the owner-supplied work specifications; task splitting and parallelization are allowed, but a new product purpose is not. The plan input may be a plan create input v4 or v5 (the template default; a missing schema reads as v5) or a todo extraction v3/v4.",
6
+ "$comment": "Lattice validates complete task coverage, known work-spec references, verdict consistency, and digest binding. The operating AI owns the semantic judgment. authoring_digest and review_digest may be omitted: the machine computes both (authoring_digest is the plan input's input_digest, or extraction_digest, computed from its content); a written value must match.",
7
7
  "type": "object",
8
8
  "additionalProperties": false,
9
9
  "required": [
10
- "schema", "authoring_digest", "work_specs", "task_assessments", "verdict", "review_digest"
10
+ "schema", "work_specs", "task_assessments", "verdict"
11
11
  ],
12
12
  "properties": {
13
13
  "schema": { "const": "lattice.plan_scope_review.v1" },
@@ -0,0 +1,86 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.todo_witness_draft.v2.schema.json",
4
+ "title": "lattice.todo_witness_draft.v2",
5
+ "description": "What a seat writes to declare, per ToDo, which repo files it owns, reads and writes. `lattice todo independence witness scaffold --plan <key> --input <draft>` turns it into the witness set (lattice.todo_witness_set.v5) that `independence compile` reads, adding what a seat cannot write by hand: fresh affected-test observations, the sensor query wiring and the self-digest. Start from `lattice todo independence witness scaffold --template --plan <key>`.",
6
+ "$comment": "v1 is still accepted; it allows only string `owns`. Include every task that is not done yet (ready, blocked and later ones), not only the current ready ones.",
7
+ "type": "object",
8
+ "required": ["schema", "project_id", "plan_key", "capacity", "tasks"],
9
+ "properties": {
10
+ "schema": { "enum": ["lattice.todo_witness_draft.v2", "lattice.todo_witness_draft.v1"] },
11
+ "project_id": { "$ref": "#/$defs/identifier" },
12
+ "plan_key": { "$ref": "#/$defs/identifier" },
13
+ "capacity": {
14
+ "type": "object",
15
+ "required": ["executors"],
16
+ "properties": {
17
+ "executors": { "type": "integer", "minimum": 1, "description": "How many tasks may run at once." }
18
+ }
19
+ },
20
+ "tasks": {
21
+ "type": "object",
22
+ "minProperties": 1,
23
+ "propertyNames": { "$ref": "#/$defs/identifier" },
24
+ "additionalProperties": { "$ref": "#/$defs/task" },
25
+ "description": "Keyed by task_id."
26
+ }
27
+ },
28
+ "$defs": {
29
+ "identifier": { "type": "string", "pattern": "^[0-9A-Za-z][0-9A-Za-z._-]{0,127}$" },
30
+ "repoRelativePath": {
31
+ "type": "string",
32
+ "minLength": 1,
33
+ "maxLength": 1024,
34
+ "description": "Repo-relative path. Absolute paths, backslashes and '..' traversal are rejected."
35
+ },
36
+ "task": {
37
+ "type": "object",
38
+ "required": ["owns"],
39
+ "properties": {
40
+ "owns": {
41
+ "type": "array",
42
+ "description": "Files this task owns. A file that does not exist yet is written as {\"path\": <file>, \"creates\": true} (v2 only).",
43
+ "items": {
44
+ "anyOf": [
45
+ { "$ref": "#/$defs/repoRelativePath" },
46
+ {
47
+ "type": "object",
48
+ "additionalProperties": false,
49
+ "required": ["path", "creates"],
50
+ "properties": {
51
+ "path": { "$ref": "#/$defs/repoRelativePath" },
52
+ "creates": { "const": true }
53
+ }
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ "reads": { "type": "array", "items": { "$ref": "#/$defs/repoRelativePath" } },
59
+ "writes": { "type": "array", "items": { "$ref": "#/$defs/repoRelativePath" } },
60
+ "unknowns": {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "object",
64
+ "required": ["kind", "ref"],
65
+ "properties": {
66
+ "kind": { "$ref": "#/$defs/identifier" },
67
+ "ref": { "type": "string", "minLength": 1 }
68
+ }
69
+ }
70
+ },
71
+ "concern_anchors": {
72
+ "type": "array",
73
+ "description": "Symbols this task touches inside a contested file it owns or writes; used only to bind seam proposals.",
74
+ "items": {
75
+ "type": "object",
76
+ "required": ["within", "symbols"],
77
+ "properties": {
78
+ "within": { "$ref": "#/$defs/repoRelativePath" },
79
+ "symbols": { "type": "array", "minItems": 1, "items": { "$ref": "#/$defs/identifier" } }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,400 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/kitepon/Lattice/blob/main/docs/schemas/lattice.todo_witness_set.v5.schema.json",
4
+ "title": "lattice.todo_witness_set.v5",
5
+ "description": "Per-ToDo boundary declaration compiled into a recorded independence judgement (ADR 0127). v5 adds optional semantic line declarations so protocol, stream and schema dependencies can be declared even when file paths do not overlap.",
6
+ "$comment": "Runtime validation additionally enforces canonical JSON+LF bytes, the self-digest rule, unique line_id values per ToDo, and closed line anchor shapes. concern_anchors is stripped before run-request synthesis; lines is preserved because it participates in scheduling. v1-v4 declarations remain valid input without lines, and adding lines to an old schema is rejected rather than reinterpreted.",
7
+ "type": "object",
8
+ "additionalProperties": false,
9
+ "required": [
10
+ "schema",
11
+ "project_id",
12
+ "plan_key",
13
+ "capacity",
14
+ "sensor_query_set",
15
+ "manual_witness",
16
+ "witness_set_digest"
17
+ ],
18
+ "properties": {
19
+ "schema": {
20
+ "const": "lattice.todo_witness_set.v5"
21
+ },
22
+ "project_id": {
23
+ "$ref": "#/$defs/identifier"
24
+ },
25
+ "plan_key": {
26
+ "$ref": "#/$defs/identifier"
27
+ },
28
+ "capacity": {
29
+ "type": "object",
30
+ "additionalProperties": false,
31
+ "required": [
32
+ "executors"
33
+ ],
34
+ "properties": {
35
+ "executors": {
36
+ "type": "integer",
37
+ "minimum": 1
38
+ }
39
+ }
40
+ },
41
+ "sensor_query_set": {
42
+ "type": "object",
43
+ "additionalProperties": false,
44
+ "required": [
45
+ "queries"
46
+ ],
47
+ "description": "Sensor queries backing the declarations. Exactly one query must have operation 'status'.",
48
+ "properties": {
49
+ "queries": {
50
+ "type": "array",
51
+ "maxItems": 256,
52
+ "items": {
53
+ "type": "object",
54
+ "additionalProperties": false,
55
+ "required": [
56
+ "id",
57
+ "operation"
58
+ ],
59
+ "properties": {
60
+ "id": {
61
+ "$ref": "#/$defs/identifier"
62
+ },
63
+ "operation": {
64
+ "enum": [
65
+ "status",
66
+ "query",
67
+ "callers",
68
+ "callees",
69
+ "impact",
70
+ "affected"
71
+ ]
72
+ },
73
+ "target": {
74
+ "type": "string",
75
+ "minLength": 1
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ },
82
+ "manual_witness": {
83
+ "type": "object",
84
+ "minProperties": 1,
85
+ "maxProperties": 256,
86
+ "description": "Keyed by task_id of the plan. Keys must be a subset of the plan's tasks.",
87
+ "propertyNames": {
88
+ "$ref": "#/$defs/identifier"
89
+ },
90
+ "additionalProperties": {
91
+ "$ref": "#/$defs/witness"
92
+ }
93
+ },
94
+ "witness_set_digest": {
95
+ "$ref": "#/$defs/digest"
96
+ }
97
+ },
98
+ "$defs": {
99
+ "identifier": {
100
+ "type": "string",
101
+ "pattern": "^[0-9A-Za-z][0-9A-Za-z._-]{0,127}$"
102
+ },
103
+ "digest": {
104
+ "type": "string",
105
+ "pattern": "^[0-9a-f]{64}$"
106
+ },
107
+ "repoRelativePath": {
108
+ "type": "string",
109
+ "minLength": 1,
110
+ "maxLength": 1024,
111
+ "description": "Repo-relative path. Absolute paths, backslashes and '..' traversal are rejected. A trailing '/' declares a directory prefix and is accepted only under 'writes'."
112
+ },
113
+ "lineAnchor": {
114
+ "oneOf": [
115
+ {
116
+ "type": "object",
117
+ "additionalProperties": false,
118
+ "required": ["kind", "path"],
119
+ "properties": {
120
+ "kind": { "const": "path" },
121
+ "path": { "$ref": "#/$defs/repoRelativePath" }
122
+ }
123
+ },
124
+ {
125
+ "type": "object",
126
+ "additionalProperties": false,
127
+ "required": ["kind", "name", "path"],
128
+ "properties": {
129
+ "kind": { "const": "symbol" },
130
+ "name": { "type": "string", "minLength": 1, "maxLength": 1024 },
131
+ "path": { "$ref": "#/$defs/repoRelativePath" }
132
+ }
133
+ }
134
+ ]
135
+ },
136
+ "line": {
137
+ "type": "object",
138
+ "additionalProperties": false,
139
+ "required": ["line_id", "role", "anchors"],
140
+ "properties": {
141
+ "line_id": { "$ref": "#/$defs/identifier" },
142
+ "role": { "enum": ["reads", "writes"] },
143
+ "anchors": {
144
+ "type": "array",
145
+ "minItems": 1,
146
+ "maxItems": 256,
147
+ "items": { "$ref": "#/$defs/lineAnchor" }
148
+ }
149
+ }
150
+ },
151
+ "witness": {
152
+ "type": "object",
153
+ "additionalProperties": false,
154
+ "required": [
155
+ "owns",
156
+ "reads",
157
+ "writes",
158
+ "resources",
159
+ "state_effects",
160
+ "sensor_provenance",
161
+ "affected_tests",
162
+ "unknowns"
163
+ ],
164
+ "properties": {
165
+ "owns": {
166
+ "type": "array",
167
+ "maxItems": 256,
168
+ "description": "Symbols and paths this ToDo claims ownership of. Every entry needs a covering sensor query or it compiles to a sensor_unbound unknown. An entry may additionally declare creates: true for a path this ToDo will bring into existence.",
169
+ "items": {
170
+ "type": "object",
171
+ "additionalProperties": false,
172
+ "required": [
173
+ "kind",
174
+ "target"
175
+ ],
176
+ "properties": {
177
+ "kind": {
178
+ "enum": [
179
+ "symbol",
180
+ "path"
181
+ ]
182
+ },
183
+ "target": {
184
+ "type": "string",
185
+ "minLength": 1,
186
+ "maxLength": 1024
187
+ },
188
+ "creates": {
189
+ "const": true,
190
+ "description": "Optional. Declares that this path does not exist yet and that this ToDo creates it. Only valid when kind is path — existence is a filesystem fact and a symbol has none of its own. Only the value true is accepted: false would be a second spelling of an existing path. Omitted is the default."
191
+ }
192
+ }
193
+ }
194
+ },
195
+ "reads": {
196
+ "type": "array",
197
+ "maxItems": 256,
198
+ "items": {
199
+ "$ref": "#/$defs/repoRelativePath"
200
+ }
201
+ },
202
+ "writes": {
203
+ "type": "array",
204
+ "maxItems": 256,
205
+ "items": {
206
+ "$ref": "#/$defs/repoRelativePath"
207
+ }
208
+ },
209
+ "resources": {
210
+ "type": "array",
211
+ "maxItems": 256,
212
+ "description": "Shared resource ids. A resource with no matching state_effect entry is treated as a shared resource of unknown direction and becomes a conflict.",
213
+ "items": {
214
+ "$ref": "#/$defs/identifier"
215
+ }
216
+ },
217
+ "state_effects": {
218
+ "type": "array",
219
+ "maxItems": 256,
220
+ "items": {
221
+ "type": "object",
222
+ "additionalProperties": false,
223
+ "required": [
224
+ "resource_id",
225
+ "kind"
226
+ ],
227
+ "properties": {
228
+ "resource_id": {
229
+ "$ref": "#/$defs/identifier"
230
+ },
231
+ "kind": {
232
+ "enum": [
233
+ "state",
234
+ "schema",
235
+ "invariant",
236
+ "effect",
237
+ "external_effect"
238
+ ]
239
+ }
240
+ }
241
+ }
242
+ },
243
+ "sensor_provenance": {
244
+ "type": "object",
245
+ "additionalProperties": false,
246
+ "required": [
247
+ "queries"
248
+ ],
249
+ "properties": {
250
+ "queries": {
251
+ "type": "array",
252
+ "maxItems": 256,
253
+ "items": {
254
+ "type": "object",
255
+ "additionalProperties": false,
256
+ "required": [
257
+ "query_id",
258
+ "expect"
259
+ ],
260
+ "properties": {
261
+ "query_id": {
262
+ "$ref": "#/$defs/identifier"
263
+ },
264
+ "expect": {
265
+ "oneOf": [
266
+ {
267
+ "type": "object",
268
+ "additionalProperties": false,
269
+ "required": [
270
+ "kind",
271
+ "name",
272
+ "path"
273
+ ],
274
+ "properties": {
275
+ "kind": {
276
+ "const": "symbol"
277
+ },
278
+ "name": {
279
+ "type": "string",
280
+ "minLength": 1
281
+ },
282
+ "path": {
283
+ "$ref": "#/$defs/repoRelativePath"
284
+ }
285
+ }
286
+ },
287
+ {
288
+ "type": "object",
289
+ "additionalProperties": false,
290
+ "required": [
291
+ "kind",
292
+ "path"
293
+ ],
294
+ "properties": {
295
+ "kind": {
296
+ "enum": [
297
+ "path",
298
+ "affected"
299
+ ]
300
+ },
301
+ "path": {
302
+ "$ref": "#/$defs/repoRelativePath"
303
+ }
304
+ }
305
+ }
306
+ ]
307
+ }
308
+ }
309
+ }
310
+ }
311
+ }
312
+ },
313
+ "affected_tests": {
314
+ "type": "array",
315
+ "maxItems": 256,
316
+ "description": "Declared affected tests. Compared exactly against fresh sensor observation; any drift fails the compile rather than being narrowed.",
317
+ "items": {
318
+ "$ref": "#/$defs/repoRelativePath"
319
+ }
320
+ },
321
+ "unknowns": {
322
+ "type": "array",
323
+ "maxItems": 256,
324
+ "description": "Explicitly declared residual unknowns. Recorded, never rounded away.",
325
+ "items": {
326
+ "type": "object",
327
+ "additionalProperties": false,
328
+ "required": [
329
+ "kind",
330
+ "ref"
331
+ ],
332
+ "properties": {
333
+ "kind": {
334
+ "$ref": "#/$defs/identifier"
335
+ },
336
+ "ref": {
337
+ "type": "string",
338
+ "minLength": 1
339
+ }
340
+ }
341
+ }
342
+ },
343
+ "lines": {
344
+ "type": "array",
345
+ "maxItems": 256,
346
+ "description": "Optional semantic lines read or written by this ToDo. line_id values must be unique within the ToDo.",
347
+ "items": { "$ref": "#/$defs/line" }
348
+ },
349
+ "concern_anchors": {
350
+ "type": "array",
351
+ "maxItems": 256,
352
+ "description": "Optional. Which named symbols inside an owned-but-contested resource are this ToDo's concern. Consumed only when binding seam candidates; it can never create, remove or alter a conflict, so a dishonest declaration degrades the proposal without touching the judgement. Declared symbols must resolve through the sensor with an exact name and path match, must live inside the declared resource, and must not overlap another ToDo's declaration for the same resource; any breach yields a typed unknown instead of a proposal.",
353
+ "items": {
354
+ "type": "object",
355
+ "additionalProperties": false,
356
+ "required": [
357
+ "within",
358
+ "symbols"
359
+ ],
360
+ "properties": {
361
+ "within": {
362
+ "type": "object",
363
+ "additionalProperties": false,
364
+ "required": [
365
+ "kind",
366
+ "target"
367
+ ],
368
+ "description": "The contested resource. Must be a resource this same ToDo claims under 'owns'.",
369
+ "properties": {
370
+ "kind": {
371
+ "enum": [
372
+ "symbol",
373
+ "path"
374
+ ]
375
+ },
376
+ "target": {
377
+ "type": "string",
378
+ "minLength": 1,
379
+ "maxLength": 1024
380
+ }
381
+ }
382
+ },
383
+ "symbols": {
384
+ "type": "array",
385
+ "minItems": 1,
386
+ "maxItems": 256,
387
+ "description": "Symbol names owned by this ToDo inside the resource. Strictly sorted and unique.",
388
+ "items": {
389
+ "type": "string",
390
+ "minLength": 1,
391
+ "maxLength": 1024
392
+ }
393
+ }
394
+ }
395
+ }
396
+ }
397
+ }
398
+ }
399
+ }
400
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quolu/lattice",
3
- "version": "0.85.1",
3
+ "version": "0.85.3",
4
4
  "description": "Schedulability compiler for multi-agent development: observe real code boundaries, refactor the conflicting seam, recompile the plan for parallel execution",
5
5
  "author": {
6
6
  "name": "Quo / クオ at kitepon.dev",
@@ -40,6 +40,8 @@
40
40
  "docs/schemas/lattice.todo_extraction.v3.schema.json",
41
41
  "docs/schemas/lattice.todo_extraction.v4.schema.json",
42
42
  "docs/schemas/lattice.todo_structure_set.v1.schema.json",
43
+ "docs/schemas/lattice.todo_witness_draft.v2.schema.json",
44
+ "docs/schemas/lattice.todo_witness_set.v5.schema.json",
43
45
  "docs/schemas/lattice.todo_structure_realization.v1.schema.json",
44
46
  "docs/schemas/lattice.todo_structure_binding.v1.schema.json",
45
47
  "docs/schemas/lattice.run_request.v1.schema.json",