# `Cyclium.DryRun.FindingPrefixer`
[🔗](https://github.com/Cyclium/cyclium_ex/blob/main/lib/cyclium/dry_run/finding_prefixer.ex#L1)

Rewrites finding actions with prefixed keys for dry run persistence.

When `dry_run_opts["persist_findings"]` is set, findings are persisted to the DB
with prefixed `finding_key` and `actor_id` values so they don't collide with live findings.

## Prefix resolution

  - `true` → default prefix `"dry_run"`
  - `"custom"` → uses `"custom"` as the prefix

## Example

    # finding_key "po_stalled:PO-123" becomes "dry_run:po_stalled:PO-123"
    FindingPrefixer.prefix_actions([{:raise, %{finding_key: "po_stalled:PO-123"}}], "dry_run")

# `persist_prefix`

Returns the persist prefix from an episode's dry_run_opts, or nil if
dry run finding persistence is disabled.

# `prefix_actions`

Rewrites finding actions with prefixed keys.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
