Repository navigation
Commit 2f7c1a3
tests: rebuild the row-10 and row-21 ownership probes so they reach the rows they pin (CR-139)
engine/margin_maintenance_overflow entered 1e-10 units, which never became a
position, so the maintenance producer (which returns while the book is flat)
was never reached and the run completed with no trade. The entry is now one
unit; on a box the run fails with engine_command_value_invalid
(margin.maintenance, nonfinite), the pinned result.
engine/settlement_pnl_overflow failed one stage early: the percent fee quote
overflows to NaN before the settlement money predicate runs. A percent
commission of 0 cannot avoid that for a single trade, so the probe now uses a
price-free cash_per_contract commission of 0 and two lots that are closed
together, which takes the staged settlement and fails with engine_invariant at
the money predicate, the pinned result.
Both expectations are unchanged (they come from the ruled rows, not from an
observation); only probe.pine and NOTES.md change.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>1 parent 6a599fe commit 2f7c1a3
4 files changed
Lines changed: 20 additions & 8 deletions
File tree
- tests/ownership/probes/engine
- margin_maintenance_overflow
- settlement_pnl_overflow
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
0 commit comments