# Maweng Track A web demo — agent-readable index > **DEMO · PAPER ONLY · NO FUNDS.** Hosted at https://maweng-demo.binasta.workers.dev. Not a release, not submitted, not live. > No account, wallet, order, transfer, signing, or credential exists. > Paper value is excluded from TOTAL CAPITAL. Worker CORS is now live for the three public routes (source commit `c9eab90`, separate Worker task; observed live at `2026-11-29T16:16Z`). A logged-out Chrome direct-mode page loaded catalog and prices from the Worker and POSTed the synthetic paper fixture to the real verifier successfully. This demo did not edit or deploy the Worker. ## What this is A standalone, mobile-first static demo for the DevSpot working-demo-link gap. It has two isolated modes: **real public data** (default) and **Rehearse with fixed synthetic fixture** (24/7, no network, clearly not a live quote). It loads the real public TrueMarkets catalog and quote from the deployed Worker when in public mode, creates a local simulated $250 paper fill, shows a core-compatible paper certificate, and can submit only that paper envelope to the public receipt verifier. Fixture mode uses the committed `fixtures/paper-receipt.json` data and never calls the market or verifier. Plain HTML/CSS/ES modules; no npm dependencies; no Worker/core/app/schema edits. ## Working local path ```bash node apps/track-a-web-demo/serve.mjs # http://127.0.0.1:4173/ default real public mode # http://127.0.0.1:4173/?mode=fixture fixed synthetic fixture, no network ``` The static demo is hosted at https://maweng-demo.binasta.workers.dev. Scoped Worker CORS for catalog, prices, and paper verify is live; root, fixture mode, agent index and a headless fixture render passed production smoke. ## Judge checklist (ticks from real state) 1. Public catalog loaded — curated SGOV/BILON metadata from `GET /v1/wealth/catalog?asset_class=stock`. In fixture mode this becomes **Synthetic fixture loaded** with no network. 2. Paper cash loaded — local fake `$250.00` in the active mode. 3. Fresh quote reviewed — public quote from `GET /v1/wealth/prices?symbols=SGOV,BILON`, within 15 minutes. In fixture mode this becomes **Synthetic fixture reviewed** from the fixed committed fixture (no freshness claim). 4. Local paper fill created — browser-only integer math, no order/transfer. 5. Certificate opened and locally verified — WebCrypto SHA-256 matches the core canonical field order. If the public quote is stale for much of the hour, choose **Rehearse with fixed synthetic fixture** in the Data mode panel (or open `?mode=fixture`). It is available 24/7 with no network, says SYNTHETIC FIXTURE / NOT A LIVE QUOTE on every relevant surface, and disables public verification. Public and fixture paper states use separate localStorage keys and never mix. Default remains real public data. ## Endpoint → source map | Surface | Route | Source | |---|---|---| | Catalog (GET) | `/v1/wealth/catalog?asset_class=stock` | `tools/ai-proxy-worker/src/index.ts` `handleWealthCatalog`; `src/tm.ts` `tmCatalogAssets` | | Public quote (GET) | `/v1/wealth/prices?symbols=SGOV,BILON` | `src/index.ts` `handleWealthPrices`; `src/tm.ts` `tmPrices` | | Paper receipt verify (POST, paper only) | `/v1/tm/receipts/verify` | `tools/ai-proxy-worker/src/receipt-verify.ts` | | Certificate canonical hash | local JS mirror | `packages/core/src/plugins/truemarkets/certificate.ts` `tmCertificateCanonicalJson` / `tmCertificateHash` | | Curated Treasury metadata | local constant | `packages/core/src/plugins/truemarkets/market.ts` `TM_CURATED` | No other route is allowed. The browser code contains no order, quote, transfer, user, portfolio, ramp, cancel, execute, signing, or wallet call. The only POST is the paper verifier. **Fixture mode makes no HTTP request at all**: the quote and certificate source are the committed fixture. ## Fixed synthetic fixture `fixtures/paper-receipt.json` is a fixed synthetic paper envelope: - `mode: "paper"`, `routeReason: "paper_local_simulation"`, null `orderId` / `txHash` - certificate `version: 1`, `id: tmcert:8361fb9bf438d4f1` - SHA-256 `8361fb9bf438d4f15a180c58080ded2864090deded44f802c0ecf742ee25ed9c` - generated by core `tmCertificateHash`; browser test recomputes and compares it. - also the source of the **synthetic fixture rehearsal** quote: fixed SGOV, $100.0000, fixed observation time, chain `robinhood`, venue `defi`. The rehearsal fill uses this fixed quote, no network, and a fixture-specific certificate disclaimer. Public mode rejects the synthetic quote; only explicit fixture mode accepts it. ```bash curl -sS -X POST "https://maweng-ai-proxy.binasta.workers.dev/v1/tm/receipts/verify" \ -H "content-type: application/json" \ --data-binary @apps/track-a-web-demo/fixtures/paper-receipt.json ``` Observed verdict: `demo`; observed reasons: `demo_receipt_not_live`, `hash_verified`, `receipt_id_verified`, `fee_consistent`, `fill_consistent`, `consensus_not_supplied`, `no_on_chain_tx`. `requestCode` is generated per request. A `demo` verdict is not live execution. ## Verification commands ```bash node --test apps/track-a-web-demo/test/*.test.mjs node apps/track-a-web-demo/serve.mjs ``` Test coverage: quote freshness, 20 bps fee/notional math, no-quote/stale disabled behavior, fixture-mode synthetic quote rejection in public mode, fixture fill/certificate/local check, separate public/fixture storage keys, certificate simulation labels, core hash match, URL allowlist (no arbitrary endpoints), response-shape validation, fixed curl, accessibility/policy markers, and no account/order/transfer/signing routes. **34 tests pass.** ## Truth boundaries and known limits - **CORS is live but scoped:** the Worker sends wildcard `Access-Control-Allow-Origin` for exactly catalog, prices, and paper verify, with no credentials header. A logged-out Chrome direct fetch succeeded; order, transfer, account, org, and admin routes remain non-CORS. The demo does not bypass a blocked fetch. The local relay is an optional local review path; the hosted static demo uses direct Worker mode. - **Quote shape:** `/v1/wealth/catalog` can return `price_usd_micros: null`; the demo uses only `/v1/wealth/prices` for quotes and never infers a price. `BILON` was absent from the observed 2-symbol price response even though it was in the catalog. - **Freshness:** public quotes are hourly; a quote older than 15 minutes is marked stale and the fill is disabled. At `15:22Z` the `15:00Z` quote was already stale, so the browser correctly disabled the fill. A missing quote also disables it. A fill is possible only in the first 15 minutes after a public observation. - **Fee:** 20 bps is a labeled paper estimate from the existing Gateway fee schedule. Other legs stay unknown; no unknown fee is treated as zero. - **Capital:** TOTAL CAPITAL is "Not linked" in this demo. Paper value is never added. - **Two isolated modes:** default real public data; optional fixed synthetic fixture rehearsal. Fixture mode makes no network request, uses a separate localStorage key, labels everything SYNTHETIC FIXTURE / NOT A LIVE QUOTE, and disables public verification. It is not live evidence. - **Validation:** 34 local tests pass; Chrome 145 headless exercised the checklist, error/offline/no-quote states, a full paper flow against the real public catalog/quote and real public verifier at `16:12Z` (public observation `16:00Z`, `$97.8732`, fill `$50.00`, quantity `0.510865`, cash `$199.90`, `verdict: demo`), a fixture-mode 1→5 flow with zero API requests, state separation across mode switches, and a logged-out direct static-mode catalog/prices + verifier fetch after CORS went live. No runtime fallback exists. - **No live claim:** no order id, tx hash, wallet, account, transfer, signature, or funds. Not a release or submission. The public URL is https://maweng-demo.binasta.workers.dev; it is a paper-only static demo. ## Files `index.html`, `styles.css`, `js/app.mjs`, `js/api.mjs`, `js/paper.mjs`, `js/format.mjs`, `js/fixture.mjs`, `serve.mjs`, `fixtures/paper-receipt.json`, `test/*.test.mjs`, `README.md`, `llms.txt`, `llms-full.txt`.