@@ -39,7 +39,8 @@ defmodule StackLab.Examples.TRINITYParityHarness do
3939 ]
4040
4141 @ all_task_count 17
42- @ coordinator_source_count 60
42+ @ coordinator_monolith_source_count 60
43+ @ coordinator_shim_source_count 18
4344
4445 @ spec run ( keyword ( ) ) :: { :ok , Receipt . t ( ) }
4546 def run ( opts \\ [ ] ) do
@@ -85,13 +86,28 @@ defmodule StackLab.Examples.TRINITYParityHarness do
8586 |> Path . join ( "lib/**/*.ex" )
8687 |> Path . wildcard ( )
8788
88- status = if length ( files ) == @ coordinator_source_count , do: :pass , else: :open_defect
89+ actual_count = length ( files )
90+ expected_counts = [ @ coordinator_monolith_source_count , @ coordinator_shim_source_count ]
91+
92+ posture =
93+ cond do
94+ actual_count == @ coordinator_shim_source_count -> :shim
95+ actual_count == @ coordinator_monolith_source_count -> :monolith
96+ true -> :unknown
97+ end
98+
99+ status = if actual_count in expected_counts , do: :pass , else: :open_defect
89100
90101 % Row {
91102 id: :source_inventory ,
92- description: "coordinator lib source inventory has the expected 60-file baseline " ,
103+ description: "coordinator lib source inventory matches monolith baseline or Phase 16 shim " ,
93104 status: status ,
94- details: % { expected: @ coordinator_source_count , actual: length ( files ) }
105+ details: % {
106+ expected_monolith: @ coordinator_monolith_source_count ,
107+ expected_shim: @ coordinator_shim_source_count ,
108+ actual: actual_count ,
109+ posture: posture
110+ }
95111 }
96112 end
97113
0 commit comments