Skip to content

Add durable outbox recovery and at-least-once hook delivery #10214

Open

Description

@dezren39

Problem and goal

Recover post-commit event delivery safely across restart with stable IDs and at-least-once semantics.

Version and design basis

Version: V2; V4 operations. Settled design: https://github.com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/crosscut/versioned-design.md#failure-recovery-and-version-rules (section: Failure, recovery, and version rules).
Tier: recommended.
Statement IDs: S0.12, S0.15, S0.17
Enables: Persist post-commit events within advertised transaction scope, replay by stable ID after restart, and expose quarantine/reconciliation when store and stream cannot commit atomically.

Scope and ownership

Parent: #9110 (native component/meta parent).

  • pkgs/id/crates/id-store/src/outbox.rs (new; owner: 9110-07)
  • pkgs/id/tests/outbox_recovery.rs (new; owner: 9110-07)
    Hard dependencies (native blockers): 9110-03 — Required output from slice 9110-03.; 9110-06 — Required output from slice 9110-06.
    Soft sequencing (not blockers): none

Test / evidence first

Create or validate pkgs/id/tests/outbox_recovery.rs first. Proposed command: cargo test --manifest-path pkgs/id/Cargo.toml --test outbox_recovery
Oracle: model — expected Every committed operation is either delivered at least once or remains visibly pending/quarantined across restart; no unknown outcome is labeled rollback.; verifier: Crash-injected outbox state machine keyed by durable operation/event IDs..

Done and rollback

Done when the declared oracle passes and test/evidence output plus changed-file summary is attached. Research evidence: doc/2026-11-13T03-40-00Z_design_id-atlas-summit/crosscut/research.md; doc/2026-11-13T03-40-00Z_design_id-atlas-summit/crosscut/versioned-design.md.
Rollback: Disable outbox delivery only after preserving committed operation records for operator replay; never delete or replay with new IDs.

Manifest SHA-256 approval binding: 3b5bce3523945bf5adaa28739f0b90b7b70ff1d6522b4ac827246654e8ff6b06.

Acceptance criteria

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    state: blocked
    task: 17058
    lane: any-c
    worker: repo-worker-code

    Preflight for 9110-07 (#10214, Add durable outbox recovery and at-least-once hook delivery): verified fresh on 2026-11-14 that both native blockers remain OPEN — #10174 and #10192. No held / user/owned / do-not-merge / do-not-auto-edit labels on #10214, #10174, or #10192.

    Per the task packet's mandatory preflight, no implementation was performed. Task 17058 is dep-blocked on #10174 and #10192 (broker-watched, TTL 3 days); it will return to the pool automatically when both blockers close.

  3. added
    queue/blocked
    status/blocked
    work/assigned
    on Nov 14, 2026
  4. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Agent note — triage (task 19153, lane any-c, 2026-11-17)

    State: triaged (duplicate bulk-intake triage — routing of record stands).

    Issue stays OPEN under task 17058's dep-block.

  5. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    lane: openchamber-scheduled-lane (code-h), worker repo-worker-code, queue task 17058
    state: blocked (reason_class: blocked)
    preflight: native blockers checked 2026-11-17T17:58Z — #10174 OPEN, #10192 OPEN. No implementation started (9110-07 stays out of scope).
    resume: when #10174 and #10192 are closed, requeue or re-claim task 17058 and re-run the preflight.

  6. dezren39 commented on Nov 18, 2026

    @dezren39
    MemberAuthor

    Agent note (repo-worker-code, code-f scheduled lane): triage verdict

    Verified 2026-11-18T08:46Z. #10214 is OPEN and still blocked by its hard dependencies:

    No implementation started. Resume when the #9110 slices land. Labels unchanged.

  7. removed their assignment
    on Nov 20, 2026
  8. dezren39 commented on Nov 20, 2026

    @dezren39
    MemberAuthor

    Agent note — native-blocker preflight (task 17058, lane oc-code-04)

    State: preflight complete; work PAUSED — both native blockers remain open; task 17058 self-blocked per the 9110-07 contract.

    Fresh GitHub check (2026-11-20):

    Per the packet, no implementation was performed and no production rollout is authorized. Revalidation of #10174 and #10192 releases the dep block.

  9. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor
    Agent note — native-blocker preflight revalidation (task 17058, lane oc-code-02, 2026-11-23T17:58Z).Fresh check: #10174 CLOSED, #10192 OPEN (status/in-review). Per the 9110-07 packet: no implementation; task self-blocked on #10192 with broker dep-recheck. No production rollout authorized or performed.
  10. 2 remaining items

  11. added
    primary-parent/id-program
    stray-work
    on Nov 27, 2026
  12. added
    priority/normal
    on Nov 29, 2026
  13. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 Census note — lane CEN-C10 (Xaltha seat), 2026-11-29. Full body + all comments re-read firsthand for Drew's issue census.

  14. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full recheck of this issue — details, labels, blockers, priority (rechecked from scratch; prior detail did not exempt it).

    STRENGTHS:

    • substantive body (2050 chars)
    • acceptance structure present (0 checklist items, 0 checked)
    • names concrete file/module pointers: com/developing-today/code/blob/main/doc/2026-11-13T03-40-00Z_design_id-atlas-summit/crosscut/versioned-design.md, doc/2026-11-13T03-40-00Z_design_id-atlas-summit/crosscut/research.md, doc/2026-11-13T03-40-00Z_design_id-atlas-summit/crosscut/versioned-design.md, pkgs/id/Cargo.toml
    • 9 prior comments of triage/work history on record
    • priority already set (priority/normal)
    • native blocked_by edges already present: Implement ordered lifecycle hooks and fixed acceptance gate #10192, Specify redb and Turso/SQLite capability profiles #10174

    GAPS FOUND:

    • no kind label (kind not unambiguous from title/body — left for the picking-up lane to set)

    FIXES I APPLIED:

    • none needed

    REMAINS: nothing — ready for pickup

  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Wave-2 residual pass. A parallel census note (Census 2026-11-29 (Felix)) already covers this issue today, and wave 1 of this census audited the head of this group; their verdicts are not duplicated here. This note records only the residual fixes applied after re-verifying the live state (state, body, labels, recent comments) immediately before editing.

    Residual gaps found: no kind/* label (a parallel census note today left it for the picking-up lane; set here from the title/body); no app/*/area/* label although the owning project is clear from the title/body; no effort/* label; no acceptance-criteria section.

    Actions taken: appended ## Acceptance criteria (original body text unchanged above it).

    Blocker recorded in this census note: the issue carries status/blocked + queue/blocked; its Scope and ownership section names the parent and hard dependencies — the wait is on those, not on missing detail here.

    Priority: priority/normal retained — matches the work's urgency as evidenced on the issue; no band change in this pass.

  16. added
    app/id
    effort/m
    on Nov 29, 2026
  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29 (addendum)

    Mop-up for the wave-2 residual pass on this issue: the label edit failed on a transient GitHub stream error during the main pass and has now been applied — labels added: kind/enhancement, app/id, effort/m. Everything else in the main census note on this issue stands as written.

  18. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    P1.2 stale-edge prune (Felix lane 0640-PG, #17071 P0–P3 plan)

    Before: 2 native blockedBy edges. Removed 1 stale edge (#10174, CLOSED). After: 1 edge — #10192 (OPEN) remains, so status/blocked/queue/blocked labels stay.

  19. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    🤖 Reparented — Felix lane 0640-WA, 2026-11-30 (P3.1 tranche on code#17071, claim 7283429466).

    This issue was a sub-issue of #9110, which is CLOSED. Under the P0–P3 playbook's P3.1 rule (open sub-issues must not roll up into a closed parent), it has been moved to #9106 — #9110's own parent, the open ID/Atlas extensibility epic — via the GraphQL removeSubIssue/addSubIssue mutations, verified live (parent endpoint now reads #9106). No labels, state, or priority band were changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/ideffort/mepic/id-programkind/enhancementprimary-parent/id-programpriority/normalqueue/blockedstatus/blockedstray-workwork/assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions