@@ -63,7 +63,7 @@ def test_the_rows_show_every_trial_and_the_summary_owns_up_to_the_totals
6363 assert_equal "-" , invalid [ rows . first . index ( "reward" ) ]
6464 assert_equal "-" , invalid [ rows . first . index ( "credit" ) ]
6565 assert_equal "-" , invalid [ rows . first . index ( "tokens" ) ]
66- assert_includes report . summary_lines . join ( "\n " ) , "3 trials: 2 scored, 1 invalid, 1 solved (50%)"
66+ assert_includes report . summary_lines . join ( "\n " ) , "3 trials: 2 scored, 1 invalid, 1 solved (50%) · credit 0.70 "
6767 end
6868 end
6969
@@ -76,6 +76,7 @@ def test_the_credit_column_appears_only_once_a_credit_differs_from_its_reward
7676
7777 refute_includes report . to_rows . first , "credit"
7878 refute_includes Lemans ::CLI ::Report ::Aggregate . new ( report , keys : %i[ task ] ) . to_rows . first , "credit"
79+ refute_includes report . summary_lines . join , "credit"
7980 assert_includes report . to_csv . lines . first , "credit"
8081 end
8182 end
@@ -115,16 +116,18 @@ def test_a_sweep_groups_the_summary_per_model_with_short_names
115116 store = Lemans ::Stores ::FS . new ( runs_dir )
116117 store_result ( store , trial : "a__1" , model : "openrouter/openai/gpt-5.6-luna" , reward : 1.0 )
117118 store_result ( store , trial : "a__2" , model : "openrouter/openai/gpt-5.6-luna" , reward : 0.0 )
118- store_result ( store , trial : "a__3" , model : "openrouter/z-ai/glm-5.2" , reward : 1.0 )
119+ store_result ( store , trial : "a__3" , model : "openrouter/z-ai/glm-5.2" , reward : 0.0 , credit : 0.6 )
120+ store_result ( store , trial : "b__4" , task : "b" , model : "openrouter/z-ai/glm-5.2" , reward : 1.0 )
119121
120122 report = Lemans ::CLI ::Report . load ( store )
121123 lines = report . summary_lines
122124
123125 assert_equal 3 , lines . size
124- assert ( lines [ 0 ..1 ] . any? { it . start_with? ( "gpt-5.6-luna" ) && it . include? ( "1 solved (50%)" ) } )
125- assert ( lines [ 0 ..1 ] . any? { it . start_with? ( "glm-5.2" ) && it . include? ( "1 solved (100%) " ) } )
126+ assert ( lines [ 0 ..1 ] . any? { it . start_with? ( "gpt-5.6-luna" ) && it . include? ( "1 solved (50%) · credit 0.50 " ) } )
127+ assert ( lines [ 0 ..1 ] . any? { it . start_with? ( "glm-5.2" ) && it . include? ( "1 solved (50%) · credit 0.80 " ) } )
126128 assert lines . last . start_with? ( "total" )
127- assert_includes lines . last , "2 solved (67%)"
129+ # Each task weighs the same: a averages 0.53, b 1.0.
130+ assert_includes lines . last , "2 solved (50%) · credit 0.77"
128131 # The table shows the short name; the CSV keeps the full provenance.
129132 assert_includes report . to_rows . flatten , "gpt-5.6-luna"
130133 assert_includes report . to_csv , "openrouter/openai/gpt-5.6-luna"
0 commit comments