Proposal: durable cA2A task submissions and safe retries
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- backend-api-design, distributed-systems, security
Hướng nghiên cứu
Start by reading the current authenticated-response profile and its stated limits on deduplication and restart recovery, then review the upstream A2A safe-retries discussion at a2aproject/A2A#1942. The proposal calls for a threat model, contract document, persistent ledger, and official A2A SDK integration test; first agree the profile scope and holder-proof binding with maintainers. Done means an approved design and tests covering duplicate requests, conflicting content, and crash uncertainty.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem statement
I'm a first-time contributor interested in cA2A's A2A integration. If a caller sends a delegated task but loses the response, it may not know whether the callee executed it. Retrying can invoke the handler again. The current authenticated-response profile explicitly leaves request execution deduplication and restart recovery out of scope.
Proposed solution
I'd like to explore an opt-in durable-task profile that binds a stable intent ID and digest to the holder proof, then atomically stores the authorized intent and A2A Task ID before dispatch. A repeated valid request with the same principal and intent would return the existing Task ID without another handler invocation; the same ID with different content would be refused. A crash during execution would remain explicitly uncertain until reconciled, rather than being retried automatically.
I would start with a contract and threat-model document, then a small persistent ledger and an official A2A SDK integration test. I'm asking for scope and design feedback before coding. I'm also requesting a first-contributor vouch for @adityardesai if this is an appropriate area to work on. I used Codex to help draft this proposal, and will review and understand any change I submit.
Alternatives considered
- Reusing only record_id or the current response session: neither is a durable idempotency contract. The response session is intentionally one-use.
- Retrying every timed-out request: this can duplicate side effects.
- Defining a general A2A idempotency mechanism here: upstream A2A is discussing safe retries in a2aproject/A2A#1942. This proposal should align with that work.
Security/TEE impact
This changes the authorization boundary: the stable intent must be bound to the verified holder and all inputs the protected handler uses. The ledger must reserve atomically across workers and fail closed when unavailable. This proposal makes no new TEE or exactly-once external-effect claim.
Spec alignment
No trace-spec change is proposed in the first phase. A versioned cA2A extension/profile and holder-proof binding would need maintainer review. The official A2A Task and message-send semantics should remain intact.
- Ngôn ngữ chính
- Python
- Star
- 9
- Fork
- 14
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 36
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của agentrust-io/ca2a
-
transport.a2a_adapter / a2a_sdk / hardware_acceptance: unvalidated message/metadata types, empty parent_record_hash, unsafe float-to-int coercion, and duplicate JSON keysCó thể đã có người làm @drk-ram đã nhận 5 ngày trước. Đang mởneeds-review:MEDIUM
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
agentrust-io/ca2a#286 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
challenge / trace_binding: boolean ttl_seconds/now/iat bypasses, unvalidated challenge secret/expiry_str, and empty credential_id in emit_dagCó thể đã có người làm @drk-ram đã nhận 5 ngày trước. Đang mởneeds-review:MEDIUM
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
agentrust-io/ca2a#285 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ca2a_runtime.response: PendingResponse accepts boolean timeout, ResponseProducer.finish does not validate status/body invariants, and AuthenticatedPeerError drops error detailCó thể đã có người làm @drk-ram đã nhận 5 ngày trước. Đang mởneeds-review:MEDIUM
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 20/100
agentrust-io/ca2a#284 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ca2a_verify.tdx / ca2a_verify.sev_snp: verify_tdx_quote does not check quote.version == 4 and verify_tdx_quote / verify_sev_snp_report do not validate expected digest lengthsCó thể đã có người làm @drk-ram đã nhận 5 ngày trước. Đang mởneeds-review:MEDIUM
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
agentrust-io/ca2a#283 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
tee.tpm / ca2a_verify.tpm: TpmQuote.parse ignores trailing bytes, _chain_from_leaf reads AIA URLs without a byte cap, and verify_tpm_report does not check report.platformCó thể đã có người làm @drk-ram đã nhận 5 ngày trước. Đang mởneeds-review:MEDIUM
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
agentrust-io/ca2a#282 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của agentrust-io/ca2a
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
pytest-dev/pytest-html#1085 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
pollen-robotics/reachy_mini#1527 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Variadic arguments that aren't objects are passed as objects (stringWithFormat_ with %d / %f)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
A seed and its negative give the same run, so realizations of a negative seed repeat each otherĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày