ModelConnector/crates/model-connector
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens c1f25cde10 connector-spend: a caller's admission window is monotonic; the ledger carries the true cost of a misreporting result; worst-case and window-ownership tests
Admission clock is now max(now, start of the caller's newest recorded window),
stored on the record, so a clock stepping back cannot reopen spent budget live
or across restart. A transported result is charged the cost and overrun the
service derives from its usage whatever its receipt says. Commits regression
tests for Soul's step-back probe, a forward jump, the dearer-of-both-tiers
reservation (hand cases and a property test) and another caller's live request
not keeping a window alive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 16:37:06 +01:00
..
src connector-spend: a caller's admission window is monotonic; the ledger carries the true cost of a misreporting result; worst-case and window-ownership tests 2026-10-28 16:37:06 +01:00
tests connector-spend: settle records the true cost with an overrun marker; prune window spend; checked reservation; replay before cost bound; settle failure frees the slot; typed ceiling and window 2026-10-28 15:58:16 +01:00
Cargo.toml connector-spend (B3c): reserve-then-settle spend in the replay record, cost derived on the receipt 2026-10-28 15:12:56 +01:00