Repository navigation
Description
Product stack rank 6 of 37 · roadmap #1008 · priority P0 · release mvp
Outcome
Define and enforce how customers consume and pay for the configurable deduplication API. Initial Salesforce customers use the same organization-level policy as direct API customers.
Existing orgs, keys, roles and datasets are foundations. Key self-service belongs to #866 and must not be duplicated here. #667 owns infrastructure cost attribution; product usage and billable activity are distinct measures.
- Decide and document the initial commercial unit and pilot entitlement policy (records, processing, storage or another explicit unit), with limits and overage behavior. Do not invent a pricing promise from this ticket.
- Audit existing usage and entitlement paths; implement only missing enforcement and an auditable usage ledger if required by the chosen policy.
- Retries and duplicate deliveries cannot double-charge; canceled/failed jobs and partial success have documented treatment.
- Org administrators can inspect allowance/usage through the public contract, with tenant isolation and stable error responses at limits.
- The API launch proof API launch proof: configure, ingest, dedupe and retrieve results without Salesforce #1013 records the approved pilot policy and verifies enforcement; a complete self-service billing portal is not assumed necessary for a paid pilot.
Depends on #857 and shared delivery/job identities from #523. Estimate unset until the commercial policy and existing code are reconciled.
Historical planning — superseded scope, ordering and estimates
Epic E3 from the DataGroomr Feature Parity Spec · spec phase 0 · historical parity rank 8 of 30
| Spec units | 6.4-6.11, 2.28 |
| Spec size (greenfield) | 10 eng-weeks |
| Our coverage today | ~60% |
| Estimated remaining | 4.0 eng-weeks (60% saved by what exists) |
| Owning component | Rust tenant-api; Postgres for ledger and config; Next.js admin |
| Release | mvp |
What we already have
Multi-tenancy is real: org and api_key entities, bearer/API-key auth with 404-on-cross-org and 403-on-role, argon2id tenant auth, invite and reset flows, and /admin/tenants plus /admin/queue screens.
What is missing
A credits ledger. There is no credit-anything entity in the catalog, so metering and billing do not exist. Note E21 and E27 both need this to meter against.
Coverage and remaining-weeks figures are an estimate made by reading this repo against the spec on 2026-11-05, not numbers from the spec itself — the spec sizes everything as greenfield. Treat them as a planning input, not a commitment. Spec unit numbers (e.g. 1.6-1.12) refer to the pillar tables in the linked document.
Activity
[-]E3 — Entitlements, users, roles, credits ledger[/-][+]E3 — API usage, entitlements and commercial metering[/+]feat(api): connected-record usage and an enforced record allowance (#518
fix(schema): the pre-reconcile default-dataset sweep reads only the o…