Commit 57963d5
committed
chore(shadow): log incident before SystemExit(2) on missing asset
Self-audit weak-point closure — found by reviewing the runner for
audit-trail completeness after the Codex P1 fixes.
scripts/run_cross_asset_kuramoto_shadow.py::_target_run_date:
Previous behaviour on missing-asset CAKInvariantError was a bare
SystemExit(2), leaving the operator with only the process exit code
to debug. Now appends a row to operational_incidents.csv with
incident_type='missing_asset', severity=CRITICAL, description
containing the asset name and data_dir, then raises SystemExit(2)
from the original exception. Closes the audit gap that the
existing hash-mismatch and invariant-violation paths already
covered.
tests/ops/test_codex_p1_regressions.py:
- New test_missing_asset_logs_incident_before_exit pins the
incident-before-exit behaviour (monkeypatched INCIDENTS path to
tmp_path so real evidence rail is untouched).
- Lifted two nested imports (pandas, datetime) to module top.
- 6/6 tests pass locally; mypy --strict + ruff + black all clean.
SOURCE_HASHES.json regenerated (runner .py byte-change); CI
detect-secrets.baseline updated via 'detect-secrets scan' and
verified via local invocation of the CI hook command (exit 0).
84 passed + 1 xfail across all cross-asset Kuramoto test suites.
No signal logic touched. No frozen parameter modified. No evidence
CSV edited. combo_v1 closure enforcement intact.1 parent 178a185 commit 57963d5
4 files changed
Lines changed: 55 additions & 12 deletions
File tree
- .github
- results/cross_asset_kuramoto/offline_robustness
- scripts
- tests/ops
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6385 | 6385 | | |
6386 | 6386 | | |
6387 | 6387 | | |
6388 | | - | |
| 6388 | + | |
6389 | 6389 | | |
6390 | 6390 | | |
6391 | 6391 | | |
| |||
7257 | 7257 | | |
7258 | 7258 | | |
7259 | 7259 | | |
7260 | | - | |
| 7260 | + | |
7261 | 7261 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
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 | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
141 | 146 | | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
146 | 151 | | |
147 | | - | |
148 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
149 | 168 | | |
150 | 169 | | |
151 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 124 | + | |
126 | 125 | | |
127 | 126 | | |
128 | 127 | | |
129 | | - | |
130 | | - | |
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
| |||
142 | 139 | | |
143 | 140 | | |
144 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
145 | 169 | | |
146 | 170 | | |
147 | 171 | | |
| |||
0 commit comments