Repository navigation
feat(id-sync): durable SyncAdmission construction over the #17179 adapters (#17198) - #17282
Merged
Merged
Conversation
…pters (#17198) SyncAdmission::durable builds the receiver pipeline over FileOperationLedger + FileOutboxJournal under one directory, so sync-path replay/idempotency and pending outbox state survive restarts; commit-time epoch durability composes via DurableEpochReauthorizer over FilePolicyEpochSource. New integration suite sync_admission_durable proves AlreadyCommitted readback + replay binding across a restart and the durable epoch fail-closed gate. The live log-sync wire migration (envelope-carrying producer path) remains open on #17198.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
3 tasks
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.
What
First landed slice of #17198 (successor to lane 0722-O's enumeration + released claim; its wake — #17179 closed — fired with PR #17246): the sync receiver's admission path now has a durable production construction.
SyncAdmission::durable(dir, gate, reauthorizer, revocations)inpkgs/id/crates/id-sync/src/admission.rsbuilds the pipeline over the id admission: durable policy-epoch / ledger / outbox adapters (slice of #10192) #17179 durable adapters —FileOperationLedgeratdir/admission-ledger,FileOutboxJournalatdir/admission-outbox— so sync-path replay/idempotency state and pending outbox deliveries survive restarts, exactly as on the local paths. Commit-time epoch durability composes viaDurableEpochReauthorizeroverFilePolicyEpochSource(documented on the builder).pkgs/id/tests/sync_admission_durable.rs(model oracle): a sync operation committed before a restart resolvesAlreadyCommittedafter it with the original receipt and no re-ingest into a fresh store; the committed operation ID cannot be rebound after restart (Replay rejection); commit-time reauthorization reads the durable epoch fail-closed (no record → Reauthorization refusal, nothing stored) and commits reporting epoch 5 once stamped.What remains on #17198 (not in this PR)
The live wire migration: the p2panda log-sync transport carries raw chain-event headers, not
id/synccarrier envelopes, so routingrun_log_sync/ingest_arrivalsthroughSyncAdmission::admitneeds the envelope-carrying producer path on the sender — a session-layer protocol change. The P-SY-01 inventory row stayspartialuntil that lands; its wording already names exactly this remainder.Verification (remote dispatch, GitHub-hosted)
cargo test --test sync_admission_durable --test sync_admission --test admission_hooks --test admission_path_coverage— all passed (7 + 3 + 20 + 16; the sync binaries include the shared common-harness tests), exit 0. Confirmed per-binary in run 46461946265.Refs #17198, #10192
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-30T16:35:45Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "1afb80aa405c56b71c8a63176670cb22ba449a92" }, "auth_subject": "xaltha", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.