Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
7204d47
tests: reproduce reported partial-exit shapes and controls
luisleo526 Nov 15, 2026
281687b
Test order-fill indicator checkpoint allocations (#809)
luisleo526 Nov 15, 2026
5724be0
Reuse contiguous indicator checkpoint windows (#809)
luisleo526 Nov 15, 2026
fe47545
Test absent-parent exit cohort retention work (#858)
luisleo526 Nov 15, 2026
487e6a0
Avoid restoring empty exit cohorts for live-only reads (#858)
luisleo526 Nov 15, 2026
cdd8002
Pin Eigen fallback archive with SHA256
luisleo526 Nov 15, 2026
0381fc8
Fix partial exit reservation ordering and per-entry sizing
luisleo526 Nov 15, 2026
0b9ec10
Combine the checkpoint allocation and empty exit cohort fixes
luisleo526 Nov 15, 2026
4c8e80c
Count unmatched trades on both sides in the corpus grader (#836)
luisleo526 Nov 15, 2026
586ae43
Merge main into the gross unmatched count fix (#836)
luisleo526 Nov 15, 2026
959eb7b
Pin the measured exit-handle cache layout (#858)
luisleo526 Nov 15, 2026
4e6ed9f
Refresh source allocation inventory for indicator windows (#809)
luisleo526 Nov 15, 2026
be652bd
Merge the source inventory refresh for the checkpoint fix (#809)
luisleo526 Nov 15, 2026
5e039b4
Merge the exit-handle cache layout pin for the exit cohort fix (#858)
luisleo526 Nov 15, 2026
785fb95
Refresh the combined exit and checkpoint source inventory
luisleo526 Nov 15, 2026
8c32487
Merge the Eigen fallback archive pin (#879)
luisleo526 Nov 15, 2026
289f02c
ci: build every registered Release target before merge
luisleo526 Nov 15, 2026
2aa8c56
Date the historical gross-count grading population
luisleo526 Nov 15, 2026
0481a63
Drop the Eigen fallback archive pin from this pull request (#879)
luisleo526 Nov 15, 2026
abffb68
Refresh documentation anchors to current lines
luisleo526 Nov 15, 2026
d25a477
Use gross unmatched percentages for strong grading and FIFO
luisleo526 Nov 15, 2026
3b8c136
Merge partial exit sizing with snapshot and cohort fixes
luisleo526 Nov 15, 2026
ff7851f
Refresh partial exit inventory and documentation anchors
luisleo526 Nov 15, 2026
2309ca9
test: prove cohort handle cache is derived broker state
luisleo526 Nov 15, 2026
7372646
Merge cache hash coverage into partial exit repair
luisleo526 Nov 15, 2026
15edd79
ci: report failed preflight stages explicitly
luisleo526 Nov 15, 2026
0a93be3
fix: forward entry quantity metadata and cover native caller values
luisleo526 Nov 15, 2026
a034066
Merge entry quantity step forwarding into the partial exit repair
luisleo526 Nov 15, 2026
ba82193
Restore the Eigen fallback archive SHA256 pin (#879)
luisleo526 Nov 15, 2026
f8393a2
fix: date the reference floor exception for #836/#883
luisleo526 Nov 15, 2026
58914a6
Refresh documentation anchors after restoring the Eigen pin
luisleo526 Nov 15, 2026
8cad3bb
Merge partial-exit reservations, entry quantity steps and the Eigen p…
luisleo526 Nov 15, 2026
600aadc
Merge main into the corpus parity count fix
luisleo526 Nov 15, 2026
faaad3e
Merge the gross-count grader (#878) into the engine train
luisleo526 Nov 15, 2026
7ab84ad
Merge explicit preflight stage failure reporting (#884) into the engi…
luisleo526 Nov 15, 2026
ca7ffaa
test(ci): keep corpus fixtures aligned with required build jobs
luisleo526 Nov 15, 2026
6c06954
Stack the build-all-registered-targets CI change on the engine train
luisleo526 Nov 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 78 additions & 2 deletions .github/workflows/ci-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,78 @@ jobs:
path: build-ci-preflight/
if-no-files-found: warn

# Every CI round fits fifteen minutes of wall time. Each configuration builds
# Full lab Release configuration, split by generated target names. Each shard
# captures ctest -N and independent CMake/link inventories before and after a
# real build. build-tests-result requires their exact union; smoke stays below.
build-tests:
needs: [authz]
if: ${{ needs.authz.result == 'success' }}
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4, 5, 6, 7, 8]
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- name: Checkout the exact workflow head
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
repository: ${{ github.repository }}
ref: ${{ github.sha }}
fetch-depth: 0
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.12'
- name: Install dependencies
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libeigen3-dev tzdata-legacy ccache ninja-build
- name: Exercise the broken registered header control
if: ${{ matrix.shard == 1 }}
run: python3 scripts/test_ci_build_tests.py WorkflowControl
- name: Build every Release test target
run: |
python3 scripts/ci_build_tests.py build --source . --build-dir build-tests-${{ matrix.shard }} --artifact-dir ci-build-tests --shard ${{ matrix.shard }}/8 --jobs "$(getconf _NPROCESSORS_ONLN)"
- name: Retain Release target inventories and build logs
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ci-release-build-${{ matrix.shard }}
path: ci-build-tests/
if-no-files-found: error

build-tests-result:
needs: [authz, build-tests]
if: ${{ needs.authz.result == 'success' }}
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- name: Require every Release build shard to succeed
env:
BUILD_TESTS_RESULT: ${{ needs.build-tests.result }}
run: test "$BUILD_TESTS_RESULT" = success
- name: Checkout the exact workflow head
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
repository: ${{ github.repository }}
ref: ${{ github.sha }}
fetch-depth: 0
persist-credentials: false
- name: Collect every Release target inventory
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
pattern: ci-release-build-*
path: ci-build-tests/
merge-multiple: true
- name: Require the complete Release build
run: |
python3 scripts/ci_build_tests.py union --artifact-dir ci-build-tests --shards 8

# Every CI round fits fifteen minutes of wall time. Each smoke configuration builds
# the PR smoke target and runs the fast CTest label; the full profiles run in
# the lab's verify on the exact head tree before every merge (docs/ci.md,
# "Where the full suites run").
Expand Down Expand Up @@ -412,7 +483,7 @@ jobs:
# maintainers, rather than this build context.
build-gate:
name: build
needs: [authz, changes, preflight, build-x86-gcc133, smoke, smoke-arm, sanitizers, corpus-parity-subset]
needs: [authz, changes, preflight, build-x86-gcc133, build-tests, build-tests-result, smoke, smoke-arm, sanitizers, corpus-parity-subset]
if: always()
# The aggregate runs inline Python and shell on the light pool class.
runs-on: ubuntu-24.04
Expand All @@ -434,13 +505,16 @@ jobs:
DOCS_ONLY: ${{ needs.changes.outputs.docs_only }}
PREFLIGHT_RESULT: ${{ needs.preflight.result }}
X86_GCC133_RESULT: ${{ needs.build-x86-gcc133.result }}
BUILD_TESTS_RESULT: ${{ needs.build-tests.result }}
BUILD_TESTS_UNION_RESULT: ${{ needs.build-tests-result.result }}
SMOKE_RESULT: ${{ needs.smoke.result }}
ARM_SMOKE_RESULT: ${{ needs.smoke-arm.result }}
SANITIZER_RESULT: ${{ needs.sanitizers.result }}
PARITY_RESULT: ${{ needs.corpus-parity-subset.result }}
run: |
printf '%s\n' "authz: $AUTHZ_RESULT" "changes: $CHANGES_RESULT, docs only: ${DOCS_ONLY:-unanswered}" \
"preflight: $PREFLIGHT_RESULT" "native x86 GNU 13.3.0: $X86_GCC133_RESULT" \
"Release test build: $BUILD_TESTS_RESULT" "Release target union: $BUILD_TESTS_UNION_RESULT" \
"amd64 smoke: $SMOKE_RESULT" "arm64 smoke: $ARM_SMOKE_RESULT" \
"sanitizers: $SANITIZER_RESULT" "corpus parity (subset): $PARITY_RESULT"
# Every smoke leg and the subset parity must pass. Only a classified
Expand All @@ -451,5 +525,7 @@ jobs:
[[ "$AUTHZ_RESULT" == "success" && "$CHANGES_RESULT" == "success" ]] \
&& [[ "$PREFLIGHT_RESULT" == "success" ]] \
&& [[ "$X86_GCC133_RESULT" == "success" ]] \
&& [[ "$BUILD_TESTS_RESULT" == "success" ]] \
&& [[ "$BUILD_TESTS_UNION_RESULT" == "success" ]] \
&& passed "$SMOKE_RESULT" && passed "$ARM_SMOKE_RESULT" \
&& passed "$SANITIZER_RESULT" && passed "$PARITY_RESULT"
74 changes: 73 additions & 1 deletion .github/workflows/gke-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,74 @@ jobs:
path: ci-native-x86-gcc133/
if-no-files-found: warn

# Compile the full lab Release population in parallel, including on docs-only
# and .github-only PRs. CTest execution stays in the existing proof jobs.
build-tests:
needs: [admit]
if: ${{ needs.admit.outputs.allowed == 'true' }}
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4, 5, 6, 7, 8]
runs-on: ubuntu-24.04
permissions: {contents: read}
steps:
- name: Checkout the admitted head
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
repository: ${{ github.repository }}
ref: ${{ needs.admit.outputs.head_sha }}
fetch-depth: 0
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.12'
- name: Install dependencies
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y libeigen3-dev tzdata-legacy ccache ninja-build
- name: Exercise the broken registered header control
if: ${{ matrix.shard == 1 }}
run: python3 scripts/test_ci_build_tests.py WorkflowControl
- name: Build every Release test target
run: |
python3 scripts/ci_build_tests.py build --source . --build-dir build-tests-${{ matrix.shard }} --artifact-dir ci-build-tests --shard ${{ matrix.shard }}/8 --jobs "$(getconf _NPROCESSORS_ONLN)"
- name: Retain Release target inventories and build logs
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ci-release-build-${{ matrix.shard }}
path: ci-build-tests/
if-no-files-found: error

build-tests-result:
needs: [admit, build-tests]
if: ${{ needs.admit.outputs.allowed == 'true' }}
runs-on: ubuntu-24.04
permissions: {contents: read}
steps:
- name: Require every Release build shard to succeed
env:
BUILD_TESTS_RESULT: ${{ needs.build-tests.result }}
run: test "$BUILD_TESTS_RESULT" = success
- name: Checkout the admitted head
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
repository: ${{ github.repository }}
ref: ${{ needs.admit.outputs.head_sha }}
fetch-depth: 0
persist-credentials: false
- name: Collect every Release target inventory
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
pattern: ci-release-build-*
path: ci-build-tests/
merge-multiple: true
- name: Require the complete Release build
run: |
python3 scripts/ci_build_tests.py union --artifact-dir ci-build-tests --shards 8

build:
needs: [admit]
if: ${{ needs.admit.outputs.allowed == 'true' && needs.admit.outputs.docs_only != 'true' && needs.admit.outputs.github_only != 'true' }}
Expand Down Expand Up @@ -505,7 +573,7 @@ jobs:
test "$PARITY_RESULT" = success

result:
needs: [admit, preflight, build-x86-gcc133, legs]
needs: [admit, preflight, build-x86-gcc133, build-tests, build-tests-result, legs]
if: always()
runs-on: ubuntu-24.04
permissions: {contents: read}
Expand Down Expand Up @@ -597,6 +665,8 @@ jobs:
ALLOWED: ${{ needs.admit.outputs.allowed }}
PREFLIGHT_RESULT: ${{ needs.preflight.result }}
X86_RESULT: ${{ needs.build-x86-gcc133.result }}
BUILD_TESTS_RESULT: ${{ needs.build-tests.result }}
BUILD_TESTS_UNION_RESULT: ${{ needs.build-tests-result.result }}
LEGS_RESULT: ${{ needs.legs.result }}
ADMIT_DOCS_ONLY: ${{ needs.admit.outputs.docs_only }}
ADMIT_GITHUB_ONLY: ${{ needs.admit.outputs.github_only }}
Expand All @@ -612,6 +682,8 @@ jobs:
test "$ALLOWED" = true || fail "admission did not allow the head"
test "$PREFLIGHT_RESULT" = success || fail "preflight did not pass"
test "$X86_RESULT" = success || fail "native x86 GNU 13.3.0 build did not pass"
test "$BUILD_TESTS_RESULT" = success || fail "Release test build did not pass"
test "$BUILD_TESTS_UNION_RESULT" = success || fail "Release target union did not pass"
test "$SECOND_DOCS_ONLY" = "$ADMIT_DOCS_ONLY" || fail "docs-only classification changed"
test "$SECOND_GITHUB_ONLY" = "$ADMIT_GITHUB_ONLY" || fail "github-only classification changed"
test "$SECOND_ARM_RELEVANT" = "$ADMIT_ARM_RELEVANT" || fail "arm relevance classification changed"
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ version number follows semantic versioning over the surfaces the
## Unreleased

- Checkpoints for `ta.sma`, biased `ta.stdev`, `ta.bb`, `math.sum` and `ta.change` now copy contiguous owning window buffers and reuse them on restore, preserving the arithmetic and rewind rules (#809).
- The JSON harness and live runner now forward the symbol's quantity-step metadata for default `strategy.entry(..., qty=na)` sizing (#716 item 1).
- The same quantity-step metadata is now forwarded for explicit `strategy.entry(..., qty=...)` quantities (#716 item 2).

- Explicit `strategy.order()` quantities now floor executable units at declared decimal quantity steps while preserving the source quantity; the boundary control is not measured against TradingView (#716 item 2).
- Corrected the parity grading for the historical population reported in [#836](https://github.com/pineforge-4pass/pineforge-engine/issues/836) on 2026-11-11: counting unmatched trades net instead of gross overstated the excellent tier by 10 of 312 reference probes (311 instead of 301) and by 24 of 7,989 graded probes. The trade data is unchanged.
- The corpus grader counts every unmatched gated trade on either side as a gross mismatch. One engine-only trade and one TradingView-only trade count as two mismatches, so equal list sizes cannot satisfy the excellent count gate. The same gross count, divided by the larger gated trade count (zero for two empty pools), supplies the percentage for strong-tier grading and fragmented-FIFO eligibility; thresholds are unchanged (#836).
- The prebuilt Linux archives need glibc 2.35 or newer (for example Ubuntu 22.04 or Debian 12 and later), and the release check now refuses an archive that needs a newer glibc.
- Multi-day charts restart their trading-date grid each year; measured on 24x7 daily input for chart bars, last_bar_index, barstate.islast and the open-trade report row. Streams keep the previous chart path; selected windows on generated N-day chart partitions are refused. Time offsets, exchange calendars and intraday input are not measured against TradingView.
- `str.match` no longer reports "no match" after a memory failure; the failure now reaches `out_of_memory`.
Expand All @@ -34,6 +39,11 @@ version number follows semantic versioning over the surfaces the
`path_order` modes outside 0, 1 and 2, now produce typed refusals instead of
being ignored or reset to AUTO. An invalid `mintick` is refused as `symbol_feeds_refused` with reason
`syminfo_mintick_invalid`; an invalid point value uses the existing symbol metadata error, `symbol_metadata_rejected` with field `point_value`.
- The JSON harness now honors explicit `qty_step`; both `qty_step` and
`mincontract` require positive finite JSON numbers. The explicit step takes
precedence while the minimum retains its own value, and minimum-only inputs
keep their previous behavior. `pineforge-live` also accepts
`--syminfo mincontract=...`.
- `strategy_get_run_warnings` exposes one named warning per `request.security` call site whose requested timeframe is not a multiple of its evaluator's feed timeframe; values, trades and run acceptance are unchanged (#718).
- The Docker report and `scripts/run_strategy.py` now show the engine's run warnings as `diagnostics.warnings` when a run has any, and are unchanged otherwise (#718).
- A percent-of-equity default quantity above 100 percent is now capped at 100 percent of equity when `margin_long` and `margin_short` are both 0 (#805).
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ if(NOT Eigen3_FOUND)
FetchContent_Declare(
eigen
URL https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz
URL_HASH SHA256=8586084f71f9bde545ee7fa6d00288b264a2b7ac3607b974e54d13e7162c1c72
)
set(EIGEN_BUILD_DOC OFF CACHE BOOL "" FORCE)
set(EIGEN_BUILD_TESTING OFF CACHE BOOL "" FORCE)
Expand Down
Loading
Loading