Skip to content

Add persistent business compute seller demo#41

Merged
Abiorh001 merged 2 commits intomainfrom
business-compute-demo
Apr 6, 2026
Merged

Add persistent business compute seller demo#41
Abiorh001 merged 2 commits intomainfrom
business-compute-demo

Conversation

@Abiorh001
Copy link
Copy Markdown
Contributor

Summary

Adds a business-facing OmniClaw seller example under examples/business-compute/.

This is a real business web app surface, not a CLI seller surface. The business integrates OmniClaw directly through the seller backend APIs for x402 requirements and verification,
while buyers pay real x402 URLs through OmniClaw.

What this adds

  • paid compute products
  • paid compute session products with credits
  • paid research-paper PDF products
  • direct seller-side OmniClaw backend integration
  • signed post-payment PDF download URLs
  • Redis-backed persistence for business state
  • launcher script for the full local demo

Behavior now supported

  • unpaid access returns 402 Payment Required
  • buyer pays the business URL through OmniClaw
  • seller unlocks only after verification/settlement
  • compute returns real computed output
  • paper purchase returns a signed download_url
  • direct unauthenticated PDF download is blocked
  • compute session purchase returns:
    • session_id
    • submit_url
    • status_url
  • session jobs execute and decrement credits
  • sessions, job history, settlements, metrics, and event logs survive business app restarts

Files added

  • examples/business-compute/README.md
  • examples/business-compute/app.py
  • examples/business-compute/compute_job.py
  • examples/business-compute/papers/machine-commerce-settlement-design.pdf
  • examples/business-compute/papers/policy-controlled-agent-finance.pdf
  • scripts/start_business_compute_demo.sh

Verified

  • direct compute purchase
  • compute session purchase
  • session job execution
  • paid paper unlock
  • protected PDF download
  • Redis-backed restart persistence

Notes

This example is intentionally business-first:

  • the business owns the API surface
  • OmniClaw provides the payment and control layer underneath
  • seller behavior is not presented as another agent using omniclaw-cli

@Abiorh001 Abiorh001 requested a review from abiorh-claw April 6, 2026 08:53
@Abiorh001 Abiorh001 merged commit 3b2f1f8 into main Apr 6, 2026
5 checks passed
@Abiorh001 Abiorh001 deleted the business-compute-demo branch April 6, 2026 08:58
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.

2 participants