Repository navigation
Commit 78f369e
authored
Make the recorded output series limit an operator parameter, default no limit (#677)
The built-in refusal of more than 64 recorded output series is removed. A
host may set a maximum before the strategy is created (a checked creation-time
setting, run_json --limit-output-series N; 0 or absent means unlimited); only a
declaration above that maximum is refused, with the same typed outputs_limit
failure carrying the operator's positive value. The failure line of a creation
refused by the operator limit carries a documented cause member. The run_json
artifact-window worst case is computed from the declared series count instead
of a fixed number, and the report-window cost per declared series and the
report sink's wire bounds are documented.
The engine keeps the limit as one optional member, so the pinned size of
PineStrategyHost and the offset of its adapter move by 16 bytes in the layout
probe, and the stream engine layout version advances to 2. The member is not
const, so the engine stays copy-assignable.
This replaces the series-count ceiling, the 10,551,296-byte worst case and the
exact-64 statements that f891354 introduced in docs/outputs.md,
docs/pages/memory-management.md and docs/pages/run-failure-codes.md, rewrites
the final-artifact window rows of the memory page that 976d85a introduced, and
replaces the row-cost bullet "A row costs 8 bytes per slot and is kept for the
whole run or stream." that 70ddaa3 introduced.
Unset or 0 means no limit; a positive value is the limit; anything else is a usage error. The previous fixed value (64) is available only through the opt-in TradingView-compatibility settings. The engine ABI layout version moves from 1 to 2 because the backtest engine gained a field.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---
Commits:
* afded56
Make the recorded output series limit an operator parameter, default no limit
The built-in refusal of more than 64 recorded output series is removed. A
host may set a maximum before the strategy is created (a checked creation-time
setting, run_json --limit-output-series N; 0 or absent means unlimited); only a
declaration above that maximum is refused, with the same typed outputs_limit
failure carrying the operator's positive value. The failure line of a creation
refused by the operator limit carries a documented cause member. The run_json
artifact-window worst case is computed from the declared series count instead
of a fixed number, and the report-window cost per declared series and the
report sink's wire bounds are documented.
The engine keeps the limit as one optional member, so the pinned size of
PineStrategyHost and the offset of its adapter move by 16 bytes in the layout
probe, and the stream engine layout version advances to 2. The member is not
const, so the engine stays copy-assignable.
This replaces the series-count ceiling, the 10,551,296-byte worst case and the
exact-64 statements that f891354 introduced in docs/outputs.md,
docs/pages/memory-management.md and docs/pages/run-failure-codes.md, rewrites
the final-artifact window rows of the memory page that 976d85a introduced, and
replaces the row-cost bullet "A row costs 8 bytes per slot and is kept for the
whole run or stream." that 70ddaa3 introduced.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
* dd01133
Export-list test: follow the two new runtime exports
The generated ABI export list now holds 120 declared symbols, 100 of them
implemented in the runtime, after the two output series limit exports. The
test's pinned counts follow.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
* 5ad98a9
Merge main (#671) into the output series limit change
# Conflicts:
# CHANGELOG.md
* 6070469
Merge main (#676) into the output series limit change
# Conflicts:
# tests/CMakeLists.txt
---
Merge note (L6 super top): train T2 (CR-556). Merge gate on head 6070469:
pineforge/parity success from sweep exp-engine-pr677-6070469d-20261031
(134/134 cases, 7989 probes, tree e4f6138; cov lost 0, band1 +0/-0,
band2 +0/-0, hard reg 0, leavers 0; neutral, accepted by merge-rule/v2;
receipt a0f51a241a3c), plus pineforge/verify from CORE's full 8 on the same
head. GKE PR CI green on this head.1 parent 1d7ea83 commit 78f369e
27 files changed
Lines changed: 700 additions & 136 deletions
File tree
- docker
- docs
- adr
- design
- pages
- include/pineforge
- runner
- scripts
- src
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | | - | |
| 546 | + | |
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3222 | 3222 | | |
3223 | 3223 | | |
3224 | 3224 | | |
3225 | | - | |
| 3225 | + | |
3226 | 3226 | | |
3227 | 3227 | | |
3228 | 3228 | | |
| |||
4981 | 4981 | | |
4982 | 4982 | | |
4983 | 4983 | | |
4984 | | - | |
| 4984 | + | |
4985 | 4985 | | |
4986 | 4986 | | |
4987 | 4987 | | |
| |||
5265 | 5265 | | |
5266 | 5266 | | |
5267 | 5267 | | |
5268 | | - | |
| 5268 | + | |
5269 | 5269 | | |
5270 | 5270 | | |
5271 | 5271 | | |
| |||
5450 | 5450 | | |
5451 | 5451 | | |
5452 | 5452 | | |
5453 | | - | |
| 5453 | + | |
5454 | 5454 | | |
5455 | 5455 | | |
5456 | 5456 | | |
| |||
5559 | 5559 | | |
5560 | 5560 | | |
5561 | 5561 | | |
5562 | | - | |
| 5562 | + | |
5563 | 5563 | | |
5564 | 5564 | | |
5565 | 5565 | | |
| |||
6525 | 6525 | | |
6526 | 6526 | | |
6527 | 6527 | | |
6528 | | - | |
| 6528 | + | |
6529 | 6529 | | |
6530 | 6530 | | |
6531 | 6531 | | |
| |||
7434 | 7434 | | |
7435 | 7435 | | |
7436 | 7436 | | |
7437 | | - | |
7438 | | - | |
7439 | | - | |
| 7437 | + | |
| 7438 | + | |
| 7439 | + | |
7440 | 7440 | | |
7441 | 7441 | | |
7442 | 7442 | | |
| |||
7450 | 7450 | | |
7451 | 7451 | | |
7452 | 7452 | | |
| 7453 | + | |
7453 | 7454 | | |
7454 | 7455 | | |
7455 | 7456 | | |
| |||
7458 | 7459 | | |
7459 | 7460 | | |
7460 | 7461 | | |
| 7462 | + | |
| 7463 | + | |
| 7464 | + | |
| 7465 | + | |
| 7466 | + | |
| 7467 | + | |
| 7468 | + | |
| 7469 | + | |
| 7470 | + | |
| 7471 | + | |
7461 | 7472 | | |
7462 | 7473 | | |
7463 | 7474 | | |
| |||
7869 | 7880 | | |
7870 | 7881 | | |
7871 | 7882 | | |
7872 | | - | |
7873 | | - | |
| 7883 | + | |
| 7884 | + | |
7874 | 7885 | | |
7875 | 7886 | | |
7876 | 7887 | | |
| |||
8256 | 8267 | | |
8257 | 8268 | | |
8258 | 8269 | | |
8259 | | - | |
| 8270 | + | |
8260 | 8271 | | |
8261 | 8272 | | |
8262 | 8273 | | |
| |||
9246 | 9257 | | |
9247 | 9258 | | |
9248 | 9259 | | |
| 9260 | + | |
| 9261 | + | |
| 9262 | + | |
| 9263 | + | |
| 9264 | + | |
| 9265 | + | |
| 9266 | + | |
| 9267 | + | |
| 9268 | + | |
| 9269 | + | |
| 9270 | + | |
| 9271 | + | |
| 9272 | + | |
| 9273 | + | |
| 9274 | + | |
| 9275 | + | |
| 9276 | + | |
| 9277 | + | |
| 9278 | + | |
| 9279 | + | |
| 9280 | + | |
| 9281 | + | |
| 9282 | + | |
| 9283 | + | |
| 9284 | + | |
| 9285 | + | |
| 9286 | + | |
| 9287 | + | |
| 9288 | + | |
| 9289 | + | |
| 9290 | + | |
| 9291 | + | |
| 9292 | + | |
| 9293 | + | |
| 9294 | + | |
| 9295 | + | |
| 9296 | + | |
| 9297 | + | |
| 9298 | + | |
| 9299 | + | |
| 9300 | + | |
| 9301 | + | |
| 9302 | + | |
| 9303 | + | |
| 9304 | + | |
| 9305 | + | |
| 9306 | + | |
| 9307 | + | |
| 9308 | + | |
| 9309 | + | |
| 9310 | + | |
| 9311 | + | |
| 9312 | + | |
| 9313 | + | |
| 9314 | + | |
| 9315 | + | |
| 9316 | + | |
| 9317 | + | |
| 9318 | + | |
| 9319 | + | |
| 9320 | + | |
| 9321 | + | |
| 9322 | + | |
| 9323 | + | |
| 9324 | + | |
| 9325 | + | |
| 9326 | + | |
| 9327 | + | |
| 9328 | + | |
| 9329 | + | |
| 9330 | + | |
| 9331 | + | |
| 9332 | + | |
| 9333 | + | |
| 9334 | + | |
| 9335 | + | |
| 9336 | + | |
| 9337 | + | |
| 9338 | + | |
| 9339 | + | |
| 9340 | + | |
| 9341 | + | |
| 9342 | + | |
| 9343 | + | |
| 9344 | + | |
| 9345 | + | |
| 9346 | + | |
| 9347 | + | |
| 9348 | + | |
| 9349 | + | |
9249 | 9350 | | |
9250 | 9351 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1515 | 1515 | | |
1516 | 1516 | | |
1517 | 1517 | | |
1518 | | - | |
| 1518 | + | |
1519 | 1519 | | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
1520 | 1524 | | |
1521 | 1525 | | |
1522 | 1526 | | |
| |||
0 commit comments