agents/job/offer
https://toip.tools/spec/agents/job/offer/0.1
A hiring agent offers a job: what to do, the category, the most it will pay, how the payment is released (by an attester such as CI, or by the hirer), the dispute window, the deadline, and the hirer's passport. With a mandate presentation attached, the worker can check the hirer is allowed to spend that much on that category before it quotes.
- Sent
- hiring agent worker (a person's party or another 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:6asJOB_OFFER- Handled in
projects/agents/src/guard/guard.ts,projects/agents/src/roles/principal.ts,projects/agents/src/roles/courier.ts- Design
- 10.1 Types in
projects/agents/docs/design.md
Payload
export interface JobOffer {
job: string;
title: string;
description: string;
category: string;
/** The most the hirer offers, in units. */
maxUnits: string;
release: Release;
disputeWindowDays: number;
deliverable: "git" | "note";
/** For code jobs: where to push the work (a git URL or a local path in the demo). */
repo?: string;
deadline: string;
hirerName: string;
passport: Credential;
/** A presentation of the agents/job/offer action. */
presentation?: Presentation;
}
Document envelope
Every Trust Task uses this envelope. Replace payload with the structure shown above.
{
"id": "urn:uuid:…",
"type": "https://toip.tools/spec/agents/job/offer/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…"
}
}