@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.
- package/package.json +1 -1
- package/src/handover.ts +3 -1
package/package.json
CHANGED
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
|
|
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) {
|