Every import becomes a commit on Transactions: one statement, one import, or one entry. The commit is the unit of recording, not the file and not the line.
Until it is finalized, a commit is the honest middle: the work is visible but nothing has been asserted. Rows get their account, their source account, a class, and a split where one line is really several. The raw line as it was read is kept beside the worked line — the original date and the statement's own debit and credit columns — so you can always see what the source actually said. The app calls one of these rows a fact, and the close checks that none are left outside a commit.
Decisions — the screen's own heading reads Needs your decision — shows only what the model will not code on its own. A line is coded without asking you only when this company's own record justifies it: the vendor is resolved, there are prior codings that agree, the amount is in the band this vendor has been in before, and the descriptor has not changed shape. Fail any one of those and it becomes a card with the reason on it. You approve, or you change the account and it learns. The Dashboard says how many decisions are waiting and how many of them block the close.
Finalize commit works only when every line has a source account, an account and an approval, and the total ties to the statement. Finalizing posts the commit: its lines are written to the ledger, each carrying that commit's id. Nothing is hashed yet. That happens once, at the lock.
A commit is anchored on exactly one source account, because it is the unit of recording: one status, one undo boundary. Hand Extract two statements for different accounts and it refuses to put them in one commit. There is no path that writes a ledger line without a commit behind it. Once a commit is finalized, a database rule blocks deleting a line or changing its date or amount. Until the period is locked, the account, class, memo or payee of a posted line can still be corrected in the ledger: one door, and every correction is recorded with the old value and the new one.