Repository navigation
Description
Product stack rank 1 of 37 · roadmap #1008 · priority P0 · release mvp
Product purpose
This is the foundation of the configurable deduplication API: an external customer must be able to configure their dataset, transfer data, run resolution and retrieve usable results. Salesforce is the first commercial integration consuming the same contract.
The child implementation plan below remains the owner of schema visibility, route derivation, keys and docs. The core workflow's actual request/response/query schemas must be accurate before launch; typed conversion for those operations is not optional polish. Remaining resource families can follow separately. Public contract generation alone does not prove the workflow: #1010, #523, #521 and #1013 cover product completeness. #658 owns the deployed-baseline launch gate. Old aggregate week totals are withdrawn pending the core-operation coverage audit; keep estimates on children.
Problem
The OpenAPI document describes zero operations ("paths": {}), and what it does describe is wrong about secrets: Webhook.secret, ApiKey.key_hash and TaskInstance.token_hash are published as required properties. The runtime never returns them — but only because hand-written DTOs in pg.rs say so (WebhookRow: "the secret is never listed"), and nothing ties those DTOs to the document or to the TypeScript bindings (which also declare secret: string). Meanwhile a customer cannot mint their own API key or read any API docs: minting is operator-only, there is no key list endpoint, and no docs surface exists.
Outcome
- One
visibility:declaration inentity.yamlgoverns the Rust wire struct, the component schema and the TS binding — a secret cannot be documented or serialized by forgetting to. - The document carries all ~92 paths derived from the handler source (never annotations — the house rule stated in
mcp_manifest.rs/response_envelopes.rsheaders). - Two documents: internal (everything) and tenant-public (no operator routes, no
/v1/internal/*, no internal columns), both pinned and both run through the breaking-change gate. - A grayscale
/docs/apipage serving the public document through the BFF. - An org admin can mint, list and revoke API keys with the plaintext shown once — the self-service "connect to the server" flow, documented end-to-end.
Epic-level definition of done (inherited by every child ticket)
-
make checkgreen locally; frontend tickets additionallymake frontend. - PR closes its ticket (
Closes #<n>), landed via/land-pr, post-merge ledger closed. - Every gate a ticket adds has been observed failing before it is trusted.
- Skills whose claims the PR changes are updated in the same PR.
- No new required status check is created by any ticket (branch-protection changes are out of scope for this epic).
Children, in take-up order
| # | Ticket | Priority | Estimate | Depends on |
|---|---|---|---|---|
| 1 | #858 — Column visibility + wire structs + V18 | P0 | 1.0w | — |
| 2 | #859 — Extract er-api-spec crate |
P0 | 0.5w | #858 |
| 3 | #860 — Emit paths + bearer securityScheme | P0 | 1.0w | #859 |
| 4 | #861 — Two audiences + CI breaking gate | P0 | 0.5w | #860 |
| 5 | #862 — JSON-wire schema backlog triage | P0 | 0.5w | #858, #860 |
| 6 | #863 — Classifier learns typed structs | P0 | 0.5w | #859 |
| 7 | #864 — Typed response structs (10 batches) | P0 | 3.0w | #863 |
| 8 | #865 — Typed query parameters | P0 | 1.0w | #864 |
| 9 | #866 — Self-service API keys | P0 | 1.5w | #858 |
| 10 | #867 — /docs/api viewer | P0 | 1.0w | #861, #866 |
| 11 | #868 — Security regression pass | P0 | 0.5w | #861, #866, #867 |
| 12 | #869 — Observability | P0 | 0.5w | #866, #867 |
| 13 | #870 — Skills anti-entropy sweep | P1 | 0.5w | all of the above |
- Column visibility: visibility:internal in entity.yaml, generated wire structs, V18 lint #858
- Extract the route/body/envelope derivation into an er-api-spec crate #859
- Emit OpenAPI paths from the handler derivation + bearer securityScheme #860
- Two OpenAPI audiences (internal + tenant-public) and the CI breaking gate over both #861
- Triage the 15-entity JSON_WIRE_WITHOUT_SCHEMA backlog: register or justify each #862
- Envelope classifier learns typed response structs (blocker for the typed-response conversion) #863
- Typed response structs across er-server handlers, by resource family (10 batches) #864
- Typed query parameters: replace the 26 Query<HashMap> extractors with named structs #865
- Self-service API keys: org-admin minting with a role ceiling, list endpoint, show-once UI #866
- /docs/api: BFF-served public spec + grayscale API docs viewer #867
- Security regression pass over the OpenAPI/visibility/key surface #868
- Observability for the key-minting and docs surface: spans, PII boundary, audit coverage #869
- Skills and docs anti-entropy sweep for the OpenAPI epic #870
Take-up rule
Preserve the dependency edges in the table. Prioritize accurate operations and shapes for configure → ingest → job/status → results, keys and security as API launch work. The remaining typed-response families can follow that path. Product ordering is #1008; the executable external-customer proof is #1013. Estimates in the table are provisional inputs, not a launch date or a complete total.
Activity
[-]Epic: OpenAPI contract, client-visibility guard, and API docs surface[/-][+]Epic: customer-facing OpenAPI contract, visibility, API keys and docs[/+]athvin commentedon Nov 25, 2026
All 13 children closed and every PR's post-merge ledger closed (
pr-ledger-audit.sh). The final stretch, today:{}(feat(api): typed response structs, batch 3 — reviews+merges (#1193) #1202–feat(api): type the 17 operations still publishing {} (#1213) #1214)./docs/api, live at https://dupezero.com/docs/api (feat(docs): /docs/api — grayscale public API reference with the connect flow (#867) #1217).The epic-level DoD held: every gate added was observed failing before it was trusted (mutation tables in each PR body), and no new required status check was created. One fix landed on the way: the deploy-digest pagination bug, #1223, fixed by #1224.