Skip to content

feat(id-sync): durable SyncAdmission construction over the #17179 adapters (#17198) - #17282

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/0900ag-17198-receiver
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/0900ag-17198-receiver

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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) in pkgs/id/crates/id-sync/src/admission.rs builds the pipeline over the id admission: durable policy-epoch / ledger / outbox adapters (slice of #10192) #17179 durable adapters — FileOperationLedger at dir/admission-ledger, FileOutboxJournal at dir/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 via DurableEpochReauthorizer over FilePolicyEpochSource (documented on the builder).
  • Module doc updated: the "durable adapters are follow-ons" statement is replaced with the durable-construction section; the remaining gap is named precisely.
  • New integration suite pkgs/id/tests/sync_admission_durable.rs (model oracle): a sync operation committed before a restart resolves AlreadyCommitted after 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/sync carrier envelopes, so routing run_log_sync/ingest_arrivals through SyncAdmission::admit needs the envelope-carrying producer path on the sender — a session-layer protocol change. The P-SY-01 inventory row stays partial until that lands; its wording already names exactly this remainder.

Verification (remote dispatch, GitHub-hosted)

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-bot with what you need.

…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.
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 38582311-21ec-4b7c-978a-68de70e6154d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet
developing-today-fleet Bot merged commit a1e76af into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/0900ag-17198-receiver branch November 30, 2026 16:36
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.

1 participant