Repository navigation
Conversation
…specs Generalizes the MBT layer to the full booking family — FIFO/LIFO/HIFO/STRICT/ AVERAGE/NONE — bringing the enumerated conformance corpus to ~3,976 behaviors (replayed in <0.1s of plain cargo test): - tla-behaviors.py: structured TLA value parsing (records/sequences/sets, escaped strings, TLC's pretty-printed multi-segment values), a SPECS registry with per-spec delta-derived actions, canonicalization for the richer states. Conservation output stays byte-identical. - Per-spec replay interpreters: FIFO/LIFO assert the matched lot's DATE and per-date totals; HIFO the matched COST; STRICT maps the model's success/no_match/ambiguous onto Ok/NoMatchingLot/AmbiguousMatch; AVERAGE asserts the units abstraction (the model's average uses integer \div, the implementation divides exactly — documented); NONE asserts balance incl. shorts. - tla.yml lockstep guard now loops over ALL committed corpora. First-run findings, both adjudicated: - STRICT 'ambiguous' vs impl Ok — a mapping-fidelity issue, not a bug: reduce_strict deliberately treats same-cost lots as financially interchangeable (documented FIFO fallback), so the replay now gives each model lot a distinct cost number to reproduce lot-identity ambiguity. - NONE: reduce_none refuses to short from a POSITIVE balance while allowing it from zero — inconsistent with itself, the model, and beancount NONE. Filed as #1686; the replay pins the divergent outcome by issue number and asserts the pin FIRES, so a fix flips it loudly. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1685 (auto-retargets to main when it merges). Extends the MBT layer to the full booking family: ~3,976 enumerated behaviors across 7 corpora, replayed in <0.1s of plain
cargo test.success/no_match/ambiguous↔Ok/NoMatchingLot/AmbiguousMatch\div; documented)Generator generalization
Structured TLA value parsing (records/sequences/sets, escaped strings, TLC's pretty-printed multi-segment values — two real dump dialect quirks found and fixed), a SPECS registry with delta-derived actions, full canonicalization. Conservation's corpus stays byte-identical. The tla.yml lockstep guard now loops over all corpora.
First-run findings (the point of the exercise) — both adjudicated
ambiguousvs implOk→ mapping fidelity, not a bug.reduce_strictdeliberately treats same-cost lots as financially interchangeable (documented FIFO fallback). The replay now gives each model lot a distinct cost number, faithfully reproducing lot-identity ambiguity — after which STRICT replays clean, including all error-outcome conformance.reduce_nonerefuses to short from a positive balance while allowing it from zero — inconsistent with itself, the model, and beancount NONE. Filed as NONE booking: reduce refuses to short from a positive balance but allows it from zero #1686; the replay pins the divergent outcome by issue number and asserts the pin fires, so a future fix flips it loudly instead of leaving a stale pin.Verification
7/7 replay suites green; generator self-test extended (STRICT + FIFO mini-graphs, label-stripping + reorder invariance); clippy
-D warnings+ fmt clean.🤖 Generated with Claude Code