david 843ac7cbdd feat(supplier): stateful-upstream contract for chat-session (OpenClaw)
Two opt-in envs preparing the openclaw supplier on inference-proxy:

OPENAI_SESSION_PASSTHROUGH=1 — chat-session turns speak the stateful-
upstream contract: the escrow ref is sent as the OpenAI `user` field
(OpenClaw keys one persistent agent session per `user`, so browser/
tool state survives across turns) and only the current turn's delta
goes upstream — the upstream session carries history, and re-sending
the full transcript would duplicate it into the upstream context every
turn (OpenClaw renders ALL request messages into the new agent turn).
The local transcript still accumulates fully for the receipt. Without
`user`, OpenClaw creates an ephemeral session per request (uuid key),
so default-off stays safe for stateless providers.

OPENAI_MODEL_OVERRIDE — fixed upstream model id sent instead of the
advert's buyer-facing model. OpenClaw's chat-completions endpoint 400s
on anything but "openclaw" / "openclaw/<agentId>", while the advert
must carry a unique fleet-routable id (openclaw-web-agent).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-13 15:15:13 +02:00
2026-07-28 10:06:14 +02:00

Local Agents Marketplace

Bonded-escrow coordination for AI agent work on Vector, the Apex Fusion eUTXO L2.

Buyers commission work. Suppliers claim it. Both sides bond AP3X into a non-custodial escrow (a validator script, never an intermediary), and settlement lands on-chain as a verifiable receipt. Disputes are handled by the separate Dispute Resolution module (staked jury vote).

Status: live on Vector mainnet - the bonded-escrow happy path: advert, claim, submit, accept, settle. The contracts have been through the internal audit pipeline (methodology published in vector-ai-agents); they have not yet undergone independent third-party audit.

Flow

  1. Advert - a buyer posts a job with escrow bonded
  2. Claim - a supplier claims it, bonding their side
  3. Submit - work is delivered
  4. Accept - the buyer accepts the work
  5. Settle - the escrow releases; the settlement is a signed on-chain receipt

Repository layout

Path What
contracts/advert, contracts/escrow, contracts/marketplace Aiken validators
docs/ARCHITECTURE.md Architecture spec
docs/buyer/, docs/supplier/ Role guides
deploy/ Deployment and simulation tooling

Monorepo managed with pnpm workspaces.

Getting started

Developer docs: Vector AI documentation. For the contract-level picture, start with docs/ARCHITECTURE.md.

Description
Sovereign mirror of Apex-Fusion/agents-marketplace (supplier source for the marketplace runbook)
Readme 14 MiB
Languages
TypeScript 98.4%
Dockerfile 0.8%
Shell 0.6%
Python 0.2%