@afokapu/atdd-flow 0.3.55 → 0.3.56
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 +4 -1
package/package.json
CHANGED
package/src/handover.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// URN: component:flow:e005:handover:backend:integration
|
|
2
2
|
// Tested-By:
|
|
3
3
|
// - test:atdd-flow:repeat-handover-replacement-supersession
|
|
4
|
+
// - test:flow:dos-supersession-launch-eligibility
|
|
4
5
|
// Runtime: bun
|
|
5
6
|
// Purpose: Validate, preserve, publish, and reconcile governed context handover evidence.
|
|
6
7
|
|
|
@@ -232,7 +233,9 @@ export async function replacementForMainLaunch(root: string, record: Seat, addre
|
|
|
232
233
|
const failedAdoption = await exactFailedAdoptionProof(root, record, address, request,
|
|
233
234
|
(task) => failedAdoptionTaskEligible(root, record, address, task));
|
|
234
235
|
const canonicalLaunch = replacementMatchesRuntime(record.runtime, request)
|
|
235
|
-
&& await
|
|
236
|
+
&& await (request.supersession
|
|
237
|
+
? failedAdoptionTaskEligible(root, record, address, task)
|
|
238
|
+
: mainLaunchEligible(root, record, address, task));
|
|
236
239
|
const failedAdoptionRecovery = Boolean(failedAdoption && !failedAdoption.runtimeState);
|
|
237
240
|
if (!canonicalLaunch && !failedAdoptionRecovery) {
|
|
238
241
|
throw new Error("Path-A replacement source tuple no longer matches the recorded runtime or ready main takeover task.");
|