Skip to content

Commit 102ffb6

Browse files
luisleo526claude
andcommitted
Re-anchor the published pages on the merged tree
The merge with main moved lines of the source files that seven published pages cite. Each changed citation now points at the line that holds the code it named before; only line numbers change, and every page keeps its line count. Two citations were moved by their cited line's exact text, which occurs once in main and once in the merged file. The anchor check now finds no bad citation. Co-Authored-By: Claude Fable 5.2 <[email protected]>
1 parent 18d46e2 commit 102ffb6

7 files changed

Lines changed: 116 additions & 116 deletions

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

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

‎docs/design/arena-bound.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,15 @@ overrides or imported libraries, its receipt must bind those inputs too.
155155

156156
The carried declaration fields are visible in `PineStrategyConfig` at
157157
`include/pineforge/source/pine_adapter.hpp:79`. Their `project` projection starts at
158-
`src/source/pine_adapter.cpp:2918`. The relevant rules are:
158+
`src/source/pine_adapter.cpp:2991`. The relevant rules are:
159159

160160
| Declaration / native fact | Sizing consequence and evidence |
161161
| --- | --- |
162-
| 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:2837`). Do not assume this caps strategy.order or use it as an unconditional H. |
163-
| 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:3018`; the `kCoofLoopGuard` literal is declared at `include/pineforge/source/pine_adapter.hpp:77`. The native point budget is a callback bound, not a total fill bound. |
162+
| 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:2910`). Do not assume this caps strategy.order or use it as an unconditional H. |
163+
| 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:3091`; the `kCoofLoopGuard` literal is declared at `include/pineforge/source/pine_adapter.hpp:77`. The native point budget is a callback bound, not a total fill bound. |
164164
| 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:8272`. |
165165
| first-open COOF chain | A second source-side guard exists at `src/source/pine_scheduler_native.cpp:945`. Count this source path; a native budget of 8 is not Pine's bound. |
166-
| process_orders_on_close | Adds a matching opportunity after calculation; projection at `src/source/pine_adapter.cpp:3006`. It does not impose an order/trade count. |
166+
| process_orders_on_close | Adds a matching opportunity after calculation; projection at `src/source/pine_adapter.cpp:3079`. It does not impose an order/trade count. |
167167
| 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. |
168168
| max_bars_back | Series-history setting, not a run/trade limit. The native mapping explicitly rules it out at `docs/pages/pine-to-native.md:142`. |
169169
| timeframe, input sessions, magnifier | Determine script buckets, path/sub-bar matching opportunities and callbacks. A magnifier with many sub-bars must enter the fill/root proof even if S is unchanged. |
@@ -341,14 +341,14 @@ indexPeak(k) = 24 * slots(k) # k > 32
341341
| Equity writer / selected hold-back / SpillCurve | 24*E | `pf_equity_point_t` size assertion `include/pineforge/metrics_stream.hpp:16`; `src/report_scratch.cpp:238` |
342342
| Position tail | (30+L)*T | `src/source/pine_position_tail.hpp:20`; footer packing at `src/source/pine_position_tail.cpp:94` |
343343
| Cohort AVL and five-word summary | (96+L)*D + 1[D>0] | `Links` at `include/pineforge/detail/disk_id_table.hpp:165-182`, `end_` at `:349`; `CohortFacts::Record` at `include/pineforge/source/pine_adapter.hpp:2059-2062` |
344-
| Entry-rank AVL | (60+L)*J + 1[J>0] | `exit_rank_keys_` at `src/source/pine_adapter.cpp:6814-6815`; `Links` at `include/pineforge/detail/disk_id_table.hpp:165-182`, `end_` at `:349` |
344+
| Entry-rank AVL | (60+L)*J + 1[J>0] | `exit_rank_keys_` at `src/source/pine_adapter.cpp:6887-6888`; `Links` at `include/pineforge/detail/disk_id_table.hpp:165-182`, `end_` at `:349` |
345345
| Erased minima data | (40+L)*D + (40+2*L)*Q | `erased_minima_` at `include/pineforge/source/pine_adapter.hpp:961`; 40-byte header at `include/pineforge/detail/id_pair_store.hpp:69` |
346346
| Erased minima index | indexPeak(D+Q) | 16-byte slot at `include/pineforge/detail/id_pair_store.hpp:69`; replacement at `:642` |
347347
| Consumed partial-cycle data | (41+2*L)*Q | `include/pineforge/source/pine_adapter.hpp:2843`; joined key at `src/source/pine_adapter.cpp:25622` |
348348
| Consumed partial-cycle index | indexPeak(Q) | `include/pineforge/detail/id_pair_store.hpp:642` |
349349
| Ordered consumed-cycle fold | 136*leaves + 2088*branches + 2096*savedPath | `include/pineforge/detail/id_pair_ordered_fold.hpp:161`, `:165`, `:172`, size assertion for `Leaf`, `Branch` and `Snapshot` at `:183` |
350350
| Successor-root rows | 16*R | `src/native_order.cpp:8220`, row assertion for `Row` at `:8281`, 64-row tail bound `kTailRows` at `:8286` |
351-
| Frozen external openings | **0 in this certified profile** | Stock source builds owned `BindOpenings` vectors at `src/source/pine_adapter.cpp:7099`, `:7092`, `:9806-9822`; generic external owners are excluded below |
351+
| Frozen external openings | **0 in this certified profile** | Stock source builds owned `BindOpenings` vectors at `src/source/pine_adapter.cpp:7172`, `:7165`, `:9879-9895`; generic external owners are excluded below |
352352

353353
The AVL node is seven uint64 words = 56 bytes, then its value and exact key
354354
bytes. CohortFacts::Record is handle, cycle, origin_count, origin_digest and

‎docs/design/cr150-contracts.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,16 +226,16 @@ references; L15a must maintain these anchors and mechanically pin every current
226226
| Kernel instrument-feed pump: current bar, close, next open, count | `NativeExecutionConsumer::pump_instrument_subscription` `src/native_execution_consumer.hpp:1315` | 357-358 |
227227
| Host feed lookup/delivery and column reads | `installed_symbol_feed` `src/source/pine_security_eval.cpp:1081-1090`; `installed_symbol_feed` `src/source/pine_security_eval.cpp:1313-1323`; `installed_symbol_feed` `src/source/pine_security_eval.cpp:1342-1350` | 359-360 |
228228
| 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:10352`; `validate_native_timeframe_subscriptions` `src/native_execution_consumer.cpp:10352` | 361-363 |
229-
| 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:3196` | 361-363; V1/V2 change 5 |
229+
| 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:3269` | 361-363; V1/V2 change 5 |
230230
| 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:333`; `native_instrument_feeds_digest` `src/native_execution_consumer.cpp:3043`; `native_run_spec_digest` `src/native_execution_consumer.cpp:14690` | 364-365 |
231231
| Staged feed counts in host state and its hash | `installed_symbol_feed` `src/source/pine_strategy_host.cpp:536-546`; `staged_.instrument_feeds` `src/source/pine_state_hash.cpp:339-346` | 366-367 |
232-
| Refresh of symbol-data digest and host hash fold | `refresh_symbol_data_digest` `src/source/pine_security_eval.cpp:1639-1652`; `symbol_data_digest_` `src/source/pine_state_hash.cpp:1240-1246` | 367-368 |
232+
| Refresh of symbol-data digest and host hash fold | `refresh_symbol_data_digest` `src/source/pine_security_eval.cpp:1639-1652`; `symbol_data_digest_` `src/source/pine_state_hash.cpp:1249-1255` | 367-368 |
233233
| Restore/store upkeep and column-setter length check | `held.bars` `src/source/pine_security_eval.cpp:1113-1123`; `data.bars` `src/source/pine_security_eval.cpp:1455-1461` | 369-370 |
234234
| Lower-path preflight/validation | `NativeExecutionConsumer::preflight_intrabar_path` `src/native_execution_consumer.hpp:1274` | 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:298` | 371,1223-1224 |
236236
| Per-script-bar lower-path binary search/walk | `candidate` `src/native_execution_consumer.cpp:9403-9410` | 371,1225 |
237237
| Scheduler sub-bar lookup and one-bar look-ahead | `PineScheduler::lower_path_bar_at` `src/source/pine_scheduler_native.cpp:322-344`; `next_open` `src/source/pine_scheduler_native.cpp:385-386` | 371,1226-1227 |
238-
| Lower-path emptiness test | `inactive_sampler_path` `src/source/pine_adapter.cpp:3641` | 371,1228 |
238+
| Lower-path emptiness test | `inactive_sampler_path` `src/source/pine_adapter.cpp:3714` | 371,1228 |
239239

240240
Every count/digest must fold the same bytes/order for copied and borrowed
241241
feeds, including cached and uncached paths (2.2:372-375). Views replace storage;

0 commit comments

Comments
 (0)