Audit Endpoint
The audit endpoint enables agents to log actions they performed — providing the PS with a record for governance and monitoring that feeds the mission log. The agent POSTs a signed audit entry after performing an action, the PS responds 201 Created, and the audit is fire-and-forget (the agent SHOULD NOT block on the response). The audit endpoint REQUIRES a mission — there is no audit outside a mission context (§1046).
Agent signs the request with its agent token (Signature-Key: sig=jwt, §1050).
Request body REQUIRES mission + action (§1054–1055).
description, parameters, result are OPTIONAL but recommended for useful audit (§1056–1058).
AAuth-Capabilities is NOT sent on PS endpoints (§1731).
PS returns 201 Created — audit is fire-and-forget (§1094). Agent SHOULD NOT block.
Step 1: POST /audit (FeedbackReader.read) → 201 Created
Description (Markdown)
# Analyze Q2 Customer Feedback Read customer feedback records and produce a summary report with sentiment analysis and key themes.
Structured Fields
Approved Tools
Read customer feedback records
Write the summary report to the shared drive
PS Capabilities
application/json
sig=jwt;jwt="eyJhbGciOiJFZERTQSIsImtpZCI6ImFnZW50LWtleS0xIiwidHlwIjoiYWEtYWdlbnQ…
sig=("@method" "@authority" "@path" "signature-key");created=1700000000;alg="ed2…
sig=:AQIDAQIDAQIDAQIDAQIDAQIDAQIDAQIDAQIDAQIDAQIDAQIDAQIDAQIDAQIDAQIDAQIDAQIDAQI…
{
"mission": {
"approver": "https://ps.example",
"s256": "R9kNpXeErMQ1Jvk_vxYUp3YEdggmvUhksWtjXtcmnh0"
},
"action": "FeedbackReader.read",
"description": "Read Q2 customer feedback records from the feedback service.",
"parameters": {
"date_range": "2026-04-01..2026-06-30",
"product": "all"
},
"result": {
"status": "completed",
"records_read": 1247
}
}Covered Components
Signature Base
Signature-Key Header
sig=jwt;jwt="eyJhbGciOiJFZERTQSIsImtpZCI6ImFnZW50LWtleS0xIiwidHlwIjoiYWEtYWdlbnQrand0In0…"
Signature-Input Header
sig=("@method" "@authority" "@path" "signature-key");created=1700000000;alg="ed25519"
{"alg":"EdDSA","kid":"agent-key-1","typ"?:"aa-agent+jwt"}{"iss"?:"https://agent.example","sub"?:"aauth:local@agent.example","dwk"?:"aauth-agent.json","jti"?:"a6ae301d-1dc7-4b75-8f8b-5612197664a7","cnf"?:{"jwk"?:},"iat"?:1776222894,"exp"?:1776226494,"ps"?:"https://ps.example"}