adk_eval_review (erlang_adk v0.10.0)

View Source

Deterministic human-review state machine for evaluation findings.

Persistence is intentionally delegated to the evaluation store or an operator review system. Revisions and expected-revision transitions make concurrent reviewers safe: terminal decisions are immutable and stale writes fail closed.

Summary

Functions

expire(Review0, ExpectedRevision, Now)

-spec expire(map(), non_neg_integer(), non_neg_integer()) -> {ok, map()} | {error, term()}.

new(Id, Subject, Options)

-spec new(binary(), map(), map()) -> {ok, map()} | {error, term()}.

public(Review)

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

record_decision(Review0, ExpectedRevision, Reviewer, Decision, Metadata)

-spec record_decision(map(), non_neg_integer(), binary(), approve | reject, map()) ->
                         {ok, map()} | {error, term()}.