11// @ts -nocheck
22/**
3- * factorySDIVFExecutorPipeline semantics (V48 Gate 3).
3+ * factorySDIVFPipelineFromExecutors semantics (V48 Gate 3).
44 *
55 * This is the SDIVF variant the SynthesizeAssetPacks pipeline actually runs
66 * (packages/pipelines/asset-pack/src/index.ts) — NOT factorySDIVFPipeline,
2828 * (finalApproval/passed false), so the exact-iteration-count pins exercise the
2929 * bounded (max-iterations) side of the gate.
3030 */
31- import { factorySDIVFExecutorPipeline } from '../index' ;
31+ import { factorySDIVFPipelineFromExecutors } from '../index' ;
3232import { Execution } from '@bitcode/execution-generics/Execution' ;
3333
3434type Recorded = { calls : string [ ] ; inputs : Record < string , any [ ] > ; nodes : Record < string , string [ ] > } ;
@@ -66,10 +66,10 @@ function buildConfig(recorded: Recorded, overrides: Record<string, any> = {}) {
6666 } ;
6767}
6868
69- describe ( 'factorySDIVFExecutorPipeline (executor-variant SDIVF loop)' , ( ) => {
69+ describe ( 'factorySDIVFPipelineFromExecutors (executor-variant SDIVF loop)' , ( ) => {
7070 it ( 'runs preprocess → setup → (D→I→V) × maxIterations → finish → postprocess in order' , async ( ) => {
7171 const recorded : Recorded = { calls : [ ] , inputs : { } , nodes : { } } ;
72- const pipeline = factorySDIVFExecutorPipeline ( 'sdivf-loop-order' , {
72+ const pipeline = factorySDIVFPipelineFromExecutors ( 'sdivf-loop-order' , {
7373 ...buildConfig ( recorded ) ,
7474 maxIterations : 2 ,
7575 } ) ;
@@ -94,7 +94,7 @@ describe('factorySDIVFExecutorPipeline (executor-variant SDIVF loop)', () => {
9494
9595 it ( 'never exceeds maxIterations (single-iteration loop)' , async ( ) => {
9696 const recorded : Recorded = { calls : [ ] , inputs : { } , nodes : { } } ;
97- const pipeline = factorySDIVFExecutorPipeline ( 'sdivf-loop-single' , {
97+ const pipeline = factorySDIVFPipelineFromExecutors ( 'sdivf-loop-single' , {
9898 ...buildConfig ( recorded ) ,
9999 maxIterations : 1 ,
100100 } ) ;
@@ -109,7 +109,7 @@ describe('factorySDIVFExecutorPipeline (executor-variant SDIVF loop)', () => {
109109
110110 it ( 'exits the DIV loop early when the validation RESULT signals ready-to-finish' , async ( ) => {
111111 const recorded : Recorded = { calls : [ ] , inputs : { } , nodes : { } } ;
112- const pipeline = factorySDIVFExecutorPipeline ( 'sdivf-gate-result' , {
112+ const pipeline = factorySDIVFPipelineFromExecutors ( 'sdivf-gate-result' , {
113113 ...buildConfig ( recorded , {
114114 validation : async ( input : any , exec : any ) => {
115115 record ( recorded , 'validation' , input , exec ) ;
@@ -135,7 +135,7 @@ describe('factorySDIVFExecutorPipeline (executor-variant SDIVF loop)', () => {
135135 it ( 'exits the DIV loop early via the cross-phase validation:readyToFinish artifact on the ROOT' , async ( ) => {
136136 const recorded : Recorded = { calls : [ ] , inputs : { } , nodes : { } } ;
137137 const root = new Execution ( 'root-gate-artifact' ) ;
138- const pipeline = factorySDIVFExecutorPipeline ( 'sdivf-gate-artifact' , {
138+ const pipeline = factorySDIVFPipelineFromExecutors ( 'sdivf-gate-artifact' , {
139139 ...buildConfig ( recorded , {
140140 validation : async ( input : any , exec : any ) => {
141141 record ( recorded , 'validation' , input , exec ) ;
@@ -163,7 +163,7 @@ describe('factorySDIVFExecutorPipeline (executor-variant SDIVF loop)', () => {
163163 it ( 'honors a cfg.readyToFinish override as the gate' , async ( ) => {
164164 const recorded : Recorded = { calls : [ ] , inputs : { } , nodes : { } } ;
165165 const gateCalls : any [ ] = [ ] ;
166- const pipeline = factorySDIVFExecutorPipeline ( 'sdivf-gate-override' , {
166+ const pipeline = factorySDIVFPipelineFromExecutors ( 'sdivf-gate-override' , {
167167 ...buildConfig ( recorded ) ,
168168 readyToFinish : async ( result : any ) => {
169169 gateCalls . push ( result ) ;
@@ -186,7 +186,7 @@ describe('factorySDIVFExecutorPipeline (executor-variant SDIVF loop)', () => {
186186 it ( 'records loop observability: per-iteration pass flags and the max-iterations marker' , async ( ) => {
187187 const recorded : Recorded = { calls : [ ] , inputs : { } , nodes : { } } ;
188188 const root = new Execution ( 'root-gate-observe' ) ;
189- const pipeline = factorySDIVFExecutorPipeline ( 'sdivf-gate-observe' , {
189+ const pipeline = factorySDIVFPipelineFromExecutors ( 'sdivf-gate-observe' , {
190190 ...buildConfig ( recorded ) ,
191191 maxIterations : 2 ,
192192 } ) ;
@@ -203,7 +203,7 @@ describe('factorySDIVFExecutorPipeline (executor-variant SDIVF loop)', () => {
203203
204204 it ( 'threads each phase output into the next phase input' , async ( ) => {
205205 const recorded : Recorded = { calls : [ ] , inputs : { } , nodes : { } } ;
206- const pipeline = factorySDIVFExecutorPipeline ( 'sdivf-threading' , {
206+ const pipeline = factorySDIVFPipelineFromExecutors ( 'sdivf-threading' , {
207207 ...buildConfig ( recorded ) ,
208208 maxIterations : 2 ,
209209 } ) ;
@@ -230,7 +230,7 @@ describe('factorySDIVFExecutorPipeline (executor-variant SDIVF loop)', () => {
230230
231231 it ( 'runs iterationPreprocess before each Discovery and threads its return into the loop' , async ( ) => {
232232 const recorded : Recorded = { calls : [ ] , inputs : { } , nodes : { } } ;
233- const pipeline = factorySDIVFExecutorPipeline ( 'sdivf-iterpre' , {
233+ const pipeline = factorySDIVFPipelineFromExecutors ( 'sdivf-iterpre' , {
234234 ...buildConfig ( recorded ) ,
235235 iterationPreprocess : async ( input : any , exec : any ) => {
236236 record ( recorded , 'iterationPreprocess' , input , exec ) ;
@@ -257,7 +257,7 @@ describe('factorySDIVFExecutorPipeline (executor-variant SDIVF loop)', () => {
257257 const recorded : Recorded = { calls : [ ] , inputs : { } , nodes : { } } ;
258258 const seen : Record < string , any > = { } ;
259259 const root = new Execution ( 'root-topology' ) ;
260- const pipeline = factorySDIVFExecutorPipeline ( 'sdivf-topology' , {
260+ const pipeline = factorySDIVFPipelineFromExecutors ( 'sdivf-topology' , {
261261 ...buildConfig ( recorded , {
262262 setup : async ( input : any , exec : any ) => {
263263 record ( recorded , 'setup' , input , exec ) ;
@@ -297,7 +297,7 @@ describe('factorySDIVFExecutorPipeline (executor-variant SDIVF loop)', () => {
297297 it ( 'stores phase start/complete observability with iteration numbers' , async ( ) => {
298298 const recorded : Recorded = { calls : [ ] , inputs : { } , nodes : { } } ;
299299 const root = new Execution ( 'root-observe' ) ;
300- const pipeline = factorySDIVFExecutorPipeline ( 'sdivf-observe' , {
300+ const pipeline = factorySDIVFPipelineFromExecutors ( 'sdivf-observe' , {
301301 ...buildConfig ( recorded ) ,
302302 maxIterations : 2 ,
303303 } ) ;
@@ -325,7 +325,7 @@ describe('factorySDIVFExecutorPipeline (executor-variant SDIVF loop)', () => {
325325 it ( 'fails closed: a throwing implementation rejects the pipeline and stops downstream phases' , async ( ) => {
326326 const recorded : Recorded = { calls : [ ] , inputs : { } , nodes : { } } ;
327327 const root = new Execution ( 'root-fail' ) ;
328- const pipeline = factorySDIVFExecutorPipeline ( 'sdivf-fail' , {
328+ const pipeline = factorySDIVFPipelineFromExecutors ( 'sdivf-fail' , {
329329 ...buildConfig ( recorded , {
330330 implementation : async ( input : any , exec : any ) => {
331331 record ( recorded , 'implementation' , input , exec ) ;
@@ -354,7 +354,7 @@ describe('factorySDIVFExecutorPipeline (executor-variant SDIVF loop)', () => {
354354
355355 it ( 'fails closed on a throwing setup: the DIV loop and finish never start' , async ( ) => {
356356 const recorded : Recorded = { calls : [ ] , inputs : { } , nodes : { } } ;
357- const pipeline = factorySDIVFExecutorPipeline ( 'sdivf-fail-setup' , {
357+ const pipeline = factorySDIVFPipelineFromExecutors ( 'sdivf-fail-setup' , {
358358 ...buildConfig ( recorded , {
359359 setup : async ( input : any , exec : any ) => {
360360 record ( recorded , 'setup' , input , exec ) ;
0 commit comments