Bourse.OracleLabel (bourse v0.1.0)

Copy Markdown View Source

Formats reality-oracle labels for recordings and accepted requests.

Labels are derived from committed reality manifests so every verification claim names the venue observation that supports it.

Summary

Functions

Labels a golden request as exchange-acceptance evidence.

Reality tier-1 identity for one recording-manifest row.

Reality tier-1 identity from a fixture JSON map (exchange/method/captured_at).

Full oracle label for a recording-manifest row.

Full oracle label for a fixture JSON map.

Suite banner for tier-1 tests, listing recording identities from the manifest.

Functions

exchange_acceptance_label(golden)

@spec exchange_acceptance_label(map()) :: String.t()

Labels a golden request as exchange-acceptance evidence.

tier1_identity(recording)

@spec tier1_identity(map()) :: String.t()

Reality tier-1 identity for one recording-manifest row.

Sourced from the manifest's venue / method / capture_date / host / endpoint.

tier1_identity_from_fixture(fixture, manifest, manifest_identity)

@spec tier1_identity_from_fixture(map(), map(), String.t()) :: String.t()

Reality tier-1 identity from a fixture JSON map (exchange/method/captured_at).

Requires the recording manifest to identify the fixture's oracle.

tier1_label(recording)

@spec tier1_label(map()) :: String.t()

Full oracle label for a recording-manifest row.

tier1_label_from_fixture(fixture, manifest, manifest_identity)

@spec tier1_label_from_fixture(map(), map(), String.t()) :: String.t()

Full oracle label for a fixture JSON map.

tier1_suite_banner(paths, manifest, manifest_identity)

@spec tier1_suite_banner([String.t()], map(), String.t()) :: String.t()

Suite banner for tier-1 tests, listing recording identities from the manifest.

paths are relative fixture paths such as deribit/fetch_markets.json.