Skip to content

Agent kinds, models and grades

An agent kind is the organization's statement of what an agent may be; the model registry names the models; a grade says how far an agent's birth is the forge's own fact.

An agent that is started is whatever its starter says it is. The forge keeps what the starter said, and checks that the agent has no more authority than its parent, as People and agents describes. It does not know whether the agent runs the program it names, with the instructions it names, on the model it names. Three things change that, so far as the forge can: a kind that the organization wrote down, a registry of the models it permits, and a grade that says how far a birth is the forge’s own fact.

A kind

An agent kind is a record of the organization’s, asked for by an administrator and approved as a role is. It names:

Field What it limits
program The program an agent of the kind runs, which its birth must report
instructions The text the agent starts with. The record holds the text’s SHA-256, never the text, which is the only confidential part of a kind: only an administrator, or someone who may read every folder the kind names, reads it
models The registry models its agents may call
roles, folders The most an agent of it may hold: reader and writer (and approver, for a kind only the forge starts), and under which folders
lifetime How long an agent of it lives
classes, budget, egress The data classes it may hold, what it may spend and which hosts it may reach, recorded now and enforced by the steps that add what enforces them
permissions How the agent runner answers the harness’s requests for leave to act: up to 32 rules, the first that matches deciding, each an allow, a deny, a question to a person, a team or an agent kind, a refusal that carries a message, or, for the forge’s own tools, a rewrite of the call’s arguments. Checked when the kind is defined; the runner that applies them is planned with the agent runners. Permission rules has the rules
acts What it may do beyond its roles: review, find, requestDeploy, and coordinate, which is starting agents
born of Who may start one: a line (a person or an agent) or the forge itself

A kind is optional: an agent that names none is as agents always were. A kind is versioned. A version is the record’s SHA-256, it never changes, and an agent is born as one version and keeps it. A birth may name only the current version, and only if it is not retired, so a retired kind starts no new agent and touches none that lives.

When a birth names a version, the forge admits it inside the same transaction that writes the birth, on what is true then, and refuses it, writing nothing, if the agent would be more than the kind. What it leaves out is taken from the kind. It checks, in this order:

  1. The version is this organization’s.
  2. The kind is one a line may start.
  3. The signer may read the kind’s folders. If not, the answer is as for a kind that does not exist, so a kind’s existence is not told to someone who may not read what it covers.
  4. The version is the current one and is not retired. If it is not, the refusal names the current version.
  5. The program and the digest of the instructions are the kind’s, and the model, by id or by an alias in any case, is an active model the kind lists.
  6. Roles and folders are within the kind’s. A kind that names folders obliges the birth to name some, each under one of them: a birth is refused, never narrowed.
  7. The life is within the kind’s.
  8. An agent that was itself started as a kind starts agents only if its kind has coordinate.

Define the kinds of agents you run shows each command, with example requests.

The model registry

A model has an id, a maker, a family, a deployment and the data terms the organization attests to. A family belongs to one maker, since one maker’s families share lineage, and a name (an id or an alias) belongs to one model for good. An agent reports its model as a string; the registry says whether it is known and which family it is. Two models are different only if the registry knows both and they are not alike in the lineage asked, the family or the maker. A model the registry does not know is never different from anything: nothing is known of it, so no difference is shown or assumed. Register the models agents may use shows how.

A grade

Every birth has a grade that the forge sets and no starter claims:

Grade Meaning Today
reported The agent runs where the forge does not control, and what it is is its starter’s word Every birth
driven The forge’s own runner launched the agent’s harness and kept the session Not yet: planned with the agent runners
attested driven, on a machine that proved its software Not yet: planned

A birth that a parent signs and that claims a grade is refused. The grade is in the agent’s line, which every receipt names, so a record read years later says how the agent was known when it was born; a line with no grade is reported, so a record read alone can only understate. A reported program, model and instructions are checked against the kind a birth names and against nothing else.

The forge cannot verify a model. driven will say the forge’s runner started the harness and recorded what it did; it will not say which model answered.

What an administrator sees

The access review of the compliance reports lists each kind’s current version, how many agents are live as it by grade, each model, how many agents have no kind, and what was made in the period. A model that is retired and is still named by an active kind is an exception in it, since a kind that cannot start an agent is a mistake to be corrected. The instructions are not in a report, only their digest.

A task and a question name a kind

A task may name a kind. It names one the organization has and has not retired, and only an agent started as that kind takes it: an agent of no kind and an agent of another kind are refused at the claim, whatever their roles, and a person’s sign-in is no agent of any kind. A kind retired after an agent was started does not stop that agent from taking the task. A task that names no kind is taken by anyone, as before.

A question may be asked of a kind: af ask --to kind:NAME. It is in the queue of every live agent of that kind, and one of them answers it with its own key: not the agent that asked it, not an agent of another kind or of none, and not a person, whose answer is for a question asked of them. An answer grants nothing.

What an administrator sees of who runs a kind

af kind agents lists the live agents of a kind, and af activity counts the organization’s live agents by the kind each was started as. af agent show says the kind version an agent was started as and how its birth is known. The kind that af activity puts on an agent’s own lines is still the kind of the task it holds, not the kind it was started as.

Type to search…

↑↓ navigate↵ selectEsc close