| 01-overview.md |
Privacy‑first; realtime via Convex; Postgres history; OpenRouter cost trusted; no prompts/outputs |
app/api/ingest/route.ts (no prompts required; cost logic), convex/*, prisma/schema.prisma, lib/pricing.ts |
✅ |
Keep aligned as features evolve |
| 02-quickstart.md |
Track with RunForge.track; envs; streaming tip; sample data |
sdk-ts/index.ts, sdk-py/runforge.py, examples/* |
✅ |
Generator script optional |
| 03-architecture.md |
Dual‑store; ingestion & sync; mermaid diagrams; idempotency by id |
convex/runs.ts, app/api/internal/pg-sync/route.ts |
✅ |
N/A |
| 04-data-model.md |
Run fields include costUSD, latency, status, promptHash/preview |
prisma/schema.prisma |
✅ |
Includes costSource, costEstimated |
| 05-apis.md |
Ingest schema with costSource/Estimated; metrics ranges and shape; badge & sync |
app/api/ingest/route.ts, app/api/metrics/route.ts, app/api/badge/experiment/[id]/route.ts, app/api/internal/pg-sync/route.ts |
✅ |
N/A |
| 08-convex-realtime.md |
Tables/indices; functions; corrected fields list |
convex/schema.ts, convex/runs.ts, convex/kpis.ts, convex/runsActions.ts |
✅ |
N/A |
| 09-sdks-typescript.md |
RunForge.track docs; OpenRouter‑first; streaming tip |
sdk-ts/index.ts, sdk-ts/autoExtractor.ts |
✅ |
N/A |
| 10-sdks-python.md |
RunForge.track docs; OpenRouter‑first |
sdk-py/runforge.py |
✅ |
N/A |
| 11-configuration-env.md |
Env vars list |
lib/auth.ts, app/api/*, lib/crypto.ts |
✅ |
N/A |
| 12-security-privacy.md |
Never store prompts/outputs; hash optional; AES‑GCM BYOK |
app/api/ingest/route.ts (hashPrompt), lib/crypto.ts |
✅ |
Note SHA‑256 (no HMAC) now; TODO keyed hashing |
| 13-pricing-entitlements.md |
Plans + entitlements mirror |
convex/schema.ts |
⚠️ |
Entitlements not enforced in OSS template |
| 15-observability-alerts.md |
Metrics ranges; alerts scaffolding |
app/api/metrics/route.ts, convex/alerts.ts |
⚠️ |
Alerts not implemented yet; keep TODO |
| api/ingest.md |
Auth, schema, cost recompute |
app/api/ingest/route.ts, lib/pricing.ts |
✅ |
N/A |
| api/metrics.md |
Ranges, response |
app/api/metrics/route.ts |
✅ |
N/A |
| api/projects.md |
Projects & keys creation |
app/api/projects/* |
✅ |
N/A |