Repository navigation
Not planned
1 / 11 of 1 issue completed
Copy link
Labels
prunedClosed in the 2026-11-26 board prune; not needed for the source-independent toolsalesforce-launchFirst commercial Salesforce integration; separate from the generic API MVP
Description
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_approvedis tag-driven review resolution intoapply_corrections; it is not approval of an immutable external-write proposal. Reuse shared authorization/job helpers, but keep the two meanings distinct. SourceSpechas column mapping but no provider connection.ExtractReportincludes connection/object/source/delivery identity, whilesf_extract_cursoromits connection_id andraw_recordscarries source/payload/batch only. Theimport.extractaudit 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 > watermarkloses equal-time events. Choose and test an ordering/checkpoint contract including retries, rebuilds and retention, advancing it only after proposals are durable.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 1 sub-issues
Metadata
Metadata
Assignees
Labels
prunedClosed in the 2026-11-26 board prune; not needed for the source-independent toolsalesforce-launchFirst commercial Salesforce integration; separate from the generic API MVP
Activity
feat(writeback): durable extraction-to-source provenance (#1296)
athvin commentedon Nov 27, 2026
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
prunedand can be reopened if it becomes relevant.feat(writeback): merge-preview persistence and the approval API (#1305)
feat(writeback): materialize Salesforce merge previews from resolutio…
feat(writeback): materialize Salesforce merge previews from resolutio…