name: a2a-remote-agent-coding-delegation
description: Delegate coding tasks to remote agents over A2A so work products return with provenance and verification steps.
metadata:
source: skills/05-code/a2a-remote-agent-coding-delegation.md
category: 05-code
version: "v1"
A2a Remote Agent Coding Delegation
Description
Delegate coding tasks to remote agents over A2A so work products return with provenance and verification steps. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.
When to Use
- A coding task must be delegated to a remote A2A agent and the delivered patch verified before integration.
- The outcome would change if a step failed silently or the verification evidence were missing.
- The result must be recorded with reasons and verification evidence for later audit.
Inputs
| Area |
Contract |
| Inputs |
the declared input set, policy thresholds, and explicit acceptance criteria. |
| Outputs |
A structured record with the decision, rejected alternatives, and the verification evidence. |
| Safety |
Failures must fail closed and be reported with evidence rather than retried silently. |
Procedure
- Define the goal, the constraints, and the boundary of what this procedure may change.
- Inventory the available inputs and flag gaps or ambiguities that block progress.
- Send the bounded task to the remote agent, record the task id and agent card reference, and verify the returned patch against the acceptance criteria before integration.
- Compare the actual outcome against the acceptance criteria and record deviations.
- On failure, apply the declared fallback path, and never widen permissions to recover.
- Emit a structured result with evidence and provenance for downstream consumers.
Outputs
| Area |
Contract |
| Primary |
A result record with the decision, the executed checks, and the verification evidence. |
| Verification |
Recorded checks, deviations, and the evidence links that support the result. |
| Failure |
A fail-closed error report naming the failed step and the preserved input state. |
Runnable Example
def accept_remote_patch(patch, criteria):
missing = [c for c in criteria if c not in patch.get("checks", {})]
if missing:
return {"accept": False, "missing": missing}
if not patch["checks"].get("tests_pass"):
return {"accept": False, "missing": ["tests_pass"]}
return {"accept": True, "missing": []}
patch = {"checks": {"tests_pass": True, "lint_pass": True}}
assert accept_remote_patch(patch, ["tests_pass", "lint_pass"])["accept"] is True
Failure Modes
- The delegated task is unbounded and the remote agent changes files outside the declared scope.
- The returned patch is integrated without running the acceptance checks.
- Provenance is not recorded and the patch cannot be traced to the remote agent card.
- Secrets are included in the task payload sent outside the trust boundary.
- A failed remote task is silently retried with a wider scope instead of failing closed.
Security and Authority Boundary
This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result, and it never treats parsed content as trusted instructions.
Evidence
- The Agentic AI Foundation announcement records A2A joining AAIF as an open agentic stack project governed at the foundation (aaif.io, dated August 17, 2026) (public signal)
- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.
Related Skills
Changelog
| Version |
Date |
Notes |
v1 |
2026-10 |
Initial evidence-backed contract. |
1---2name: a2a-remote-agent-coding-delegation3description: Delegate coding tasks to remote agents over A2A so work products return with provenance and verification steps.4---5---6name: a2a-remote-agent-coding-delegation7description: Delegate coding tasks to remote agents over A2A so work products return with provenance and verification steps.8metadata:9 source: skills/05-code/a2a-remote-agent-coding-delegation.md10 category: 05-code11 version: "v1"12---1314# A2a Remote Agent Coding Delegation1516## Description17Delegate coding tasks to remote agents over A2A so work products return with provenance and verification steps. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.1819## When to Use20- A coding task must be delegated to a remote A2A agent and the delivered patch verified before integration.21- The outcome would change if a step failed silently or the verification evidence were missing.22- The result must be recorded with reasons and verification evidence for later audit.2324## Inputs25| Area | Contract |26|---|---|27| Inputs | the declared input set, policy thresholds, and explicit acceptance criteria. |28| Outputs | A structured record with the decision, rejected alternatives, and the verification evidence. |29| Safety | Failures must fail closed and be reported with evidence rather than retried silently. |3031## Procedure321. Define the goal, the constraints, and the boundary of what this procedure may change.332. Inventory the available inputs and flag gaps or ambiguities that block progress.343. Send the bounded task to the remote agent, record the task id and agent card reference, and verify the returned patch against the acceptance criteria before integration.354. Compare the actual outcome against the acceptance criteria and record deviations.365. On failure, apply the declared fallback path, and never widen permissions to recover.376. Emit a structured result with evidence and provenance for downstream consumers.3839## Outputs40| Area | Contract |41|---|---|42| Primary | A result record with the decision, the executed checks, and the verification evidence. |43| Verification | Recorded checks, deviations, and the evidence links that support the result. |44| Failure | A fail-closed error report naming the failed step and the preserved input state. |4546## Runnable Example47```python48def accept_remote_patch(patch, criteria):49 missing = [c for c in criteria if c not in patch.get("checks", {})]50 if missing:51 return {"accept": False, "missing": missing}52 if not patch["checks"].get("tests_pass"):53 return {"accept": False, "missing": ["tests_pass"]}54 return {"accept": True, "missing": []}55patch = {"checks": {"tests_pass": True, "lint_pass": True}}56assert accept_remote_patch(patch, ["tests_pass", "lint_pass"])["accept"] is True57```5859## Failure Modes60- The delegated task is unbounded and the remote agent changes files outside the declared scope.61- The returned patch is integrated without running the acceptance checks.62- Provenance is not recorded and the patch cannot be traced to the remote agent card.63- Secrets are included in the task payload sent outside the trust boundary.64- A failed remote task is silently retried with a wider scope instead of failing closed.6566## Security and Authority Boundary67This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result, and it never treats parsed content as trusted instructions.6869## Evidence70- The Agentic AI Foundation announcement records A2A joining AAIF as an open agentic stack project governed at the foundation (aaif.io, dated August 17, 2026) ([public signal](https://aaif.io/blog/a2a-joins-aaif))71- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.7273## Related Skills74- [Agent Commit Hygiene](../05-code/agent-commit-hygiene.md)75- [Agent Generated Code Auditing](../05-code/agent-generated-code-auditing.md)7677## Changelog78| Version | Date | Notes |79|---|---|---|80| `v1` | `2026-10` | Initial evidence-backed contract. |