Hand off a remediation read
Use this procedure to let a receiving agent read the permitted fields of an assigned remediation item through an approved A2A agent route. The work reference comes from VeriProof’s remediation service; an agent route alone does not create it.
This example uses a synthetic remediation item assigned to the person preparing the handoff. It reads the item; it does not update or close it.
Prepare the applications and workloads
- Use a Gateway build approved for agent routes in your deployment. Prepare and approve an agent route from the source application to the receiving application. Select the receiving agent’s remediation-read skill and use its exact published endpoint and card revision.
- In each application’s Config > Keys > Agent access, register the workload’s public RSA JWK and select Agent-to-agent requests (A2A) under Allow access to. Keep the private key with that workload. Record each client ID, key ID, and current credential generation.
- Confirm that the initiating person has permission to initiate agent work for the source application and is the remediation item’s current assignee. Use an item in Open, In progress, or Review required, and record its current version.
- Configure policy for the source handoff and receiving read. The remediation service evaluates both; approval of the gateway route is a separate step.
Deployment operator: permit the exact handoff
In the Customer API deployment configuration, set the agent resource URLs. Add the following remediation settings to that same configuration. Use the initiating person’s trusted identity issuer for PrincipalIssuer; the workload issuer remains AgentIntegration:OAuthIssuer.
{
"A2a": {
"RemediationRead": {
"PrincipalIssuer": "<trusted initiating-user issuer>",
"Handoffs": [
{
"CustomerId": "<customer UUID>",
"Environment": "<application environment in lowercase>",
"SourceApplicationId": "<source application UUID>",
"SourceClientId": "<source workload client UUID>",
"SourceCredentialGeneration": 1,
"TargetApplicationId": "<receiving application UUID>",
"TargetClientId": "<receiving workload client UUID>",
"TargetCredentialGeneration": 1
}
]
}
}
}Replace both example generations with the registrations’ current values. The workloads must belong to the stated customer, application, and environment and permit a2a.access. Apply the settings through your Customer API deployment process. Update the mapping when a workload’s credential generation changes.
Configure the gateway host’s approved route credential binding for the receiving agent. The credential audience must match the reviewed card security scheme and route. Keep this credential on the gateway host.
Prepare the work as the assigned person
Using that person’s authenticated Customer API client, send POST /v1/agent-work/remediation/<item UUID>/delegate to your Customer API. For cookie-based sign-in, include the session cookies and the matching X-CSRF-Token header; the portal’s shared API client supplies them. Supply:
{
"operationId": "<new operation UUID>",
"sourceApplicationId": "<source application UUID>",
"sourceWorkloadClientId": "<source workload client UUID>",
"sourceCredentialGeneration": 1,
"targetApplicationIds": ["<receiving application UUID>"],
"version": 1
}Use the item’s current version and the source registration’s current generation. Keep the operation ID with this request. A successful response supplies rootGrantId, parentGrantId, grantId, reservationId, evidenceReference, expiresAt, and version. Keep the reference intact and check the expiry before sending it. Do not construct replacement grant IDs or evidence references.
Request separate workload tokens
Use the existing workload token endpoint, POST /v1/agent-oauth/token, with each workload’s registered signing key and your OAuth client’s private_key_jwt support. The workload token procedure explains registered-key handling; for this A2A flow, use the scope and resources below instead of the model-specific sample helper. Read the client ID, key ID, resource URL, and private-key file path from the workload’s process configuration. Sign a fresh assertion for the exact token endpoint; keep assertions and returned tokens out of logs.
Send grant_type=client_credentials, client_id, client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer, the signed client_assertion, scope=a2a.access, and the exact resource for that caller:
| Caller | Resource audience | Use |
|---|---|---|
| Source workload | Configured AgentIntegration:A2aGatewayUrl | Send the message to the Gateway. |
| Receiving workload | Configured AgentIntegration:A2aUrl | Read the delegated remediation work from the Customer API. |
These are separate tokens for separate resources. Keep refresh with each workload’s OAuth client. A human sign-in token, model token, or application SDK key does not replace either workload token.
Send the prepared reference through the Gateway
Send an A2A HTTP+JSON message to the approved route’s <gateway public address>/rest/message:send, with A2A-Version: 1.0, Content-Type: application/json, and the source workload’s gateway-audience token in Authorization: Bearer. The configured public address is the full route base, such as https://YOUR_GATEWAY/a2a/YOUR_ROUTE_ID; append /rest/message:send to that base.
Construct the body from the successful preparation response, represented below as prepared. Use the exact skill ID selected in the approved route:
const body = {
message: {
messageId: crypto.randomUUID(),
role: 'ROLE_USER',
parts: [{ text: JSON.stringify({
grantId: prepared.grantId,
reservationId: prepared.reservationId,
}) }],
metadata: {
veriproof: {
skillId: '<approved remediation-read skill ID>',
handoff: {
parentGrantId: prepared.parentGrantId,
childGrantId: prepared.grantId,
evidenceReference: prepared.evidenceReference,
},
},
},
},
};Place these selectors inside message.metadata.veriproof, not at the request’s top level. The gateway verifies the current caller, handoff, reviewed skill, policy, and route limits before sending the message to the receiving agent.
For a Node agent, the repository’s samples/gateway-a2a/remediation-read-client.mjs implements this one-hop send as createRemediationReadSender. Pass the approved route base, reviewed skill ID, and your source workload OAuth token callback, then call the returned function with prepared. The companion createRemediationReadReceiver implements the read below using a separate receiving workload token callback. See samples/gateway-a2a/README.md for the integration example and focused synthetic checks.
The helpers make one HTTP attempt and keep the original deadline. If a response is lost, check the authorized task/work state before sending again; a missing response does not mean the action did not run. HTTP success alone does not establish that an A2A task completed.
Read and return the permitted result
In the receiving agent’s handler, read grantId and reservationId from the message and call POST /v1/a2a/work/remediation/read on the Customer API with that workload’s receiving-audience token:
{
"grantId": "<prepared grantId>",
"reservationId": "<prepared reservationId>"
}The service checks the current workload, original assignment, item version, policy, and unconsumed reservation. A successful read returns item and application IDs, version, control references, status, priority, dates, and overdue state. It excludes user names and private remediation text. Return this permitted result in the receiving agent’s A2A response; the gateway checks the response before releasing it to the source workload.
The read consumes the reservation. If the item, assignment, policy, or workload registration changes, review the current state and prepare new work rather than editing the old reference. Use this procedure for the remediation read source described here; a different business workflow needs its own authorized work source.
Find the handoff in the workflow
The gateway records each hop as a session in the source application. The handoff appears in the Time Machine’s Workflow panel and Whole workflow views the same way an SDK handoff does, labeled Checked on the A2A route. Where an SDK handoff’s authority is its handoff decision, a hop’s authority is the work grant that authorized it. Select View work grant to open the hop session that records that grant.
Where the hop sits in a workflow depends on who prepared its grant:
- A grant prepared by a person, as in this procedure, isn’t tied to a governed session. The hop starts its own workflow, with the grant as its authority.
- An SDK-governed agent that passes received work on calls
POST /v1/a2a/work/remediation/delegatefrom inside its governed action and supplies its current session ID asgoverningSessionId. VeriProof checks that the session belongs to the calling application and binds it to the new grant, and the next hop nests under that session.
The receiving agent can join the same workflow. The gateway sends the hop’s session along with the message, so an SDK-governed handler that runs inside the incoming lineage nests its session under the hop, including a hop you prepared. VeriProof accepts that link only while the work grant still names the receiving agent and hasn’t expired or been revoked, and the receiving session’s policy checks see the actions the grant permits. See Hand work to another agent.
See Follow a workflow for the panel and views.