Skip to content

Commit 980edde

Browse files
luisleo526claude
andcommitted
docs: re-pin the file:line citations that P2-CX's read-cache sink bound shifts (anchor tool, ORG-CX)
The sink bound (commit 38e00f3) adds 5 lines to src/native_execution_consumer.cpp near line 3168 and 3 lines to include/pineforge/trade_ledger.hpp, so every citation of native_execution_consumer.cpp:N with N above 3168 moves by exactly +5. Applied with ORG-CX's patch REPIN-FINAL6CAND-7968dbf (sha256 022af9f15a88e1304df68c34b31708b998100c39a0c0321d86816ef8cfdb21ff): 7 documentation files, 79 insertions and 79 deletions, each changed line differs from its original only in digits (the digit-masked check ONLY_NUMBERS_CHANGED holds for all 79 lines), so no sentence is added, removed or reworded; the box anchor tool reports 2209 anchors, 2209 ok, 0 bad on the patched tree. Files: docs/adr/0001-kernel-adapter-boundary.md, docs/design/arena-bound.md, docs/design/cr150-contracts.md, docs/design/native-feature-parity.md, docs/native-refactor-progress.md, docs/pages/native-engine.md, docs/pages/pine-to-native.md. Sentences replaced for scripts/check_doc_reverts.py: none (citation numbers only). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent 4d85a29 commit 980edde

7 files changed

Lines changed: 79 additions & 79 deletions

File tree

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

Lines changed: 8 additions & 8 deletions
Large diffs are not rendered by default.

‎docs/design/arena-bound.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ The carried declaration fields are visible in `PineStrategyConfig` at
158158
| --- | --- |
159159
| pyramiding | Source entry admission policy, including pending/same-point rules. The optional generic cap is `max_open_lots` at `include/pineforge/native_run_spec.hpp:664`; the Pine projection deliberately leaves it unset (the `max_open_lots` setting spelling is at `src/source/pine_adapter.cpp:2819`). Do not assume this caps strategy.order or use it as an unconditional H. |
160160
| calc_on_order_fills | Extra source callbacks. The adapter passes its 1<<20 guard `kCoofLoopGuard` through the native cadence at `src/source/pine_adapter.cpp:3000`; the `kCoofLoopGuard` literal is declared at `include/pineforge/source/pine_adapter.hpp:75`. The native point budget is a callback bound, not a total fill bound. |
161-
| max_recalculations_per_point | Further executions still apply after callbacks stop; see the cadence comment and `max_recalculations_per_point` declaration at `include/pineforge/native_run_spec.hpp:686-695`. The actual counter check is `src/native_execution_consumer.cpp:7765`. |
161+
| max_recalculations_per_point | Further executions still apply after callbacks stop; see the cadence comment and `max_recalculations_per_point` declaration at `include/pineforge/native_run_spec.hpp:686-695`. The actual counter check is `src/native_execution_consumer.cpp:7770`. |
162162
| first-open COOF chain | A second source-side guard exists at `src/source/pine_scheduler_native.cpp:888`. Count this source path; a native budget of 8 is not Pine's bound. |
163163
| process_orders_on_close | Adds a matching opportunity after calculation; projection at `src/source/pine_adapter.cpp:2823`. It does not impose an order/trade count. |
164164
| default_qty, margin, initial capital | Admission/sizing predicates can tighten a separately proved schedule. They provide no universal positive minimum close quantity or minimum loss, hence no universal T. Margin can create additional reductions. |
@@ -555,7 +555,7 @@ non-command certificates exactly.
555555
These formulas apply to the EngineRecorded streamed invocation. The
556556
selected recorder appends its anchor and selected observations in one
557557
writer (`equity_scratch` append at `src/engine_report.cpp:1215`), and capture transfers that writer as `metric_curve`
558-
instead of copying its prefix (`src/native_execution_consumer.cpp:12915`).
558+
instead of copying its prefix (`src/native_execution_consumer.cpp:12920`).
559559
HostRecorded array presentation and a second full curve are outside this
560560
profile. Adding another persistent scratch user requires another term and
561561
rounding region.

‎docs/design/cr150-contracts.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,15 +225,15 @@ references; L15a must maintain these anchors and mechanically pin every current
225225
|---|---|---|
226226
| Kernel instrument-feed pump: current bar, close, next open, count | `NativeExecutionConsumer::pump_instrument_subscription` `src/native_execution_consumer.hpp:1230` | 357-358 |
227227
| Host feed lookup/delivery and column reads | `installed_symbol_feed` `src/source/pine_security_eval.cpp:1059-1068`; `installed_symbol_feed` `src/source/pine_security_eval.cpp:1291-1301`; `installed_symbol_feed` `src/source/pine_security_eval.cpp:1320-1328` | 359-360 |
228-
| Feed validation: bar values/order, close length/bounds, column length; configure and consumer entry points | `feed.bars` `src/native_run_spec.cpp:259-290`; `instrument_feed_shapes` `src/native_run_spec.cpp:743`; `validate_native_instrument_feeds` `src/native_run_spec.cpp:1019-1022`; `validate_native_timeframe_subscriptions` `src/native_execution_consumer.cpp:9992`; `validate_native_timeframe_subscriptions` `src/native_execution_consumer.cpp:10017` | 361-363 |
228+
| Feed validation: bar values/order, close length/bounds, column length; configure and consumer entry points | `feed.bars` `src/native_run_spec.cpp:259-290`; `instrument_feed_shapes` `src/native_run_spec.cpp:743`; `validate_native_instrument_feeds` `src/native_run_spec.cpp:1019-1022`; `validate_native_timeframe_subscriptions` `src/native_execution_consumer.cpp:9997`; `validate_native_timeframe_subscriptions` `src/native_execution_consumer.cpp:10022` | 361-363 |
229229
| Adapter projection validation: use the context normalizer; host stages after lending and before projection, using a context built from its store | `normalize_projected_spec` `src/source/pine_adapter.cpp:3178` | 361-363; V1/V2 change 5 |
230-
| Instrument-feed digest and cached/uncached continuation folds | `digest_instrument_feed_views` `src/native_run_spec.cpp:1162-1205`; `native_instrument_feeds_digest` `src/native_execution_consumer.cpp:328`; `native_instrument_feeds_digest` `src/native_execution_consumer.cpp:2907`; `native_run_spec_digest` `src/native_execution_consumer.cpp:14176` | 364-365 |
230+
| Instrument-feed digest and cached/uncached continuation folds | `digest_instrument_feed_views` `src/native_run_spec.cpp:1162-1205`; `native_instrument_feeds_digest` `src/native_execution_consumer.cpp:328`; `native_instrument_feeds_digest` `src/native_execution_consumer.cpp:2907`; `native_run_spec_digest` `src/native_execution_consumer.cpp:14181` | 364-365 |
231231
| Staged feed counts in host state and its hash | `installed_symbol_feed` `src/source/pine_strategy_host.cpp:535-545`; `staged_.instrument_feeds` `src/source/pine_state_hash.cpp:339-346` | 366-367 |
232232
| Refresh of symbol-data digest and host hash fold | `refresh_symbol_data_digest` `src/source/pine_security_eval.cpp:1553-1566`; `symbol_data_digest_` `src/source/pine_state_hash.cpp:1238-1244` | 367-368 |
233233
| Restore/store upkeep and column-setter length check | `held.bars` `src/source/pine_security_eval.cpp:1091-1101`; `data.bars` `src/source/pine_security_eval.cpp:1433-1439` | 369-370 |
234234
| Lower-path preflight/validation | `NativeExecutionConsumer::preflight_intrabar_path` `src/native_execution_consumer.hpp:1189` | 371,1221-1222 |
235235
| Lower-path digest (count first) and continuation hash | `native_intrabar_path_digest` `src/native_run_spec.cpp:891-919`; `native_intrabar_path_digest` `src/native_execution_consumer.cpp:293` | 371,1223-1224 |
236-
| Per-script-bar lower-path binary search/walk | `candidate` `src/native_execution_consumer.cpp:9089-9122` | 371,1225 |
236+
| Per-script-bar lower-path binary search/walk | `candidate` `src/native_execution_consumer.cpp:9094-9127` | 371,1225 |
237237
| Scheduler sub-bar lookup and one-bar look-ahead | `PineScheduler::lower_path_bar_at` `src/source/pine_scheduler_native.cpp:265-287`; `next_open` `src/source/pine_scheduler_native.cpp:328-329` | 371,1226-1227 |
238238
| Lower-path emptiness test | `inactive_sampler_path` `src/source/pine_adapter.cpp:3609` | 371,1228 |
239239

@@ -318,14 +318,14 @@ L17c/d and L8c use one report path. `fill_trades_section`
318318
open rows for a sink. `report_closed_net_profit`
319319
(`src/engine_report.cpp:262`) starts at `ClosedTradePrefix::pnl` and adds the
320320
resident suffix in order. `finish_streamed_trade_metrics`
321-
(`src/native_execution_consumer.cpp:13996`) finishes copies of the sealed
321+
(`src/native_execution_consumer.cpp:14001`) finishes copies of the sealed
322322
accumulators over resident closed rows, then the presented open rows. The
323323
source host's terminal-quote presentation continues that same closed-row PnL
324324
fold before adding its edited open rows (`net_profit`
325325
`src/source/pine_strategy_host.cpp:2248-2249`).
326326

327327
Selected carry-in validation includes the minimum entry time folded at seal
328-
(`first_entry_time` `src/native_execution_consumer.cpp:12937`), so a
328+
(`first_entry_time` `src/native_execution_consumer.cpp:12942`), so a
329329
window starting after a sealed entry refuses with the existing typed
330330
`engine_invariant`. Validation never indexes a retired row. `write_report_sink_trades`
331331
(`src/engine_report.cpp:1350`) resumes at the global T cursor: sealed rows

0 commit comments

Comments
 (0)