PRICE-02: the trading verdict skips price periods that have ended #206

Merged
admin merged 6 commits from PRICE-02 into release/1.0 2026-10-22 18:57:38 +02:00
Showing only changes of commit 2ff9be710c - Show all commits
@@ -18,10 +18,15 @@ ended (`end <= now`, the span `price._cover_table()` gives, as
- An hourly point that is still current stays in, so hourly feeds and the
static day/night plan give the same verdict as before.
- `now=None` keeps the old reach (the whole series); only tests leave it out.
- The idle sentence now reads "now is not the cheapest or the dearest price
period". Other sentences that say "hour" (AUDIT-01 T6) are not touched here.
- The sentences of this verdict in `arbitrage.py` (status row and action log,
English only) say "price period" where they said "hour": the idle one now
reads "now is not the cheapest or the dearest price period". The UI texts
that say "cheapest hour" (AUDIT-01 T1-T5) are not touched here.
- Not changed here: F2 (static profile sampled at HH:00) and F3 (carried value).
Measured: with price off, and on a static tariff, every command over the
modes-off replay is byte-identical. On the dynamic replay a sale quotes a
smaller "above the cheapest" figure once the first cheap period is over.
modes-off replay is byte-identical. On the dynamic replay every command is
the same too; only a sale's sentence quotes a smaller "above the cheapest"
figure once the first cheap period is over. The identity pins in
`test_modes_p3.py` and `test_price_run_fixes.py` hide just that figure and the
word change (`opt11p3_identity.trade_digest()`).