Skip to content

E9: Build deterministic, scoped writeback proposals #992

Closed

Description

@athvin

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.

Build the pure proposal boundary used by the materialization job. Accept a master already elected by er-golden::master over the eligible provider group; do not copy election policy into the connector.

Acceptance:

  • An immutable proposal carries org/dataset/connection/object/entity identity, source snapshot and policy revision, and each member's external ID, record key, SystemModstamp and pre-merge fields.
  • Reject mixed connection/object groups, duplicate external IDs/record keys, missing master, fewer than two members, missing stamps, malformed scalar field values, and incomplete mapped master values. Validate before returning any proposal.
  • Compute explicit before/after master diffs from golden-to-provider mapping and a per-field allowlist. Missing golden attributes do not mean clear; explicit null is a proposed clear. Never propose Id/SystemModstamp writes.
  • Canonical ordering and a content fingerprint are invariant to input member ordering, while scope, policy, membership, stamps, preimages and approved changes affect identity. Nested/non-scalar provider field values are rejected.
  • Tests cover scope mixups, null/missing distinction, denied fields, duplicate mapping targets, data-sensitive fingerprint and permutations. Errors do not print record values.
  • make check and house review pass. This child is a prerequisite library boundary, not a shipped apply endpoint; E9 — Approved Salesforce writeback and recovery over shared resolution results #514 remains open.

Activity

  1. added
    mvp
    on Nov 9, 2026
  2. self-assigned this
    on Nov 9, 2026
  3. athvin commented on Nov 9, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #999 (draft), 2026-11-09T02:53:02.349809+00:00. Closing that PR releases the claim.

  4. added 3 commits that reference this issue on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

mvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions