Skip to content

Commit e963e5e

Browse files
luisleo526claude
andcommitted
report: fail with report_result_invalid when a report metric overflows; short-span annualised metrics are a defined absence with a named reason (CR-202)
Squash of cx/metrics-overflow-v3 on engine main 0212cab (merged with it without conflict; the one file both touch is docs/pages/native-engine.md, in disjoint hunks). Its single parent is engine main, as the GitHub squash writes it. What changes - A report metric whose computed value overflows (buy_hold_return, every other report metric) fails the run with the typed failure report_result_invalid, reason nonfinite, instead of writing null. - Revision 3.1 (docs/design/selected-window-wire-v1.3-revision-3.1.md, docs/pages/report-schema.md): cagr, calmar, sharpe_bar and sortino_bar are annualised from the measured span. Under one day (0 < span_ms < 86 400 000, span from the equity-curve point times, UTC epoch milliseconds, script-bar open clock) each is a defined absence: null on the public report with the reason span_too_short_to_annualize at diagnostics.annualization.<field>, outside the 135 digest leaves. At or above one day an overflow stays the typed failure. The policy list is docker/report_annualization.def, read by the kernel, and a copy in docker/run_json.py held equal by a test. - C host (src/native_c_host.cpp): a report failure after a completed run is recorded and returns E_STATE, a report failure after an earlier latched failure returns E_RUN_FAILED with that failure; in both the caller's report struct is defined (zeroed local report freed on a throw) instead of half written. - The native runner keeps its own report format: undefined metrics stay the string "NaN" (runner/README.md); only an infinite value is the typed failure there. - Disclosed behaviour: an infinite first-open or last-close price and a non-finite selected anchor are now report_result_invalid (feed admission makes the first unreachable). - kNeutralReportDigest in tests/test_native_anchored_legs.cpp is 8139101939074791901 (was 17583267501122239024): the lab harvest of the neutral 15 one-minute bar run, whose cagr, sharpe_bar and sortino_bar become absent on its 14-minute span. Source: lab job rj-20261020t003449-511ce1 (label cr202-v4b-harvest-22b20449), release step log line 2527 "neutral report digest 8139101939074791901, pinned 17583267501122239024"; fixture authority for exactly that printed value was given by CORE-TOP on 2026-10-20 08:20. That test was the only failure of that release run (99% tests passed, 1 tests failed out of 962). Documentation sentences reworded or replaced by this change, each named for scripts/check_doc_reverts.py (the sentence's introducing commit, then its first words): - 1bd075c (Trading metrics + equity curve in backtest report, #31): "See the per-field doxygen in `<pineforge/pineforge.h>` for the exact rule on every field." in docs/pages/report-schema.md, now "in `<pineforge/pineforge.h>` for the existing field domains; the rule below is authoritative for the sub-day case". - 1b08c61 (EN-133, #384): "net_pnl, avg_trade, best_trade, worst_trade and max_drawdown, must be finite or the run fails with report_result_invalid, field naming the corresponding trades.<leaf> or summary.<leaf> and reason equal to nonfinite." in docs/pages/report-schema.md, extended with win_rate_pct and the equity-curve equity and open_profit leaves. - 5691220 (ADR-0001 rewritten against HEAD): "compute_equity_stats answers its all-NaN value with no error" in docs/adr/0001-kernel-adapter-boundary.md, now "answers its defined empty-curve metrics with no error". - 375795a (shard the ownership manifest-controls test, CR-196): "(9, 9, 9 and 8 for shards 1 to 4 of 4: 8, 8, 8 and 7 cases plus the guard)" and "The separate cheap test_shards_partition_every_case_exactly_once guard runs in every shard" in tests/ownership/README.md, now "(10, 10, 10 and 10 for shards 1 to 4 of 4: 9 cases plus the guard in each)" and "Each shard also runs the cheap test_shards_partition_every_case_exactly_once guard". - file:line citation digits only, wording kept: ADR-0001 (the "inclusive bar metrics" bullet, the "Reporting." bullet, the strategy_configure_native_v1 row, the magnifier_sub_bars_total row), native-feature-parity rows RP2, RP4, S1b and "A zoned chart-day memo", native-refactor-progress (the quiet-bar cost check and the every_gate_is_taken_both_ways citation), native-engine ("MUST mirror" citation of compute_equity_stats). Documentation sentences the history of this branch introduced and later reworded or removed (none of them is deleted by this squash against main): - c9ba507 introduced "Report arithmetic that produces a nonfinite value, including overflow, fails with `report_result_invalid` and reason `nonfinite`." in docs/pages/report-schema.md. - c9ba507 introduced "The engine checks computed values before they can become a metric absence." in docs/pages/report-schema.md. - eba8561 (revision 3.1) introduced "The constant policy list is in `docker/report_annualization.def`, shared by the native metric walk and public report writer." in docs/design/selected-window-wire-v1.3-revision-3.1.md. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent 0212cab commit e963e5e

36 files changed

Lines changed: 2319 additions & 148 deletions

‎docker/report_annualization.def‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Revision 3.1 policy included by the kernel build.
2+
// The public report writer's copy is checked against this file by a pin test.
3+
PF_ANNUALIZATION_SPAN_MS(86400000)
4+
PF_SHORT_SPAN_ANNUALIZED_FIELD(cagr)
5+
PF_SHORT_SPAN_ANNUALIZED_FIELD(calmar)
6+
PF_SHORT_SPAN_ANNUALIZED_FIELD(sharpe_bar)
7+
PF_SHORT_SPAN_ANNUALIZED_FIELD(sortino_bar)

‎docker/run_json.py‎

Lines changed: 92 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"longs": { ...pf_trade_stats_t... }, # long trades only
5555
"shorts": { ...pf_trade_stats_t... }, # short trades only
5656
"equity": { ...pf_equity_stats_t... } # sharpe/sortino/cagr/calmar/...
57-
}, # any NaN statistic -> null (see _num)
57+
}, # defined metric absence -> null (see _num)
5858
"equity_curve": [ # ABI v2: one point per script bar
5959
{ "time_ms": int, "equity": float, "open_profit": float },
6060
...
@@ -129,7 +129,8 @@
129129
130130
NaN convention: any metric with an empty/zero denominator is null (JSON has no
131131
NaN); a real computed 0 stays 0. See the report-schema + metrics reference docs
132-
for the per-field meaning of every metrics.* key.
132+
for the per-field meaning of every metrics.* key. Overflow and other computed
133+
nonfinite report values fail as report_result_invalid, reason nonfinite.
133134
134135
Selected-window mode (selected-window wire v1.3, full/v1 report, no digest). Opt in
135136
with --report-policy selected-window/v1, --window-start-ms T, --window-end-ms E,
@@ -2210,6 +2211,13 @@ def failure_line(text, code=None, code_args=None) -> str:
22102211
(_cut_utf8(_no_surrogates(value), ERROR_ARG_TEXT_MAX)
22112212
if isinstance(value, str) else value)
22122213
for name, value in (code_args or {}).items()}
2214+
if code == "report_result_invalid":
2215+
# Translate native metric fields at the public wire boundary.
2216+
field = doc["args"].get("field")
2217+
if isinstance(field, str):
2218+
prefix, separator, name = field.rpartition(".")
2219+
if prefix == "metrics.equity":
2220+
doc["args"]["field"] = prefix + separator + EQUITY_REPORT_KEYS.get(name, name)
22132221
line = _dump_line(doc)
22142222
if len(line) > ERROR_LINE_MAX:
22152223
if code is not None and len(_dump_line({**doc, "error": ""})) > ERROR_LINE_MAX:
@@ -3543,12 +3551,13 @@ def fmt_utc(ms: int) -> str:
35433551
ms / 1000, tz=timezone.utc).strftime("%Y-%m-%d %H:%M UTC")
35443552

35453553

3546-
def _num(x):
3547-
"""JSON-safe float. The engine's metric NaN convention (empty / zero
3548-
denominator -> NaN, never 0) cannot survive JSON: json.dump emits a bare
3549-
`NaN` token that a strict downstream JSON.parse (the MCP layer) rejects.
3550-
Collapse every non-finite double to null so the report stays valid JSON."""
3554+
def _num(x, *, report_metric=False):
3555+
"""Native metric NaN is the producer's explicit defined-absence sentinel.
3556+
Preserve infinity until _validate_report_result can raise the typed R.
3557+
Recorded script outputs have their separate nonfinite-to-null convention."""
35513558
f = float(x)
3559+
if report_metric:
3560+
return None if math.isnan(f) else f
35523561
return f if math.isfinite(f) else None
35533562

35543563

@@ -3559,16 +3568,57 @@ def _num(x):
35593568
EQUITY_REPORT_KEYS = {"sharpe_monthly": "sharpe_tv", "sortino_monthly": "sortino_tv"}
35603569

35613570

3571+
# Revision 3.1 policy. docker/report_annualization.def holds the same span
3572+
# threshold and four fields for the C++ metric walk; run_json.py ships alone,
3573+
# so tests/test_run_json_nonfinite_report.py pins this copy to the native list.
3574+
MIN_ANNUALIZATION_SPAN_MS = 86_400_000
3575+
SHORT_SPAN_ANNUALIZED_FIELDS = ("cagr", "calmar", "sharpe_bar", "sortino_bar")
3576+
3577+
3578+
def _annualization_diagnostics(curve, metrics):
3579+
"""Explain only the revision 3.1 absence, from native report observations.
3580+
3581+
net_profit_pct's existing domain witnesses positive initial capital even
3582+
when the first equity mark differs from it or provenance is unresolved.
3583+
With positive initial capital and final equity, a null sharpe_bar or
3584+
sortino_bar on a positive sub-day span always carries the reason: the
3585+
kernel rule makes both null, even when a flat curve is null anyway.
3586+
Python's integer subtraction is exact across the full int64 timestamp
3587+
domain; convert the difference to double just as the kernel does.
3588+
"""
3589+
if (not curve or metrics["all"]["net_profit_pct"] is None
3590+
or not math.isfinite(metrics["all"]["net_profit_pct"])
3591+
or not math.isfinite(curve[-1]["equity"]) or curve[-1]["equity"] <= 0):
3592+
return {}
3593+
first, last = curve[0]["time_ms"], curve[-1]["time_ms"]
3594+
span_ms = float(last - first) if last >= first else -float(first - last)
3595+
if not 0 < span_ms < MIN_ANNUALIZATION_SPAN_MS:
3596+
return {}
3597+
return {
3598+
EQUITY_REPORT_KEYS.get(field, field): "span_too_short_to_annualize"
3599+
for field in SHORT_SPAN_ANNUALIZED_FIELDS
3600+
if metrics["equity"][EQUITY_REPORT_KEYS.get(field, field)] is None
3601+
}
3602+
3603+
3604+
def _annualization_block(curve, metrics) -> dict:
3605+
"""The diagnostics entry for revision 3.1: present only when the rule fired."""
3606+
reasons = _annualization_diagnostics(curve, metrics)
3607+
return {"annualization": reasons} if reasons else {}
3608+
3609+
35623610
def _stats_dict(s) -> dict:
35633611
"""Serialize a pf_trade_stats_t / pf_equity_stats_t ctypes struct to a dict,
35643612
keying off each field's ctype: integer counters stay ints, every double is
3565-
sanitized through _num. Driven by _fields_ so it tracks the struct verbatim;
3613+
normalized through _num's metric mode. Computed nonfinite values must
3614+
already have failed native M checks; infinities also fail the C backstop.
3615+
Driven by _fields_ so it tracks the struct verbatim;
35663616
an equity struct's two monthly ratios take their EQUITY_REPORT_KEYS."""
35673617
keys = EQUITY_REPORT_KEYS if isinstance(s, EquityStatsC) else {}
35683618
out = {}
35693619
for name, ctype in s._fields_:
35703620
v = getattr(s, name)
3571-
out[keys.get(name, name)] = _num(v) if ctype is ctypes.c_double else int(v)
3621+
out[keys.get(name, name)] = _num(v, report_metric=True) if ctype is ctypes.c_double else int(v)
35723622
return out
35733623

35743624

@@ -3613,9 +3663,18 @@ def build_report_dict(report: ReportC, ohlcv_path: Path,
36133663

36143664
cum, peak, max_dd = 0.0, 0.0, 0.0
36153665
for p in pnls:
3666+
if not math.isfinite(p):
3667+
raise RunFailure("the report result trades.pnl is not finite",
3668+
"report_result_invalid",
3669+
{"field": "trades.pnl", "reason": "nonfinite"})
36163670
cum += p
36173671
peak = max(peak, cum)
3618-
max_dd = min(max_dd, cum - peak)
3672+
drawdown = cum - peak
3673+
if not math.isfinite(cum) or not math.isfinite(drawdown):
3674+
raise RunFailure("the report result summary.max_drawdown is not finite",
3675+
"report_result_invalid",
3676+
{"field": "summary.max_drawdown", "reason": "nonfinite"})
3677+
max_dd = min(max_dd, drawdown)
36193678

36203679
# Computed trading metrics (ABI v2): all/longs/shorts trade stats + the
36213680
# equity-curve-derived block (sharpe/sortino/cagr/calmar/...). See the
@@ -3636,8 +3695,8 @@ def build_report_dict(report: ReportC, ohlcv_path: Path,
36363695
p = report.equity_curve[i]
36373696
equity_curve.append({
36383697
"time_ms": int(p.time_ms),
3639-
"equity": _num(p.equity),
3640-
"open_profit": _num(p.open_profit),
3698+
"equity": float(p.equity),
3699+
"open_profit": float(p.open_profit),
36413700
})
36423701

36433702
return {
@@ -3674,6 +3733,7 @@ def build_report_dict(report: ReportC, ohlcv_path: Path,
36743733
"magnifier_sub_bars_total": int(report.magnifier_sub_bars_total),
36753734
"magnifier_sample_ticks_total": int(report.magnifier_sample_ticks_total),
36763735
"bar_magnifier_enabled": bool(report.bar_magnifier_enabled),
3736+
**_annualization_block(equity_curve, metrics),
36773737
},
36783738
"trades": trades,
36793739
"metrics": metrics,
@@ -3682,9 +3742,9 @@ def build_report_dict(report: ReportC, ohlcv_path: Path,
36823742

36833743

36843744
def _validate_report_result(out: dict) -> None:
3685-
"""Canonical trade and summary doubles have no defined non-finite absence.
3686-
Keep the failure fields as engine-owned literals; metrics, equity and
3687-
recorded outputs retain their existing _num-to-null convention."""
3745+
"""Required results are finite; only native metric absence is nullable.
3746+
Metric keys come from the producer's ctypes descriptors and alias map,
3747+
after native computation has distinguished absence from computed NaN."""
36883748
for trade in out["trades"]:
36893749
for key, field in (
36903750
("entry_price", "trades.entry_price"),
@@ -3701,6 +3761,7 @@ def _validate_report_result(out: dict) -> None:
37013761
"report_result_invalid",
37023762
{"field": field, "reason": "nonfinite"})
37033763
for key, field in (
3764+
("win_rate_pct", "summary.win_rate_pct"),
37043765
("net_pnl", "summary.net_pnl"),
37053766
("avg_trade", "summary.avg_trade"),
37063767
("best_trade", "summary.best_trade"),
@@ -3711,6 +3772,22 @@ def _validate_report_result(out: dict) -> None:
37113772
raise RunFailure(f"the report result {field} is not finite",
37123773
"report_result_invalid",
37133774
{"field": field, "reason": "nonfinite"})
3775+
for block in ("all", "longs", "shorts", "equity"):
3776+
for name, value in out["metrics"][block].items():
3777+
if value is not None and not math.isfinite(value):
3778+
metric_field = f"metrics.{block}.{name}"
3779+
raise RunFailure(f"the report result {metric_field} is not finite",
3780+
"report_result_invalid",
3781+
{"field": metric_field, "reason": "nonfinite"})
3782+
for point in out["equity_curve"]:
3783+
for key, field in (
3784+
("equity", "equity_curve.equity"),
3785+
("open_profit", "equity_curve.open_profit"),
3786+
):
3787+
if not math.isfinite(point[key]):
3788+
raise RunFailure(f"the report result {field} is not finite",
3789+
"report_result_invalid",
3790+
{"field": field, "reason": "nonfinite"})
37143791

37153792

37163793
def _request_invalid(text: str, option: str, exit_status: int = 1) -> RunFailure:

‎docker/selected_window_report.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ def _established_number(value: Any) -> Optional[float]:
595595

596596
def _finite_actual(value: Any) -> bool:
597597
"""Whether value, as the engine produced it, is a finite number: an int or a float that is
598-
not a bool, not None (the report writes a non-finite double as null), not text, and not NaN
598+
not a bool, not None (executed curve marks must be finite), not text, and not NaN
599599
or an infinity. Nothing is converted or read from text."""
600600
if isinstance(value, bool) or not isinstance(value, (int, float)):
601601
return False

‎docs/adr/0001-kernel-adapter-boundary.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ summary of it.
8686
`NativeCoordinate::interval_index` (`market_driver.hpp:74`) is the sequential
8787
SCRIPT-bar index even when `input_tf` is finer than `script_tf`. The same
8888
script coordinate books `PyramidEntry::entry_bar_index`, trade-row indices and
89-
the inclusive bar metrics (`engine_orders.cpp:113-114`, `engine_metrics.cpp:140`).
89+
the inclusive bar metrics (`engine_orders.cpp:113-114`, `engine_metrics.cpp:164`).
9090
`NativeCoordinate::input_interval_index` (`market_driver.hpp:79`) names the
9191
input slot that supplied the point for a host that needs input cadence. Both
9292
coordinate values are folded by `hash_coordinate`
@@ -172,7 +172,7 @@ summary of it.
172172
(`guard_native_mutation` `engine_aux_security.cpp:83`).
173173
Indicators are `ta_*.cpp`, session/calendar `session_time.cpp` / `native_calendar.cpp`, FX
174174
`configure_native_fx_curve` (`native_host.hpp:1202`).
175-
- **Reporting.** `fill_report` (`engine.hpp:1859`, `src/engine_report.cpp:56`) gives a bare host
175+
- **Reporting.** `fill_report` (`engine.hpp:1859`, `src/engine_report.cpp:58`) gives a bare host
176176
trade stats, and the equity curve is a run-spec choice rather than a host chore.
177177
`NativeReportPolicy::HostRecorded` (the default) leaves the series to the host, whose
178178
`record_equity_point` / `update_equity_extremes` remain protected
@@ -181,8 +181,8 @@ summary of it.
181181
`KernelRecordedAtHostMarks` records the same series at the host's own marks.
182182
`report_open_position_at_end` books the still-open position as a mark-to-market row under
183183
`KernelRecorded`. Under `HostRecorded` an unrecorded curve still degenerates —
184-
`compute_equity_stats` answers its all-NaN value with no error (`src/engine_metrics.cpp:203`,
185-
consumed by `fill_metrics_section`, `src/engine_report.cpp:138-145`) — which is why the policy exists.
184+
`compute_equity_stats` answers its defined empty-curve metrics with no error (`src/engine_metrics.cpp:228`,
185+
consumed by `fill_metrics_section`, `src/engine_report.cpp:205`) — which is why the policy exists.
186186
- **Reproducibility.** Two digests, one wrapping the other. `native_continuation_hash()`
187187
(`native_host.hpp:1376`) returns the consumer's event/continuation hash. **A digest names
188188
the run's inputs** (rule 2): the timezone identity enters it as the zone's *content* —
@@ -761,10 +761,10 @@ number names its symbol on this tree.
761761
| `NativeReportPolicy::KernelRecordedAtHostMarks` (`native_run_spec.hpp:64`) | **C++-only** (lane E22's ruling, restated) | Under it the host names each report point from inside its own callbacks, and the C table has no call that marks one: a C host could only declare a series nobody records. `pf_native_report_policy_e` (`native_c_api.h:661`) leaves its value unnamed, and the enum guard holds that exclusion. A C++ host now reaches the same kernel producer through `NativeStrategyHost::mark_native_report_point`; a mark outside a running HostMarks run returns false. |
762762
| `strategy_set_path_order` (`pineforge.h:948`) clamps an out-of-range mode to AUTO | **retained** | A `void` ABI v4 setter cannot answer a refusal. Its values are now documented as `pf_native_path_order_e`'s (`native_c_api.h:904`); a C host that wants an unknown word refused declares `path_order` in `pf_native_run_spec_ext_v1`, which answers `PF_NATIVE_E_TAG`. |
763763
| the enumerated `int32` fields of `pf_pending_order_v1_t` (`strategy_pending_order_get` `pineforge.h:1096`) | **no C names in the header; generator-owned** | The mirror is generated from the Pine source host's resting-order record by `scripts/gen_pending_order_mirror.py` (held by its `--check` source guard) and self-described at run time by `strategy_pending_order_layout`. Its enumerated fields are the source layer's order vocabulary, not a kernel enumeration. A C name for them belongs in that generator, which owns the struct, so that it cannot drift from the mirror — never hand-written beside it. |
764-
| `strategy_configure_native_v1` (`c_abi.cpp:980`) versus `strategy_configure_native_ext_result_v1` (`native_c_host.cpp:4066`) | **retained legacy base plus typed additive route** | A base specification the kernel rejects still returns `-1` and latches `Failed`, preserving its frozen caller contract; a Ready misuse retains that Contract latch. The C boundary refuses arguments, a Running phase and a Completed hash hook without entering kernel configure, so a read cannot reconfigure its host. The extended result call validates before its first configure, writes `pf_native_spec_error_t` / `pf_native_spec_field_t`, and names reused-host session-key and run-number refusals; no old signature or layout moved. |
764+
| `strategy_configure_native_v1` (`c_abi.cpp:980`) versus `strategy_configure_native_ext_result_v1` (`native_c_host.cpp:4107`) | **retained legacy base plus typed additive route** | A base specification the kernel rejects still returns `-1` and latches `Failed`, preserving its frozen caller contract; a Ready misuse retains that Contract latch. The C boundary refuses arguments, a Running phase and a Completed hash hook without entering kernel configure, so a read cannot reconfigure its host. The extended result call validates before its first configure, writes `pf_native_spec_error_t` / `pf_native_spec_field_t`, and names reused-host session-key and run-number refusals; no old signature or layout moved. |
765765
| `strategy_configure_native_fx_curve_v1` (`pineforge.h:546`) | **typed additive route** | `strategy_configure_native_fx_curve_ext_v1` writes the C twin of `NativeFxCurveValidation` and its offending index. The old `-1` route remains unchanged, while a C caller can now distinguish a decreasing timestamp, non-positive rate, allocation failure or wrong phase. |
766766
| `on_native_timeframe_bar` (`native_host.hpp:885`) and `NativeTimeframeBarContext::interval` (`native_host.hpp:809`) | **query routed** | The callback signature stays frozen. `strategy_native_timeframe_bar_interval_v1` is valid only during that callback and copies the kernel calendar interval without deriving it from the delivered bar or delivery timestamp. |
767-
| `magnifier_sub_bars_total` / `magnifier_sample_ticks_total` (`engine_report.cpp:75-76`) | **kernel-owned report facts** | The generic intrabar driver already increments `NativeDriverStatistics::sub_bars_processed` / `sample_ticks_processed` for every retained path (`native_execution_consumer.cpp:8681-8693`); the kernel now publishes those same counters for bare hosts. They are report fields, not new durable state: the existing `native_continuation_hash` fold of `NativeDriverStatistics` (`native_execution_consumer.cpp:1125-1130`) sees the same values, so no hash contract moves. |
767+
| `magnifier_sub_bars_total` / `magnifier_sample_ticks_total` (`engine_report.cpp:77-78`) | **kernel-owned report facts** | The generic intrabar driver already increments `NativeDriverStatistics::sub_bars_processed` / `sample_ticks_processed` for every retained path (`native_execution_consumer.cpp:8681-8693`); the kernel now publishes those same counters for bare hosts. They are report fields, not new durable state: the existing `native_continuation_hash` fold of `NativeDriverStatistics` (`native_execution_consumer.cpp:1125-1130`) sees the same values, so no hash contract moves. |
768768
| `pf_native_lot_excursion_v1` (`native_c_api.h:1912`) | **additive fee tail** | `entry_commission` carries the C++ `ClosedLotExcursionFacts::entry_commission` in account currency. The callback table publishes a trailing layout marker so F4 callers still receive the base facts length; current callers receive the fee tail without changing `PF_NATIVE_API_VERSION`. |
769769
| `strategy_outputs_set_enabled` and the eight `strategy_outputs_*` readers (`pineforge.h`, group `pf_outputs`) | **additive runtime exports** | Recording is off by default, and nothing a run computes reads the record. The event copy is size-prefixed like `strategy_pending_order_get`, and `PF_ABI_VERSION` stays 4. The writers are C++ only in this version (the BASE-CLASS SEAMS rows of `native_c_api.h`): a C host declares no outputs, so its handle answers every reader as empty. |
770770

0 commit comments

Comments
 (0)