# Test instructions

## Automated

```sh
node --experimental-transform-types --test tests/core.test.mjs
node node_modules/typescript/bin/tsc --noEmit
node /root/.codex/plugins/cache/openai-curated-remote/sites/0.1.71/scripts/build-site.mjs
node --test --test-concurrency=1 tests/integration.test.mjs
```

The integration suite tests the built Worker with isolated ephemeral Miniflare D1, generated migrations and test-only credentials. It never purchases anything. Simulated identity headers represent the production dispatch trust boundary and do not prove dispatch security.

## Manual demo

1. Search AirPods Pro on the homepage. Select USB-C.
2. Confirm simulated Retailer A $219, B $229, C $239, with unknown tax.
3. Test a retailer link. The signed redirect records a click and opens a labelled simulated retailer. No checkout or purchase occurs.
4. Sign in at /admin using the authorized owner account. View demo activity, then confirm live activity excludes it.
5. Reconciliation: simulate a commission, repeat it, then simulate a reversal. Duplicate import updates one event.
6. Receipt entries are simulated while DEMO_MODE=true. No transfer of money occurs.
7. Contact requests appear in the protected support queue and can be closed or deleted.

## Connector

Use /openapi.json. Initialize /api/mcp, list tools, search candidate products, compare a selected product_id and generate a signed link for a compared offer. GET /api/mcp deliberately returns 405 because no standalone SSE stream is offered.

## Pending external checks

Credentialed Sovrn comparison, Link Check, promotions, reports and real attribution. Muse onboarding and in-Muse invocation. The desktop homepage, model selection, comparison and link-generation UI were checked in the browser. Screenshots are included. The browser did not expose WebMCP modelContext, so WebMCP runtime validation remains unavailable. The public demo is intended for review; admin access remains owner-restricted. No OAuth flow is implemented or claimed.
