9 Commits

Author SHA1 Message Date
815bff5d67 docs: big video-rich README, Vercel landing site, drop legacy naming
- README.md: expanded showcase — hero + badges, all six demo videos as
  clickable poster thumbnails, live-site + repo links, architecture, full API
  reference, CPMM/x402/security, ASP (A2MCP) registration steps.
- site/: static landing page (hero, embedded videos, features) deployed to
  Vercel → https://predikt-oracle.vercel.app
- submission/demo-video/posters/: poster frames for each video.
- Removed the upstream library naming from CPMM comments, the manifest, the
  ASP README, and the X post — described generically as a constant-product CPMM.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 03:32:21 +03:00
04a039abeb docs: detailed submission README + generated demo video
- asp/README.md: comprehensive submission-grade README (architecture diagram,
  full feature tour, API reference, interfaces, CPMM/x402/security sections,
  testing, deployment, project layout).
- submission/make-demo.mjs: reproducible demo-video generator — boots the real
  server, runs the genuine API flow capturing live responses, screenshots the
  live dashboard via headless Chrome, renders slides, encodes with ffmpeg.
- submission/demo-video/predikt-oracle-demo.mp4: ~57s 1440p demo (every value
  on screen is real product output), under the 90s hackathon limit.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 02:33:24 +03:00
3cc4fd4caf fix: adversarial review of expansion — SSRF guard, webhook scoping, sweeper concurrency (294 tests)
Second adversarial review pass, this time over the expansion modules
(comments, webhooks, search, resolution, SDK). 9 findings, all verified real,
zero false positives:

- CRITICAL SSRF: the webhook dispatcher POSTed to any user-supplied URL,
  letting an authed caller hit cloud-metadata (169.254.169.254) and internal
  hosts, and use delivery outcome as a port-scan side channel. Added
  src/webhooks/ssrf.ts (blocks loopback/link-local/RFC-1918/metadata for IPv4,
  IPv6, and mapped forms) wired into webhook creation; residual DNS-rebinding
  risk documented.
- HIGH: new webhooks received events that predated their subscription (global
  high-water mark). Added per-subscription start_event_id with migration.
- HIGH: ResolutionSweeper had no concurrent-tick guard → duplicate AI calls
  when the provider is slow. Added the running-flag guard.
- MEDIUM: webhook-create rate limit (10/hr), atomic dispatcher writes,
  resolution force-flag body parsing without Content-Type; LOW: x402 signer
  browser base64 via TextEncoder.

tsc clean; 288 -> 294 tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 01:23:10 +03:00
ff743ad6a1 feat: expansion round — comments, webhooks, search, auto-resolution, SDK (288 tests)
Salvaged and completed the six-module expansion after the Fable-limit
interruption. Reverted the broken in-place dashboard-v2 edits to the working
v1; kept and finished the backend modules:

- comments: market comments with immutable skin-in-the-game position disclosure
- webhooks: trigger-captured events + signed (HMAC) retried deliveries;
  fixed a real dispatcher bug (failure_count set from a stale batch read
  instead of atomic increment) so 20-consecutive-failure auto-deactivation works
- search: FTS5 search with LIKE fallback, categories, trending-by-window
- auto-resolution: sweeper closes overdue markets + stores AI suggestions;
  routes apply decisive suggestions under a 0.75 confidence gate
- sdk: typed client + x402 EIP-3009 signer (viem), full round-trip tested

Wired all four route groups into app.ts, started the dispatcher + sweeper as
background workers in index.ts (graceful shutdown), and advertised the new
endpoints in the manifest. Typecheck clean; 219 -> 288 tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15 00:34:33 +03:00
b343eac2bb fix: adversarial review round — CANCEL fee-mint, XFF rate-limit bypass, leaderboard O(N) SQL, x402 nonce burn ordering, async static serving (219 tests) 2026-07-14 20:36:35 +03:00
ccd842c6b0 docs: README covers full API surface (multi-outcome, limit orders, x402, MCP, bot) 2026-07-14 20:12:29 +03:00
0df11b897c feat: multi-outcome markets, limit orders, deploy packaging, CI, seed + submission assets (201 tests) 2026-07-14 20:10:50 +03:00
0dfb9fa935 feat: x402 deposits, reputation/leaderboard, activity feed, MCP server, dashboard, trader bot (146 tests) 2026-07-14 19:34:35 +03:00
7fb7d5cd04 feat: predikt-oracle ASP baseline — CPMM engine, market API, AI tools (59 tests) 2026-07-14 19:12:18 +03:00