Squidie.Runtime.RunCatalogProjection (squidie v0.1.2)

Copy Markdown View Source

Rebuildable projection over the global journal run catalog.

Catalog entries are lookup facts, not execution state. They let host-facing tools discover all known journal-backed runs without scanning adapter-specific storage internals.

Summary

Types

anomaly()

@type anomaly() :: %{
  :reason => atom(),
  :entry_type => atom(),
  optional(:run_id) => String.t(),
  optional(:workflow) => String.t(),
  optional(:queue) => String.t()
}

run_summary()

@type run_summary() :: %{
  run_id: String.t(),
  workflow: String.t(),
  queue: String.t(),
  indexed_at: DateTime.t()
}

t()

@type t() :: %Squidie.Runtime.RunCatalogProjection{
  anomalies: [anomaly()],
  runs: %{optional(String.t()) => run_summary()}
}