Skip to content

AI commerce experience and payment hardening - #1

Merged
Dekantiok merged 4 commits into
mainfrom
ai-commerce-phases
Nov 14, 2026
Merged

Dekantiok merged 4 commits into
mainfrom
ai-commerce-phases

Conversation

@Dekantiok

Copy link
Copy Markdown
Owner

Phase 1 audit + Phase 2/3 implementation

AI commerce experience

  • Marketplace offers & negotiation: Offer model + API (create/counter/accept/reject/withdraw) with buyer ceilings, seller UI on /market/mine/, budget-style offer form on listings, accepted offers prefill the escrow at the agreed price.
  • Co-pilot tools: search with ranked results + reasons, compare_listings, create_offer, counter_offer (ceiling enforced server-side), accept/reject_offer, get_offer_status, richer get_my_trade_status (escrow + shipment + verification).
  • UI: product/comparison/offer/trade-status cards, human execution labels (read/prepare/action), homepage AI section, dashboard per-owner agent authorization button.

Security hardening

  • Budget contract v2: per-owner agent authorization (set_my_agent/get_owner_agent/is_revoked) + on-chain intent-id idempotency; state-preserving upgrade deployed (tx 2UteeXb3…).
  • Django payments: proposal expiry (15 min), stale processing recovery, owned-intent execution, on-chain intent_id = PaymentIntent id (live proof tx DfJCDKu8…).
  • TEE verifier v2: signs and validates per-event timestamps (status@ts), rejects missing/out-of-order/future timestamps; deployed to OutLayer (sha 1f4210…); verified locally on the exact component artifact with wasmtime (valid → true, tampered ts → signature invalid).

Tests

169 Django · 72 escrow Rust · 19 budget Rust · 24 verifier Rust · CI green.

@Dekantiok
Dekantiok merged commit 4c74308 into main Nov 14, 2026
6 checks passed
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.

1 participant