@@ -805,15 +805,25 @@ stages:
805805 label : run_calibration()
806806 description : ' Build phase: resolve targets and constraints, assemble clone values, and package the sparse calibration matrix'
807807 node_ids :
808+ - stage2_target_config_identity
809+ - stage2_target_catalog_load
808810 - target_resolve
811+ - stage2_target_config_apply
809812 - target_uprate
810813 - geo_build
811814 - constraint_resolve
812815 - state_precomp
813816 - clone_assembly
814817 - takeup_rerand
815818 - sparse_build
819+ - build_matrix
820+ - build_matrix_chunked
821+ - stage2_artifact_specs
822+ - stage2_calibration_package_writer
816823 - out_pkg
824+ - stage2_calibration_package_contract_writer
825+ - out_contract
826+ - stage2_calibration_package_contract_validator
817827 extra_nodes :
818828 - id : in_cps_s5
819829 label : source_imputed_stratified_extended_cps.h5
@@ -859,6 +869,10 @@ stages:
859869 label : calibration_package.pkl
860870 node_type : artifact
861871 description : X_sparse CSR matrix, targets_df, initial_weights, metadata
872+ - id : out_contract
873+ label : calibration_package_contract.json
874+ node_type : artifact
875+ description : Stage 2 package handoff contract written next to calibration_package.pkl
862876 - id : util_sql
863877 label : sqlalchemy
864878 node_type : utility
@@ -884,12 +898,25 @@ stages:
884898 edge_type : external_source
885899 label : SQL targets
886900 - source : in_config_s5
887- target : target_resolve
901+ target : stage2_target_config_identity
902+ edge_type : data_flow
903+ label : config file
904+ - source : stage2_target_config_identity
905+ target : stage2_target_catalog_load
906+ edge_type : data_flow
907+ label : resolved path and checksum
908+ - source : stage2_target_catalog_load
909+ target : stage2_target_config_apply
888910 edge_type : data_flow
889- label : include list
911+ label : include/exclude rules
890912 - source : target_resolve
913+ target : stage2_target_config_apply
914+ edge_type : data_flow
915+ label : candidate targets
916+ - source : stage2_target_config_apply
891917 target : target_uprate
892918 edge_type : data_flow
919+ label : selected targets
893920 - source : target_uprate
894921 target : geo_build
895922 edge_type : data_flow
@@ -917,8 +944,48 @@ stages:
917944 target : sparse_build
918945 edge_type : data_flow
919946 - source : sparse_build
947+ target : build_matrix
948+ edge_type : uses_library
949+ label : non-chunked path
950+ - source : sparse_build
951+ target : build_matrix_chunked
952+ edge_type : uses_library
953+ label : chunked path
954+ - source : build_matrix
955+ target : stage2_calibration_package_writer
956+ edge_type : data_flow
957+ - source : build_matrix_chunked
958+ target : stage2_calibration_package_writer
959+ edge_type : data_flow
960+ - source : stage2_artifact_specs
961+ target : stage2_calibration_package_writer
962+ edge_type : uses_utility
963+ label : package path
964+ - source : stage2_calibration_package_writer
920965 target : out_pkg
921966 edge_type : produces_artifact
967+ - source : out_pkg
968+ target : stage2_calibration_package_contract_writer
969+ edge_type : data_flow
970+ - source : stage2_artifact_specs
971+ target : stage2_calibration_package_contract_writer
972+ edge_type : uses_utility
973+ label : contract path
974+ - source : stage2_calibration_package_contract_writer
975+ target : out_contract
976+ edge_type : produces_artifact
977+ - source : out_pkg
978+ target : stage2_calibration_package_contract_validator
979+ edge_type : validates
980+ - source : out_contract
981+ target : stage2_calibration_package_contract_validator
982+ edge_type : validates
983+ - source : in_cps_s5
984+ target : stage2_calibration_package_contract_validator
985+ edge_type : validates
986+ - source : in_db_s5
987+ target : stage2_calibration_package_contract_validator
988+ edge_type : validates
922989 - source : util_sql
923990 target : target_resolve
924991 edge_type : uses_utility
0 commit comments