Skip to contents

Read promotion context for a promoted run

Usage

ledgr_promotion_context(bt)

Arguments

bt

A ledgr_backtest.

Value

Parsed promotion context, or NULL for direct runs.

Details

Promotion context is compact selection-audit metadata written by ledgr_promote(). It stores the selected candidate, source sweep metadata, and the filtered/sorted candidate-summary view used at selection time. It is not a full sweep artifact and does not store full ledger rows or equity curves for all candidates. For sweep-promoted runs, ledgr_metric_context(ledgr_promotion_context(bt)) returns the source sweep metric context used to rank the candidate. The committed run's own metric context remains available from ledgr_metric_context(bt).

Articles

Exploratory sweeps and promotion: vignette("sweeps", package = "ledgr") system.file("doc", "sweeps.html", package = "ledgr")