Quantitative Commerce Terminal (QCT)

An AI-assisted pre-checkout governance and payment auditing agent

Every purchase has a price. See the whole equation.

Inspiration

Online purchases involve more than the advertised price. Hidden checkout fees, inflated reference prices, personalized pricing, recurring subscriptions, and environmental costs can influence purchasing decisions.

I built Quantitative Commerce Terminal (QCT) to explore how an AI-assisted agent could evaluate these factors before a buyer commits to a transaction.

The goal was to combine commodity arbitrage, counterfactual pricing audits, epistemic verification, and carbon-fiat governance into a single pre-checkout workflow.

what we used

QCT uses React, TypeScript, Vite, Tailwind CSS, and AG Grid for an interactive commerce intelligence dashboard, supported by a FastAPI and Pydantic backend.

The system integrates:

  • Playwright: Extracts storefront evidence and compares isolated browser sessions to identify potential pricing differences.
  • Channel3 API: Retrieves live product listings, merchant offers, and comparable pricing information.
  • Epistemic evaluation: Assesses available evidence surrounding advertised prices and marketing claims using deterministic checks, with an optional LLM integration.
  • Carbon-fiat ledger: Estimates material, manufacturing, and shipping emissions alongside financial costs.
  • Governance engine: Enforces buyer mandates such as spending limits, carbon caps, maximum fees, and subscription restrictions.
  • PayPal Orders v2 Sandbox: Demonstrates buyer-approved checkout with validation before payment capture.

The application produces PASS, BLOCK, or REVIEW decisions based on available evidence and purchasing constraints.

I used OpenAI Codex for implementation and debugging, alongside GitHub Copilot for code review and verification.

Challenges we ran into

One major challenge was translating a broad agentic commerce concept into a functional, testable application.

Real-world product identity matching, retailer-specific checkout extraction, and reliable carbon estimates require more evidence than a product listing alone can provide.

I also encountered practical integration challenges involving local development servers, API contracts

Agentic development introduced another challenge: context management and specification drift. As the project evolved across prompts and sessions, maintaining alignment between the original architecture and the implemented functionality required continuous review.

Accomplishments that we're proud of

  • Built a working interactive pre-checkout governance dashboard.
  • Integrated live Channel3 product discovery and market comparisons.
  • Implemented controlled counterfactual browser experiments using Playwright.
  • Developed deterministic buyer-mandate validation and carbon accounting.
  • Integrated real PayPal Sandbox order creation and buyer approval.
  • Verified that BLOCK and REVIEW decisions prevent unauthorized order creation.
  • Passed 90 backend automated tests and completed frontend build and browser testing.

The application distinguishes live evidence from controlled synthetic demonstrations.

What we learned

This project demonstrated both the potential and limitations of agentic software development.

Codex accelerated implementation, while Copilot provided an additional review perspective. However, working code and passing tests did not automatically mean the original research objectives had been achieved. I learned the importance of clear specifications, smaller implementation tasks, persistent documentation, context management, and human verification.

What's next for Quant Commerce

The current application is a proof of concept, with several opportunities for further development:

  • Incorporate historical pricing and promotional-claim verification.
  • Refine product-level carbon estimates and uncertainty reporting.
  • Integrate and evaluate live LLM-based claim assessment.
  • Explore merchant-authorized checkout and payment orchestration beyond the controlled Sandbox merchant.

Our longer-term vision is a buyer-centered commerce governance agent that makes purchasing decisions more transparent, evidence-based, and accountable.

QCT is a first step toward making autonomous commerce respect not just what buyers want to purchase, but the conditions under which they are willing to purchase it.

Built With

Share this project:

Updates

Submission history