ledgr uses stable top-level condition classes for public cost-model, timing-model, execution-window, saved-sweep, and retained-series failures. User tests should assert on these classes instead of parsing message text.
Cost and timing classes
ledgr_cost_model_unspecified is raised when a public execution entry point
omits cost_model or supplies NULL. Use ledgr_cost_zero() for explicit
zero-cost execution.
ledgr_invalid_cost_model is raised for invalid cost-model objects,
malformed cost plans, unsupported cost-plan steps, or invalid cost-model
constructor arguments.
ledgr_invalid_cost_chain_order is raised when a cost chain violates the
required order: price-transform steps before explicit-fee steps.
ledgr_invalid_timing_model is raised for non-ledgr timing-model objects or
malformed ledgr timing-model payloads.
Fill seam classes
ledgr_invalid_fill_proposal and ledgr_invalid_fill_context are raised at
the internal proposal/resolver seam when a cost resolver receives the wrong
object shape. They are stable top-level classes for tests that exercise that
seam directly.
Execution window classes
ledgr_run_window_too_short is raised when a run window contains fewer than
two executable pulses. Next-bar fill semantics require a decision pulse and a
later execution pulse.
Accounting classes
ledgr_invalid_lot_fill is raised when the lot-accounting layer receives an
invalid fill side, quantity, price, fee, or instrument id. Invalid lot input
fails closed because the ledger event stream and lot state must not diverge.
Snapshot hash classes
ledgr_snapshot_hash_invalid_timestamp is raised when snapshot hashing sees
a non-POSIXct ts_utc representation. Snapshot hashes fail closed on driver
timestamp representation drift instead of silently re-keying sealed data.
ledgr_snapshot_hash_rule_unsupported is raised when a snapshot does not
carry the current content-hash rule.
ledgr_snapshot_hash_order_invalid is raised when source rows are not in
the bytewise order required by the current snapshot-hash rule.
ledgr_fact_civil_date_unresolved is raised when a fact Date does not map
to exactly one declared open venue session. ledgr_session_boundary_unresolved
applies the same refusal to an availability-aware execution boundary.
ledgr_corporate_action_clock_missing is raised, at its knowledge cutoff,
for a knowable corporate action with neither entitlement nor effective time.
ledgr_corporate_action_entitlement_missing is raised, at the pulse it would
act on and in every execution mode, for a complete ordinary_cash_dividend,
cash_acquisition, stock_acquisition, mixed_acquisition or spin_off
row with an effective clock but no entitlement clock; it carries the fact and instrument IDs, the subtype and
the effective and knowledge clocks, and the user supplies the entitlement
time.
ledgr_invalid_history_policy is raised for malformed history-policy
constructor arguments or a non-current policy object.
ledgr_history_identity_mismatch and ledgr_precomputed_history_mismatch
refuse non-current causal-history identity in configs and precomputed data.
ledgr_invalid_history_substrate refuses a substrate owned by a different
snapshot, policy, universe, range or representation version.
ledgr_history_duplicate_bar, ledgr_history_outside_axis and
ledgr_history_unknown_instrument refuse ambiguous or out-of-domain history
preparation and reads. ledgr_history_segment_missing refuses an invalid
internal segment plane rather than returning fabricated state.
ledgr_history_segment_limit_exceeded reports an instrument, fact family,
fact count, segment count, ratio and limit when causal preparation exceeds
its declared bound. ledgr_fact_knowledge_missing refuses, before any run,
sweep, precompute, walk-forward or inspection side effect, a snapshot whose
membership, trading-status or lifetime facts lack a knowledge time.
ledgr_invalid_history_treatment and
ledgr_invalid_history_field refuse malformed treatment evidence or an
unsupported bar field. ledgr_history_unavailable refuses a history read
from a dense or snapshot-and-universe pulse context, which has no causal
history. ledgr_invalid_history_request refuses malformed
ledgr_history_frame() and ledgr_history_matrix() request arguments,
including a missing required lookback, and ledgr_invalid_history_result
refuses a matrix,
metadata, weights or sufficiency query on a value that is not, or no longer
matches, a ledgr_history result. ledgr_weight_alignment_mismatch
refuses ledgr_align_weights() solver output whose length, names or shape
do not match the history result's included instruments.
ledgr_pulse_snapshot_availability_required refuses experiment-derived
ledgr_pulse_snapshot() inspection of a dense experiment, and
ledgr_pulse_inspection_stopped refuses an inspection cutoff whose
observe-and-settle stage stops before the strategy context is built.
ledgr_staged_history_mismatch refuses a worker task
before candidate execution when its staged immutable input is absent or has
a different identity.
Store-format classes
ledgr_store_rebuild_required is raised when a persistent store is older,
newer, unmarked, malformed, or carries a format fingerprint different from
this ledgr build. Before the first CRAN release ledgr does not migrate old
stores: rebuild them with the current package.
Availability classes
ledgr_invalid_valuation_policy is raised for malformed stale-valuation
policies or constructor arguments.
ledgr_availability_inactive is raised when a membership-universe rule is
requested without the fact families needed to activate availability-aware
execution.
ledgr_availability_sessions_required is raised when availability-aware
execution lacks a complete session calendar.
ledgr_backtest_availability_unsupported is raised when ledgr_backtest()
receives a snapshot that declares point-in-time facts; use
ledgr_experiment() and ledgr_run().
ledgr_promote_identity_mismatch is a warning raised when a promoted
candidate's recorded identities differ from the promoting experiment's.
ledgr_sessions_incomplete is raised when the declared session calendar
does not cover the requested start and end of a run, sweep, run window or
walk-forward fold.
ledgr_membership_universe_not_found is raised when a membership-universe
rule names a universe that is not declared by the snapshot.
ledgr_compiled_availability_unsupported is raised before execution when
availability-aware execution is combined with the compiled spot-FIFO path.
ledgr_policy_schema_mismatch is raised when a config or stored run carries
a non-current corporate-action or valuation policy schema. Current stores
carry schema 2; ledgr does not infer, migrate, or reinterpret older policy
records.
ledgr_strategy_provenance_missing is raised when a current run row exists
but its required strategy-provenance row is absent.
ledgr_session_time_ambiguous and ledgr_session_time_nonexistent are
raised when a local session wall time resolves to multiple UTC instants or
no UTC instant. Supply an explicit POSIXct instant to disambiguate a real
fall-back time.
ledgr_fact_ambiguous_membership_shape and
ledgr_fact_invalid_membership_list are raised for mixed row/list
membership input or malformed constituent lists.
ledgr_facts_inspection_invalid_args is raised for incompatible history or
resolution arguments. ledgr_facts_scope_not_found is raised when the
requested family and scope are not declared. Snapshot inspection raises
ledgr_facts_snapshot_not_sealed or
ledgr_facts_snapshot_hash_mismatch before returning evidence from an
unsealed or corrupted artifact.
ledgr_session_adapter_invalid and ledgr_session_override_invalid are
raised for malformed qlcal adapter inputs or replacement rows.
ledgr_indicator_gap_parity is raised when a custom bounded indicator's
fn on its window disagrees with its series_fn value beyond the declared
tolerance at a sampled causality position; its fields name the feature,
instrument and session. ledgr_feature_lookahead_detected is raised when a
feature recomputed from the history ending at a sampled session differs
from its prepared value; its fields name the feature, instrument and
session and carry both values.
ledgr_invalid_indicator_declaration (parent ledgr_invalid_args) is
raised for an invalid indicator history class, required-field set or
tolerance. ledgr_indicator_history_contradiction is its subclass for
contradictory declarations: a strict window declared history-dependent, a
tolerance without a bounded fn/series_fn pair, or a registered TTR form
declared against its catalogue row.
ledgr_invalid_strategy_state is raised when availability-aware asset state
is not a named list keyed only by instruments on the current public axis.
ledgr_target_sizing_unavailable is raised when an availability-aware
rebalance helper needs a permissible mark it cannot obtain: to reserve the
exposure of a preserved holding, or to keep a held member that has no
current close. A member without a current close is otherwise skipped for
that rebalance and recorded, not an error.
ledgr_restricted_target and ledgr_nonmember_exposure_increase are raised
when availability-aware strategy output violates the decision-time target
contract. ledgr_post_risk_inadmissible is raised when a risk step does not
preserve or reduce the strategy target. These conditions carry the affected
instrument IDs.
ledgr_short_exposure_unsupported is raised before fill acceptance when an
availability-aware target would open or enlarge short exposure. Existing
short quantities may be held or reduced; this does not define short-account
financing.
ledgr_affordability_reconciliation_failed is raised when recorded active
cash diverges from the bounded-affordability virtual ledger beyond the
engine's fixed tolerance.
ledgr_run_terminal_evidence_invalid is raised when persisted terminal
completion evidence is malformed, disagrees with the run calendar or stored
status, or does not match the finalized equity prefix and stop diagnostic.
ledgr_run_explanation_unavailable is raised when a run has no retained
decision trace for the requested instrument and timestamp. ledgr does not
infer the missing intent from current strategy code or other artifacts.
Saved sweep classes
ledgr_invalid_sweep_id is raised when a saved sweep id is not a non-empty,
non-whitespace ASCII character scalar of at most 256 bytes.
ledgr_sweep_id_exists is raised when ledgr_sweep_save() would overwrite
an existing saved sweep id.
ledgr_sweep_not_found is raised when ledgr_sweep_open() is called with
a structurally valid saved sweep id that is not present in the experiment
store.
ledgr_sweep_snapshot_not_found is raised when a saved sweep's snapshot is
not present in the provided experiment store.
ledgr_sweep_snapshot_hash_mismatch is raised when the snapshot id exists
but its hash differs from the hash stored on the saved sweep.
ledgr_sweep_schema_incompatible is raised when saved sweep tables,
columns, or artifact schema versions are not compatible with the current
ledgr version.
ledgr_invalid_sweep_retention is raised when ledgr_sweep_retention() or
ledgr_sweep(..., retain = ) receives an invalid retention policy.
ledgr_sweep_returns_unretained is raised when callers ask for retained
return rows from a scalar-only sweep.
ledgr_sweep_returns_candidate_not_found is raised when retained returns are
requested for an unknown candidate_id.
ledgr_sweep_returns_candidate_not_completed is raised when retained
returns are requested for a failed candidate or for a completed candidate
whose retained rows are missing.
ledgr_sweep_returns_first_row_invalid is raised when retained return rows
do not carry the required structural first-row NA_real_ period return.
ledgr_sweep_returns_incomplete_panel is raised when callers request a
complete retained-return panel but selected completed candidates do not share
one common timestamp grid after first-row handling.
ledgr_validation_pbo_incomplete_panel is a compatibility alias on the same
condition for future PBO/CSCV adapters.
ledgr_sweep_trades_unretained is raised when callers ask for retained
closed-trade evidence from a sweep that did not opt into trade retention.
ledgr_sweep_trades_candidate_not_found is raised when retained trades are
requested for an unknown candidate_id.
ledgr_sweep_trades_candidate_not_completed is raised when retained trades
are requested for a failed candidate.
ledgr_sweep_trades_candidate_not_retained is raised when retained trades
are missing for a completed candidate that reports closed trades.
ledgr_incomplete_sweep_candidate is raised when candidate extraction is
requested for an INCOMPLETE sweep row. ledgr_promote_incomplete_candidate
is raised when promotion receives an incomplete candidate. Incomplete
prefixes remain evidence and never become executable candidates.
ledgr_validation_pbo_invalid_s is raised when a PBO/CSCV request supplies
an invalid S subset count.
ledgr_validation_pbo_too_few_candidates is raised when PBO/CSCV has fewer
than two completed candidates.
ledgr_validation_pbo_too_few_observations is raised when PBO/CSCV has too
few post-first-row observations for the requested partitioning.
ledgr_validation_pbo_invalid_metric is raised when a PBO/CSCV metric is not
callable or does not return one finite numeric score per candidate.
ledgr_validation_pbo_invalid_panel is raised when PBO/CSCV receives a
non-finite retained-return panel after the structural first-row handling.
ledgr_validation_pbo_invalid_threshold is raised when a PBO/CSCV threshold
is not a finite numeric scalar.
ledgr_validation_min_trl_invalid_reference is raised when a minimum track
record length request supplies an invalid reference Sharpe ratio.
ledgr_validation_min_trl_invalid_confidence is raised when a minimum track
record length request supplies a confidence level outside (0, 1).
ledgr_validation_min_trl_invalid_risk_free is raised when a minimum track
record length request supplies an invalid per-period risk-free return.
ledgr_validation_min_trl_too_few_observations is raised when minimum track
record length has too few post-first-row observations.
ledgr_validation_min_trl_invalid_returns is raised when minimum track
record length receives non-finite or constant retained returns.
ledgr_validation_k_ratio_invalid_periods_per_year is raised when a K-Ratio
request omits or supplies an invalid expected observations-per-year value.
ledgr_validation_k_ratio_invalid_risk_free is raised when K-Ratio receives
an invalid per-period risk-free return.
ledgr_validation_k_ratio_too_few_observations is raised when K-Ratio has
fewer than three return observations.
ledgr_validation_k_ratio_invalid_returns is raised when K-Ratio receives
non-finite returns, an excess return at or below -1, or a cumulative
log-wealth path whose slope standard error is zero or non-finite.
ledgr_validation_cluster_invalid_threshold is raised when retained-return
clustering receives an invalid correlation-distance threshold.
ledgr_validation_cluster_too_few_candidates is raised when retained-return
clustering has fewer than two completed candidates.
ledgr_validation_cluster_too_few_observations is raised when retained-return
clustering has too few post-first-row observations.
ledgr_validation_cluster_invalid_returns is raised when retained-return
clustering receives non-finite or constant retained returns.
ledgr_validation_dsr_invalid_effective_trials is raised when DSR receives
an invalid effective independent trial count.
ledgr_validation_dsr_too_few_candidates is raised when DSR has fewer than
two completed candidates.
ledgr_validation_dsr_invalid_confidence is raised when DSR receives a
confidence level outside (0, 1).
ledgr_validation_dsr_invalid_risk_free is raised when DSR receives an
invalid per-period risk-free return.
ledgr_validation_dsr_too_few_observations is raised when DSR has too few
post-first-row observations.
ledgr_validation_dsr_invalid_returns is raised when DSR receives
non-finite, constant, or otherwise unsupported retained returns.
Business-objective classes
ledgr_invalid_business_objective is raised when an objective is empty or
does not have the required classed, serialized, all-pass shape.
ledgr_duplicate_objective_criterion is raised when an objective contains
duplicate criterion ids.
ledgr_business_objective_hash_mismatch is raised when an objective's
canonical plan JSON or hash does not match its criterion steps.
ledgr_invalid_objective_criterion is raised when a criterion is unclassed,
malformed, or has invalid parameters. ledgr_unknown_objective_criterion
is raised for criterion ids that ledgr does not own in v1.
ledgr_objective_non_serializable_params is raised when criterion
parameters cannot be represented by the canonical objective plan.
ledgr_objective_criterion_hash_mismatch is raised when a criterion hash
does not match its serialized payload.
ledgr_invalid_objective_verdict is raised when an internal criterion
evaluator returns a malformed verdict. ledgr_objective_missing_evidence,
ledgr_objective_non_finite_evidence, and
ledgr_objective_invalid_evidence fail closed on unusable criterion input.
ledgr_invalid_diagnostic_threshold is raised for unsupported diagnostic
result classes, columns, comparisons, or malformed embedded evidence.
ledgr_diagnostic_source_hash_mismatch is raised when an embedded
diagnostic snapshot does not match its source hash.
ledgr_stable_region_invalid_min_neighbors is raised for an invalid
support-neighbor threshold. ledgr_stable_region_invalid_grid and
ledgr_stable_region_invalid_metric cover malformed lattice or score input.
More specific lattice classes are ledgr_stable_region_unordered_axis,
ledgr_stable_region_unsupported_axis, ledgr_stable_region_collapsed_axis,
ledgr_stable_region_duplicate_tuple,
ledgr_stable_region_incomplete_grid, and
ledgr_stable_region_no_adjacent_pairs.
ledgr_invalid_sweep_filter_input and
ledgr_sweep_filter_no_completed_candidates cover malformed or empty
sweep-filter inputs. ledgr_sweep_filter_diagnostic_source_mismatch is
raised when embedded diagnostic evidence came from a different return
panel. ledgr_sweep_filter_parameter_missing and
ledgr_sweep_filter_ambiguous_parameter cover strict-lattice parameter
extraction failures. ledgr_invalid_sweep_filter_result covers malformed
filter evidence. ledgr_sweep_filter_not_candidate,
ledgr_sweep_filter_promotion_forbidden, and
ledgr_sweep_filter_walk_forward_forbidden explicitly prevent the
all-candidates evidence result from entering selection surfaces; all three
inherit from ledgr_sweep_filter_evidence_only.
ledgr_missing_package is raised when a public optional-package adapter is
requested but the package is not installed.
Metric-context warning classes
ledgr_metric_context_cadence_mismatch is emitted when a daily metric
context is applied to evidence whose observed median interval is clearly
subdaily. The warning identifies a possible annualization mismatch; it does
not change metric values, metric recipes, stored evidence, or identity.
Walk-forward classes
ledgr_walk_forward_metric_missing is raised when a selection rule requests
a metric column that is absent from the train-window score rows.
ledgr_walk_forward_metric_class_invalid is raised when a selection metric
is not classified as valid for v1 scalar selection.
ledgr_walk_forward_no_selection is raised when all candidate values for the
requested selection metric are missing, NA, NaN, or infinite. Inside
ledgr_walk_forward() it ends the session only under
no_selection = "fail"; the default "previous" reuses the latest
training selection, or runs no test window before the first one.
ledgr_walk_forward_gapped_carry (also
ledgr_walk_forward_invalid_fold_window) is raised by
ledgr_walk_forward() under opening_state_policy = "carry_test_state"
when a pulse lies between two consecutive test windows, before any work
runs. Its message names the first gap; use contiguous folds or
"flat_test_state".
ledgr_walk_forward_overlapping_carry (also
ledgr_walk_forward_invalid_fold_window) is raised by
ledgr_walk_forward() under opening_state_policy = "carry_test_state"
when a test window does not start after the previous one ends (overlap or
reverse order), before any work runs. Its message names the first such pair;
use contiguous folds or "flat_test_state".
ledgr_walk_forward_candidate_key_missing is raised when the train-window
score rows passed to a selection rule do not include a candidate_key column.
ledgr_walk_forward_test_run_failed is raised when a selected test run
cannot produce a usable test score row.
ledgr_walk_forward_session_not_found is raised when walk-forward
inspection helpers cannot find the requested session.
ledgr_walk_forward_snapshot_hash_mismatch is raised when the supplied
snapshot does not match the persisted walk-forward session identity.
ledgr_walk_forward_snapshot_override_mismatch is raised when an explicit
snapshot override for candidate extraction has a different snapshot_id or
snapshot_hash than the walk-forward result locator.
ledgr_walk_forward_invalid_session is raised when persisted walk-forward
session rows, linked test runs, or identity fields cannot be reopened
safely.
ledgr_walk_forward_latest_without_rationale is raised when extracting
fold_seq = "latest" without an explicit selection_rationale.
ledgr_walk_forward_candidate_not_found is raised when a requested
walk-forward fold does not contain a completed selected candidate.
Availability reason codes
Availability-aware diagnostics use this closed vocabulary. An accepted fill without a complication uses an empty reason code.
| Exact token | Stage | Action / interpretation |
decision_recorded | decision | unrestricted decision recorded |
empty_public_domain | decision | empty axis; no targets emitted |
trading_halted | restriction | hold or exit only |
quotation_only | restriction | hold or exit only |
status_unknown | restriction | hold or exit only |
status_unknown_or_conflicting | restriction | hold or exit only |
lifetime_inactive | restriction / terminal | hold or exit until the terminal resolves under the declared policy |
stale_mark_reduction | risk | reducing target accepted with a stale mark |
stale_mark_pass_through | risk | unchanged target accepted with a stale mark |
risk_mark_unavailable | risk stop | accepted prefix finalized incomplete |
restricted_target | target validation | classed strategy-result failure |
nonmember_exposure_increase | target validation | classed strategy-result failure |
post_risk_inadmissible | post-risk validation | classed risk failure |
short_exposure_unsupported | target validation | classed strategy-result failure |
insufficient_cash | execution | cash-consuming fill rejected |
execution_bar_missing | execution | no fill; no standing order |
membership_changed_before_execution | execution diagnostic | report only; never an execution gate |
final_pulse_no_execution | execution | no fill without a later pulse |
affordability_reconciled | reconciliation | accepted fills applied and reconciled |
affordability_reconciliation_failed | reconciliation stop | accepted prefix finalized incomplete |
valuation_horizon_exhausted | valuation stop | under exhausted = "refuse", or a holding with no mark at all; accepted prefix finalized incomplete |
valuation_frozen | valuation / restriction | under exhausted = "freeze", carried at its last close; hold or exit only, no transaction |
valuation_freeze_exited | valuation diagnostic | a frozen holding resumed, was exited or was disposed |
terminal_disposition | valuation | modeled terminal outcome posted as one DISPOSITION before the strategy decision |
terminal_settlement_unsupported | valuation stop | unlabeled or refused terminal; holding preserved, no fabricated settlement |
terminal_mark_unavailable | valuation stop | the terminal choice needs a mark that does not exist; accepted prefix finalized incomplete |
corporate_action_cash_refused | valuation stop | a held corporate-action cash settlement refused by policy; accepted prefix finalized incomplete |
corporate_action_quantity_refused | valuation stop | a held quantity effect, unmodeled fact or refused (complete = FALSE) fact refused by policy; accepted prefix finalized incomplete |
fold_exception | error | failed after transaction rollback |
For the connected workflow and interpretation, see
vignette("survivorship-bias", package = "ledgr") and
system.file("doc", "survivorship-bias.html", package = "ledgr").
Evidence, assumptions and refusals
Availability-aware results keep six cases apart.
Settlement evidence. A supported settlement fact or a scheduled corporate-action row disposes a holding as recorded. It is evidence, not an assumption, and it pre-empts every modeled choice.
Modeled terminal disposition (
terminal_disposition). A labeledknown_inactiveholding without settlement evidence is disposed under the declaredheld_terminal_positionchoice. The result names the choice and whether it was declared or a default, for exampledefault: assumed worthless.Stale valuation (
stale_close). A holding is valued at a close no older thanmax_sessions. Cash and quantity stay exact.Frozen valuation (
valuation_frozen,frozen_close). Underexhausted = "freeze"a holding is carried at its last close beyondmax_sessions. Cash and quantity stay exact, but equity during the freeze is an assumption-backed estimate, not an exact value.Refusal.
valuation_horizon_exhausted,terminal_settlement_unsupported,terminal_mark_unavailable,corporate_action_cash_refusedandcorporate_action_quantity_refusedstop the runINCOMPLETEand keep the accepted prefix. Nothing is fabricated. A dense run has no typed stop: its corporate-action refusals raiseledgr_corporate_action_unsupported.Frozen-at-end bound.
total_return_if_frozen_worthlessinledgr_valuation_summary()restates endpoint return with holdings still frozen at the end valued at zero. It is a bound, not a corrected return, Sharpe ratio or drawdown.
Related existing classes
ledgr_run_not_found is raised when run-store inspection helpers cannot
find the requested run. ledgr_unresolved_feature_id is raised when callers
ask for a concrete feature ID before parameterized feature declarations have
been resolved. ledgr_strategy_error wraps an error raised by user strategy
code while preserving the original error as its parent.
Additional public condition classes
The classes below complete the public condition index. Each message carries the concrete field, identity, or operation that failed; callers should assert on the class rather than parse that message.
ledgr_ambiguous_bundle_outputreports the ambiguous bundle output boundary.ledgr_availability_validation_failedreports the availability validation failed boundary.ledgr_availability_valuation_out_of_orderreports the availability valuation out of order boundary.ledgr_broker_adapter_not_supportedreports the broker adapter not supported boundary.ledgr_candidate_cost_identity_mismatchreports the candidate cost identity mismatch boundary.ledgr_candidate_missing_snapshot_hashreports the candidate missing snapshot hash boundary.ledgr_candidate_risk_identity_mismatchreports the candidate risk identity mismatch boundary.ledgr_candidate_snapshot_mismatchreports the candidate snapshot mismatch boundary.ledgr_checkpoint_failedreports the checkpoint failed boundary.ledgr_compiled_spot_fifo_invalid_inputreports the compiled spot fifo invalid input boundary.ledgr_compiled_spot_fifo_unavailablereports the compiled spot fifo unavailable boundary.ledgr_config_invalid_jsonreports the config invalid json boundary.ledgr_config_non_deterministicreports the config non deterministic boundary.ledgr_config_non_finitereports the config non finite boundary.ledgr_config_unsupported_typereports the config unsupported type boundary.ledgr_corporate_action_clock_mismatchreports the corporate action clock mismatch boundary.ledgr_corporate_action_double_creditreports the corporate action double credit boundary.ledgr_corporate_action_entitlement_missingreports a cash-dividend, disposition or quantity-effect corporate action without an entitlement clock.ledgr_corporate_action_quantity_unsupportedreports the corporate action quantity unsupported boundary.ledgr_db_not_foundreports db was not found.ledgr_distribution_adjusted_bars_unsupportedreports the distribution adjusted bars unsupported boundary.ledgr_duplicate_corporate_action_eventreports duplicate corporate action event evidence.ledgr_duplicate_corporate_action_factreports duplicate corporate action fact evidence.ledgr_duplicate_executable_grid_labelsreports duplicate executable grid labels evidence.ledgr_duplicate_fact_familyreports duplicate fact family evidence.ledgr_duplicate_feature_idreports duplicate feature id evidence.ledgr_duplicate_grid_labelsreports duplicate grid labels evidence.ledgr_duplicate_grid_rowsreports duplicate rectangular-grid row evidence.ledgr_empty_warmup_inputreports the empty warmup input boundary.ledgr_event_buffer_capacity_exceededreports the event buffer capacity exceeded boundary.ledgr_fact_identity_conflictreports the fact identity conflict boundary.ledgr_fact_invalid_clock_orderreports the fact invalid clock order boundary.ledgr_fact_invalid_completereports the fact invalid complete boundary.ledgr_fact_invalid_completenessreports the fact invalid completeness boundary.ledgr_fact_invalid_idreports the fact invalid id boundary.ledgr_fact_invalid_instrumentreports the fact invalid instrument boundary.ledgr_fact_invalid_instrument_masterreports the fact invalid instrument master boundary.ledgr_fact_invalid_intervalreports the fact invalid interval boundary.ledgr_fact_invalid_lifetimereports the fact invalid lifetime boundary.ledgr_fact_invalid_logicalreports the fact invalid logical boundary.ledgr_fact_invalid_membership_setreports the fact invalid membership set boundary.ledgr_fact_invalid_precedencereports the fact invalid precedence boundary.ledgr_fact_invalid_provenancereports the fact invalid provenance boundary.ledgr_fact_invalid_provenance_tierreports the fact invalid provenance tier boundary.ledgr_fact_invalid_shapereports the fact invalid shape boundary.ledgr_fact_invalid_sourcereports the fact invalid source boundary.ledgr_fact_invalid_statusreports the fact invalid status boundary.ledgr_fact_invalid_subtypereports the fact invalid subtype boundary.ledgr_fact_invalid_supersessionreports the fact invalid supersession boundary.ledgr_fact_invalid_timereports the fact invalid time boundary.ledgr_fact_structural_conflictreports the fact structural conflict boundary.ledgr_fact_unvalidated_termreports the fact unvalidated term boundary.ledgr_failed_sweep_candidatereports the failed sweep candidate boundary.ledgr_feature_factory_requires_paramsreports the feature factory requires params boundary.ledgr_feature_lookahead_detectedreports the feature lookahead detected boundary.ledgr_grid_filter_invalidreports the grid filter invalid boundary.ledgr_invalid_accounting_eventreports invalid accounting event input.ledgr_invalid_alias_mapreports invalid alias map input.ledgr_invalid_argsreports invalid args input.ledgr_invalid_backtestreports invalid backtest input.ledgr_invalid_conreports invalid con input.ledgr_invalid_configreports invalid config input.ledgr_invalid_corporate_action_eventreports invalid corporate action event input.ledgr_invalid_corporate_action_fidelityreports invalid corporate action fidelity input.ledgr_invalid_corporate_action_policyreports invalid corporate action policy input.ledgr_invalid_event_orderreports invalid event order input.ledgr_invalid_executable_gridreports invalid executable grid input.ledgr_invalid_execution_specreports invalid execution spec input.ledgr_invalid_experimentreports invalid experiment input.ledgr_invalid_experiment_featuresreports invalid experiment features input.ledgr_invalid_experiment_strategyreports invalid experiment strategy input.ledgr_invalid_factsreports invalid facts input.ledgr_invalid_feature_defreports invalid feature def input.ledgr_invalid_feature_inputreports invalid feature input input.ledgr_invalid_feature_mapreports invalid feature map input.ledgr_invalid_feature_outputreports invalid feature output input.ledgr_invalid_feature_paramsreports invalid feature params input.ledgr_invalid_feature_resolutionreports invalid feature resolution input.ledgr_invalid_feature_valuereports invalid feature value input.ledgr_invalid_fill_inputreports invalid fill input input.ledgr_invalid_fill_intentreports invalid fill intent input.ledgr_invalid_fold_executionreports invalid fold execution input.ledgr_invalid_gridreports invalid grid input.ledgr_invalid_grid_columnreports a rectangular-grid column whose type or class is unsupported.ledgr_invalid_grid_valuereports a missing or non-finite rectangular-grid value.ledgr_invalid_indicator_bundlereports invalid indicator bundle input.ledgr_invalid_ledger_eventreports invalid ledger event input.ledgr_invalid_ledger_metareports invalid ledger meta input.ledgr_invalid_metric_contextreports invalid metric context input.ledgr_invalid_openingreports invalid opening input.ledgr_invalid_optionreports invalid option input.ledgr_invalid_parallel_backendreports invalid parallel backend input.ledgr_invalid_parallel_workersreports invalid parallel workers input.ledgr_invalid_param_constructorreports invalid param constructor input.ledgr_invalid_param_referencereports invalid param reference input.ledgr_invalid_parameterized_bundlereports invalid parameterized bundle input.ledgr_invalid_post_risk_targetsreports invalid post risk targets input.ledgr_invalid_precompute_rangereports invalid precompute range input.ledgr_invalid_precomputed_featuresreports invalid precomputed features input.ledgr_invalid_price_basisreports invalid price basis input.ledgr_invalid_promotion_context_summaryreports invalid promotion context summary input.ledgr_invalid_pulse_contextreports invalid pulse context input.ledgr_invalid_pulse_planreports invalid pulse plan input.ledgr_invalid_pulse_wide_namesreports invalid pulse wide names input.ledgr_invalid_result_tablereports invalid result table input.ledgr_invalid_return_panelreports invalid return panel input.ledgr_invalid_return_panel_inputreports invalid return panel input input.ledgr_invalid_risk_contextreports invalid risk context input.ledgr_invalid_risk_modelreports invalid risk model input.ledgr_invalid_risk_planreports invalid risk plan input.ledgr_invalid_runreports invalid run input.ledgr_invalid_runtime_projectionreports invalid runtime projection input.ledgr_invalid_snapshotreports invalid snapshot input.ledgr_invalid_statereports invalid state input.ledgr_invalid_storereports invalid store input.ledgr_invalid_strategyreports invalid strategy input.ledgr_invalid_strategy_helperreports invalid strategy helper input.ledgr_invalid_strategy_paramsreports invalid strategy params input.ledgr_invalid_strategy_preflightreports invalid strategy preflight input.ledgr_invalid_strategy_resultreports invalid strategy result input.ledgr_invalid_strategy_signaturereports invalid strategy signature input.ledgr_invalid_strategy_typereports invalid strategy type input.ledgr_invalid_sweep_candidate_inputreports invalid sweep candidate input input.ledgr_invalid_sweep_projectionreports invalid sweep projection input.ledgr_invalid_sweep_review_inputreports invalid sweep review input input.ledgr_invalid_sweep_review_rankreports invalid sweep review rank input.ledgr_invalid_target_pricereports invalid target price input.ledgr_invalid_timestampreports invalid timestamp input.ledgr_invalid_warmup_inputreports invalid warmup input input.ledgr_invalid_worker_dependenciesreports invalid worker dependencies input.ledgr_invalid_worker_packagesreports invalid worker packages input.ledgr_invariant_violationreports the invariant violation boundary.ledgr_legacy_feature_factory_feature_params_unsupportedreports the legacy feature factory feature params unsupported boundary.ledgr_levered_weightsreports the levered weights boundary.ledgr_lot_state_invariantreports the lot state invariant boundary.ledgr_missing_barsreports missing bars evidence.ledgr_missing_dependencyreports missing dependency evidence.ledgr_missing_metric_contextreports missing metric context evidence.ledgr_missing_optional_dependencyreports missing optional dependency evidence.ledgr_missing_precomputed_features_warningreports missing precomputed features warning evidence.ledgr_mixed_metric_cadencereports the mixed metric cadence boundary.ledgr_negative_weightsreports the negative weights boundary.ledgr_no_active_alias_mapreports the no active alias map boundary.ledgr_observation_invalid_shapereports the observation invalid shape boundary.ledgr_observation_quarantine_duplicatereports the observation quarantine duplicate boundary.ledgr_ohlc_non_positivereports the ohlc non positive boundary.ledgr_opening_cost_basis_missingreports the opening cost basis missing boundary.ledgr_parallel_backend_missingreports the parallel backend missing boundary.ledgr_parallel_errorreports the parallel error boundary.ledgr_parallel_strategy_not_allowedreports the parallel strategy not allowed boundary.ledgr_parallel_sweep_interruptedreports the parallel sweep interrupted boundary.ledgr_parallel_worker_failedreports the parallel worker failed boundary.ledgr_parallel_worker_package_missingreports the parallel worker package missing boundary.ledgr_param_missingreports the param missing boundary.ledgr_param_non_scalarreports the param non scalar boundary.ledgr_partial_selectionreports the partial selection boundary.ledgr_precomputed_coverage_errorreports the precomputed coverage error boundary.ledgr_precomputed_engine_mismatchreports the precomputed engine mismatch boundary.ledgr_precomputed_feature_mismatchreports the precomputed feature mismatch boundary.ledgr_precomputed_grid_mismatchreports the precomputed grid mismatch boundary.ledgr_precomputed_range_mismatchreports the precomputed range mismatch boundary.ledgr_precomputed_snapshot_mismatchreports the precomputed snapshot mismatch boundary.ledgr_precomputed_universe_mismatchreports the precomputed universe mismatch boundary.ledgr_promote_failed_candidatereports the promote failed candidate boundary.ledgr_promotion_context_write_failedreports the promotion context write failed boundary.ledgr_purity_violationreports the purity violation boundary.ledgr_quarantine_requires_sessionsreports the quarantine requires sessions boundary.ledgr_return_panel_ambiguous_shapereports the return panel ambiguous shape boundary.ledgr_return_panel_invalid_tsreports the return panel invalid ts boundary.ledgr_return_panel_missing_candidate_idsreports the return panel missing candidate ids boundary.ledgr_risk_application_errorreports the risk application error boundary.ledgr_risk_plan_parameter_missingreports the risk plan parameter missing boundary.ledgr_run_hash_mismatchreports the run hash mismatch boundary.ledgr_run_lookup_mismatchreports the run lookup mismatch boundary.ledgr_run_not_completereports the run not complete boundary.ledgr_run_registration_failedreports the run registration failed boundary.ledgr_run_telemetry_failedreports the run telemetry failed boundary.ledgr_scalar_accessor_loopreports the scalar accessor loop boundary.ledgr_session_coverage_incompletereports the session coverage incomplete boundary.ledgr_session_instant_duplicatereports the session instant duplicate boundary.ledgr_session_instant_off_datereports the session instant off date boundary.ledgr_session_invalidreports the session invalid boundary.ledgr_session_invalid_timezonereports the session invalid timezone boundary.ledgr_session_knowledge_latereports the session knowledge late boundary.ledgr_session_multiple_venuesreports the session multiple venues boundary.ledgr_sim_pit_insufficient_shapereports the sim pit insufficient shape boundary.ledgr_sim_pit_invalidreports the sim pit invalid boundary.ledgr_snapshot_existsreports the snapshot exists boundary.ledgr_snapshot_fact_family_invalidreports the snapshot fact family invalid boundary.ledgr_snapshot_fact_family_missingreports the snapshot fact family missing boundary.ledgr_snapshot_fact_interval_invalidreports the snapshot fact interval invalid boundary.ledgr_snapshot_fact_json_invalidreports the snapshot fact json invalid boundary.ledgr_snapshot_fact_referential_integrityreports the snapshot fact referential integrity boundary.ledgr_snapshot_fact_timestamp_invalidreports the snapshot fact timestamp invalid boundary.ledgr_snapshot_hash_encoding_invalidreports the snapshot hash encoding invalid boundary.ledgr_snapshot_id_noncanonicalreports the snapshot id noncanonical boundary.ledgr_snapshot_id_requiredreports snapshot id is required.ledgr_snapshot_membership_set_invalidreports the snapshot membership set invalid boundary.ledgr_snapshot_membership_set_missingreports the snapshot membership set missing boundary.ledgr_snapshot_not_foundreports snapshot was not found.ledgr_snapshot_not_sealedreports the snapshot not sealed boundary.ledgr_snapshot_quarantine_unacknowledgedreports the snapshot quarantine unacknowledged boundary.ledgr_snapshot_requiredreports snapshot is required.ledgr_snapshot_sessions_invalidreports the snapshot sessions invalid boundary.ledgr_strategy_ambient_rng_not_supportedreports the strategy ambient rng not supported boundary.ledgr_strategy_ambient_rng_parallelreports the strategy ambient rng parallel boundary.ledgr_strategy_ambient_rng_resumereports the strategy ambient rng resume boundary.ledgr_strategy_eval_failedreports the strategy eval failed boundary.ledgr_strategy_hash_mismatchreports the strategy hash mismatch boundary.ledgr_strategy_hash_unverifiedreports the strategy hash unverified boundary.ledgr_strategy_not_functionreports the strategy not function boundary.ledgr_strategy_parse_failedreports the strategy parse failed boundary.ledgr_strategy_preflight_errorreports the strategy preflight error boundary.ledgr_strategy_source_unavailablereports the strategy source unavailable boundary.ledgr_strategy_tier3reports the strategy tier3 boundary.ledgr_sweep_candidate_not_foundreports sweep candidate was not found.ledgr_sweep_storage_identity_mismatchreports the sweep storage identity mismatch boundary.ledgr_sweep_storage_invalid_identityreports the sweep storage invalid identity boundary.ledgr_sweep_storage_invalid_provenancereports the sweep storage invalid provenance boundary.ledgr_temp_store_unlink_failedreports the temp store unlink failed boundary.ledgr_unknown_feature_idreports an unknown feature id.ledgr_unsupported_accounting_modelreports unsupported accounting model use.ledgr_unsupported_execution_startreports unsupported execution start use.ledgr_unsupported_param_placementreports unsupported param placement use.ledgr_unsupported_risk_stepreports unsupported risk step use.ledgr_walk_forward_cold_start_warningreports the walk forward cold start warning boundary.ledgr_walk_forward_gap_not_supportedreports the walk forward gap not supported boundary.ledgr_walk_forward_invalid_foldreports the walk forward invalid fold boundary.ledgr_walk_forward_invalid_identityreports the walk forward invalid identity boundary.ledgr_walk_forward_invalid_opening_statereports the walk forward invalid opening state boundary.ledgr_walk_forward_invalid_selection_rulereports the walk forward invalid selection rule boundary.
Examples
err <- try(ledgr_cost_spread_bps(-1), silent = TRUE)
inherits(attr(err, "condition"), "ledgr_invalid_cost_model")
#> [1] TRUE
err <- try(
ledgr_cost_chain(ledgr_cost_fixed_fee(1), ledgr_cost_spread_bps(5)),
silent = TRUE
)
inherits(attr(err, "condition"), "ledgr_invalid_cost_chain_order")
#> [1] TRUE