What you get
Everything an agent may do in the world sits at one of three levels, for each agent and each thing: they draft it, they do it when you press, or they do it on their own. You set each one, and you can pull it back.
An agent earns the offer to do more. After you have pressed the same thing twice, they may ask whether to do it on their own from now on.
What they will not do
| Raise their own level | An agent may offer. Only you decide. |
| Go past the ceiling | Some things can never be raised: sending your mail, moving your money. |
| Act on a card you never saw | The door checks the card against the agent’s own record of what was shown to you. |
| Act on a stale card | A card lapses after fourteen days, and an action that succeeded is not run twice. |
How it is built
“Can the agent do things?” is the wrong question. The right one is: which things, on whose say-so, and who can change that. Here every ability to act is declared in code with where it starts and the most it can ever become, and only you can move it between the two.
Everything an agent does in the world goes through one door. The door does not trust the agent, or the app, or the card it is handed. It checks each against the record.
One press
An agent puts a card in front of you.
The thing itself, with up to three actions, the most reversible first
You press one.
The app sends the card’s id and the action
The door reads the card back from the agent’s own record.
It does not trust what the app sent. A card the agent never showed is refused
A card more than fourteen days old is refused.
ACT_CARD_LIFE_MSThe level for that ability is checked, for you.
Withdrawn, or below the minimum, and nothing runs
An action that already succeeded is not run twice.
It answers “already done”
After two presses of the same thing, the door may offer more.
The door makes the offer, never the model ·
OFFER_AFTER_TAPS
The parts
| aha-runtime | My shared library: the door, the levels and the record of each card. |
| aha-protocol | Defines what a card may be: its shape, its limit of three actions, and that none may send. |
| A row per ability | For each person, each agent and each ability, one line holding the level you set. |
The words, in plain English
| Level | Drafts, on your press, or on their own. |
| Ceiling | The most an ability can ever be raised to. |
| Idempotent | Safe to repeat: pressing twice does it once. |
The code
export const OFFER_AFTER_TAPS = 2; export const ACT_CARD_LIFE_MS = 14 * 86_400_000;
Two presses before an offer; fourteen days before a card lapses. aha-runtime
What is not finished
| Six agents | Tender, Alex, Vincent, Ruth, Hearth and Will have abilities with levels. The others do not act in the world. |
| On their own | Some abilities could be raised in principle and are held at your press until more is built. |