The documents present Kuatia as a double-entry-style ledger. But it has no
"journal" type and no "journal entry" type. It has a Book type, and that name
invites confusion with an accounting book or a journal.
A user asks whether the ledger supports journaling, and in particular a compound
entry that touches more than two accounts. The mechanics exist already. A
Transfer is a list of Movements that commits atomically, and TransferStore
is an append-only log.
So the open question is what to call these things, and how to present them. In
Kuatia's model, what is a journal entry, what is the journal, and what is
Book?
Book,
the transfer log and the event log are all easy to confuse.Σ debits = Σ credits.Transfer, Envelope or
TransferStore.State three things. A committed Transfer, resolved into an Envelope, is a
journal entry. A Transfer with several Movements is a compound journal
entry. The transfer log, a TransferStore of EnvelopeRecords, is the
accounting journal.
Enforce the balance through the per-asset conservation check that exists. Record
the terminology in accounting-mapping.md and in journaling.md.
Pros:
Cons:
Book keeps a name that suggests an accounting book. The
documents must disclaim it again and again.Journal and JournalEntry typesAdd dedicated types that wrap the transfer log and a committed transfer.
Pros:
Cons:
JournalEntry is a Transfer or an
Envelope, and Journal is a TransferStore. Two names for one concept
invite drift.Book to something journal-adjacentRename Book, to reduce the confusion with an accounting book.
Pros:
Cons:
Book is a transfer policy scope and not a journal. A name close
to "journal" makes the confusion worse rather than better. The fix is
documentation and not a rename.Chosen option: Option 1. Model journaling with the types that exist, and document the mapping.
A committed Transfer, resolved into an Envelope, is a journal entry. A
Transfer with several Movements is a compound journal entry. The transfer
log is the accounting journal.
Per-asset conservation is the equivalent of Σ debits = Σ credits. It is
sum(consumed) == sum(created), and validate_and_plan enforces it.
Book is a transfer policy scope. It is not the journal, not a journal entry
and not a balance partition. The event log (ADR-0010) carries lifecycle
notifications, and it is not the journal.
Book against the
journal, "posting" as a noun against "posting" as a verb, and the transfer log
against the event log.journaling.md and accounting-mapping.md, and both must stay
accurate.Book keeps a name that needs a disclaimer in every document that uses it.Transfer is intent that resolves into an Envelope