Repository navigation
Receipts: counterparty confirmations in record/run/v1 - #2410
Conversation
…kest approver counts
Independent adversarial review: REQUEST CHANGESFrom: Grok First review of this PR. Author is GitHub A declined item can still be recorded as approved
Flow's own model allows a declined item to keep earlier approved answers (
The same overclaim applies to What else I checked
Review only; I am not merging. |
…ceipt-counterparty-line
…ide the file digest
Independent adversarial review: REQUEST CHANGESFrom: Grok Re-review after my REQUEST CHANGES at Unique commits since that head: a merge of current #2394 ( The blocking approval finding from A declined item can still be recorded as approved
Flow's own model still allows a declined item to keep earlier approved answers ( Secondary, not independently blocking
Review only; I am not merging. |
…ceipt-counterparty-line
…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.
Independent adversarial review: REQUEST CHANGESFrom: Grok Re-review after my REQUEST CHANGES at The unique change since that head is a merge of current #2394 ( Review only; I am not merging. |
…ceipt-counterparty-line
Independent adversarial review: REQUEST CHANGESFrom: Grok Re-review after my REQUEST CHANGES at The only unique delta since that head is the merge of #2394 at That does not clear the previous findings:
The subject list, JCS digest, and confirmation schema were already reviewed at the previous head and are unchanged here. Still draft; I am not merging. |
…ation, with shared chain vectors
…ceipt-counterparty-line
Independent adversarial review: REQUEST CHANGESFrom: Grok Re-review after my REQUEST CHANGES at The two previous findings are still unfixed:
New in this delta: I am not merging. |
…ceipt-counterparty-line
Independent adversarial review: REQUEST CHANGESFrom: Grok Delta re-review of my REQUEST CHANGES at The unique delta is that same The inherited findings are unchanged: |
…ceipt-counterparty-line
…follows the final decision verify_chain refuses a follow-up signed by any key that did not sign the original (new refusal different_signer, with a shared vector). _approval reads the item's final decision: earlier approved answers never make a declined or unanswered item read as approved by a person or agent. Merges #2394's safeHref fix.
|
Grok: re-review request for the REQUEST CHANGES at What changed, blockers only:
Still a draft on |
Independent adversarial review: REQUEST CHANGESFrom: Codex The final item decision now gates approval attribution. The verifier checks every follow-up signature against the trusted registry, then requires every follow-up signer to have signed the original. The normal three-record chain and the earlier-approval/final-decline regression both passed on this head (2 tests). The viewer link correction from #2394 is present. The remaining blocker in this PR is the Flow approval writer. I reproduced both diagnostics directly on this head with the CI-pinned Mypy 2.3.0 and the package configuration.
The base’s receipt issuance, completeness and signer-label findings are tracked in the #2394 review. They are inherited here. The approval and chain rules are application-independent. The new regression covers final decisions after earlier approvals, and the shared chain fixtures cover changes of signer across updates. No held-out external application was exercised in this review. |
Independent adversarial review: REQUEST CHANGESFrom: Codex One of the two Flow mypy findings remains. The other finding is resolved. The annotations apply to every Flow report and introduce no application-specific behavior. The earlier synthetic approval-history and follow-up signer cases remain the scope of the runtime evidence. No held-out external application was exercised. The two inherited verification-route findings remain with #2394. |
Independent adversarial review: APPROVEFrom: Codex The last type-check finding is resolved in source. The final-decision check still requires an approved decision, and each follow-up still requires a nonempty signer set drawn from the original receipt’s signers. The signer validator and its regression tests are byte-identical to the previous reviewed head. Decision check · Signer check I verified the immutable source delta. The author reports that the statement diagnostic cleared in Flow mypy, with a separate Playwright import diagnostic in their environment. The exact-head hosted CI run was pending at review. This PR remains a draft stacked on #2394. Hosted CI |
|
From: Gemini |
Independent adversarial review: APPROVEFrom: Codex The sole change since the approved parent reorders the six import groups identified by the failed Flow lint job. All imports and aliases stay in their original scopes. The approval-decision check and the explicit I compared all six corrected groups and the Flow Ruff configuration with the previously checked stack commit. They match byte for byte. This source-only change adds no application rules or runtime evidence. Current-head CI is still pending. |
…eep __main__.py within ratchet
|
From: Claude |
fix(hooks): emit #2410-compliant StepResult fields in hooks receipt reports
…s receipt reports
This PR adds counterparty confirmations to
record/run/v1: evidence read from another party's system about a handoff. The founder approved the line type in openadapt-internal#211. It is stacked on #2394, so retarget it tomainafter #2394 merges.Draft, not for merge.
Schema
predicate.confirmations[]is optional, and it is left out when empty. A receipt without confirmations is byte-identical to one written before this change, and a test checks that.Each confirmation is closed:
kindcounterparty_confirmationfor_stepsystem_kindehr,payer_portal,bank,erp,crm,government_portal,email,otherread_methodportal_read_back,api,acknowledgment_messagestatesent,acknowledged,recorded_as_intended,recorded_differentlystrengthread_back,acknowledgment,nonediffering_countcommitments<system_kind>:cp-<16 hex>),observed_at, the optionalreason, and each observed field (<field_id>:<sha256>[:differs])Rules
sentconfirmation has strengthnone, and anacknowledgedone has strengthacknowledgment.recorded_*states need a portal or API read and strengthread_back.differing_countis at least 1 exactly when the state isrecorded_differently.senttakes any reason exceptconflicting_report.acknowledgedtakesambiguous_key,not_foundorno_answer_by_deadline.recorded_*states take onlyconflicting_report.Verifier and public cards
confirmation_lineslist, for example "Confirmed in the other party's system at ". These lines never merge with or upgrade thesigner_lines.independentonly for a portal or API read. Nothing in the handoff payload decides it.Vectors
9 new vectors:
sentwithno_answer_by_deadline), and an inconsistent one.Also: handoff payload and approval (openadapt-internal#270)
payloadsubject: a closed subject kind with asha256and a closedmedia_type, for the bytes handed to another party.verify_receipt(..., received=bytes)refusespayload_not_bound(the receipt names no payload) orpayload_mismatch(a different digest), and reportspayload_bound.predicate.approval: optional. It carriesmode(each_item,problems_only,not_gated),approver_kind(person,agent,none), and commitments toprincipal,scopeandapproved_at. It comes from Flow's item approval binding (APPROVAL_AND_VERIFICATION.md).payloadorapprovalyet. The handoff writer (feat/a2a-serve) fillspayload, and fillingapprovalfrom the report's item approvals is a follow-up.