Skip to content

Epic: customer-facing OpenAPI contract, visibility, API keys and docs #857

Done
13 of 13 issues completed
Done

Description

@athvin

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 in entity.yaml governs 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.rs headers).
  • 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/api page 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 check green locally; frontend tickets additionally make 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

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.

Sub-issues

Sub-issues

13 of 13 Issues completed
Loading 13 sub-issues

Activity

  1. added
    enhancement
    epic
    on Nov 8, 2026
  2. changed the title [-]Epic: OpenAPI contract, client-visibility guard, and API docs surface[/-] [+]Epic: customer-facing OpenAPI contract, visibility, API keys and docs[/+] on Nov 9, 2026
  3. added
    mvp
    on Nov 9, 2026
  4. athvin commented on Nov 25, 2026

    @athvin
    OwnerAuthor

    All 13 children closed and every PR's post-merge ledger closed (pr-ledger-audit.sh). The final stretch, today:

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementepicmvp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions