@quolu/lattice 0.83.0 → 0.84.1
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.ja.md +7 -6
- package/README.md +1 -1
- package/bin/lattice.mjs +29 -22
- package/docs/schemas/lattice.plan_create_input.v4.schema.json +5 -11
- package/docs/schemas/lattice.plan_create_input.v5.schema.json +37 -50
- package/docs/schemas/lattice.plan_revise_input.v1.schema.json +36 -12
- package/package.json +1 -1
- package/sensor/dist/mcp/daemon-paths.d.ts +6 -0
- package/sensor/dist/mcp/daemon-paths.d.ts.map +1 -1
- package/sensor/dist/mcp/daemon-paths.js +7 -1
- package/sensor/dist/mcp/daemon-paths.js.map +1 -1
- package/src/cli-help.mjs +9 -7
- package/src/cli-refusal-guidance.mjs +354 -0
- package/src/dashboard-delivery.mjs +2 -1
- package/src/hooks-cli.mjs +30 -6
- package/src/plan-backchain.mjs +70 -33
- package/src/plan-revise.mjs +153 -52
- package/src/project-cli.mjs +279 -163
- package/src/runtime-cli.mjs +7 -11
- package/src/runtime-pull-intake.mjs +4 -2
- package/src/todo-authoring-input.mjs +167 -5
- package/src/todo-cli.mjs +416 -188
- package/src/todo-dashboard-registry.mjs +4 -2
- package/src/todo-gantt-display.mjs +1 -2
- package/src/todo-gantt-html-independence.mjs +2 -2
- package/src/todo-gantt-html-shared.mjs +14 -0
- package/src/todo-gantt-html.mjs +73 -54
- package/src/todo-gantt-layout.mjs +134 -27
- package/src/todo-independence-guidance.mjs +4 -26
- package/src/todo-readiness.mjs +57 -15
- package/src/todo-revision.mjs +147 -0
- package/src/todo-status.mjs +100 -57
- package/src/todo-store-view.mjs +2 -3
- package/src/todo-store.mjs +31 -292
package/README.ja.md
CHANGED
|
@@ -225,8 +225,8 @@ lattice status --json
|
|
|
225
225
|
|
|
226
226
|
`state`は`uninitialized | ready | active_run | invalid`のいずれかです。`uninitialized`は
|
|
227
227
|
正常な未初期化状態で、`next_action`が正規の初期authoring入口を返します。新規planはPhase監査と
|
|
228
|
-
ToDo schedulingを分離し、全ToDoに設計メモを持つ`lattice.plan_create_input.
|
|
229
|
-
repo内JSONを用意し、次で作成します。既存のv1〜
|
|
228
|
+
ToDo schedulingを分離し、全ToDoに設計メモを持つ`lattice.plan_create_input.v5`の
|
|
229
|
+
repo内JSONを用意し、次で作成します。既存のv1〜v4は互換契約として維持され、`--schema-version`で取得できます。
|
|
230
230
|
|
|
231
231
|
AIへ「Latticeで工程作って」と頼むと、製品hookが機能逆算の入口を示します。AIは最終成果と
|
|
232
232
|
受入条件から必要な機能を逆向きにたどり、各ToDoが必要とする機能と作る機能を定義します。
|
|
@@ -244,7 +244,8 @@ lattice plan backchain --input .lattice/backchain.json --json
|
|
|
244
244
|
旧planは従来どおり読めます。
|
|
245
245
|
|
|
246
246
|
```bash
|
|
247
|
-
lattice plan create --schema-version
|
|
247
|
+
lattice plan create --schema-version 5 --json # v5のJSON Schemaを取る(作成はしない)
|
|
248
|
+
lattice plan create --template --json # 作者が書くkeyだけの最小のv5入力(そのまま作成できる)
|
|
248
249
|
```
|
|
249
250
|
|
|
250
251
|
```bash
|
|
@@ -298,7 +299,7 @@ lattice todo start --plan <key> --task <id> --parallel-frontier
|
|
|
298
299
|
lattice todo start --plan <key> --task <id> --override-reason <reason>
|
|
299
300
|
```
|
|
300
301
|
|
|
301
|
-
|
|
302
|
+
記録があるのに対象工程が未宣言・失効でも`todo start`は止まらず、`advisory.guidance`で知らせます。
|
|
302
303
|
`independence compile`は`next_ready`がwitnessに無いとき`INDEPENDENCE_READY_UNDECLARED`で拒否します。
|
|
303
304
|
remainingのA工程は同じwitnessへ含めます。競合の同時起動は助言のままです。
|
|
304
305
|
|
|
@@ -357,7 +358,7 @@ lattice todo phase baseline --reason <text> --except <監査したいplan_key>
|
|
|
357
358
|
error detailの`violation_path`へ載ります(配列のソート違反は`/tasks/1`のようにindexまで名指しします)。
|
|
358
359
|
|
|
359
360
|
```bash
|
|
360
|
-
lattice plan create --schema --json # 既定は最新
|
|
361
|
+
lattice plan create --schema --json # 既定は最新v5
|
|
361
362
|
lattice todo revise-phase --schema --json
|
|
362
363
|
lattice plan show <plan_key> --json # planのtask・依存・phase・状態を1コマンドで読む
|
|
363
364
|
```Phase状態は
|
|
@@ -408,7 +409,7 @@ dashboard adopt`では、監査actorとして次の3環境変数を渡せます
|
|
|
408
409
|
(`terminal-`と16進12桁)、sessionは`session`、agentはUSERになります。hostのlabelは端末の乱数の識別子
|
|
409
410
|
(`~/.lattice/bridge-hub-terminal.json`)から導き、OSのhost名はjournalへ書きません
|
|
410
411
|
([ADR 0197](https://github.com/kitepon/Lattice/blob/main/docs/adr/0197-terminal-label-instead-of-os-hostname.md))。
|
|
411
|
-
渡した値がidentifier
|
|
412
|
+
渡した値がidentifierとして不正なら、未設定と同じdefaultになります。
|
|
412
413
|
|
|
413
414
|
```bash
|
|
414
415
|
export LATTICE_TODO_ACTOR_HOST=<host-id>
|
package/README.md
CHANGED
|
@@ -235,7 +235,7 @@ parallel set. Starting one of them does not require `--parallel-frontier` or
|
|
|
235
235
|
`--override-reason`. Those flags record intent; they are not gates.
|
|
236
236
|
`--serial-confirmed` and `--serialization-reviewed` are accepted only for compatibility.
|
|
237
237
|
If an independence record exists but the task is undeclared or stale, `todo start`
|
|
238
|
-
|
|
238
|
+
still starts and reports it in `advisory.guidance`. `independence compile` fails with
|
|
239
239
|
`INDEPENDENCE_READY_UNDECLARED` when `next_ready` is missing from the witness.
|
|
240
240
|
|
|
241
241
|
```bash
|
package/bin/lattice.mjs
CHANGED
|
@@ -32,7 +32,7 @@ if (help !== null) {
|
|
|
32
32
|
} else if (args.length === 2 && args[0] === 'session-context' && args[1] === '--json') {
|
|
33
33
|
const { runSessionContext } = await import('../src/project-cli.mjs');
|
|
34
34
|
process.exitCode = await runSessionContext({
|
|
35
|
-
cwd: process.cwd(), stdout: process.stdout, cliVersion: packageJson.version,
|
|
35
|
+
cwd: process.cwd(), stdout: process.stdout, cliVersion: packageJson.version, env: process.env,
|
|
36
36
|
});
|
|
37
37
|
} else if (args.length === 2 && args[0] === 'status' && args[1] === '--json') {
|
|
38
38
|
const { projectStatusFailure, runProjectStatus } = await import('../src/project-cli.mjs');
|
|
@@ -46,18 +46,15 @@ if (help !== null) {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
} else if (args[0] === 'plan' && args[1] === 'create'
|
|
49
|
-
&& args[2] !== '--schema' && args[2] !== '--schema-version') {
|
|
49
|
+
&& args[2] !== '--schema' && args[2] !== '--schema-version' && args[2] !== '--template') {
|
|
50
50
|
const { matchFlagCommand } = await import('../src/todo-authoring-input.mjs');
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
booleans: ['serialization-reviewed'],
|
|
55
|
-
});
|
|
51
|
+
const spec = { known: ['input', 'serialization-reviewed'], required: ['input'],
|
|
52
|
+
booleans: ['serialization-reviewed'] };
|
|
53
|
+
const flags = matchFlagCommand(args, ['plan', 'create'], spec);
|
|
56
54
|
if (flags === null) {
|
|
57
|
-
// usage
|
|
58
|
-
|
|
59
|
-
process.
|
|
60
|
-
process.exitCode = 2;
|
|
55
|
+
// usage違反も欄(flag)・規則・直し方を返す(u05)。受け取った引数もdetailに残す。
|
|
56
|
+
const { planArgumentFailure } = await import('../src/project-cli.mjs');
|
|
57
|
+
process.exitCode = planArgumentFailure(process.stderr, args, spec);
|
|
61
58
|
} else {
|
|
62
59
|
const { projectCliFailure, runPlanCreate } = await import('../src/project-cli.mjs');
|
|
63
60
|
try {
|
|
@@ -65,7 +62,7 @@ if (help !== null) {
|
|
|
65
62
|
cwd: process.cwd(), inputRef: flags.input, stdout: process.stdout,
|
|
66
63
|
});
|
|
67
64
|
} catch (error) {
|
|
68
|
-
process.exitCode = projectCliFailure(process.stderr, error);
|
|
65
|
+
process.exitCode = projectCliFailure(process.stderr, error, { command: 'create', flags });
|
|
69
66
|
}
|
|
70
67
|
}
|
|
71
68
|
} else if (args.length === 4 && args[0] === 'plan' && args[1] === 'create'
|
|
@@ -76,6 +73,14 @@ if (help !== null) {
|
|
|
76
73
|
} catch (error) {
|
|
77
74
|
process.exitCode = projectCliFailure(process.stderr, error);
|
|
78
75
|
}
|
|
76
|
+
} else if (args.length === 4 && args[0] === 'plan' && args[1] === 'create'
|
|
77
|
+
&& args[2] === '--template' && args[3] === '--json') {
|
|
78
|
+
const { projectCliFailure, runPlanCreateTemplate } = await import('../src/project-cli.mjs');
|
|
79
|
+
try {
|
|
80
|
+
process.exitCode = await runPlanCreateTemplate({ stdout: process.stdout });
|
|
81
|
+
} catch (error) {
|
|
82
|
+
process.exitCode = projectCliFailure(process.stderr, error);
|
|
83
|
+
}
|
|
79
84
|
} else if (args.length === 5 && args[0] === 'plan' && args[1] === 'create'
|
|
80
85
|
&& args[2] === '--schema-version' && ['1', '2', '3', '4', '5'].includes(args[3]) && args[4] === '--json') {
|
|
81
86
|
const { projectCliFailure, runPlanCreateSchema } = await import('../src/project-cli.mjs');
|
|
@@ -124,12 +129,13 @@ if (help !== null) {
|
|
|
124
129
|
}
|
|
125
130
|
} else if (args[0] === 'plan' && args[1] === 'revise') {
|
|
126
131
|
const { matchFlagCommand } = await import('../src/todo-authoring-input.mjs');
|
|
127
|
-
const
|
|
132
|
+
const spec = {
|
|
128
133
|
known: ['input', 'dry-run', 'json'], required: ['input'], booleans: ['dry-run', 'json'],
|
|
129
|
-
}
|
|
134
|
+
};
|
|
135
|
+
const flags = matchFlagCommand(args, ['plan', 'revise'], spec);
|
|
130
136
|
if (flags === null || flags.json !== true) {
|
|
131
|
-
|
|
132
|
-
process.exitCode =
|
|
137
|
+
const { planArgumentFailure } = await import('../src/project-cli.mjs');
|
|
138
|
+
process.exitCode = planArgumentFailure(process.stderr, args, spec);
|
|
133
139
|
} else {
|
|
134
140
|
const { runPlanRevise } = await import('../src/plan-revise.mjs');
|
|
135
141
|
const { projectCliFailure } = await import('../src/project-cli.mjs');
|
|
@@ -137,7 +143,7 @@ if (help !== null) {
|
|
|
137
143
|
process.exitCode = await runPlanRevise({ cwd: process.cwd(), inputRef: flags.input,
|
|
138
144
|
dryRun: flags['dry-run'] === true, stdout: process.stdout, env: process.env });
|
|
139
145
|
} catch (error) {
|
|
140
|
-
process.exitCode = projectCliFailure(process.stderr, error);
|
|
146
|
+
process.exitCode = projectCliFailure(process.stderr, error, { command: 'revise', flags });
|
|
141
147
|
}
|
|
142
148
|
}
|
|
143
149
|
} else if (args.length === 4 && args[0] === 'plan' && args[1] === 'backchain'
|
|
@@ -152,13 +158,14 @@ if (help !== null) {
|
|
|
152
158
|
}
|
|
153
159
|
} else if (args[0] === 'plan' && args[1] === 'backchain') {
|
|
154
160
|
const { matchFlagCommand } = await import('../src/todo-authoring-input.mjs');
|
|
155
|
-
const
|
|
161
|
+
const spec = {
|
|
156
162
|
known: ['input', 'dry-run', 'json'], required: ['input'],
|
|
157
163
|
booleans: ['dry-run', 'json'],
|
|
158
|
-
}
|
|
164
|
+
};
|
|
165
|
+
const flags = matchFlagCommand(args, ['plan', 'backchain'], spec);
|
|
159
166
|
if (flags === null || flags.json !== true) {
|
|
160
|
-
|
|
161
|
-
process.exitCode =
|
|
167
|
+
const { planArgumentFailure } = await import('../src/project-cli.mjs');
|
|
168
|
+
process.exitCode = planArgumentFailure(process.stderr, args, spec);
|
|
162
169
|
} else {
|
|
163
170
|
const { runPlanBackchain } = await import('../src/plan-backchain.mjs');
|
|
164
171
|
const { projectCliFailure } = await import('../src/project-cli.mjs');
|
|
@@ -168,7 +175,7 @@ if (help !== null) {
|
|
|
168
175
|
stdout: process.stdout, env: process.env,
|
|
169
176
|
});
|
|
170
177
|
} catch (error) {
|
|
171
|
-
process.exitCode = projectCliFailure(process.stderr, error);
|
|
178
|
+
process.exitCode = projectCliFailure(process.stderr, error, { command: 'backchain', flags });
|
|
172
179
|
}
|
|
173
180
|
}
|
|
174
181
|
} else if (args.length === 2 && args[0] === 'factory-diagnostics' && args[1] === '--json') {
|
|
@@ -2,8 +2,8 @@
|
|
|
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 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.",
|
|
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` と書いてください 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
|
+
"$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,
|
|
9
9
|
"required": [
|
|
@@ -11,14 +11,11 @@
|
|
|
11
11
|
"project_id",
|
|
12
12
|
"plan_key",
|
|
13
13
|
"plan_version",
|
|
14
|
-
"actor",
|
|
15
|
-
"recorded_at",
|
|
16
14
|
"tasks",
|
|
17
15
|
"phases",
|
|
18
16
|
"hard_dependencies",
|
|
19
17
|
"joins",
|
|
20
|
-
"phase_accept_dependencies"
|
|
21
|
-
"input_digest"
|
|
18
|
+
"phase_accept_dependencies"
|
|
22
19
|
],
|
|
23
20
|
"properties": {
|
|
24
21
|
"schema": {
|
|
@@ -150,7 +147,6 @@
|
|
|
150
147
|
"task_id",
|
|
151
148
|
"title",
|
|
152
149
|
"lane",
|
|
153
|
-
"design_memo",
|
|
154
150
|
"narrative_ref",
|
|
155
151
|
"narrative_anchor",
|
|
156
152
|
"compile_binding",
|
|
@@ -206,8 +202,7 @@
|
|
|
206
202
|
"phase_id",
|
|
207
203
|
"title",
|
|
208
204
|
"gate_policy",
|
|
209
|
-
"predecessor_phase_ids"
|
|
210
|
-
"required_evidence_slots"
|
|
205
|
+
"predecessor_phase_ids"
|
|
211
206
|
],
|
|
212
207
|
"properties": {
|
|
213
208
|
"phase_id": {
|
|
@@ -239,12 +234,11 @@
|
|
|
239
234
|
},
|
|
240
235
|
"required_evidence_slots": {
|
|
241
236
|
"type": "array",
|
|
242
|
-
"minItems": 1,
|
|
243
237
|
"items": {
|
|
244
238
|
"$ref": "#/$defs/identifier"
|
|
245
239
|
},
|
|
246
240
|
"uniqueItems": true,
|
|
247
|
-
"description": "Phase gateが要求する証跡slot
|
|
241
|
+
"description": "Phase gateが要求する証跡slot。省略・空なら[\"acceptance\"]。入力順は問わず、機械が昇順へ整列し重複を除く。"
|
|
248
242
|
}
|
|
249
243
|
}
|
|
250
244
|
},
|
|
@@ -2,27 +2,21 @@
|
|
|
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 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` と書いてください 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.",
|
|
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. 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
|
|
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` と書いてください 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), 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
|
+
"$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,
|
|
9
9
|
"required": [
|
|
10
|
-
"schema",
|
|
11
10
|
"project_id",
|
|
12
11
|
"plan_key",
|
|
13
12
|
"plan_version",
|
|
14
|
-
"actor",
|
|
15
|
-
"recorded_at",
|
|
16
13
|
"tasks",
|
|
17
|
-
"phases"
|
|
18
|
-
"hard_dependencies",
|
|
19
|
-
"joins",
|
|
20
|
-
"phase_accept_dependencies",
|
|
21
|
-
"input_digest"
|
|
14
|
+
"phases"
|
|
22
15
|
],
|
|
23
16
|
"properties": {
|
|
24
17
|
"schema": {
|
|
25
|
-
"const": "lattice.plan_create_input.v5"
|
|
18
|
+
"const": "lattice.plan_create_input.v5",
|
|
19
|
+
"description": "Omitted: lattice.plan_create_input.v5."
|
|
26
20
|
},
|
|
27
21
|
"project_id": {
|
|
28
22
|
"$ref": "#/$defs/identifier"
|
|
@@ -37,7 +31,9 @@
|
|
|
37
31
|
"$ref": "#/$defs/actor"
|
|
38
32
|
},
|
|
39
33
|
"recorded_at": {
|
|
40
|
-
"
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T",
|
|
36
|
+
"description": "Any ISO-8601 date-time with an explicit zone (Z or ±hh:mm) whose written fields are a real date and time; the machine normalises it to UTC milliseconds (Z). Omitted: the current time."
|
|
41
37
|
},
|
|
42
38
|
"tasks": {
|
|
43
39
|
"type": "array",
|
|
@@ -63,7 +59,7 @@
|
|
|
63
59
|
"items": {
|
|
64
60
|
"$ref": "#/$defs/edge"
|
|
65
61
|
},
|
|
66
|
-
"description": "入力順は問わず、機械が正準順(from、toを(project_id, plan_key, task_id)の辞書順)へ整列し完全一致の重複を除く。"
|
|
62
|
+
"description": "Omitted: []. 入力順は問わず、機械が正準順(from、toを(project_id, plan_key, task_id)の辞書順)へ整列し完全一致の重複を除く。 辺の向き: from=前提、to=fromが終わってから始まる。同じplanの辺ならfrom/toはtask_idだけでよい。"
|
|
67
63
|
},
|
|
68
64
|
"joins": {
|
|
69
65
|
"type": "array",
|
|
@@ -71,7 +67,7 @@
|
|
|
71
67
|
"items": {
|
|
72
68
|
"$ref": "#/$defs/join"
|
|
73
69
|
},
|
|
74
|
-
"description": "入力順は問わず、機械がidの昇順へ整列する。同じidで内容が違うjoinは拒否する。各afterも同様に整列し重複を除く。"
|
|
70
|
+
"description": "Omitted: []. 入力順は問わず、機械がidの昇順へ整列する。同じidで内容が違うjoinは拒否する。各afterも同様に整列し重複を除く。"
|
|
75
71
|
},
|
|
76
72
|
"phase_accept_dependencies": {
|
|
77
73
|
"type": "array",
|
|
@@ -79,7 +75,7 @@
|
|
|
79
75
|
"items": {
|
|
80
76
|
"$ref": "#/$defs/phaseAcceptDependency"
|
|
81
77
|
},
|
|
82
|
-
"description": "入力順は問わず、機械が正準順へ整列し完全一致の重複を除く。"
|
|
78
|
+
"description": "Omitted: []. 入力順は問わず、機械が正準順へ整列し完全一致の重複を除く。"
|
|
83
79
|
},
|
|
84
80
|
"input_digest": {
|
|
85
81
|
"$ref": "#/$defs/authoringDigest"
|
|
@@ -99,10 +95,6 @@
|
|
|
99
95
|
"minLength": 1,
|
|
100
96
|
"maxLength": 1024
|
|
101
97
|
},
|
|
102
|
-
"strictTimestamp": {
|
|
103
|
-
"type": "string",
|
|
104
|
-
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z$"
|
|
105
|
-
},
|
|
106
98
|
"nullableRepoRef": {
|
|
107
99
|
"oneOf": [
|
|
108
100
|
{
|
|
@@ -149,14 +141,7 @@
|
|
|
149
141
|
"required": [
|
|
150
142
|
"task_id",
|
|
151
143
|
"title",
|
|
152
|
-
"
|
|
153
|
-
"design_memo",
|
|
154
|
-
"narrative_ref",
|
|
155
|
-
"narrative_anchor",
|
|
156
|
-
"compile_binding",
|
|
157
|
-
"parent_task_id",
|
|
158
|
-
"phase_id",
|
|
159
|
-
"done_condition"
|
|
144
|
+
"phase_id"
|
|
160
145
|
],
|
|
161
146
|
"properties": {
|
|
162
147
|
"task_id": {
|
|
@@ -175,7 +160,8 @@
|
|
|
175
160
|
]
|
|
176
161
|
},
|
|
177
162
|
"lane": {
|
|
178
|
-
"$ref": "#/$defs/identifier"
|
|
163
|
+
"$ref": "#/$defs/identifier",
|
|
164
|
+
"description": "Omitted: main."
|
|
179
165
|
},
|
|
180
166
|
"design_memo": {
|
|
181
167
|
"type": "string",
|
|
@@ -194,19 +180,23 @@
|
|
|
194
180
|
"maxLength": 16384
|
|
195
181
|
}
|
|
196
182
|
],
|
|
197
|
-
"description": "作成者が書くこのtask固有の終了条件(プレーンテキスト、設計メモと同じ本文規則)。nullは「書かない」。Latticeは記録して表示するだけで、評価せず、作業を割り当てず、doneも記録しない。"
|
|
183
|
+
"description": "Omitted: null. 作成者が書くこのtask固有の終了条件(プレーンテキスト、設計メモと同じ本文規則)。nullは「書かない」。Latticeは記録して表示するだけで、評価せず、作業を割り当てず、doneも記録しない。"
|
|
198
184
|
},
|
|
199
185
|
"narrative_ref": {
|
|
200
|
-
"$ref": "#/$defs/nullableRepoRef"
|
|
186
|
+
"$ref": "#/$defs/nullableRepoRef",
|
|
187
|
+
"description": "Omitted: null."
|
|
201
188
|
},
|
|
202
189
|
"narrative_anchor": {
|
|
203
|
-
"type": "null"
|
|
190
|
+
"type": "null",
|
|
191
|
+
"description": "Omitted: null."
|
|
204
192
|
},
|
|
205
193
|
"compile_binding": {
|
|
206
|
-
"type": "null"
|
|
194
|
+
"type": "null",
|
|
195
|
+
"description": "Omitted: null."
|
|
207
196
|
},
|
|
208
197
|
"parent_task_id": {
|
|
209
|
-
"$ref": "#/$defs/nullableIdentifier"
|
|
198
|
+
"$ref": "#/$defs/nullableIdentifier",
|
|
199
|
+
"description": "Omitted: null."
|
|
210
200
|
},
|
|
211
201
|
"phase_id": {
|
|
212
202
|
"$ref": "#/$defs/identifier"
|
|
@@ -218,10 +208,7 @@
|
|
|
218
208
|
"additionalProperties": false,
|
|
219
209
|
"required": [
|
|
220
210
|
"phase_id",
|
|
221
|
-
"title"
|
|
222
|
-
"gate_policy",
|
|
223
|
-
"predecessor_phase_ids",
|
|
224
|
-
"required_evidence_slots"
|
|
211
|
+
"title"
|
|
225
212
|
],
|
|
226
213
|
"properties": {
|
|
227
214
|
"phase_id": {
|
|
@@ -241,7 +228,7 @@
|
|
|
241
228
|
},
|
|
242
229
|
"gate_policy": {
|
|
243
230
|
"$ref": "#/$defs/identifier",
|
|
244
|
-
"description": "Phase gateの呼び名。製品はこの値で分岐しないので統制語彙は無く、identifierなら何でもよい。表示に使う。慣用は 'heavy'(重監査)と 'terminal-audit'(暗黙の終端Phaseが使う)。"
|
|
231
|
+
"description": "Omitted: heavy. Phase gateの呼び名。製品はこの値で分岐しないので統制語彙は無く、identifierなら何でもよい。表示に使う。慣用は 'heavy'(重監査)と 'terminal-audit'(暗黙の終端Phaseが使う)。"
|
|
245
232
|
},
|
|
246
233
|
"predecessor_phase_ids": {
|
|
247
234
|
"type": "array",
|
|
@@ -249,16 +236,15 @@
|
|
|
249
236
|
"$ref": "#/$defs/identifier"
|
|
250
237
|
},
|
|
251
238
|
"uniqueItems": true,
|
|
252
|
-
"description": "先行Phase。入力順は問わず、機械がidentifierの昇順へ整列し重複を除く。"
|
|
239
|
+
"description": "Omitted: []. 先行Phase。入力順は問わず、機械がidentifierの昇順へ整列し重複を除く。"
|
|
253
240
|
},
|
|
254
241
|
"required_evidence_slots": {
|
|
255
242
|
"type": "array",
|
|
256
|
-
"minItems": 1,
|
|
257
243
|
"items": {
|
|
258
244
|
"$ref": "#/$defs/identifier"
|
|
259
245
|
},
|
|
260
246
|
"uniqueItems": true,
|
|
261
|
-
"description": "Phase gateが要求する証跡slot
|
|
247
|
+
"description": "Phase gateが要求する証跡slot。省略・空なら[\"acceptance\"]。入力順は問わず、機械が昇順へ整列し重複を除く。"
|
|
262
248
|
}
|
|
263
249
|
}
|
|
264
250
|
},
|
|
@@ -266,8 +252,6 @@
|
|
|
266
252
|
"type": "object",
|
|
267
253
|
"additionalProperties": false,
|
|
268
254
|
"required": [
|
|
269
|
-
"project_id",
|
|
270
|
-
"plan_key",
|
|
271
255
|
"task_id"
|
|
272
256
|
],
|
|
273
257
|
"properties": {
|
|
@@ -283,14 +267,13 @@
|
|
|
283
267
|
"expected_topology_digest": {
|
|
284
268
|
"$ref": "#/$defs/digest"
|
|
285
269
|
}
|
|
286
|
-
}
|
|
270
|
+
},
|
|
271
|
+
"description": "Reference to a task. Omitted project_id/plan_key: this input's own."
|
|
287
272
|
},
|
|
288
273
|
"phaseRef": {
|
|
289
274
|
"type": "object",
|
|
290
275
|
"additionalProperties": false,
|
|
291
276
|
"required": [
|
|
292
|
-
"project_id",
|
|
293
|
-
"plan_key",
|
|
294
277
|
"phase_id"
|
|
295
278
|
],
|
|
296
279
|
"properties": {
|
|
@@ -306,7 +289,8 @@
|
|
|
306
289
|
"expected_topology_digest": {
|
|
307
290
|
"$ref": "#/$defs/digest"
|
|
308
291
|
}
|
|
309
|
-
}
|
|
292
|
+
},
|
|
293
|
+
"description": "Reference to a phase. Omitted project_id/plan_key: this input's own."
|
|
310
294
|
},
|
|
311
295
|
"edge": {
|
|
312
296
|
"type": "object",
|
|
@@ -317,12 +301,15 @@
|
|
|
317
301
|
],
|
|
318
302
|
"properties": {
|
|
319
303
|
"from": {
|
|
320
|
-
"$ref": "#/$defs/nodeRef"
|
|
304
|
+
"$ref": "#/$defs/nodeRef",
|
|
305
|
+
"description": "The prerequisite task."
|
|
321
306
|
},
|
|
322
307
|
"to": {
|
|
323
|
-
"$ref": "#/$defs/nodeRef"
|
|
308
|
+
"$ref": "#/$defs/nodeRef",
|
|
309
|
+
"description": "The task that starts after from is done."
|
|
324
310
|
}
|
|
325
|
-
}
|
|
311
|
+
},
|
|
312
|
+
"description": "Hard dependency: from is the prerequisite; to starts after from is done."
|
|
326
313
|
},
|
|
327
314
|
"phaseAcceptDependency": {
|
|
328
315
|
"type": "object",
|
|
@@ -2,32 +2,56 @@
|
|
|
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
|
|
5
|
+
"description": "工程全体のdesired stateと、必要なら状態移行の指定。継続方針は機械が全ての旧taskについて算出する(desiredに在れば既定carry、無ければretire)。predecessor/CAS/digest/後継versionも機械が算出する。旧版は保持する。",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"additionalProperties": false,
|
|
8
|
-
"required": [
|
|
8
|
+
"required": [
|
|
9
|
+
"schema",
|
|
10
|
+
"desired"
|
|
11
|
+
],
|
|
9
12
|
"properties": {
|
|
10
|
-
"schema": {
|
|
13
|
+
"schema": {
|
|
14
|
+
"const": "lattice.plan_revise_input.v1"
|
|
15
|
+
},
|
|
11
16
|
"desired": {
|
|
12
17
|
"oneOf": [
|
|
13
|
-
{
|
|
14
|
-
|
|
18
|
+
{
|
|
19
|
+
"$ref": "lattice.plan_create_input.v4.schema.json"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"$ref": "lattice.plan_create_input.v5.schema.json"
|
|
23
|
+
}
|
|
15
24
|
],
|
|
16
|
-
"description": "同じproject_idとplan_keyのcreate-v4またはv5入力。input_digest
|
|
25
|
+
"description": "同じproject_idとplan_keyのcreate-v4またはv5入力。actor・recorded_at・input_digest・空の設計メモは機械が補い、集合と配列の並びは正準化する。v5は終了条件done_conditionを持つ(plan v8を作る)。v4でも先行planがv8なら、書かない終了条件は先行planの値を引き継ぐ。plan_versionは入力形を保つために記載し、後継versionは機械算出値に置き換える。新taskはpending。消すtaskへの参照も明示的に取り除く。"
|
|
17
26
|
},
|
|
18
27
|
"continuity": {
|
|
19
28
|
"type": "array",
|
|
20
|
-
"minItems": 1,
|
|
21
29
|
"maxItems": 512,
|
|
22
|
-
"description": "
|
|
30
|
+
"description": "任意の上書き。entryを書いたtaskだけが対象で、順序は問わない。desiredに在るtaskの既定はcarry(進行中・完了を含む状態を保ち、文面・終了条件・依存・joinの改訂を受け付ける)で、resetを書けばpendingへ戻す。desiredに無いtaskは常にretireになる(desiredの在不在がentryに優先する)。reasonを省くと `computed <policy>` が入る。読めないentry(旧planに無いtask_id、重複、未知のpolicy)は拒否する。",
|
|
23
31
|
"items": {
|
|
24
32
|
"type": "object",
|
|
25
33
|
"additionalProperties": false,
|
|
26
|
-
"required": [
|
|
34
|
+
"required": [
|
|
35
|
+
"task_id",
|
|
36
|
+
"policy"
|
|
37
|
+
],
|
|
27
38
|
"properties": {
|
|
28
|
-
"task_id": {
|
|
29
|
-
|
|
30
|
-
|
|
39
|
+
"task_id": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"pattern": "^[0-9A-Za-z](?:[0-9A-Za-z._-]{0,127})$"
|
|
42
|
+
},
|
|
43
|
+
"policy": {
|
|
44
|
+
"enum": [
|
|
45
|
+
"carry",
|
|
46
|
+
"reset",
|
|
47
|
+
"retire"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"reason": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"minLength": 1,
|
|
53
|
+
"pattern": "\\S"
|
|
54
|
+
}
|
|
31
55
|
}
|
|
32
56
|
}
|
|
33
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quolu/lattice",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.1",
|
|
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",
|
|
@@ -69,6 +69,12 @@ export declare function canProbeDaemonIdentity(info: DaemonLockInfo): boolean;
|
|
|
69
69
|
* Verify that the process named by a lockfile is the LatticeSensor daemon serving
|
|
70
70
|
* its socket. A bare PID liveness probe is insufficient because OSes reuse PIDs
|
|
71
71
|
* after an OOM/SIGKILL (#1553).
|
|
72
|
+
*
|
|
73
|
+
* The deadline bounds only a listener that accepts and stays silent: a refused
|
|
74
|
+
* or missing socket, a close, or a wrong hello still answers at once. The daemon
|
|
75
|
+
* writes its hello from its main thread, which a loaded host can deschedule for
|
|
76
|
+
* seconds right after bind; a 1s deadline turned that into "not the daemon" and
|
|
77
|
+
* refused `stop`/`index` against a healthy daemon.
|
|
72
78
|
*/
|
|
73
79
|
export declare function probeDaemonIdentity(info: DaemonLockInfo, timeoutMs?: number): Promise<boolean>;
|
|
74
80
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon-paths.d.ts","sourceRoot":"","sources":["../../src/mcp/daemon-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AA8BH;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAUvE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAG/D;AAED,kEAAkE;AAClE,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,yFAAyF;AACzF,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAE9C,+EAA+E;AAC/E,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,GAAG,IAAI,EAAE,GAAG,SAAa,GAAG,MAAM,GAAG,IAAI,CAKrH;AAED,8EAA8E;AAC9E,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAOpE;AAED
|
|
1
|
+
{"version":3,"file":"daemon-paths.d.ts","sourceRoot":"","sources":["../../src/mcp/daemon-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AA8BH;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAUvE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAG/D;AAED,kEAAkE;AAClE,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,yFAAyF;AACzF,eAAO,MAAM,uBAAuB,QAAS,CAAC;AAE9C,+EAA+E;AAC/E,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,GAAG,IAAI,EAAE,GAAG,SAAa,GAAG,MAAM,GAAG,IAAI,CAKrH;AAED,8EAA8E;AAC9E,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAOpE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,EAAE,SAAS,SAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CA0C7F;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAE3D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAuBjE"}
|
|
@@ -157,8 +157,14 @@ function canProbeDaemonIdentity(info) {
|
|
|
157
157
|
* Verify that the process named by a lockfile is the LatticeSensor daemon serving
|
|
158
158
|
* its socket. A bare PID liveness probe is insufficient because OSes reuse PIDs
|
|
159
159
|
* after an OOM/SIGKILL (#1553).
|
|
160
|
+
*
|
|
161
|
+
* The deadline bounds only a listener that accepts and stays silent: a refused
|
|
162
|
+
* or missing socket, a close, or a wrong hello still answers at once. The daemon
|
|
163
|
+
* writes its hello from its main thread, which a loaded host can deschedule for
|
|
164
|
+
* seconds right after bind; a 1s deadline turned that into "not the daemon" and
|
|
165
|
+
* refused `stop`/`index` against a healthy daemon.
|
|
160
166
|
*/
|
|
161
|
-
function probeDaemonIdentity(info, timeoutMs =
|
|
167
|
+
function probeDaemonIdentity(info, timeoutMs = 5_000) {
|
|
162
168
|
if (!canProbeDaemonIdentity(info))
|
|
163
169
|
return Promise.resolve(false);
|
|
164
170
|
return new Promise((resolve) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon-paths.js","sourceRoot":"","sources":["../../src/mcp/daemon-paths.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CH,8DAUC;AASD,kDAGC;AAGD,4CAEC;AAcD,sDAKC;AAGD,wDAOC;
|
|
1
|
+
{"version":3,"file":"daemon-paths.js","sourceRoot":"","sources":["../../src/mcp/daemon-paths.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CH,8DAUC;AASD,kDAGC;AAGD,4CAEC;AAcD,sDAKC;AAGD,wDAOC;AAaD,kDA0CC;AAMD,wCAEC;AAOD,wCAuBC;AA/LD,+CAAiC;AACjC,yCAA2B;AAC3B,uCAAyB;AACzB,2CAA6B;AAC7B,4CAAmD;AAEnD,oDAAoD;AACpD,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAEpC,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