AITrace.PersistencePosture (AITrace v0.2.0)

Copy Markdown View Source

Capture and persistence posture for AITrace evidence.

This module describes trace storage behavior only. It never authorizes a provider effect and never makes trace evidence authoritative audit truth.

Summary

Types

surface()

@type surface() ::
  :trace | :span | :event | :authority_trace | :export | :replay | :proof_trace

t()

@type t() :: %{
  surface_ref: String.t(),
  persistence_profile_ref: String.t(),
  persistence_tier_ref: String.t(),
  capture_level_ref: String.t(),
  store_set_ref: String.t(),
  retention_policy_ref: String.t(),
  debug_tap_ref: String.t(),
  persistence_receipt_ref: String.t(),
  durable?: boolean(),
  retained?: boolean(),
  raw_payload_persistence?: false
}

Functions

debug_tap_failed(posture)

@spec debug_tap_failed(map()) :: map()

durable(surface)

@spec durable(surface()) :: t()

export_attributes(posture)

@spec export_attributes(t()) :: map()

memory_ring(surface)

@spec memory_ring(surface()) :: t()

off(surface)

@spec off(surface()) :: t()

resolve(surface, attrs \\ %{})

@spec resolve(surface(), map() | keyword() | nil) :: t()

retained?(posture)

@spec retained?(t()) :: boolean()