You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2688775
Browse filesBrowse the repository at this point in the historyBrowse files
TX-SINKFD (SINK-SPLIT stages 0+A+B, engine side). One commit for the
whole engine-side seam because the hunks of docker/run_json.py and the C
runtime interleave; see the lane report for the split by class.
C15 (test_run_json_sink_fd_l22v, test_run_json_sink_fd_native_l22v,
test_report_sink_summary): the fd transport returned its document before
the annualization block and took fd ownership before the required API
symbols were checked. The writer now retains the two emitted E endpoints
and the T-row entry_bar_index <= 0 predicate, published only after the
trailer, and a new additive runtime query
strategy_report_sink_diagnostics_v1 (struct pf_report_sink_diagnostics_v1,
72 bytes) hands them to run_json. No wire byte changes, no callback is
replayed, the existing receipt layouts are unchanged.
Stage 0 admission: a new additive runtime export
strategy_require_report_scratch_arena_v1 attaches the inherited fd-5
arena and refuses an absent arena with report_sink_failed/arena_backing,
never creating a backing file or falling back to TMPDIR. run_json calls
it on every jailed handle before sink installation. The guard also
refuses --report-sink-fd 5 for every profile, and jailed sink paths and
--spill-dir before any library is loaded.
C16 (test_run_json_jailed_profile): the jailed profile now serializes the
report fully into an owned StringIO through the existing lazy-array
serializer instead of creating a spool; the test's CDLL mock forwards the
libc load to the real CDLL.
C22 (test_o1_report_mode_unsupported): --report-mode FULL|SUMMARY_ONLY|
STREAMED is parsed and every explicit request is refused with the typed
report_mode_unsupported before feeds, library loading or handle creation;
omitting the option keeps the legacy route. No provider bridge exists at
this base, so no positive envelope is claimed.
New test_report_sink_jail_write: a native host runs the same callback
with and without RLIMIT_FSIZE 0; the unlimited run must write, the
limited run must get EFBIG with the file empty, both complete the v1 fd
sink with identical bytes and the work directory stays empty.
NOT in this commit: C1 (ruling S) and the unjailed native fd fixture
(ruling F) are unresolved by design; stage B's Node caller is in the APP
repo. Public/runtime export counts become 113/93 (were 111/91); the
inventory, README table, docs and the checker self-test are updated
together. Nothing was built or run when this was committed; the proof is
the lab release+debug job.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
(cherry picked from commit 03d3d10)
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -567,6 +567,8 @@ inventories are pinned by `scripts/check_c_abi_runtime.py`:
567
567
|`strategy_get_last_error`| The latest runtime error |
568
568
|`strategy_get_last_error_code` / `strategy_get_last_error_args`| The latest failure's stable code from the closed [run-failure vocabulary](docs/pages/run-failure-codes.md) (`""` when the run succeeded) and its typed arguments as canonical JSON; behind `PINEFORGE_HAS_RUN_FAILURE_CODES_V1`|
569
569
|`pf_report_scratch_arena_stats`| Process-wide scratch-arena peak claimed bytes and exact supplied size; query after finalization and before detach for stdout diagnostics, outside sink bytes |
570
+
|`strategy_require_report_scratch_arena_v1`| Jailed startup admission: attach/validate the inherited fd-5 arena, or refuse with typed `report_sink_failed/arena_backing`; no temporary-file fallback |
571
+
|`strategy_report_sink_diagnostics_v1`| Fixed-size presented equity endpoints and first-bar trade provenance after a completed sink; stdout annualization needs no sink read-back |
570
572
|`pf_version_get` / `pf_version_string` / `pf_abi_version`| Runtime version, version string, struct-layout version (`PF_ABI_VERSION == 4`) |
571
573
|`strategy_execution_contract` / `strategy_configure_native_v1` / `strategy_configure_native_fx_curve_v1` / `_fx_curve_ext_v1`| Query Legacy vs NativeMarketV1; apply the versioned native run specification (an invalid or refused base call returns `-1` and leaves the handle Failed; a cooperative `Aborted` handle may be reused with the same key and a higher run number); stage or clear an immutable native FX curve, `_fx_curve_ext_v1` also writing the typed refusal (`pf_native_fx_curve_error_e`) and the offending point's index |
572
574
|`strategy_request_abort` / `strategy_last_run_status`| Cooperative abort of a run in progress; `0`=completed, `1`=aborted |
0 commit comments