Skip to content

E9: Materialize merge previews and persist approval #993

Not planned
1 of 1 issue completed
Not planned

Description

@athvin

Salesforce commercial integration · roadmap #1008 · preserve parent dependency order (#511 / #514). Generic API launch does not depend on provider-only work.

Authoritative scope: #514, .claude/skills/er-server-control-plane/references/connectors.md §§4.3–4.4 and backend-design.md §§10–11. The user authorized using these repository designs and issue acceptance criteria in place of the inaccessible external parity artifact.

Depends on the deterministic-proposal child.

Acceptance:

  • A dataset pod task reads a pinned lake snapshot and merge/member-add events since a durable watermark. Elect masters using the existing er-golden policy owner, restricted to one connection and Salesforce object; never reuse the cross-source export master blindly.
  • Declare plan/journal/watermark entities and SQL through entities/. Persist immutable member snapshots, diffs, related-record counts with explicit unavailable state, policy revision, originating snapshot and content fingerprint.
  • Dataset-scoped list/detail/approve/reject API enforces viewer/steward roles, cross-org 404, atomic compare-and-set approval and idempotent generation. Approval binds the exact immutable proposal; no client-provided credentials or executable plan.
  • Advance watermark only after durable publication; retries and equal-time events cannot lose proposals. Bound batches and exclude unrelated singleton/cross-object groups.
  • Real Postgres and lake tier tests plus make check. Read/approval APIs do not perform external writes.

Implementation findings from #992 follow-through

  • Existing apply_approved is tag-driven review resolution into apply_corrections; it is not approval of an immutable external-write proposal. Reuse shared authorization/job helpers, but keep the two meanings distinct.
  • SourceSpec has column mapping but no provider connection. ExtractReport includes connection/object/source/delivery identity, while sf_extract_cursor omits connection_id and raw_records carries source/payload/batch only. The import.extract audit includes connection identity but is explicitly best-effort, so it cannot be the authorization/provenance authority.
  • Establish durable extraction-to-source provenance before allowing preview membership to acquire a connection/object identity. Do not infer it from a source label, the latest cursor, or a caller-supplied grouping. Cover a source reused against another connection and ordinary uploaded rows colliding with provider IDs. Delivery identity must be pinned before provenance is trusted: Pin accepted deliveries to immutable inputs before queued ingestion #1002 addresses the fixed source.csv overwrite race. rust: make ingest deliveries atomic #957 separately covers atomic lake landing, not immutable files.
  • Preserve the existing master-election owner and constrain eligible members before election, rather than electing a global master then discarding it if it belongs to another provider group.
  • Pin a byte/hash fixture when making the proposal format durable. Keep absent golden values distinct from explicit null, and document how persisted proposals are reconstructed through validation.
  • A cursor based only on occurred_at > watermark loses equal-time events. Choose and test an ordering/checkpoint contract including retries, rebuilds and retention, advancing it only after proposals are durable.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    mvp
    on Nov 9, 2026
  2. added
    salesforce-launch
    and removed
    mvp
    on Nov 9, 2026
  3. added
    pruned
    on Nov 27, 2026
  4. athvin commented on Nov 27, 2026

    @athvin
    OwnerAuthor

    Closed in the 2026-11-26 board prune. The board now targets a deduplication tool that works the same whatever the data's source. This card is Salesforce-specific, so it isn't needed for that. It's labelled pruned and can be reopened if it becomes relevant.

  5. self-assigned this
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

prunedsalesforce-launch

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions