Intelligence Platform
Independent commercial multi-tenant decision intelligence SaaS.
Core kernel is industry-independent.
First commercial vertical is TCG / trading-card market intelligence.
TCG Card Central is only a future external integration (optional reference-data provider and/or API customer). This repo does not use TCC’s stack, database, auth, hosting, email, or Stripe catalog.
Current phase
Phases 25–39 are complete in-repo. Staging hosting exists; live providers stay disabled. Phase 22 beta and Phase 23 production remain unauthorized. See docs/OPERATOR_RUNBOOK.md and docs/PHASE_39.md.
Local commands
See docs/PHASE_01.md, docs/PHASE_02.md, and docs/PHASE_03.md.
pnpm install
pnpm typecheck
pnpm lint
pnpm test
pnpm test:isolation
pnpm test:integration
pnpm build
pnpm dev:web
pnpm dev:api
pnpm dev:worker
TypeScript, pnpm/Turborepo, Next.js, Hono, PostgreSQL (Supabase hosted; previously Neon), Drizzle, Better Auth, BullMQ, local Docker Redis. Later: R2, Resend, Stripe, Vercel, Railway.
Documentation
Status
| Work | Status |
|---|
| Architecture docs | Phase 00 complete |
| Application shell | Phase 01 complete |
| Database / auth / tenant | Phase 02 complete locally; Neon cloud not provisioned |
| RLS / RBAC / isolation | Phase 03 complete locally; proven in CI Postgres |
| Billing / API keys | Phase 04 complete locally; local simulation default; Stripe Checkout deferred |
| Queue / ingest | Phase 05 complete locally; Docker Redis + Postgres; no cloud Redis |
| Intelligence kernel | Phase 06 complete locally; generic entities/observations/signals; no TCG columns on kernel tables |
| TCG identity / TCC sandbox | Phase 07 complete locally; fixture provider only; no real TCC calls |
| TCG market history | Phase 08 complete locally; fixture providers only; no real TCC/TCGplayer/eBay calls |
| Source intelligence ingest | Phase 09 complete locally; YouTube/Reddit fixtures only; no scrape |
| Entity resolution | Phase 10 complete locally; language/variant-safe; no silent binds |
| Creator call extraction | Phase 11 complete locally; fixture extractor only; no authority score |
| Creator authority | Phase 12 complete locally; Wilson/Bayes shrinkage; no buy/sell |
| Market analytics / indices | Phase 13 complete locally; language-separated; no recommendations |
| Opportunity scoring | Phase 14 complete locally; four scores + explained recommendation; uncalibrated v1 |
| Prediction engine | Phase 15 complete locally; shadow statistical baseline; immutable outcomes |
| Commercial API / webhooks | Phase 16 complete locally; scoped /v1 contracts; SSRF-safe webhooks; no deploy |
| CRM / email / billing lifecycle | Phase 17 complete locally; local/fixture email; TBD prices; no Resend/Stripe live |
| Customer intelligence dashboard | Phase 18 complete locally; shadow predictions remain hidden |
| Content / SEO intelligence | Phase 19 complete locally; evidence packages + local generators; no live LLM |
| Platform admin | Phase 20 complete locally; platform_admins grant; creator exclude keeps history |