IF Commons GitHub

models/identity-agent/operations

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0042-identity-agent-operations FR-001

The contracts of the operations of agents and delegation (commons data 0042-identity-agent-operations): what each takes, reads and writes, what it records, and who it runs as. They hold no SQL. How they are done is sql/extensions/operations/identity.

Source: commons/data/models/identity-agent/operations.ts

1 of 6 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

delegateconstno test imports it
const delegate: Operation

Passes on some of what one principal may do to another, for a time, never more than the delegator holds and never more than the delegation above it passes on.

revokeDelegationconstno test imports it
const revokeDelegation: Operation

Ends a delegation and every delegation below it, at once.

recordToolCallconstno test imports it
const recordToolCall: Operation

Decides and records a call of a tool by an agent in a run: allowed only if the agent holds the tool, the delegation allows it, the run's budget has room, and a person has…

decideApprovalconstno test imports it
const decideApproval: Operation

A person approves or refuses one action of an agent; only a person decides, and only one who may do the action themselves.

killAgentconstno test imports it
const killAgent: Operation

Switches an agent off: it can do nothing, its runs stop, its delegations end, its credentials are revoked and what waits for approval is cancelled, in one transaction.

agentOperationsconst
const agentOperations: readonly [Operation, Operation, Operation, Operation, Operation]

The operations of the agent model: delegate, revoke a delegation, record a tool call, decide an approval and kill an agent.

Imported by 13 tests of the run (13 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.