MiniCTRM - Build Tutorial 721: History tables: every version kept, the book as of any date
→ to begin · N for the speaker notes
On a phone: Next or a swipe left to begin, Notes for the words.
What you'll learn
A history twin of every business table written by the one door in its transaction, as-of reads and a History tab with a diff per version, two times for back-dated corrections, the past valued from history and the closes as of that date, retention and size under control, and the rules in CLAUDE.md.
Why MiniCTRM keeps an activity log instead
What you need first – The four lessons this one builds on, what it reuses unchanged, and where a from-scratch build takes it.
Three designs and two times – Snapshot history tables, a field-level change log and bitemporal tables; the recommendation; transaction time against effective time.
Every version, through the one door – A history twin of every business table written in the door's transaction, with a schema-scan test and a backfill; then one as-of layer, the Blotter as of a time and a History tab with a diff.
Back-dated corrections, and the past valued – An effective date beside the transaction time and which report reads which; a valuation run for a past date reconstructed from history and that day's closes.
Size, speed, retention and the rules – Indexes from the plan, retention as a setting with an archive, the narrative against the reconstruction, and five lines in CLAUDE.md.
Ship it – /ship, with the history tests among the rest.
How MiniCTRM did it – The Deal Blotter's Activity dialog, and a Valuation Run for a past date that answers NOT_RECONSTRUCTIBLE.
Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.
Welcome
Four questions a table of the present cannot answer
1 / 14Why MiniCTRM keeps an activity log instead
A deal is not versioned: MiniCTRM's decision
2 / 14What you need first
What you need first
3 / 14Three designs and two times
Three designs and one recommendation
4 / 14Three designs and two times
Two times
5 / 14Every version, through the one door
A history twin of every business table, written by the one door
6 / 14Every version, through the one door
As of: one layer, the Blotter as of a time, a History tab
7 / 14Back-dated corrections, and the past valued
Two times in the tables
8 / 14Back-dated corrections, and the past valued
Value the past
9 / 14Size, speed, retention and the rules
Size, speed, retention and the rules
10 / 14Ship it
Ship it
11 / 14How MiniCTRM did it
The Deal Blotter's Activity dialog
12 / 14How MiniCTRM did it
A Valuation Run for a past date
13 / 14What you have now
What you have now
14 / 14
You have finished lesson 721, History tables: every version kept, the book as of any date.