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 6da97ac
Browse filesBrowse the repository at this point in the historyBrowse files
The trail-seed witness pins the absent seed without a host's digest
native_continuation_hash() is not portable. It folds the run's timezone
identity, and hash_tz_identity folds the host's zoneinfo ROOT PATH plus the tz
resource paths under it: tzdir_canonical() resolves /var/db/timezone/zoneinfo
on Darwin -- which realpaths through the installed tzdata release, e.g.
/private/var/db/timezone/tz/2026c.1.0/zoneinfo -- and /usr/share/zoneinfo, or
$TZDIR, under glibc. So the same kernel over the same bars, booking the same
rows at the same prices, answers a different digest per host. Measured: the
two controls answer 7148617029230866814 / 1059492877796320724 on Darwin and
3087945503312965943 / 5990633458242713781 on Linux (both aarch64, so it is
not the ISA), and on ONE Linux host copying /usr/share/zoneinfo elsewhere and
pointing $TZDIR at the copy moves every digest in this unit while every row,
exit price and position stays put.
expectation corrected: kControlContinuationA/B == the control's digest ->
same-host properties of the absent seed, because a continuation digest folds
a host path and cannot be a cross-platform literal. The removed values stay
in the note above the cases as the lane's recorded pre-field measurement
(exec/E14-probes/fail_before.cpp on the base 9f0ea24c), which is what carries
"absent hashes exactly as before" for the host that measured it.
What the literals were pinning is now pinned as properties, in a new case:
the two spellings of absent -- a request that never writes Trail::best_seed
and one that writes std::nullopt -- answer one digest; the digest is the
run's, not the process's; and a seed the run's own behaviour ignores (1.00,
under case A's arm print, so the ride still starts at the print and nothing
books) still moves it, which is what makes the seed request state rather than
an outcome. The seeded cases now compare against their own control's digest
instead of a literal. The printed digest lines stay: they are the
cross-platform measurement, and lane E17 needs them.
ADR-0001's covering-test cell said the controls carried the pre-field
digests; it now says what they carry and why.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copy file name to clipboardExpand all lines: docs/adr/0001-kernel-adapter-boundary.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -559,7 +559,7 @@ consults before believing one.
559
559
| the frozen `pf_pending_order_v1_t` field names | the reflection table of an append-only C ABI POD | already ruled: the residual tables above, held by `scripts/check_kernel_residuals.py`| renaming is an ABI break |`tests/test_kernel_residuals` (the gate itself) |
560
560
| the C ABI's documented vocabulary — `src/c_abi.cpp`, `include/pineforge/pineforge.h`, `src/engine_metrics.cpp`, `src/engine_report.cpp`, `src/engine_trade_accessors.cpp`| the exports are the contract; the comments say what a Pine consumer called the same number | already ruled: the `inputs_` / `get_input_*` / `syminfo_metadata_` row above. No kernel decision reads a Pine name | the export names are frozen |`scripts/check_c_abi_runtime.py`, `tests/test_native_c_api.c`|
561
561
| the neutral utility spellings — `map.hpp`, `drawing.hpp`, `series.hpp`, `window_sum.hpp`, `math.hpp`, `matrix.hpp`, `session_time.hpp`, `str_utils.hpp`| neutral public names with exact deprecated `pine_*` aliases for generated code | already ruled: "Neutral spellings" above | dropping the aliases breaks generated code | the ruled-name gate |
562
-
| `native_order::Trail::best_seed` `include/pineforge/native_order.hpp` | where a trail's running best STARTS: absent, the arm's own print; present, a floor on it — the favourable one of the seed and that print | the level is a number the host hands over exactly as it hands over an `arm_price`: the kernel neither derives it nor knows what named it, and a second venue drives it by passing a different number. A trailing stop that rides from its activation rather than from the next print is an ordinary broker shape | nothing, because the old start was not a choice the run had made another way — it was wherever the arm happened to land (the arm threshold on a crossing, the first live print when the request was born already armed), so there is no second spelling to defer to and nothing for a hook to answer; a request field is admissible, opt-in and hashed only when present | `tests/test_native_trail_best_seed.cpp` (kernel-only, batch and stream, with the two pre-field continuation digests as the absent-seed controls); the C tail by `check_trail_best_seed_tail` in `tests/test_native_c_api.c`. The need was measured by R5 lanes E5 and E9 — TradingView's `lab tv` tapes book every trail exit at activation ∓ the offset, never at the kernel's own start — and closed by lane E14; design `native-feature-parity.md` §3.6.2 |
562
+
| `native_order::Trail::best_seed` `include/pineforge/native_order.hpp` | where a trail's running best STARTS: absent, the arm's own print; present, a floor on it — the favourable one of the seed and that print | the level is a number the host hands over exactly as it hands over an `arm_price`: the kernel neither derives it nor knows what named it, and a second venue drives it by passing a different number. A trailing stop that rides from its activation rather than from the next print is an ordinary broker shape | nothing, because the old start was not a choice the run had made another way — it was wherever the arm happened to land (the arm threshold on a crossing, the first live print when the request was born already armed), so there is no second spelling to defer to and nothing for a hook to answer; a request field is admissible, opt-in and hashed only when present | `tests/test_native_trail_best_seed.cpp` (kernel-only, batch and stream, the absent-seed controls pinned as same-host properties of the continuation digest rather than as its pre-field values, because that digest folds the host's own zoneinfo root and so is not portable); the C tail by `check_trail_best_seed_tail` in `tests/test_native_c_api.c`. The need was measured by R5 lanes E5 and E9 — TradingView's `lab tv` tapes book every trail exit at activation ∓ the offset, never at the kernel's own start — and closed by lane E14; design `native-feature-parity.md` §3.6.2 |
563
563
564
564
**No site is left unaccounted for**, and no site's justification is "because TradingView does
565
565
it" over a mechanism that is not generic. Two entries were recorded here as open questions
0 commit comments