agents/job/quote
https://toip.tools/spec/agents/job/quote/0.1
The worker answers an offer with a signed Settle payment link for the job, under the job's conditions. The hirer's guard checks the quote matches the offer before anything is paid.
- Sent
- worker hiring 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:7asJOB_QUOTE- Handled in
projects/agents/src/guard/guard.ts,projects/agents/src/roles/principal.ts- Design
- 10.1 Types in
projects/agents/docs/design.md
Payload
export interface JobQuote {
job: string;
link: PaymentLink;
note?: string;
}
Notes
A quote that doesn't match its job (a higher price, another release rule) is refused with a quote.mismatch reason that no approval can override. That is how the demo's prompt-injected quote is stopped.
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/quote/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…"
}
}