Skip to content

feat(writeback): validate deterministic scoped merge proposals - #999

Merged
athvin merged 2 commits into
mainfrom
issue/992-writeback-proposals
Nov 9, 2026
Merged

athvin merged 2 commits into
mainfrom
issue/992-writeback-proposals

Conversation

@athvin

@athvin athvin commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Closes #992

Claimed by agent — 2026-11-09T02:52:42Z, session Codex:01a1be1b-0c92-7703-a4c2-25cb2c999baa on Mac.lan. This open draft PR is the claim.

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

Add the validated, immutable proposal builder needed by E9 writeback. This is a prerequisite library boundary; no provider writes or new endpoints ship in this child.

Why

Reject mixed provider groups and ambiguous field snapshots before a future approval can authorize destructive work. Parent #514 remains open; #993–#998 carry the remaining workflow.

Proof

Full make check passed at current head 26ecb96b1dc3fc551b0669e0bb6f07d2be5314a0, including all 13 new proposal tests. House instrumentation, tier and reuse reviews found no candidates; git range-diff confirms the reviewed commits are unchanged by the TLS-base rebase. Current-head CI run 42556161871 passed, including Postgres/DuckLake integration tests. All 15 required contexts were satisfied, detect jobs passed, and no workflow or merge-bus batch was pending at merge.

Risk & rollback

Prerequisite library only: no endpoint, schema, credential, job or provider-write behavior changes. Revert the merge commit if needed.

Post-merge ledger

Closed by: agent · session Codex:01a1be1b-0c92-7703-a4c2-25cb2c999baa on Mac · 2026-11-09T06:08:58Z

Specific to this change

Context — plan, discoveries, measurements, files

Plan

  • Add er-server/src/writeback.rs with a typed proposal input and privately owned validated output, deterministic ordering, SHA-256 identity and scalar-only field diffs. Accept an already elected master from the existing er-golden policy owner.
  • Add focused tests for every rejection, permutations, null versus missing, allowlist behavior and fingerprint sensitivity.
  • Document the boundary in the connector reference and pass full make check.
  • Rebase onto ci: run Dependabot Rust checks without R2 secrets #990 and pass the affected skills/workflow-shell gates.
  • House review at 57d7f2b9b6342389ab5ba719622ab0cbdfee5360: fresh-context instrumentation, tier and reuse reviewers found no candidates. SQL was not routed because this diff contains none; prose accurately states the remaining E9 work.
  • Pass current-head CI, merge, verify main/images/deploy, and close the ledger.

Discoveries

The existing master-election export is cross-source; a future materializer must constrain its election to the provider group. This builder intentionally accepts the elected member and validates membership rather than copying election policy.

Measurements

The first full local gate passed at c21a3ec; its unchanged-Rust rebase at 57d7f2b also passed CI. The subsequent TLS-base rebase is 26ecb96 and its full local make check passed. Current-head CI remains pending.

Files

@athvin
athvin force-pushed the issue/992-writeback-proposals branch from 57d7f2b to 26ecb96 Compare November 9, 2026 03:23
@athvin
athvin merged commit 3d456d8 into main Nov 9, 2026
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

E9: Build deterministic, scoped writeback proposals

2 participants