Skip to content
Prompty

EngineDurabilityPort

Persists semantic engine events and checkpoints without runtime cancellation.

---
title: EngineDurabilityPort
config:
  look: handDrawn
  theme: colorful
  class:
    hideEmptyMembersBox: true
---
classDiagram
    class EngineDurabilityPort {
      <<protocol>>
        +append(event: EngineEvent) void [async-capable]
        +appendWithCheckpoint(events: EngineEvent[], checkpoint: EngineCheckpoint) void [async-capable, atomic]
    }

The following helper methods are declared via @method and must be implemented by every runtime. The schema declares the logical protocol contract; each runtime maps async-capable methods to idiomatic sync/async shapes for that language.

Name Signature Runtime shape Description
append append(event: EngineEvent) -> void async-capable Append one semantic engine event durably
appendWithCheckpoint appendWithCheckpoint(events: EngineEvent[], checkpoint: EngineCheckpoint) -> void async-capable, atomic Atomically append semantic engine events and persist the checkpoint that reflects them