Skip to content

E20 — Public duplicate-check and record-resolution API #529

Done

Description

@athvin

Product stack rank 12 of 37 · roadmap #1008 · priority P2 · release post-mvp

Customer outcome

Any application can ask whether a candidate record matches existing dataset records and receive explainable results before deciding to save it.

Verified foundation

POST /v1/orgs/{org}/datasets/{ds}/resolve and resolve_record already exist. The handler is read-only and is intended to reuse batch standardization/model semantics with comparison evidence. Audit correctness, scalability and public coverage rather than assuming the endpoint is absent.

  • Publish and test the supported candidate schema, matching evidence, no-match/ambiguous outcomes, thresholds, limits and authorization through Epic: customer-facing OpenAPI contract, visibility, API keys and docs #857.
  • Identify the indexed/run snapshot and data freshness in the contract; demonstrate what happens while a new run is processing.
  • Verify query/batch semantic consistency, read-only behavior, cross-dataset denial and measured latency under declared limits.
  • Provide a vendor-neutral integration example; ingest remains a separate explicit operation.

Depends on #857 and #1010. Neither Salesforce CDC (#525) nor managed packaging (#517) blocks this API. The Flow wrapper is separate #1017. Estimate unset pending an audit of the existing resolve implementation.

Historical planning — superseded scope, ordering and estimates

Epic E20 from the DataGroomr Feature Parity Spec · spec phase 3 · historical parity rank 19 of 30

Spec units 1.39-1.40, 3.23, 5.13
Spec size (greenfield) 4 eng-weeks
Our coverage today ~30%
Estimated remaining 3.0 eng-weeks (25% saved by what exists)
Owning component Rust HTTP API on the live index; packaged Flow action
Release post-appexchange

What we already have

er-server is a working axum control plane with a typed OpenAPI contract pinned by a snapshot test, so the HTTP surface pattern is established.

What is missing

The duplicate-check endpoint over a live index, and a packaged Flow action. Depends on both E19 and E17.


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.


Product context (2026-11-26)

Why this matters for the API product: this covers results for records the customer has not saved yet. It is the online path that lets a customer embed matching in their own tooling.

Current state: both stated dependencies, #857 and #1010, are closed. The issue carries the mvp label, but its body says post-mvp.

Exists on main:

  • POST …/datasets/{ds}/resolve is in the public contract as a viewer operation (er-server/src/lib.rs:8295).
  • It is read-only and dataset-scoped (dataset_or_404).
  • limit is clamped to 1–100.
  • ResolveResult returns decision, snapshot and candidates. Each candidate has band, confidence, entity_id and evidence.
  • The same standardization and model as the batch path are covered at library level (er-cli/tests/lake_e2e.rs:1743-1880). That covers a match, a no-match (reject) and an undeclared source.

Missing:

  • No HTTP test. No er-server test calls /resolve, and pg_launch_proof does not cover it.
  • Error mapping. Every failure becomes 409, including an undeclared source, which should be 422.
  • Person only. The resolve path reads only int_std_records (er-cli/src/lib.rs:440). Account datasets use acct_int_std_record, so resolve is almost certainly broken for accounts (unverified at runtime).
  • No ambiguous outcome. Two strong candidates in different entities still collapse to one decision.
  • Undefined behavior during a run. What happens while a new run is processing is untested.
  • Latency unmeasured. There is no declared payload limit and no latency figure.
  • No metering. Resolve calls are not counted by E3 — API usage, entitlements and commercial metering #518.
  • Undocumented evidence. The evidence schema is untyped, and its key format depends on Evidence-key prefixes hardcoded in reader + frontend; custom-prefix models lose matched-fields #871.

Definition of done: as above. Add an HTTP-level pg_resolve test, a person/account parity case, and a documented status map.

Dependencies / sequencing: #871 (evidence keys), #547 (account support), #663 (account score scale).

Open product decision: is online resolve launch scope (mvp) or follow-on (post-mvp)? Should resolve calls count toward usage?

Size: about 2 engineer-weeks (unverified).

Activity

  1. added
    post-appexchange
    epic
    post-mvp
    and removed
    post-appexchange
    on Nov 5, 2026
  2. changed the title [-]E20 — Duplicate Check API and Flow action[/-] [+]E20 — Public duplicate-check and record-resolution API[/+] on Nov 9, 2026
  3. added
    mvp
    and removed
    post-mvp
    on Nov 26, 2026
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

    epicmvp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions