You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
E9: merge-preview persistence and the approval API #1305
Child of #514; first half of #993 (the materialization job is the second half and closes #993).
Acceptance
Postgres entities: writeback_policy (append-only; its row id is the policy revision), merge_preview (immutable proposal content + status), merge_preview_journal (append-only transitions), merge_preview_watermark (compare-and-set checkpoint).
PersistedProposalV1 in writeback.rs: persisted input re-validated through MergeProposal::build (never deserialized as validated); pinned byte/fingerprint fixture; absent vs explicit null kept distinct.
Routes: PUT …/writeback/policies (admin), GET …/merge-previews, GET …/merge-previews/{id} (viewer), POST …/merge-previews/{id}/approve|reject (steward) with {fingerprint, reason?}, deny_unknown_fields.
Approval is an atomic compare-and-set on (id, fingerprint, status='planned') with a journal row in the same transaction; same decision repeated is idempotent; stale fingerprint, decided preview or a no-longer-active policy is 409; cross-org/dataset 404. No external call.
Activity
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…