Exact canonical-file selection for one or a bounded set of PTC command run references.
Named capture resolves only these candidates, without listing a directory:
<traces>/<run-ref>.jsonl<traces>/<run-ref>.private.jsonl<inspection>/<run-ref>.ptcins
Filenames are routing hints. Embedded run and trace identities remain authoritative, and snapshot identity commits to the selector, trace source class, exact evidence digests, and correlated trace ID. Whole-directory snapshots stay a distinct source variant.
Summary
Types
Functions
@spec max_selected_runs() :: pos_integer()
@spec resolve_trace(term(), term()) :: {:ok, trace_source()} | {:error, atom()}
@spec resolve_traces(term(), term()) :: {:ok, [selected_trace()]} | {:error, atom()}