Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
235b189
Merge branch 'feat/seal-page-app' of https://github.com/OpenAdaptAI/O…
abrichr Nov 21, 2026
a59847d
wip: handoff core
abrichr Nov 21, 2026
22551a5
Merge branch 'feat/receipt-counterparty-line' of https://github.com/O…
abrichr Nov 21, 2026
76e1075
feat: agent-to-agent handoffs with receipts, over MCP, HTTP, files an…
abrichr Nov 21, 2026
6be2478
fix(a2a): pass the A2A TCK's transport checks, keep the listener out …
abrichr Nov 21, 2026
911c9de
docs: link the handoff and A2A capability rows to #2414
abrichr Nov 21, 2026
ce85466
feat(handoff): key and trust commands, named signer in the two-party …
abrichr Nov 21, 2026
9b527de
Merge branch 'feat/receipt-counterparty-line' of https://github.com/O…
abrichr Nov 21, 2026
f7f8011
docs: regenerate llms-full.txt
abrichr Nov 21, 2026
4fe4719
refactor(cli): register handoff beside receipt, not in __main__ (size…
abrichr Nov 21, 2026
6ee5113
feat(cli): share one handoff group with the counterparty list command…
abrichr Nov 21, 2026
a20be62
Merge branch 'feat/receipt-counterparty-line' of https://github.com/O…
abrichr Nov 21, 2026
0090596
feat(handoff): bind each handoff's payload as the receipt's payload s…
abrichr Nov 21, 2026
66d93e1
feat(handoff): record sends in the handoff ledger, a real-run evidenc…
abrichr Nov 21, 2026
833680f
docs: ledger and real-run evidence in HANDOFFS.md; TCK rerun on the c…
abrichr Nov 21, 2026
49e1692
Merge branch 'feat/receipt-counterparty-line' of https://github.com/O…
abrichr Nov 21, 2026
a92f3f1
Merge origin/feat/receipt-counterparty-line into feat/a2a-serve
abrichr Nov 21, 2026
791f6bf
fix(handoff): bind only a receipt this key verifiably signed; POST wi…
abrichr Nov 21, 2026
2eb7e8d
fix(handoff): check the claim from the bytes the signature bound
abrichr Nov 21, 2026
6ac079d
Merge remote-tracking branch 'origin/feat/receipt-counterparty-line' …
abrichr Nov 21, 2026
71cea82
fix(handoff): a public card leaves only if it matches its receipt
abrichr Nov 21, 2026
e1c01da
Merge remote-tracking branch 'origin/feat/receipt-counterparty-line' …
abrichr Nov 21, 2026
5aab4ab
fix(handoff): only an exactly shaped, signed DSSE envelope leaves the…
abrichr Nov 21, 2026
fb7a56c
Merge remote-tracking branch 'origin/main' into feat/a2a-serve
abrichr Nov 21, 2026
bb1a309
fix(release,lint): update public-artifacts.json and ruff lint/format …
abrichr Nov 21, 2026
3c11b2f
fix(typing): narrow registry keys entries in cli_handoff.py
abrichr Nov 21, 2026
bdd2fc2
Merge branch 'main' of https://github.com/OpenAdaptAI/OpenAdapt into …
abrichr Nov 22, 2026
2e93a0d
chore(deps): relock the eligibility connector for flow's a2a extra
abrichr Nov 22, 2026
2031248
Merge remote-tracking branch 'origin/main' into feat/a2a-serve
abrichr Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CAPABILITIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ improvising or retrying when something is off.
| Code as action is the default run-1 agent (compile-agent, and `teach_run` in the MCP teach tools): one terminal tool (structure first, actions by role and name, a sandboxed read-only shell, screenshots on request); every action is a structured step checked against the compiled program, and every save the gate detects is read back from the system of record | Released ([#1305](https://github.com/OpenAdaptAI/OpenAdapt/pull/1305)) | Real app (local OpenEMR) and synthetic | `ClaudeAgent(vision="code")`, `CODE_AS_ACTION.md` ([#1305](https://github.com/OpenAdaptAI/OpenAdapt/pull/1305)) |
| Admit a draft by a person, an admitter key, or an agent under a person-signed policy, including self-admission when the policy allows it | Released | Unit tests | [JIT_ADMISSION.md](packages/flow/docs/JIT_ADMISSION.md) |
| MCP server: your agent decides what to enter, OpenAdapt makes the entry and checks it | Released | Synthetic sandbox | `openadapt-agent`, [packages/agent](packages/agent/README.md) |
| Agent-to-agent handoffs: when one agent hands a result to another, the run's signed receipt (`record/run/v1`) goes with it (`openadapt handoff send`, inline, detached beside a file, or POSTed to a webhook), and the receiver checks it against keys it pins (`openadapt handoff verify`). The verdict gives the signer role from the receiver's registry, integrity, checks passed and not checked, and "confirmed in the other party's system" lines; it always says a valid signature proves who signed, not that the claim is true, binds the payload as the receipt's `payload` subject (re-signed by the run's own key; other bytes or no payload subject are refused), and counts a confirmation as independent only when it was read from the other party's system. Over MCP, `serve --handoffs` adds `get_handoff` and `verify_handoff`. The private openings never travel | On main ([#2414](https://github.com/OpenAdaptAI/OpenAdapt/pull/2414)) | Unit tests over receipts from Flow's own writer and the shared `record/run/v1` confirmation vectors and the shared payload vectors (good, tampered, unknown signer, bound, mismatched and missing payload, detached file, local webhook); MCP and A2A end to end with the stubbed run process; a two-party test of 20 handoffs over HTTP (0 false accepts, 0 true rejects); one real headless MockMed run handed off over the CLI and checked against the receiver's own record ([benchmark/handoff_real_run](packages/flow/benchmark/handoff_real_run/README.md)); `--ledger` tested against #2415's `HandoffLedger` | `openadapt handoff`, `openadapt_flow/handoff.py`, [HANDOFFS.md](packages/flow/docs/HANDOFFS.md), draft format [HANDOFF_RECEIPTS.md](packages/flow/docs/HANDOFF_RECEIPTS.md) |
| A2A (Agent2Agent) protocol adapter: `openadapt agent serve --a2a` serves compiled workflows as A2A 1.0 skills with the official `a2a-sdk` (`openadapt[a2a]`): Agent Card at `/.well-known/agent-card.json`, JSON-RPC and HTTP+JSON, runs as tasks with status updates, the run's receipt as a handoff artifact when Flow wrote one (sandbox and strict at-rest runs have none), a `verify_handoff` skill, and the draft extension `https://openadapt.ai/extensions/handoff-receipt/v1`. Every call passes the MCP server's gate; person confirmations are not served; only `done` is completed. Loopback by default, a bearer token anywhere else, browser `Origin` and unknown `Host` refused | On main ([#2414](https://github.com/OpenAdaptAI/OpenAdapt/pull/2414)) | Synthetic: the official `a2a-sdk` 1.3.1 client against the server over HTTP on 127.0.0.1, with a governed run whose Flow process is stubbed and whose receipt Flow's writer signs; the official A2A TCK (a2aproject/a2a-tck at 5e6f37c): 110 automated checks passed and 11 failed, MUST 76.0%. The failures are 10 SDK-scenario tests that expect the TCK's own scripted agent, and the SDK's error Content-Type ([benchmark/a2a_tck](packages/flow/benchmark/a2a_tck/README.md)) | `openadapt_flow/agent/a2a_server.py`, [A2A.md](packages/flow/docs/A2A.md) |
| Teach over MCP: an agent does a new task once through OpenAdapt; the run is read back, compiled and admitted (a person confirms the record check; the agent admits only under a person-signed policy), and becomes a tool it calls with no model calls. Web, and Windows, macOS, Linux, RDP and Citrix with a person approving each save | On main ([#1335](https://github.com/OpenAdaptAI/OpenAdapt/pull/1335)) | Synthetic (MockMed over MCP, and through the real RDP and Citrix backends); a native Cocoa app with SQLite through `MacOSBackend`, taught, confirmed, admitted under a signed policy and called (canary and taught run `VERIFIED`, 0 model calls; [teach_desktop](packages/flow/benchmark/teach_desktop/README.md)) | `openadapt-agent serve --teach`, [packages/agent](packages/agent/README.md#teach-a-new-workflow-from-your-agent) |
| Turn a read-only browser task into a tool for the coding agent you already use: `openadapt setup` registers the MCP server and a skill in Claude Code, Cursor, Codex and Gemini CLI (idempotent, `--dry-run`, `--undo`); `openadapt setup --app deploy.yaml --verify verify.yaml` sets the agent up to teach saves in one web, desktop, RDP or Citrix app instead, each read back from the system of record. Read-only teaching runs only where a guard stops writes before they leave (the browser); `serve --teach-browser --config` naming a desktop, RDP or Citrix app is refused; the agent does the task once through `teach_start`/`teach_act`/`teach_finish`, the task must end in a download, the file is checked (columns, a column between two inputs or equal to one, fewest rows), the compiled steps are replayed once with no model, and the agent gets a `taught_<name>` tool that downloads a checked file with new inputs. The browser sends no POST, PUT, PATCH or DELETE and stays on one site; a compiled run stops when a control is missing, matches more than one element, or is relabelled | Released ([#1502](https://github.com/OpenAdaptAI/OpenAdapt/pull/1502)) | Real headless Chromium on the local example portal (scripted MCP client, in CI); a real Claude Code agent taught the export from the guide's prompt and called the tool with new dates (2026-10-24, one run) | `openadapt setup`, `openadapt-agent serve --teach-browser`, [FIRST_TOOL.md](packages/flow/docs/FIRST_TOOL.md) |
| Verify any agent's own writes: `openadapt verify` reads the system of record before and after a write, against a contract the operator owns (REST, FHIR, SQL, GraphQL), and returns a verified receipt (`openadapt.effect-receipt/v1`) or a refusal (`REFUTED`, `UNCERTAIN`), never an unverified success. Python SDK (`openadapt.verify`, which is `openadapt_flow.verifier`: `begin_write`, `verify_write`, `verified_write`) wraps a write in any agent framework; the MCP server (`openadapt verify serve`) offers `verify_begin`, `verify_check` and `verify_recheck` to any MCP client | Released ([#1589](https://github.com/OpenAdaptAI/OpenAdapt/pull/1589)) | Synthetic (MockMed's fault server over real HTTP: correct write, wrong record, not saved, saved twice, unreadable store) | `openadapt verify`, [VERIFY_WRITES.md](packages/flow/docs/VERIFY_WRITES.md) |
Expand Down Expand Up @@ -447,6 +449,7 @@ A test fails when a command has no file or this list is out of date.

- `emit-mcp`: Write a standalone MCP `server.py` for one bundle. A pulled workflow is refused until `skill qualify` has passed, and the server refuses a run on any other app address.
- `emit-skill`: Write an Agent Skills folder for one bundle. A pulled workflow is refused until `skill qualify` has passed.
- `handoff`: Agent-to-agent handoffs: `send` attaches a run's receipt to what one agent hands another (inline, detached beside a file, or POSTed to a webhook); `verify` checks one on arrival against your pinned keys (who signed, what was checked, and that a valid signature proves who signed, not that the claim is true); `key` and `trust` exchange receipt keys between parties; `list` shows handoffs to other parties and what their systems confirmed.
- `serve-execute`: With `--config DEPLOY_YAML`, a bundle recorded on Windows, macOS, Linux, RDP or Citrix runs through `openadapt-flow run --config`, under its admission's qualification authority.

**Proof:**
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@

### Features

- **Agent-to-agent handoffs.**
- `openadapt handoff send` attaches a run's receipt to a result for
another agent: inline, detached beside a file, or POSTed to a webhook.
`openadapt handoff verify` checks one on arrival against your pinned keys
and says who signed it, what was checked, and that a valid signature
proves who signed, not that the claim is true. Also available as
`openadapt verify handoff`.
- `openadapt agent serve --handoffs` adds the same over MCP.
- `openadapt agent serve --a2a` serves workflows over the A2A (Agent2Agent)
protocol with an Agent Card. It needs the new `openadapt[a2a]` extra.

- **Receipts replace Seals.** A receipt is a signed, itemized record of one run:
what it changed, how each change was checked, and who signed it. It doesn't
grade the run. Every run, with any outcome, now writes `receipt.json` (a DSSE
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,25 @@ receipt. The hooks are advisory; see
[Connect an agent](https://docs.openadapt.ai/how-to/connect-an-agent/)
covers other clients.

### Hand results from agent to agent

When one agent hands a result to another, the run's signed receipt goes with
it, and the receiving agent verifies it against keys it pins:

```bash
openadapt handoff send result.json --run RUN_DIR --out result.handoff.json
openadapt handoff verify result.handoff.json --keys trusted-keys.json
```

The verdict says who signed, which checks passed and which were not checked,
and any change confirmed in the other party's own system. A valid signature
proves who signed, not that the claim is true. Handoffs travel over MCP
(`serve --handoffs`), HTTP and webhooks (`--post URL`), files and email
(`--detached`), and the A2A (Agent2Agent) protocol (`openadapt agent serve
--a2a`, with an Agent Card, after `pip install 'openadapt[a2a]'`).
[HANDOFFS.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/flow/docs/HANDOFFS.md)
has the details.

### Record a task by hand

Recording works the same way on every surface; only the target differs:
Expand Down Expand Up @@ -323,6 +342,7 @@ the right record is on screen, makes the entry, and reads the record back.
- **Binds each approval to exactly what will be saved**, with one-tap answers on a paired phone.
- **Repairs itself when the app changes**, probing a fix up to the save and asking a person to approve it (qualified on browser runs and end to end on native macOS).
- **Works as a safety layer under any agent**: MCP tools, a guarded save, Agent Skills and a CLI.
- **Hands results from agent to agent with their receipts**, over MCP, HTTP, files and the A2A protocol, and verifies a handoff on arrival.
- **Runs locally**: no calls to a hosted AI model on healthy runs, personal and health data redacted, signed receipts.

[CAPABILITIES.md](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/CAPABILITIES.md) has the evidence and code for each.
Expand Down
Loading
Loading