@quolu/lattice 0.20.0 → 0.20.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quolu/lattice",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "description": "Lattice — phase-aware TODO graph compiler and conflict-aware orchestration runtime",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -235,10 +235,13 @@ const WITNESS_PROVENANCE = Object.freeze([
235
235
  ]);
236
236
 
237
237
  /**
238
- * 現行のrun request契約。v2は`owns[].creates`だけがv1との差であり、境界宣言としては同値である。
238
+ * 現行のrun request契約。v3は`owns[].creates`だけがv1との差であり、境界宣言としては同値である。
239
239
  * 既存requestの書き換えを要求しないため、v1は読み口として残す。
240
+ *
241
+ * v2はこの系列ではない。ADR 0064のepoch後継request(`predecessor_request_digest`と
242
+ * `task_migration_digest`を持つ別shape)が既に使っている番号なので、飛ばして採番する。
240
243
  */
241
- export const RUN_REQUEST_SCHEMA = 'lattice.run_request.v2';
244
+ export const RUN_REQUEST_SCHEMA = 'lattice.run_request.v3';
242
245
  export const RUN_REQUEST_LEGACY_SCHEMAS = Object.freeze(['lattice.run_request.v1']);
243
246
  export const RUN_REQUEST_SCHEMAS = Object.freeze([
244
247
  RUN_REQUEST_SCHEMA,
@@ -7,6 +7,7 @@ import {
7
7
  } from './runtime-decision-verifier.mjs';
8
8
  import {
9
9
  computeContextContentDigest,
10
+ RUN_REQUEST_SCHEMA,
10
11
  selfDigest,
11
12
  validateCarryOverWitness,
12
13
  validateEpochRebindPacket,
@@ -133,7 +134,9 @@ export function validateRunRequestV2(value) {
133
134
  || !HEX_DIGEST.test(value.task_migration_digest ?? '')
134
135
  || !selfDigestValid(value, 'request_digest')) return false;
135
136
  const projected = {
136
- schema: 'lattice.run_request.v1', request_id: value.request_id, repo: value.repo,
137
+ // 後継requestの本体はbase契約と同じ規律で読む。v1へ固定すると、創作境界を持つ
138
+ // 宣言が再計画を跨げない(ADR 0136)。
139
+ schema: RUN_REQUEST_SCHEMA, request_id: value.request_id, repo: value.repo,
137
140
  capacity: value.capacity, todos: value.todos, manual_witness: value.manual_witness,
138
141
  sensor_query_set: value.sensor_query_set, executor_capability: value.executor_capability,
139
142
  claim_mode: value.claim_mode, request_digest: '',