Commit 756e351
committed
fix(state): metrics.turns populates from emu.context_update
Last remaining stuck-at-zero from the round-5 audit. The emu typed
handler and apply_unknown branch both extracted turn_estimate for
display_value but never wrote it to metrics.turns. SESSION METRICS
"Turns" cell was decoded from metrics.turns and stayed at the
default (0, 0) for the lifetime of every session.
Both paths now set \`metrics.turns = (turn_estimate, 3)\` where 3 is
the hardcoded ±uncertainty band the renderer expects. Typed-variant
path also gates on non-negative i64 to stay defensive against bad
wire data.
Tests: 80/0 lib green; release build clean.1 parent 76ecad0 commit 756e351
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1335 | 1335 | | |
1336 | 1336 | | |
1337 | 1337 | | |
1338 | | - | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
1339 | 1341 | | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
1340 | 1345 | | |
1341 | 1346 | | |
1342 | | - | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
1343 | 1351 | | |
1344 | 1352 | | |
1345 | 1353 | | |
| |||
1776 | 1784 | | |
1777 | 1785 | | |
1778 | 1786 | | |
1779 | | - | |
| 1787 | + | |
1780 | 1788 | | |
1781 | 1789 | | |
1782 | 1790 | | |
1783 | 1791 | | |
1784 | | - | |
| 1792 | + | |
1785 | 1793 | | |
| 1794 | + | |
1786 | 1795 | | |
1787 | 1796 | | |
1788 | 1797 | | |
| |||
0 commit comments