M11.1: time-based rate conversion (ADR-0099, segment 1)
Foundation / checks (deploy) (push) Successful in 3m27s
Foundation / checks (ecs) (push) Successful in 1m51s
Foundation / checks (client) (push) Successful in 12m31s
Foundation / checks (network) (push) Successful in 13m30s
Foundation / checks (tsan) (push) Canceled after 8m42s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 27m37s
Foundation / checks (postgres) (push) Canceled after 15m9s

Rates are stored per second in their integer base units and converted at the tick
boundary with no carried state: costs round up, capacities down (maintainer decision),
error below one unit per tick. per_second_from_per_tick is the migration's exact inverse
(x20 at 50 ms) and refuses inexact values. New rate-contracts test. No biology uses it
yet; genome v2, development v2 and process fields follow. Refresh the dev session window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-09 12:50:54 -04:00
co-authored by Claude Opus 5.5
parent 961b3e3c2f
commit a4c6181540
9 changed files with 293 additions and 4 deletions
+19
View File
@@ -5353,3 +5353,22 @@ Executed:
Not run: an RDP display-scale check. Under RDP the logical height drives the scale, the
same as on a local display.
## 2026-10-09 — M11.1 time-based rates, segment 1 (ADR-0099)
`accounting::per_tick`, `exact_per_tick` and `per_second_from_per_tick` were added,
with a new `rate-contracts` test. The test covers:
- exact ×20 migration and round trip at 50 ms, under both roundings;
- directional rounding at an inexact tick, bracketing the exact amount one unit apart;
- sub-unit rates;
- tick bounds;
- the largest rate;
- overflow;
- refusal of an inexact migration.
Executed:
- WSL `linux-debug` and `linux-asan`: `rate-contracts` and `ledger-contracts` passed.
- clang-tidy 19 (`linux-analysis`): clean.
- Windows `debug`: 61/61.
No biology uses the conversion yet, so no golden is affected.