Repository navigation
Description
Product stack rank 19 of 37 · roadmap #1008 · priority P2 · release salesforce-launch
Outcome
A steward converts a duplicate Lead into the matching existing Contact/Account (Salesforce convertLead) from an approved proposal, through the same writeback journal as merges — never a second write path.
Audit (2026-11-27)
- Nothing implements conversion: no
convert/convertLeadpath iner-serveror the frontend.writeback.rsmodelsMergeObject::Leadfor merge proposals only;connectors.md§5 listsconvertas the writeback verb set's later addition. - Extraction already filters
IsConverted = falseon Lead (connectors.md, spec 1.26), so converted Leads leave the corpus on the next extract. - Blocked on E9 (E9 — Approved Salesforce writeback and recovery over shared resolution results #514): approval persistence (E9: Materialize merge previews and persist approval #993), delegated authorization (E9: Add delegated Salesforce authorization for writeback #994) and the apply journal (E9: Apply approved Salesforce merges with a durable journal #995) are the substrate conversion must reuse.
Acceptance
- A proposal kind
lead_convertbuilt by the same deterministic builder as merge proposals: the Lead, the target Contact (and its Account), the field mapping, the policy revision and the pinned snapshot. - Approval binds the exact immutable proposal (the E9: Materialize merge previews and persist approval #993 contract); apply runs through the E9: Apply approved Salesforce merges with a durable journal #995 journal with a current-state staleness check on both records and is idempotent on retry.
- A converted Lead is excluded from the next resolution run; the Contact's golden record and lineage reflect the conversion.
- Failure, partial failure and a Lead already converted outside DupeZero are journaled and reported, not retried blindly; recovery semantics are documented (conversion is not reversible in Salesforce).
- Mock-Salesforce harness tests for each path; no live org dependency.
Historical planning — superseded scope, ordering and estimates
Epic E10 from the DataGroomr Feature Parity Spec · spec phase 1 · historical parity rank 10 of 30
| Spec units | 2.20-2.22 |
| Spec size (greenfield) | 4 eng-weeks |
| Our coverage today | ~0% |
| Estimated remaining | 4.0 eng-weeks (0% saved by what exists) |
| Owning component | writeback convert path |
| Release | mvp |
What we already have
Nothing. A grep for lead_convert/convert_lead returns zero files.
What is missing
The whole convert path. Blocked on E9: there is no writeback service to add a convert path to.
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.
Activity
athvin commentedon Nov 5, 2026
Design exists.
docs/connectors.md§4.1 makes Lead a first-class object from the start (itsCompanycarried as metadata), and §4.4 includesmerge()on Lead/Contact/Account in the v1 writeback scope.backend-design.md§15 phase 5 names "cross-object Lead↔Contact resolution surfaced (with convert writeback)" as differentiation.The dependency on #514 is hard: there is no
writebackservice to add a convert path to.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): convert duplicate Salesforce Leads into existing Con…