agents/task
https://toip.tools/spec/agents/task/0.1
A principal or a delegating agent gives an agent work in words. It becomes the first message of the agent's model loop.
- Sent
- principal or delegating agent agent
- Kind
- One-way. No response is expected; any answer is a separate message.
- Envelope
- Signed by the issuer, addressed to one recipient, timestamped, and encrypted in a TSP Direct message. The signature and recipient binding prevent its use as a bearer token.
- Defined in
projects/agents/src/protocol/tasks.ts:15asTASK- Handled in
projects/agents/src/guard/guard.ts,projects/agents/src/roles/principal.ts- Design
- 10.1 Types in
projects/agents/docs/design.md
Source documentation: “A delegator or principal gives an agent work in words (our addition: the design passes the task as the first user message).”
Payload
export interface TaskMessage {
text: string;
}
Notes
Our addition: the design passes the task as the model's first user message without a Trust Task.
Document envelope
Every Trust Task uses this envelope. Replace payload with the structure shown above.
{
"id": "urn:uuid:…",
"type": "https://toip.tools/spec/agents/task/0.1",
"issuer": "did:key:… (the sender)",
"recipient": "did:key:… (the receiver)",
"issuedAt": "2026-11-06T18:00:00.000Z",
"payload": { … },
"proof": {
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-jcs-2022",
"verificationMethod": "did:key:…#…",
"proofPurpose": "assertionMethod",
"proofValue": "z…"
}
}