feat(spec): add environment.price_integrity constraint proposal - #32
feat(spec): add environment.price_integrity constraint proposal#32imokokok wants to merge 2 commits into
Conversation
Signed-off-by: YuTao Peng <contact@oracleinsight.xyz>
|
Verification note, Headless Oracle — on the reference implementation named in this PR. We fetched Insight's published attestation surface (the RFC 8615 key registry and sample endpoint) and independently verified OracleSafetyCheck v2 receipts: EIP-712 typed-data recovery against the published attester address, in our own implementation, not the issuer's verify endpoint, with tamper controls driven red. Schema as published: 26 signed fields, 600-second validity to the second, quorum and independence fields present in the signed payload. First verified 20 August 2026; re-run today against the live surface, same result. This verifies the artifact's signature, schema, and freshness. The attested values — provider participation, independence assessment — are the issuer's claims, which the receipt makes attributable and refutable; that is its job. Verification is not endorsement: the environment.* family treats every conforming implementation identically, and a reference-implementation listing grants no exclusivity, exactly as this PR's own text states. One structural note in support of the proposal: price integrity and market state are different predicates — a feed can be sound while a venue is halted, and a venue open on a depegged feed — and the constraint as drafted composes conjunctively and fail-closed with its siblings, consistent with the family-composition discipline already public in PR #9. That is the right shape for a sibling type. Michael Msebenzi — author, environment.market_state (PR #9); co-author, draft-borthwick-msebenzi-environment-state |
Per Douglas's review finding: Appendix C.2 is the family-wide rule list, so Rule 1 must be portable across environment.* members rather than price-integrity-specific. Type-specific fail-closed details already live in sections 2.1, 4.3 and Appendix B. Signed-off-by: YuTao Peng <contact@oracleinsight.xyz>
|
Applied Douglas's review finding: generalised Appendix C.2 Rule 1 to family-wide scope (a verifier MUST treat a missing, malformed, unverifiable, stale, expired, or negative |
Summary
This RFC proposes
environment.price_integrityas a sibling constraint in theenvironment.*namespace for autonomous mode (L3) execution.The constraint requires a verifier to obtain and independently validate a
short-lived, signed oracle attestation before accepting checkout or payment
fulfillment. It composes with
environment.market_statefrom #9 andenvironment.wallet_statefrom #22. All present environment constraints areconjunctive and fail-closed.
Motivation
A valid Verifiable Intent credential proves that an agent is authorized to act
within a delegated scope. It does not prove that the price data used at L3
execution is fresh, sufficiently corroborated, or free from an observable
integrity failure.
environment.market_stateanswers whether the venue is open or halted.environment.price_integrityaddresses the separate question of whether theprice data used for the action is trustworthy.
Alternatives considered:
mandate.payment.amount_rangewould constrain the final amount butwould not authenticate a price observation or enforce its freshness.
with the other
environment.*constraints.issuers, trust roots, TTLs, and failure domains.
Reference implementation
Insight provides the reference implementation:
OracleSafetyCheckv2 with EIP-712 signed fields;/.well-known/oracle-keys.jsonfor key and schema discovery;/api/v1/safety/attestation/verifyfor verification;/api/v1/safety/attestation/samplefor a live signed sample.The implementation can be independently verified from the published schema and
key document. It is listed as a reference implementation, not an exclusive
provider or endorsement.
SDK and test status
This PR adds the normative specification file only, following the standalone
specification pattern used by PR #9 and PR #22. SDK model and conformance-vector
updates are follow-up work after the working group confirms the wire shape.
The reference implementation has independent tests covering signature recovery,
UID binding, freshness, asset binding, verdict handling, and fail-closed
composition.
Scope
The core specification is protocol-agnostic and does not require AP2, ACP, MCP,
or any other specific agent transport.
Files changed
spec/environment-price-integrity.md— normative constraint proposal,validation algorithm, security considerations, test vectors, failure modes,
and implementation status.