@quolu/lattice 0.82.0 → 0.84.0
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-bridge-supervisor.mjs +10 -0
- package/bin/lattice-dashboard.mjs +3 -18
- package/bin/lattice-mcp.mjs +6 -3
- package/bin/lattice.mjs +30 -23
- package/docs/schemas/lattice.plan_create_input.v4.schema.json +5 -11
- package/docs/schemas/lattice.plan_create_input.v5.schema.json +362 -0
- package/docs/schemas/lattice.plan_revise_input.v1.schema.json +38 -11
- package/package.json +2 -1
- package/sensor/dist/db/index.d.ts +1 -0
- package/sensor/dist/db/index.d.ts.map +1 -1
- package/sensor/dist/db/index.js +13 -0
- package/sensor/dist/db/index.js.map +1 -1
- package/sensor/dist/index.d.ts.map +1 -1
- package/sensor/dist/index.js +12 -2
- package/sensor/dist/index.js.map +1 -1
- package/sensor/dist/mcp/answer-freshness.js +1 -1
- package/sensor/dist/mcp/answer-freshness.js.map +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/sensor/dist/mcp/engine.d.ts +11 -0
- package/sensor/dist/mcp/engine.d.ts.map +1 -1
- package/sensor/dist/mcp/engine.js +83 -4
- package/sensor/dist/mcp/engine.js.map +1 -1
- package/sensor/dist/mcp/index-repair.d.ts +7 -0
- package/sensor/dist/mcp/index-repair.d.ts.map +1 -0
- package/sensor/dist/mcp/index-repair.js +93 -0
- package/sensor/dist/mcp/index-repair.js.map +1 -0
- package/sensor/dist/mcp/index.d.ts.map +1 -1
- package/sensor/dist/mcp/index.js +12 -7
- package/sensor/dist/mcp/index.js.map +1 -1
- package/sensor/dist/mcp/tools.d.ts +4 -0
- package/sensor/dist/mcp/tools.d.ts.map +1 -1
- package/sensor/dist/mcp/tools.js +29 -9
- package/sensor/dist/mcp/tools.js.map +1 -1
- package/src/bridge-hub-server.mjs +46 -9
- package/src/cli-help.mjs +10 -8
- package/src/cli-refusal-guidance.mjs +354 -0
- package/src/dashboard-delivery.mjs +2 -1
- package/src/dashboard-lifecycle-journal.mjs +42 -20
- package/src/hooks-cli.mjs +30 -6
- package/src/plan-backchain.mjs +95 -41
- package/src/plan-revise.mjs +274 -72
- package/src/project-cli.mjs +301 -163
- package/src/project-identity.mjs +14 -0
- package/src/runtime-cli.mjs +38 -29
- package/src/runtime-control-store.mjs +22 -1
- package/src/runtime-decision-verifier.mjs +27 -8
- package/src/runtime-engine.mjs +34 -5
- package/src/runtime-hold-recompile.mjs +19 -15
- package/src/runtime-kept-worktree.mjs +136 -0
- package/src/runtime-lifecycle-lock.mjs +118 -30
- package/src/runtime-managed-supervisor.mjs +10 -10
- package/src/runtime-pull-intake.mjs +90 -44
- package/src/store-lock.mjs +142 -57
- package/src/todo-authoring-input.mjs +211 -2
- package/src/todo-cli.mjs +554 -200
- package/src/todo-contracts.mjs +22 -6
- package/src/todo-dashboard-registry.mjs +35 -6
- package/src/todo-gantt-display.mjs +259 -0
- package/src/todo-gantt-html-independence.mjs +10 -3
- package/src/todo-gantt-html-shared.mjs +16 -1
- package/src/todo-gantt-html.mjs +74 -53
- package/src/todo-gantt-layout.mjs +137 -59
- package/src/todo-gantt-live.mjs +6 -3
- package/src/todo-independence-guidance.mjs +4 -26
- package/src/todo-note-store.mjs +6 -3
- package/src/todo-readiness.mjs +83 -20
- package/src/todo-revision.mjs +156 -8
- package/src/todo-split.mjs +6 -3
- package/src/todo-status.mjs +141 -54
- package/src/todo-store-cache.mjs +1 -1
- package/src/todo-store-view.mjs +20 -2
- package/src/todo-store.mjs +562 -444
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
|
|
@@ -49,6 +49,15 @@ const stop = () => {
|
|
|
49
49
|
process.once('SIGINT', stop);
|
|
50
50
|
process.once('SIGTERM', stop);
|
|
51
51
|
|
|
52
|
+
// Self-exit for a duplicate launch on the same descriptor: the pidfile names the one
|
|
53
|
+
// supervisor that owns it; one that finds another identity there was superseded and leaves
|
|
54
|
+
// (otherwise it respawns a bridge that cannot bind, forever). A missing pidfile changes nothing.
|
|
55
|
+
const supersededCheck = setInterval(() => {
|
|
56
|
+
let recorded;
|
|
57
|
+
try { recorded = readFileSync(descriptor.pidPath, 'utf8'); } catch { return; }
|
|
58
|
+
if (recorded !== identity) stop();
|
|
59
|
+
}, RESTART_DELAY_MS);
|
|
60
|
+
|
|
52
61
|
const bridgePath = path.resolve(descriptor.bridgePath);
|
|
53
62
|
while (!stopping) {
|
|
54
63
|
child = spawn(process.execPath, [bridgePath], {
|
|
@@ -61,3 +70,4 @@ while (!stopping) {
|
|
|
61
70
|
if (stopping) break;
|
|
62
71
|
await new Promise((resolve) => setTimeout(resolve, RESTART_DELAY_MS));
|
|
63
72
|
}
|
|
73
|
+
clearInterval(supersededCheck);
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { TODO_STATUS_DISPATCH_ONLY, projectTodoStatus } from '../src/todo-status.mjs';
|
|
4
4
|
import { createTodoStoreCache, todoStoreReadFailurePhase } from '../src/todo-store-cache.mjs';
|
|
5
|
-
import {
|
|
6
|
-
import { readProjectExternalPane } from '../src/project-identity.mjs';
|
|
5
|
+
import { createTodoGanttDisplayServing } from '../src/todo-cli.mjs';
|
|
7
6
|
import {
|
|
8
7
|
forgetTodoDashboardDaemonRecord,
|
|
9
8
|
readVisibleTodoDashboardProjects,
|
|
@@ -80,22 +79,8 @@ async function synchronize() {
|
|
|
80
79
|
registry.register({
|
|
81
80
|
projectId: entry.project_id,
|
|
82
81
|
displayName: entry.display_name,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const result = await renderTodoGanttForProject({ repoRoot: entry.repo_root,
|
|
86
|
-
stable: true, displayName, readModel: store });
|
|
87
|
-
return {
|
|
88
|
-
html: result.rendered.html,
|
|
89
|
-
head_digest: await ganttLiveHeadDigest({ repoRoot: entry.repo_root, store }),
|
|
90
|
-
// 配信のたびに読む。外部ペインを差した/外した側にdaemon再起動を要求しない。
|
|
91
|
-
external_pane: await readProjectExternalPane({
|
|
92
|
-
repoRoot: entry.repo_root, projectId: entry.project_id,
|
|
93
|
-
}),
|
|
94
|
-
};
|
|
95
|
-
},
|
|
96
|
-
readHead: async () => ganttLiveHeadDigest({
|
|
97
|
-
repoRoot: entry.repo_root, store: await readCachedStore(entry.repo_root),
|
|
98
|
-
}),
|
|
82
|
+
// 描画とheadは型付きの表示結果を読む(不整合でも500にせず、状態として出す)。
|
|
83
|
+
...createTodoGanttDisplayServing({ repoRoot: entry.repo_root, projectId: entry.project_id }),
|
|
99
84
|
});
|
|
100
85
|
roots.set(entry.project_id, binding);
|
|
101
86
|
}
|
package/bin/lattice-mcp.mjs
CHANGED
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
* `lattice-mcp`), rejecting that re-invoke would leave the daemon
|
|
22
22
|
* unable to ever start, silently pinning every session to direct mode
|
|
23
23
|
* (the exact silent-degradation trap the ADR calls out).
|
|
24
|
-
* ③ Exit semantics: usage violation before startup
|
|
24
|
+
* ③ Exit semantics: usage violation before startup (a known option without
|
|
25
|
+
* its value) = exit 2; unknown argv tokens are ignored with a warning; startup
|
|
25
26
|
* scrutiny failure = exit 1 + one `lattice.cli_error.v2` line on
|
|
26
27
|
* stderr; normal session end = exit 0 (delegated entirely to
|
|
27
28
|
* MCPServer, which calls process.exit on every one of its lifecycle
|
|
@@ -69,7 +70,9 @@ function startupFailure(code, message) {
|
|
|
69
70
|
* - `-p <path>` / `--path <path>` — explicit project root. The daemon
|
|
70
71
|
* re-invoke form always supplies this; a direct MCP-host launch may
|
|
71
72
|
* omit it and rely on `rootUri` reported by the client at `initialize`.
|
|
72
|
-
* Any other token is
|
|
73
|
+
* Any other token is ignored with one stderr warning naming it (u03 sweep F2);
|
|
74
|
+
* it protects nothing, so it never stops startup. A known option missing its
|
|
75
|
+
* value stays a usage violation (exit 2).
|
|
73
76
|
*/
|
|
74
77
|
function parseArgs(argv) {
|
|
75
78
|
let path;
|
|
@@ -89,7 +92,7 @@ function parseArgs(argv) {
|
|
|
89
92
|
unknown.push(arg);
|
|
90
93
|
}
|
|
91
94
|
if (unknown.length > 0) {
|
|
92
|
-
|
|
95
|
+
process.stderr.write(`lattice-mcp: ignoring unsupported argument(s): ${unknown.join(' ')}\n`);
|
|
93
96
|
}
|
|
94
97
|
return { path };
|
|
95
98
|
}
|
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,8 +73,16 @@ 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
|
-
&& args[2] === '--schema-version' && ['1', '2', '3', '4'].includes(args[3]) && args[4] === '--json') {
|
|
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');
|
|
82
87
|
try {
|
|
83
88
|
process.exitCode = await runPlanCreateSchema({ stdout: process.stdout, version: Number(args[3]) });
|
|
@@ -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
|
},
|