Repository navigation
feat(writeback): validate deterministic scoped merge proposals - #999
Merged
Merged
Conversation
This was referenced Nov 9, 2026
athvin
force-pushed
the
issue/992-writeback-proposals
branch
from
November 9, 2026 03:11
c21a3ec to
57d7f2b
Compare
athvin
marked this pull request as ready for review
November 9, 2026 03:12
athvin
force-pushed
the
issue/992-writeback-proposals
branch
from
November 9, 2026 03:23
57d7f2b to
26ecb96
Compare
This was referenced Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #992
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 checkpassed at current head26ecb96b1dc3fc551b0669e0bb6f07d2be5314a0, including all 13 new proposal tests. House instrumentation, tier and reuse reviews found no candidates;git range-diffconfirms 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-25cb2c999baaonMac· 2026-11-09T06:08:58Zmainis green with this change on it — merge3d456d8feff3a47c018b16da3f6e47016e5cc964; Rust 42557146652, frontend 42557146734, infra 42557146790 and devcontainer 42557146706 all succeeded. Ancestry and source presence verified. The separate image/deploy/watch obligations are verified below.images— 42557146669 built and pushed er-api for merge 3d456d8 successfully; er-web correctly skipped because frontend image inputs were unchanged in this PR.deploy— 42567188752 attempt 2 succeeded. Repair fix(images): preserve non-root access to the RDS CA bundle #1005 (ab349d1e3204eeb076a0ec8035c8522c36e8018a) contains this merge. Both er-api services select green; prodweb-api-green-7bdb7f4bb9-rqcm9and current devweb-api-green-5b5f6f5656-nj9n5are 2/2 ready with zero restarts and match the repaired image pins. Their er-server processes emitted listening at 05:25:58.716270Z and 05:36:31.689613Z respectively on 2026-11-09. The earlier dev pod also emitted listening at 05:30:15.345608Z before replacement.Specific to this change
Context — plan, discoveries, measurements, files
Plan
er-server/src/writeback.rswith 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.make check.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.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