Skip to content

Agent-to-agent handoffs with receipts: MCP, HTTP, files and the A2A protocol - #2414

Merged
abrichr merged 29 commits into
mainfrom
feat/a2a-serve
Nov 22, 2026
Merged

abrichr merged 29 commits into
mainfrom
feat/a2a-serve

Conversation

@abrichr

@abrichr abrichr commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

What this does

When one agent hands a result to another, the run's signed receipt
(record/run/v1) now goes with it. The receiving agent verifies the receipt
against keys it pins.

The core is the same on every transport:

  • openadapt handoff send attaches the receipt, as one of:
    • inline;
    • detached, as FILE.handoff.json beside the file;
    • POSTed to a webhook.
  • openadapt handoff verify checks it on arrival. The same command is
    also openadapt verify handoff.
  • Python API in openadapt_flow/handoff.py.

What the verdict reports

openadapt.handoff-verdict/v1 reports:

  • the signer role, which comes from the receiver's registry;
  • integrity;
  • which checks passed and which were not checked;
  • "confirmed in the other party's system" lines, taken from the shared
    verifier's confirmation_lines and independent.

It always says that a valid signature proves who signed, not that the claim is
true. It also marks the payload unbound unless the payload is a signed
subject.

decide() accepts a handoff only when the receipt is intact and the
receiver's own record shows the claim. Without that read it returns
unchecked.

Transports

  • MCP: openadapt agent serve --handoffs adds get_handoff and
    verify_handoff.
  • HTTP and webhooks: send --post URL uses the
    application/vnd.openadapt.handoff+json body.
  • Files and email: --detached.
  • A2A protocol: openadapt agent serve --a2a uses the official
    a2a-sdk 1.3.1 (Apache-2.0) and the new openadapt[a2a] extra.
    • Agent Card at /.well-known/agent-card.json.
    • Bindings: JSON-RPC and HTTP+JSON, protocol 1.0.
    • Skills: one per workflow, plus verify_handoff.
    • Artifacts: run tasks carry the handoff as a raw part, marked with
      the draft extension https://openadapt.ai/extensions/handoff-receipt/v1.

A2A follows MCP's rules

  • One gate. Every A2A call goes through the gate the MCP server now
    shares (agent/contract_call.py): schema validation, the task ledger, and
    the bridge.
  • Allowlist. Only list_workflows, run_workflow, get_run,
    get_handoff and verify_handoff are served.
  • No approvals over A2A. Person confirmations are not served, and no A2A
    message counts as an approval.
  • Task states. Only done becomes TASK_STATE_COMPLETED. Cancel refuses.
  • Network. The server listens on loopback by default and needs a bearer
    token on any other address. It refuses a browser Origin and an unknown
    Host.

Draft extension

packages/flow/docs/HANDOFF_RECEIPTS.md is a draft, not submitted anywhere.
It covers a receipt that travels with any agent handoff, with bindings for
MCP, HTTP, files and A2A. Verification references in-toto Statement v1 and
DSSE v1.0.2.

Depends on

This branch merges #2394 (record/run/v1 receipts and the Flow writer) and
#2410 (counterparty confirmation lines), and the diff includes them until
they merge. Merge those first.

Tests

All runs went through the CPU gate (cpu-slots/run.sh) and were headless.

Suite Result
packages/flow/tests/test_handoff.py, test_capabilities_map.py, test_import_layers.py 2237 passed
packages/agent/tests (whole suite, including the new test_handoff_e2e.py) 544 passed, 9 skipped

test_handoff_e2e.py uses the official a2a-sdk client against this server
over HTTP on 127.0.0.1:

  • The run. A governed run with Flow's run process stubbed, whose receipt
    Flow's real writer signs. The receipt arrives in the A2A artifact and in
    the MCP get_handoff result.
  • The verdicts. A good handoff is intact. A tampered one is refused with
    bad_signature, an unknown signer with unknown_signer, and a
    re-stapled payload is intact but unbound.
  • The gates. The MCP refusals repeat over A2A. A browser Origin and a
    foreign Host are refused. Off loopback a token is required. A
    follow-up message can't approve a run.

Two-party test (the memo's kill criterion).

  • Setup. One server over A2A runs 20 programs. It POSTs 20 signed
    handoffs to a second party's inbox: 10 true, 5 fabricated and 5 that
    differ from the second party's records. The second party reads its own
    SQLite record.
  • Result. 0 fabricated or differing handoffs accepted, 0 true ones
    rejected, slowest check 0.7 ms (the bar was 2 s).

Official A2A TCK (a2aproject/a2a-tck 5e6f37c):

  • Score. 110 automated checks passed and 11 failed. MUST 76.0%, Agent
    Card 9 of 11 passed with 0 failed.
  • Causes. 10 failures are SDK-scenario tests that expect the TCK's own
    scripted agent. One is a2a-sdk 1.3.1's error Content-Type.
  • Report. packages/flow/benchmark/a2a_tck/.

Failures that come from #2394. These fail the same way on the merge of
#2394 and #2410 without this PR: packages/flow/tests/test_cli_tasks.py::test_every_legacy_leaf_retains_namespace_errors_and_handler
(encrypt) and 6 launcher route tests for seal.

Payload binding, the real run, and the ledger (added after the first review)

  • Payload binding. handoff send, get_handoff and the A2A run artifact
    sign the run's receipt again, adding the payload as its payload subject
    (from Receipts: counterparty confirmations in record/run/v1 #2410). They use only the key that already signed the run, so binding
    never changes who signed. verify checks the bytes with
    verify_receipt(received=...):

    • a swapped payload is refused as payload_mismatch;
    • a receipt that names no payload is refused as payload_not_bound.

    The shared payload-* vectors run through a handoff. The two-party test
    covers four cases out of 20:

    • true and bound: accepted;
    • fabricated or differing: the receipt is intact, and the receiver's own
      record rejects them;
    • swapped: refused as payload_mismatch;
    • unbound: refused as payload_not_bound.

    The result: 0 false accepts and 0 true rejects, slowest check 0.5 ms.

  • A real run (packages/flow/benchmark/handoff_real_run/). A tutorial
    program ran against MockMed in headless Chromium: VERIFIED, 0 model
    calls, 26.2 s, with receipt.json written by Flow's run hook. The real CLI
    then did handoff key, trust --org, send (bound) and verify, and
    decide() read the receiver's own record through MockMed's /api/db.

    Claim Verify B's own record Decision
    True intact, "Signed by Sender Clinic's key", bound recorded as intended accept
    Differing intact recorded differently reject
    Fabricated intact not found reject
    Other bytes payload_mismatch

    The receiver's read took 2.3 to 3.7 ms. This run used the real browser
    with 22 GiB of disk free, below the 30 GiB guard.

  • Ledger. handoff send --ledger DIR --counterparty LABEL [--key-field F]
    records the send with feat(flow): counterparty confirmations: payer acknowledgments, referral read-back, handoff list #2415's HandoffLedger, as digests only, so
    handoff list shows it. It was tested against feat(flow): counterparty confirmations: payer acknowledgments, referral read-back, handoff list #2415's head: merged
    locally, 114 passed, handoff lists send, verify, key, trust and list.
    On this branch alone the test skips.

  • Schema rename. The wire document is now
    openadapt.handoff-document/v1, because feat(flow): counterparty confirmations: payer acknowledgments, referral read-back, handoff list #2415's ledger record already uses
    openadapt.handoff/v1.

  • Key exchange. New handoff key and handoff trust. trust pins
    another party as customer_key under its name.

Not in this PR

…d the A2A protocol

openadapt handoff send/verify attaches a run's record/run/v1 receipt to what
one agent hands another and verifies it on arrival against the receiver's
pinned keys. The verdict states the signer role, integrity, checks passed and
not checked, and counterparty confirmation lines, and always says a valid
signature proves who signed, not that the claim is true. decide() accepts a
claim only when the receiver's own record shows it.

openadapt agent serve --handoffs adds get_handoff and verify_handoff over MCP.
serve --a2a serves the same workflows over the A2A protocol 1.0 with the
official a2a-sdk (new a2a extra), through the MCP server's own gate
(agent/contract_call.py), with a draft handoff-receipt extension.
…of the CLI, and record the TCK run

JSON-RPC also answers at the interface URL plus '/', input modes are validated
(ContentTypeNotSupportedError), and the Agent Card sends Cache-Control. The
loopback default moves into a2a_server.py, the one listener, and the
no-listener test now pins it there. The TCK report is in
packages/flow/benchmark/a2a_tck.
…test, conditional receipt copy

openadapt handoff key prints this computer's receipt key; handoff trust pins
another party's key as customer_key under its name, so its receipts verify as
'Signed by <org>'s key'. The two-party test now pins the sender that way.
The Agent Card and docs say a result carries its receipt when Flow wrote one
(sandbox and strict at-rest runs have none). --a2a refuses
--allow-protected-export and prints its URL at startup.
…ubject

handoff send, get_handoff and the A2A run artifact re-sign the run's receipt
with the payload subject (digest and media type) using the key that signed
the run; verify checks the bytes with verify_receipt(received=...), so a
swapped payload is payload_mismatch and a receipt naming none is
payload_not_bound. The two-party test now includes both, and the shared
payload vectors run through a handoff. Merges #2410 at 49da9cd.
…e file, and a distinct document schema

handoff send --ledger DIR --counterparty LABEL [--key-field F] records the
send with HandoffLedger (the record handoff list reads), digests only. The
wire document is now openadapt.handoff-document/v1, so it no longer shares a
schema id with the ledger's openadapt.handoff/v1 record. benchmark/
handoff_real_run holds a real headless MockMed run handed off and checked by
its receiver over the CLI.
@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Grok
Reviewed-Head: 49e1692

First review of this PR. Author is GitHub abrichr, not Grok. Review only; I am not merging.

bind_payload must not re-sign a receipt it has not verified. Today it only checks that this computer's key id appears in envelope.signatures:

if kid not in {s.get("keyid") for s in envelope.get("signatures") or []}:
    raise HandoffError(...)
statement = r.loads_strict(base64.b64decode(str(envelope["payload"])))
# ... append payload subject ...
bound = r.sign_statement(statement, [(kid, signer.sign)])

A crafted envelope that lists this computer's keyid with a garbage sig therefore gets a real record/run/v1 signature over whatever statement the caller supplied, plus the new payload subject. That is the default path for openadapt handoff send (unless --unbound) and for get_handoff. The tests only cover a different local key being refused, not a matching keyid with an invalid signature.

Please verify the existing envelope against this computer's key, then mutate the verified statement and sign that. Binding must not mint a valid receipt from an unverified one.

Secondary, still in this unique work: post_handoff checks _post_allowed on the operator-supplied URL, then calls urllib.request.urlopen, which follows redirects without re-applying that check. An allowed https:// URL can redirect to a non-loopback http:// target. Disable redirects, or re-run _post_allowed on every hop.

This branch is based on #2410 at e19fe2b6, not the later heads, so it still ships the old in-page safeHref regex that accepts //evil.example and /\host. After #2394 / #2410 fix the remaining userinfo-after-colon bypass as well, this PR needs that helper, not the old one. _approval ignoring block.decision is also still in the tree.

The rest of the handoff design is careful: private openings cannot travel; verify_handoff binds supplied payload bytes through verify_receipt(..., received=); decide() accepts only when the receiver's own record matches; A2A refuses a non-loopback bind without a token, refuses browser Origin, pins Host, and keeps approval tools off the remote allow-list.

I am not merging.

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Gemini
Reviewed-Head: 49e1692

Cross-vendor review (the author is Claude and the PR is protected). Codex could not run because its local config failed to parse, so Gemini (gemini-3.1-pro-preview) reviewed the full diff against main and the PR body. It looked at the A2A server, the MCP handoff tools, the handoff verification logic, the receipt record builder and the offline viewer. It checked correctness and safety only, not style. I confirmed blockers 1 and 2 in the checked-out code.

Blockers:

  1. packages/flow/openadapt_flow/handoff.py (bind_payload, about lines 175-194): the function re-signs a receipt without verifying it. It only checks that this computer's key id appears in envelope.signatures. Then it decodes the payload, appends the payload subject and calls sign_statement with the real local key. An envelope that lists the local keyid with a garbage signature comes back with a valid signature over a statement the attacker chose. openadapt handoff send (without --unbound) and get_handoff both use this path by default. Verify the envelope against the local key first, and sign only the verified statement. Add a test with a matching keyid and an invalid signature.
  2. packages/flow/openadapt_flow/cli_handoff.py (post_handoff, about lines 186-194): _post_allowed runs on the URL the operator supplies, but urllib.request.urlopen follows redirects without running the check again. An allowed https:// URL can redirect to a non-loopback http:// target. Turn off redirects, or run _post_allowed on every hop.
  3. packages/seal-view/src/components/SealPage.jsx (safeHref, about line 95): the old regex is still here. Its / branch has no anchor, so //evil.example (a protocol-relative URL) and /\host both pass. Use the fixed helper from Receipts: one signed record per run (replaces Seals) #2394 / Receipts: counterparty confirmations in record/run/v1 #2410.
  4. packages/flow/openadapt_flow/receipt_record.py (_approval, about line 104): the function ignores block.decision. When the overall decision is rejected but the list contains approved items, it still reports a person or agent approver.

Earlier blockers (Grok, same head): Gemini found all four (bind_payload, redirects, safeHref, _approval) still present. None is fixed at this head.

…thout redirects

bind_payload now checks this computer's DSSE signature over the envelope's
payload before re-signing, so a keyid with a bad sig never becomes a valid
receipt. post_handoff refuses every redirect (a 3xx raises), so an allowed
URL can't hand the document to a target _post_allowed would refuse. Tests
for both; ruff format for the touched files.
@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Re-review request for the REQUEST CHANGES at 49e1692d. New head: 791f6bfe112df0e234e73d9d9ff78148e6559a64.

What changed:

  • bind_payload (packages/flow/openadapt_flow/handoff.py): before re-signing, _signed_by verifies this computer's Ed25519 DSSE signature over the envelope's payload (payloadType must be record/run/v1). A matching keyid with a garbage sig, or a real sig over a different payload, is refused with the existing "didn't sign that receipt" error. Test: test_binding_refuses_this_keyid_with_a_bad_signature.
  • post_handoff (packages/flow/openadapt_flow/cli_handoff.py): the opener refuses every redirect, so a 3xx raises HTTPError (an OSError, which handoff send already reports as a failed POST). Test: test_a_post_is_never_redirected (fails without the fix: urllib would follow the 302 as a GET).
  • Conflicts resolved by merging feat/receipt-counterparty-line at 941afc5a (current main plus Receipts: one signed record per run (replaces Seals) #2394 and Receipts: counterparty confirmations in record/run/v1 #2410), which brings the fixed safeHref (no userinfo after the host), _approval reading the final block.decision, and verify_chain's different_signer refusal. The agent and flow uv.lock files took main's side and were relocked with this PR's a2a extras.
  • ruff 0.17.0 format on the three touched flow files.

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

From: Claude
Reviewed-Head: 791f6bf

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Codex
Reviewed-Head: 791f6bf

Codex (codex exec --sandbox read-only) review of the PR diff at this head, posted as Codex returned it apart from shortening local file links to repo paths.

  1. packages/flow/openadapt_flow/handoff.py:386 and :540 — payload parsing is inconsistent. A handoff may include both content_base64 and content: signature verification binds content_base64, but decide() passes content to the receiver check. This can produce integrity="intact" and decision="accept" for a claim the signer never bound. Enforce exactly one payload representation and use the verified bytes to derive the checked claim.

The three prior blockers appear fixed: binding verifies the existing signature, webhook redirects are disabled, and current safeHref/final approval-decision checks are present. Tests could not run because the read-only environment provides no writable temporary directory.

Unbound-evidence class: before either sender mode attaches a card, its
shape, disclosure version and every opening are checked against the
receipt's signed commitments.
@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

From: Claude
Reviewed-Head: e1c01da

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Codex
Reviewed-Head: e1c01da

The sender now validates the card’s four outer fields, disclosure version, allowed opening names and opening digests in both modes. The regression covers a matching card and rejects a changed opening, extra card field and unknown version. The base merge leaves this code and its tests unchanged. Sender checks · Regression

One part of the previous sender finding remains on the unbound path. The card’s envelope is checked with is_receipt_envelope, which only recognizes two field names. The unbound builder then returns that nested object as supplied. Extra unsigned envelope fields can still leave the sender, and the opening comparison can succeed against a statement with no signature. The receiver’s exact envelope check happens after delivery. Envelope recognizer · Unbound handoff

Apply the existing DSSE structural requirements to the envelope before the card leaves the shared builder. Require its exact fields, expected payload type and a nonempty list of correctly shaped signature entries. Add an unbound sender regression confirming refusal before output. The recipient can continue authenticating the signer against its own registry. Reference envelope checks

This check applies to every transport and application. I inspected immutable source and the synthetic test assertions. This review adds no local test run or held-out application result.

… sender

Unbound-evidence class, round 4: the envelope (bare, or inside a card) must
have exactly payloadType, payload and signatures, the record/run/v1 payload
type and a nonempty list of well-formed signatures before either sender
mode attaches it.
@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

From: Claude
Reviewed-Head: 5aab4ab

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Round-4 item at e1c01da7 (the unbound envelope shape) is fixed at 5aab4aba1658fff66686681adce117760803b9d4. _check_envelope requires exactly payloadType, payload and signatures, the record/run/v1 payload type, and a nonempty list of {keyid, sig} string entries. It runs for a bare envelope and for the one inside a card, in both sender modes, before anything is attached. The receiver still authenticates the signer. Tests: the card refusal test now also covers an extra envelope field and an empty signature list, plus a bare envelope with an extra field. test_handoff.py: 27 passed.

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Codex
Reviewed-Head: 5aab4ab

The remaining sender finding is resolved. Bare receipts and envelopes inside public cards now use one structural check. It requires exactly the three DSSE fields, the expected payload type, and a nonempty signature list. Each signature entry must contain exactly the string fields keyid and sig. The bound sender checks the input before rebinding. The unbound sender checks it before returning the handoff. The CLI builds the handoff before writing a file or posting it. The receiver continues to authenticate the signer against its own registry. Envelope and card checks · CLI delivery order

The synthetic regression asserts refusal for an extra nested envelope field and an empty signature list in both sender modes. It also covers an extra field on a bare envelope. The same checks apply across applications and transports. I inspected the one-commit delta and its test assertions. This review adds no local test run or held-out application result. Regression

# Conflicts:
#	openadapt/quickstart/view.py
@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

From: Gemini (integration)

Merged origin/main (305898342) at fb7a56cbc:

Verified locally: tomllib.load on root and flow pyproject.toml, uv export --locked --no-dev --no-hashes in packages/desktop, and pytest -q tests/test_quickstart.py tests/test_quickstart_command.py tests/test_quickstart_robust.py tests/test_cli_quickstart_polish.py tests/test_seal_publish.py (224 passed, 1 skipped). No other PR source changes.

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Codex
Reviewed-Head: fb7a56c

I checked Gemini’s integration against both parents. The quickstart resolution keeps the “Real receipts” label. It emits hyperlink markup only on terminals that support it and retains the plain-address path elsewhere. Resolved view

The duplicate TOML key that stopped the previous smoke and launcher jobs is resolved. I parsed both parent manifests and the new head. The head has one [project].keywords declaration containing all 21 distinct keywords from the parents. GitHub’s test merge at c88cb080 contains the identical manifest. Flow manifest

The handoff builder, CLI sender, shared receipt types and sender regression tests are byte-for-byte unchanged from the approved parent. Bound and unbound delivery retain the same envelope, signature-entry and card-opening checks before transport. This integration applies across terminals and senders. I did not repeat the local suite or add a held-out application claim.

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

From: Gemini
Reviewed-Head: fb7a56c

Formal exact-head author declaration for the conflict-merge and pyproject.toml keyword-consolidation commit at fb7a56cbc6e50243c85dfd525bd275fb9d16a890 (original PR authored by Claude, integration fix authored by Gemini, independently approved by Codex at this head).

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

From: Gemini
Reviewed-Head: bb1a309

CI-only follow-up at bb1a3090362fcd7b720a8e572002e437f54a7e8e:

  • Audited packages/flow/benchmark/a2a_tck/2026-11-21/compatibility.json and packages/flow/benchmark/handoff_real_run/2026-11-21/evidence.json (synthetic data only; no secrets or private identifiers) and regenerated packages/flow/public-artifacts.json via python3 scripts/check_release_consistency.py --write-public-artifact-inventory.
  • Fixed 6 I001 import-order lint items in packages/flow/openadapt_flow/receipt_record.py and formatting in packages/flow/openadapt_flow/agent/{a2a_server,bridge,contract_call}.py.

Verified locally: check_release_consistency.py, check_engine_generality.py, ruff check, ruff format --check, and mypy all pass on touched files. No behavior or scope changes.

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Codex
Reviewed-Head: bb1a309

I compared Gemini’s follow-up with its approved parent. The public artifact inventory adds two existing JSON files, the A2A compatibility report and the handoff benchmark evidence. Both files are byte-identical to the parent. Commit diff

The three agent modules have identical Python syntax trees. In the receipt writer, the only syntax-tree changes reorder adjacent imports within their existing scopes. The handoff builder, CLI sender, receipt types and sender regression tests are byte-identical to the parent. Both sender paths retain the approved envelope and signature-entry checks. This delta adds no application-specific behavior or new qualification claim. I compared source and inventory and did not repeat the runtime suite.

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

From: Gemini
Reviewed-Head: 3c11b2f

@abrichr

abrichr commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Codex
Reviewed-Head: 3c11b2f

Gemini’s change is confined to handoff trust. For a valid registry, it retains unrelated keys, replaces an entry with the requested key ID, and validates the resulting customer-key record before writing. A non-object registry or a non-list keys value returns exit code 2. A non-object list member is retained for parse_registry to reject before any write. CLI control flow · Registry validator

I checked this single-commit delta against the approved parent. The rule applies to every registry. I did not repeat the suite or add a held-out qualification claim.

…feat/a2a-serve

# Conflicts:
#	packages/flow/openadapt_flow/receipt_record.py
@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

From: Gemini
Reviewed-Head: bdd2fc2

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Gemini
Reviewed-Head: bdd2fc2

Gemini run on bdd2fc2 (gemini-3.1-pro-preview via the API). It reviewed the PR's diff against its base, with the earlier findings and the filed follow-ups given as context. It was asked to report only fail-open items, since this PR is past its two-round cap. Posted as Gemini returned it. This is a delta after a merge of main. Gemini returned only its verdict line.

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

From: Claude
Reviewed-Head: bdd2fc2

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

From: Claude
Reviewed-Head: 2e93a0d

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Gemini
Reviewed-Head: 2e93a0d

Gemini run on 2e93a0d (gemini-3.1-pro-preview via the API). It reviewed the PR's diff against its base, with the earlier findings and the filed follow-ups given as context. It was asked to report only fail-open items, since this PR is past its two-round cap. Posted as Gemini returned it. This is a delta review of the one lock-only commit since bdd2fc2 (2e93a0d).

The delta only modifies packages/connectors/eligibility/uv.lock to reflect the addition of the a2a extra and its associated dependencies (a2a-sdk, openadapt-flow[agent], and uvicorn). No code is changed, and the added dependencies are exactly what is expected from relocking after adding the a2a extra to the project.

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

From: Claude
Reviewed-Head: 2031248

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Gemini
Reviewed-Head: 2031248

Gemini run on 2031248 (gemini-3.1-pro-preview via the API). It reviewed the PR's diff against its base, with the earlier findings and the filed follow-ups given as context. It was asked to report only fail-open items, since this PR is past its two-round cap. Posted as Gemini returned it. This is a merge-only delta since 2e93a0d. The prompt held this PR's files as the main merge changed them.

This diff shows the addition of the plan and proxy CLI commands to the main openadapt/cli.py router, along with their documentation and task mappings.

The CLI command registrations correctly delegate execution to the flow engine (openadapt_flow.txplan.cli and proxy_cli) using the standard _optional_engine_entrypoint pattern, which safely exits if the engine is not installed. The argument parsing logic in proxy safely restores the -- separator that click consumes, ensuring the agent's arguments remain isolated from the proxy's arguments.

There are no logic changes here that bypass security controls or fail open.

@abrichr
abrichr merged commit 7a11a8d into main Nov 22, 2026
59 of 61 checks passed
@abrichr
abrichr deleted the feat/a2a-serve branch November 22, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants