Skip to content

Keep cancellation and result collection responsive during storage waits #2894

Open

Description

@jbeda

Parent: #2664.

Outcome

Blocked or uncertain storage acceptance prevents dependent advancement without blocking cancellation signaling or collection of already-admitted work.

Scope and contracts

Consume the existing composition and scheduling boundaries. Review who owns storage submission, cancellation signaling, completed outcomes, and unresolved proposals. Amend contracts explicitly if consumer evidence requires it; do not merge session, coordinator, and loop responsibilities to hide ordering problems.

Acceptance

  • Controlled storage waits prove cancellation can be signaled and observed at the execution seam without releasing the blocked append.
  • Already-admitted work can complete and its outcome can be collected while storage waits; collection does not imply acceptance or authorize dependent work.
  • Only one append batch is unresolved per history. Uncertain acceptance retains its original proposal identity and blocks dependent dispatch until the prerequisite is known accepted; uncertainty is never silently treated as rejection.
  • Tests expose any ordering lock held across storage I/O that prevents signaling or collection, using deterministic synchronization and bounded test cleanup.
  • Cancellation prevents newly admitted work when it wins final admission. Already-admitted work is not represented as rolled back or proven stopped merely because cancellation was signaled.
  • Reviewed and documented ownership, failure, and ordering contracts match the composition tests.

Dependencies and exclusions

Depends on the relevant #2891, #2892, #2893 execution and scheduling contracts. Coordinate fixtures and baseline admission/cancellation guarantees with #2665; broader crash-point matrices, explicit recovery decisions, bounded settlement/late-work qualification, and successor-run isolation remain there. This child does not claim exactly-once external effects or introduce automatic retry of effects.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions