adk_artifact_effect_journal (erlang_adk v0.10.0)

View Source

Durable write-ahead journal for external artifact effects.

The journal stores intent and opaque resource identifiers, never artifact bytes or credentials. Reconciliation claims are lease-fenced and terminal history has bounded retention/pruning.

Summary

Functions

claim_orphan(Handle, OwnerToken, Now, LeaseMs)

commit(Handle, Scope, EffectId, Receipt0)

default_config()

effect_applied(Handle, Scope, EffectId, Receipt0)

init(Config)

is_handle(Handle)

-spec is_handle(term()) -> boolean().

list_unresolved(Handle, Scope, Limit)

prune_terminal(Handle, Now, Limit)

record_intent(Handle, Spec)

resolve(Handle, EffectId, OwnerToken, Outcome, Now)

retry(Handle, EffectId, OwnerToken, Reason0, Now)

status(Handle, Scope, EffectId)

table_names(_)

validate_config(Config)

-spec validate_config(term()) -> ok | {error, term()}.