@afokapu/atdd-flow 0.3.52 → 0.3.53

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/handover.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afokapu/atdd-flow",
3
- "version": "0.3.52",
3
+ "version": "0.3.53",
4
4
  "description": "Filesystem-first Desk registry for projects, seats, tasks, threads, and handoffs.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/handover.ts CHANGED
@@ -421,7 +421,9 @@ function assertCanonicalPlacement(intent: Awaited<ReturnType<typeof prepareRepla
421
421
  || resolve(request.target.cwd) !== resolve(intent.record.worktree)) {
422
422
  throw new Error("Consumed Path-A replacement does not match the unchanged canonical main runtime and placement.");
423
423
  }
424
- if (intent.handover.supersedes !== request.handover.id) throw new Error("Consumed Path-A replacement does not match the current handover lineage.");
424
+ if (intent.handover.supersedes !== request.handover.id && !canonicalSourceMatchesRuntime(intent.record.runtime, intent.source)) {
425
+ throw new Error("Consumed Path-A replacement does not match the current handover lineage.");
426
+ }
425
427
  }
426
428
 
427
429
  function canonicalRuntimeForSupersession(intent: Awaited<ReturnType<typeof prepareReplacement>>, request: HandoverReplacementRequest) {