Skip to main content

Data

Where a value comes from​

Each parameter of a skill says who sets it (set_by, see Skills): the config alone, by default, or the model when set_by names llm. A value from the model is checked against its type before the tenant is called. The model gives only these parameters: a value under any other name is refused, never passed to the operation. The arguments the config fixes, the args of the submit calls and the APIs' authentication are out of its reach. What must be right — an amount, a price — is computed by the tenant: a skill's update: {price: …} guard, or its invoke. See Policies.

How long​

On the server side, nothing expires on its own today: see Context.

Data that identifies a person​

A value a form marks identifies: true (an email address, a phone number) is used to find the person again from one door to another. Convoy keeps only what is needed:

  • The value stays in the room, because the submit sends it to the tenant; it leaves with the room.
  • Everything else goes through a fingerprint: finding a person's rooms and counting wrong codes use a keyed fingerprint of the value, specific to the station; a signed-in browser's key is kept only in the same form. No lookup is ever made on the value in clear, and two stations cannot match the same person.
  • The model sees names only ("Proved in this room: customer_email"), never the value; nor does the decision journal; a host's token (Claude, ChatGPT) carries an opaque id, never the email.

See Who is signed in.

The journal​

The decision journal (Three answers) is append-only: the database refuses any change, deletion or emptying of it. It keeps names and codes only, never a value. It belongs to no room: erasing a room, or the purge of rooms, does not touch it. It is kept for as long as the law requires of the tenant; its purge per tenant, at the end of that period, does not exist yet.

Two things live beside it, for the same reason: the budgets' counters and the uniqueness keys. They change in the same transaction as the entry of the decision that changes them. Erasing a room does not touch them: a filed key outlives its room. Their purge per tenant follows the journal's.

Uniqueness​

skills:
- name: rembourser
present:
fields:
facture: {from: invoice_id, type: text}
select:
unique: "$item.fields.facture" # the same invoice is not refunded from two tickets

select.unique names the key that only one request can hold at a time, across the whole station: $params.<name> (the value the skill's call used, otherwise its default) or $item.fields.<name>.

  • While a line carrying the key is in a selection, or once filed, another room cannot choose it. The refusal has the code unique_held and the sentence "… is already held by another request — it cannot be taken twice". It never says which room. The journal names the rule <skill>.unique, at phase budget (4), before the tenant's check.
  • The key is released when the line leaves the selection: removed, cleared, replaced, lost by on_loss, or its room erased. The next request for the same key sees it and takes it.
  • A submit that fails keeps the key: the line is still in the selection. What that submit had filed goes back to held, and only that: a key filed by an earlier submit stays filed. A line filed at another total (total_mismatch) goes back to held too.
  • If what the tenant did is unknown (its call raises an error, or the selection cannot be read again): the key stays filed. The journal writes a release entry, refused, with the code outcome_unknown and the skills by name. Releasing such a key yourself, once you are sure the tenant filed nothing, is not yet available to you: today Convoy does it, and the journal writes it (release, actor operator).
  • Filed, the key stays filed. No room can take it again, not even the one that filed it: the same invoice is never refunded twice.
  • Two rooms choosing the same key at the same time: only one holds it.
  • A blank key refuses the line, with the code unique_unreadable.
  • If the key cannot be read, Core fails closed: refused with journal_unavailable.
  • Refused at load: unique in kinds.<k>.select (it is written on the skill's select); anything but one reference; a parameter not declared, or that nothing sets at the choice; a field that a kind of the skill does not carry.
  • A holding is the line with its key: two lines of the same tenant object, under two keys, are two holdings.
  • The key and the line are never kept in clear. The registry lists it: origin derived, name <skill>.unique, phase 4.
  • The sentences are rewritten with texts: unique.held, unique.unreadable.

What does not exist yet​

set_by knows only config and llm (and person beside llm): neither person alone, nor read, result or identity. No data classes, no validity period (valid_for): the target describes them in Data.