← All lab updates
People in control of the gate: manual functions, and actions called back during their window
The gate decides each action on its own. Now a person can take part of that back: make a function manual, open the actions that wait for them, and call back an action that has not taken effect yet. All of it stays deterministic: nothing is held in a queue, and the same action in the same state gets the same answer.
## Why it matters
A gate that decides every action on its own is only half of what a company needs. The other half is people: someone who watches what runs automatically and can take it back, someone who handles the actions that need a person, and a way to stop an action that was sent by mistake before it takes effect.
The obvious way to build this is a queue of actions waiting for a click. We do not build it, by design: a queue is something an attacker can fill, and a tired person ends up clicking yes. So each of the three is built so that nothing waits.
## What changed
- **A function can be made manual.** It stops with its own reason, and a person whose role the rule names opens each exact action once. Its conditions stay written, so making it automatic again loses nothing. The change goes through the draft, is tried on the log and published, like every rule.
- **The actions that need a person are listed for that person.** Only the actions stopped on a rule their role opens, each with whether someone already opened it. The agent already had its answer; once a person opens the action, the agent asks again and it passes once.
- **An action can be called back during its window.** A payment is written as two steps of the company's own record: first scheduled, then due when the window ends. During the window a person closes the step that moves the money, for that payment only. When the window ends it still does not pass, until the person withdraws the closing.
All three are in a new Control area of the gate console.
## Technical detail
Engine 2.19.0 adds two things to the table format. A door may carry `manual`: a fixed reason, like a closed door, kept beside its conditions. A person may close an action: every action of a door whose arguments hold the fields the closing names (all of them for one exact action, the one that names a record for every action on it). A closing is kept for the rules table, not for one version, wins over any opening, and is withdrawn by a person. The window of a call-back is never held by the gate: it is a state of the company's record, which its own system moves.
Tested in 17 engine and service tests, three of them end to end against a database: a payment sent, closed during its window, refused when the window ends, and allowed once the closing is withdrawn.
This update is not available.