Strategy marketplace & verifiable artifacts
「Paste a pretty equity curve」is the cheapest scam in this industry. Every listing in the TodoAI strategy marketplace carries a verifiable artifact: a content fingerprint plus the honest backtest record taken at publish time — and anyone (not just the publisher) can independently re-run the verification.
What is inside an artifact
An artifact (qk.artifact/1) contains:
- Content fingerprint — sha256 over a canonical JSON (recursively sorted keys) of the DSL and parameters. Key-order independent; any single-character change flips the fingerprint
- DSL source — the complete, executable rule set
- Backtest evidence — produced at publish time by the exact same domain core used by the engine and MCP: return, Sharpe, drawdown, win-rate, trade count, plus a buy-and-hold baseline (a strategy that loses to holding is shown losing, verbatim)
- Evidence window — the candle date range the backtest ran on
Verification verdicts (four)
Hand an artifact to POST /api/strategy/artifact/verify and get one of four verdicts:
| Verdict | Meaning |
|---|---|
VERIFIED | Same-window metrics reproduce bit for bit — deterministic engine, the numbers are real |
MISMATCH | Same window, different numbers — the evidence was doctored; this is the anti-photoshop verdict |
WINDOW_SHIFTED | New candles arrived and the window moved — both sets of numbers (old evidence and fresh re-run) are laid out for you |
INVALID | Fingerprint does not match content — the artifact was tampered with |
Publishing and cloning
- Publish: strategy list → "Publish to marketplace". The evidence is generated by re-running the backtest live at publish time — no cached screenshots
- One listing per fingerprint: same publisher + same fingerprint refreshes the evidence instead of duplicating the listing
- One-click clone: creates a STOPPED strategy from the snapshot. Cloning is not a risk-disclosure exemption — activating still passes the risk gate; clone counts are tallied server-side and shown as a quality signal
- Every listing carries its own DSL + evidence snapshot — deleting the original strategy does not break the listing
Listings without evidence
Listings without evidence say so explicitly rather than hiding it. The principle: numbers can be faked, fingerprints cannot. Treat an evidence-less listing as unproven.