Commit 2882850
committed
fix(ci): guard evaluator against empty live-ledger + align secrets baseline
python-fast-tests (tests/ops/test_live_scoreboard_schema.py::test_scoreboard_appends_not_overwrites):
When the spike paper-state ledger is absent (as on CI runners),
_load_live_ledger returned an empty DataFrame, but
_compute_live_metrics then accessed live["net_ret"] before the
n==0 early-return, raising KeyError on the schema-less empty frame.
Added a guard: if live.empty or "net_ret" not in live.columns,
return the empty_metrics dict immediately. Evaluator now exits 0
with a BUILDING_SAMPLE / OPERATIONALLY_UNSAFE scoreboard row when
no ledger is available (verified locally against /tmp nonexistent).
secrets-supply-chain (2 remaining Hex High Entropy String hits):
Regenerated .secrets.baseline AFTER finalising SOURCE_HASHES.json
byte content — earlier regen had picked up the intermediate hash.
Baseline now records:
results/cross_asset_kuramoto/PARAMETER_LOCK.json
results/cross_asset_kuramoto/offline_robustness/SOURCE_HASHES.json
results/cross_asset_kuramoto/shadow_validation/daily/2026-04-10/run_manifest.json
results/wave1_fx/universe.json
as known-acceptable Hex High Entropy String findings (4 entries
out of 90 total baseline entries). No new secret-like content.
SOURCE_HASHES.json regenerated against current-branch byte state
(including the evaluator empty-ledger guard above) so the hashes-
frozen test stays consistent through the fix chain.
No signal logic changed. No parameter touched. No evidence CSV
modified. combo_v1 closure enforcement intact.1 parent b6634d1 commit 2882850
3 files changed
Lines changed: 22 additions & 17 deletions
File tree
- results/cross_asset_kuramoto/offline_robustness
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2558 | 2558 | | |
2559 | 2559 | | |
2560 | 2560 | | |
2561 | | - | |
| 2561 | + | |
2562 | 2562 | | |
2563 | 2563 | | |
2564 | 2564 | | |
| |||
3423 | 3423 | | |
3424 | 3424 | | |
3425 | 3425 | | |
3426 | | - | |
| 3426 | + | |
3427 | 3427 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
214 | 231 | | |
215 | 232 | | |
216 | 233 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 234 | + | |
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
| |||
0 commit comments