Skip to content

What the log is, and what it is not

Kiln records what happened as a sequence of events that are never edited and never deleted. A case is not a row that gets overwritten as it progresses. It is the list of things that happened to it, and the case you see on screen is what you get when you play that list forward.

That decision explains much of the rest of this documentation, including why registers exist and why you declare, column by column, what a flow may receive.

Why the events rather than the current state

Section titled “Why the events rather than the current state”

A system that overwrites can tell you what is true now. It cannot tell you what was true in March, or who decided otherwise, or which version of a rule was in force when a decision was taken. Those questions have to be answered afterwards by reconstruction.

An event log answers them directly. Which stage a case was in on a given day, who moved it, what an AI step was given and what it returned, which published version of a flow was live at the time: each is an entry, not an inference. When somebody asks why a decision went the way it did, the answer is a record rather than a recollection.

The rest of this page covers what that design requires.

A log that never forgets cannot forget on request

Section titled “A log that never forgets cannot forget on request”

Nothing can be removed from an append-only log. That is its purpose, and it creates one problem.

Much of what flows through a working process is personal information about somebody, and a good deal of it carries an obligation to destroy on request, or after a period, or when a purpose has ended. Those obligations usually fall due well before the record of the decision can be discarded. A driver’s identity has a destruction obligation. The fact that a decision was taken about a driver, on a stated basis, on a given date, is something an organisation usually needs to keep for years.

If both were in the same permanent log, honouring the first obligation would mean breaking the second. So Kiln keeps them apart.

Decisions and references, not personal detail

Section titled “Decisions and references, not personal detail”

The log holds what was decided, by whom, and on what basis. It holds a reference to the person or the thing the decision was about, rather than their details.

The details live somewhere that can be destroyed. That might be a system you already run, reached through a Connection, in which case that system stays the authority on it and Kiln never held a copy. Or it might be a register, which is the place inside Kiln for a list your organisation maintains itself. A register’s rows are ordinary mutable records: they can be corrected, and they can be destroyed outright.

You destroy the referenced record, and the log still shows that a decision was made and why.

This is why registers exist: once the log holds references rather than details, the details need a controlled place to live.

An old case whose referenced record has since been destroyed renders a placeholder where a name used to be.

This is expected. It shows that a decision was taken about somebody whose details are no longer held, without either keeping those details or hiding that the decision happened.

When designing a process, note that a case is not self contained: reading an old case depends on its references still resolving.

Receiving a value and recording it are the same act

Section titled “Receiving a value and recording it are the same act”

A flow run records what each step was given and what it returned. That is what makes a run inspectable afterwards, and it is not optional.

It also means that passing a value to a flow records it permanently. A flow cannot see a value without the run keeping it.

This is why a register declares, for each column, whether its values may travel. A column can be readable on screen by everybody in your tenant and still be forbidden from reaching a flow, and for a home address that is the ordinary case rather than an unusual one. The declaration is off until somebody turns it on, so a register that has declared nothing hands a flow nothing, and a lookup that comes back without a column says which ones it did not receive and why.

It is not a copy of your systems. Your origination system, ledger, asset register and CRM keep holding what they hold, and keep being the authority on it. The log records what Kiln did and what was decided, including which of those systems it called and what came back.

It is not a place to keep personal information. It is designed to hold references instead, which is what allows it to be permanent.

It is not a complete history of everything Kiln has ever touched. Register rows are mutable and destroyable, and destroying a row destroys the record of who changed it along with it. Keeping “this person’s address was corrected on the eighth” after destroying the person’s record would disclose the same information.

It is not a substitute for deciding your own privacy position. Where a process handles personal information, the collection notices, the rules about who may view an individual, and the retention schedule are yours to settle. Kiln gives you the mechanisms. It does not choose for you.

This design gives you three things.

Which version of a process was live when a given case was decided is establishable rather than reconstructed.

A decision taken by an automated step can be examined afterwards, including what it was given and what it returned, rather than trusted at the time.

And an obligation to destroy personal information can be met, because the log was designed from the start to hold references to people rather than their details.