@quolu/lattice 0.40.0 → 0.40.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/package.json +1 -1
- package/src/todo-note-store.mjs +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quolu/lattice",
|
|
3
|
-
"version": "0.40.
|
|
3
|
+
"version": "0.40.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",
|
package/src/todo-note-store.mjs
CHANGED
|
@@ -399,7 +399,13 @@ async function readNoteMigrations(repoRoot, planKey, eventVersions) {
|
|
|
399
399
|
fail('NOTE_PROJECTION_INVALID', 'note_plan_history_inventory_invalid', { plan_key: planKey });
|
|
400
400
|
}
|
|
401
401
|
const versionRoot = path.join(base, entry.name);
|
|
402
|
-
|
|
402
|
+
// A revision directory is published before manifest activation. A crash during
|
|
403
|
+
// that window can leave an unreferenced directory containing only a journal
|
|
404
|
+
// stub. It is not a historical plan until its canonical plan artifact exists.
|
|
405
|
+
// Do not make that unreachable residue poison note projection; if a note event
|
|
406
|
+
// names this version, the origin-version check below still fails closed.
|
|
407
|
+
const plan = await readCanonicalJson(path.join(versionRoot, 'plan.json'), { missing: true });
|
|
408
|
+
if (plan === null) continue;
|
|
403
409
|
if (!validateTodoPlan(plan) || plan.plan_key !== planKey || plan.plan_version !== entry.name) {
|
|
404
410
|
fail('NOTE_PROJECTION_INVALID', 'note_historical_plan_invalid', { plan_version: entry.name });
|
|
405
411
|
}
|