MiniCTRMSearch

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.

Before you start

The lessons this one builds on: 522 Designing the deal model: how to tell Claude what you want, 533 Front end: the Deal Input Screens, 612 Operations: confirms, invoices and operational events, 632 Robustness: transactions, one door per write, validation, retries, the activity log.

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 / 14
Four questions a table of the present cannot answer
Why MiniCTRM keeps an activity log instead

A deal is not versioned: MiniCTRM's decision

2 / 14
A deal is not versioned: MiniCTRM's decision
What you need first

What you need first

3 / 14
What you need first
Three designs and two times

Three designs and one recommendation

4 / 14
Three designs and one recommendation
Three designs and two times

Two times

5 / 14
Two times
Every version, through the one door

A history twin of every business table, written by the one door

6 / 14
A history twin of every business table, written by the one door
Every version, through the one door

As of: one layer, the Blotter as of a time, a History tab

7 / 14
As of: one layer, the Blotter as of a time, a History tab
Back-dated corrections, and the past valued

Two times in the tables

8 / 14
Two times in the tables
Back-dated corrections, and the past valued

Value the past

9 / 14
Value the past
Size, speed, retention and the rules

Size, speed, retention and the rules

10 / 14
Size, speed, retention and the rules
Ship it

Ship it

11 / 14
Ship it
How MiniCTRM did it

The Deal Blotter's Activity dialog

12 / 14
The Deal Blotter's Activity dialog
How MiniCTRM did it

A Valuation Run for a past date

13 / 14
A Valuation Run for a past date
What you have now

What you have now

14 / 14
What you have now

You have finished lesson 721, History tables: every version kept, the book as of any date.

Where next?

← → move · N notes · Home / End