adk_memory_outbox (erlang_adk v0.7.0)
View SourceBounded Mnesia outbox for asynchronous long-term-memory ingestion.
Jobs contain exact application/user/session and {Module, StableId} adapter identities, canonical sanitized events, and a durable batch checkpoint. No runtime pid, credential, resolver state, or service handle is persisted.
Claims are lease-fenced and retries are at-least-once. A processor can repeat a batch after an uncertain crash; the memory adapter's event-ID idempotency is what deduplicates effects. This module does not claim distributed exactly-once delivery.
Summary
Functions
Claim one due batch. OwnerToken is an unguessable runtime binary; unlike a pid it is safe to persist as a lease fence.
Durably admit a job. This performs only a bounded local transaction; adapter resolution and ingestion are always left to a processor.
Ensure durable tables exist and reconcile admission counters from jobs.
Functions
Claim one due batch. OwnerToken is an unguessable runtime binary; unlike a pid it is safe to persist as a lease fence.
Durably admit a job. This performs only a bounded local transaction; adapter resolution and ingestion are always left to a processor.
Ensure durable tables exist and reconcile admission counters from jobs.