Files
0pt/CLAUDE.md
T

3.2 KiB

CLAUDE.md — 0pt (SIAX Technology AB)

Read this first. It is the contract for how this project is built. Then read docs/ in order.

What 0pt is

0pt — your data. A Nordic/European data-services platform (0pt.app) where customers:

  1. Compose a data job (markets, entity type, fields, enrichment, frequency, output) — or browse ready-made datasets.
  2. Pay a 50 % deposit to start; the remaining 50 % is held in escrow and released only on approval.
  3. Watch production live (sourcing → extraction → structuring → enrichment → QA).
  4. Validate the result with full freedom (table / map / schema / quality views) and deliver to any format/destination.

Owned by SIAX Technology AB. Feeds internal products too (Protosell/FiveCRM, VehIQ).

Build on existing code

A working repo already exists (~145 files): FastAPI orchestrator (src/orchestrator/main.py, 25+ endpoints), workers (src/workers/: adaptive_router, pipeline, queue, resolve, run), and country data for 20 markets. Reconcile with it, don't blindly replace. Where this documentation defines a target contract, migrate the existing code toward it. Flag conflicts instead of guessing.

How to work

  • Work in dependency order per docs/09-build-plan.md. Finish a phase to its acceptance criteria before the next.
  • Small, reviewable commits. Conventional Commits (feat:, fix:, docs:, chore:).
  • Frontend = Next.js App Router + TS + Tailwind + shadcn/ui on the SIAX Deploy Platform. Backend = FastAPI + workers on a VPS (long jobs).
  • Tech docs + code identifiers in English; all visible UI copy in Swedish.
  • Never hardcode secrets — use env (docs/08-infrastructure.md).

Documentation index

Doc Purpose
docs/01-product.md Vision, the three flows, order lifecycle, business model
docs/02-architecture.md System architecture, stack decisions (in/out), hosting
docs/03-data-model.md Postgres schema, provenance model, migrations
docs/04-api.md FastAPI contract (canonical endpoints)
docs/05-design-system.md Mono tokens, motion, visual system, signature
docs/06-data-engine.md Workers, pipeline, QA, fusion, sources.yaml
docs/07-dependencies.md Repos/libraries to import (+ explicit exclusions)
docs/08-infrastructure.md Hosting, docker-compose, env, security, CI/CD
docs/09-build-plan.md Phased milestones with acceptance criteria
docs/10-lakehouse-decision.md Pointer: Apache Iceberg = canonical SIAX lakehouse format (ADR-0030, n0d repo); 0pt = write-path owner
docs/11-lakehouse-write-plan.md 0pt's concrete lakehouse write to-do list, schema/event names for a future implementation session
docs/ICEBERG_WRITE_BOUNDARY.md Implementation record: dataset<->Iceberg-table mapping + source-rate-policy contracts, ST0RE lakehouse client, live-verified write path (real namespace/table/snapshot IDs), what's real vs. contract-only

Definition of done (every screen, before real data)

Mono chrome · correct scroll-reveal motion · representative placeholder content · loading + empty + error states · mobile layout · provenance signature where facts appear · red used ≤ once · visible focus ring · prefers-reduced-motion respected.