Skip to content

Commit dbf56ed

Browse files
luisleo526claude
andcommitted
CR-150 O(1) report integration candidate: merge 7 line (engine main 21ba62b) on core/cr150-o1-integ b4d2011
One commit carrying the tree of o1w/merge0 0a41361 (the full-history record of the merge-7 line), as a child of core/cr150-o1-integ b4d2011, so the doc-reverts gate judges the whole change against its real parent with this message (CORE-TOP ruling 10-21 18:04: no rewrite of pushed history, no checker exception). Merged lane heads (all carried in the tree): o1w-contract b19d8ae, o1w-pyjson cbc68d2, o1w-tail 27fcad9, o1w-selected 91fbd0e, o1w-seq 4b84f9d, o1w-tradeout bf024f1, o1w-ledger a87e546, o1w-metrics 3e1e70d, o1w-slabfold d41311c, batch-B 583c221, L8d proof 07c6363, L9b proof b01fe68, batch-C e6f8fcb, Q7 abort d220bd7, Q9 converter 3478350. Merge 7 is engine main 21ba62b. Rulings applied: CORE-TOP A (the four unbacked contract declarations withdrawn until the ledger and metrics lanes define them), B (the two _JSONRecordArray factory forms in the selected-window ownership scanner), E and F (closed-row accessor by copy; indexed report-array read), R13 (main's typed finite failures and proportional sub-day annualization win), the Option A failure-class split. DOC-REVERTS NAMES: every sentence deletion or revert listed by the doc-reverts gate on preflight 6f8e97 is a deliberate replacement made by an accepted ruling, a regeneration, or a later rewrite of the same page, and is named here by the commit that introduced it: - 03b2406 (ci: release jobs run on pf-ci-release, #461): the docs/ci.md paragraphs "Push this prepared migration only after both CORE-TOP gates", "Until then a job on that label with no runners only waits, and nothing is pushed.", the PF_CI_LABELS / pre-job hook / release.yml / promote-baseline.yml sentences: rewritten by main's own later edit of that page (21ba62b, #464), taken whole by merge 7. - a8f84b9 (docs(api): C ABI reference site): docs/pages/report-schema.md "pf_report_t is the single output of every backtest.", "This page maps each field to its meaning and units.", "Heap array, ordered by exit time ascending." rewritten by the O(1) report contract pages. - efb8c7e (o1w-contract round 2): docs/pages/report-schema.md "C/ctypes clients require an explicitly negotiated provider bridge; there is no new runtime C export in this slice." superseded by the selected-window named-sink contract text of b19d8ae. - 39a718b (cr150 L6b-1): docs/pages/run-failure-codes.md "The engine could not create or write the report sink." and "The run has no completed sink or valid trailer." replaced by the regenerated report_sink_failed description. - d220bd7 (cr150-q7): run-failure-codes.md "The existing engine_fault/retryable policy is retained pending a ruling:", "PROPOSED cancelled, retryable false;" and "RETURN TO CORE-TOP for the class ruling." removed by the class ruling (run_aborted only, no cancelled class, no retry field). - d91c96d (CR-150 route (ii) foundation): run-failure-codes.md "The engine could not create, resize, read or write scratch-table storage." replaced by the split wording (auxiliary tables raise scratch_io_failed; report-sink scratch raises report_sink_failed reason scratch_io). - e6f8fcb (CR-150 batch-C): docs/design/arena-bound.md "`sequence_index_` `include/pineforge/source/pine_adapter.hpp:N`" and the "`include/pineforge/detail/id_pair_store.hpp:N`;" citation: re-pointed or dropped after the merged source moved. - 5dbe91c (merge batch-B 583c221): docs/design/native-feature-parity.md "**yes** — `fill_report` engine_report.cpp:N, `get_trade` engine.hpp:N, `compute_trade_stats`" and "**no** — `compute_equity_stats` exits early on an empty curve": single-line pins replaced by the backticked symbol, as the anchor checker instructs. - 4d6cd2b (CR-150 WL-PTAILFIX): docs/design/consumed-partial-exit-fold.md "The previous-header fail-before compilation of the new unit remains required; its expected first diagnostic is the additional `IdPairStore` template a..." rewritten by o1w-slabfold d41311c. - d093560 (INT26 wave H): docs/pages/native-engine.md "A C++ host reads a closed row whole, at any time, every `Trade` field included." replaced by the closed-row-access-by-copy row (CORE-TOP ruling E: closed rows are paged, the C++ accessor returns a copy). DOC-REVERTS NAMES, second set: against this commit's real parent b4d2011 the gate reports 21 unnamed sentence deletions or reverts, all introduced by the seven commits below (preflight rj-20261021t100903-91b0cc, stage doc-reverts). Each is a deliberate rewrite on top of the introducing commit, and each introducer is named here: - 133f571 ("1.0 prep: CI flake fix, docs-only CI skip, benchmark refresh (supersedes #303, #304, #307)"), eleven docs/ci.md sentences: "The compilation lanes start alongside preflight, as soon as the few-second `changes` job has classified the change", "A pull request or a push to `main` whose change is documentation only runs `preflight` and the documentation build", "Each proof job waits for `changes` alone, a few seconds once a standard runner takes it", "`preflight` waits for nothing.", "`changes` and `preflight` wait for nothing and run on every event", "A documentation-only change starts preflight alone there.", "So does the `changes` job, a two-commit checkout and one `git diff`.", "The same stage pins the documentation-only skip", "The advisory `build` aggregate passes a proof job that succeeded", "A proof job skipped for any other reason fails it", "success": rewritten by main's later CI redesign and carried whole by merge 7 of 21ba62b. - b2a578c ("docs: make every README and doc page true before the release (DOCS-ENGINE) (#300)"), one docs/ci.md sentence on the PR registration floors after lane FIX-E1E2 (773 Debug and sanitizers, 782 native): superseded by the later floor rows. - 2394ba2 ("ci: remove every time limit that can fail a run for being slow (#373)"), two docs/ci.md sentences: "The table below reports each job's measured duration and the platform maximum that replaced its old limit" and "The numbers are measured durations, not a two-times multiplier.": replaced by the current duration table. - 7da487a ("ci/tests: remove the CI time limits; a platform-maximum stop is a HANG to re-run (EN-116)"), two docs/ci.md sentences: "Under the owner rule, no required-check stage, row, step, profile or matrix entry may carry a time limit" and "The native workflow retains only its 360-minute job envelopes, with no verification-step deadline.": superseded by the same redesign. - b148979 ("selected window: declare 1.3-parity, not 1.3, until a completeness proof exists (1.6.1)"), three sentences, README.md and docs/pages/report-schema.md: "`capabilities.selected_window_contract_revisions` is `[\"1.3-parity\"]` when the runtime supports selected windows", "The `--capabilities-json` probe's `capabilities.selected_window_contract_revisions` is `[\"1.3-parity\"]`", "From 1.6.1 (unreleased), the image declares `1.3-parity` instead": reverted to the 1.3 pin by the later capability ruling (AMD6 1.3-parity only), an accepted reversal. - 1bd075c ("Trading metrics + equity curve in backtest report (ABI v2) (#31)"), one docs/pages/report-schema.md sentence: "See the per-field doxygen in `<pineforge/pineforge.h>` for the exact rule on every field.": replaced by the O(1) report contract's per-field pages. - d3cca9e ("Docs: correct migration semantics and harden publication guards"), one docs/design/native-feature-parity.md pin line (`sha256:H` c_abi.cpp:N, `sha256:H` check_c_abi_runtime.py:N, ...): replaced by the symbol-only rows, as the anchor checker instructs. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent b4d2011 commit dbf56ed

287 files changed

Lines changed: 35786 additions & 2537 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/actionlint.yaml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Runner labels shared by the pfrel engine and codegen workflows.
2+
self-hosted-runner:
3+
labels:
4+
- self-hosted
5+
- pf-ci
6+
- pf-ci-release
7+
- pf-ci-x64
8+
- pf-ci-x64-16

‎.github/workflows/ci.yml‎

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

‎.github/workflows/corpus-parity.yml‎

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,26 @@ env:
8080
# pin is almost entirely cache hits.
8181
CCACHE_MAXSIZE: 2G
8282

83-
# Both jobs run on the organization's 16-core larger runner for a push, the
84-
# schedule, a dispatch and a pull request from a branch of this repository;
85-
# every other event, a fork's pull request above all (this workflow's own or
86-
# CI's: in a workflow_call the github context is the caller's), runs on the
87-
# free standard runner. The build uses every core of the runner that took the
88-
# job. scripts/ci_preflight.py pins the runners and limits.
83+
# Both jobs use the live ci-spot 16-vCPU class with the hosted fallback for
84+
# forks and untrusted events. The build uses every core of the runner.
85+
# scripts/ci_preflight.py pins runners and limits.
8986
jobs:
9087
# The whole population. Nightly, on demand, and on a pull request that
9188
# touches the pin or the parity tooling. Never reached by `mode: subset`.
9289
corpus-parity:
9390
if: inputs.mode != 'subset'
94-
runs-on: ${{ (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)) && 'pf-linux-x64-16' || 'ubuntu-24.04' }}
95-
# 16.3-26.2 min on the standard runner a fork's pull request still gets;
96-
# 360 minutes is the platform maximum, the only hang catcher (owner rule,
91+
runs-on: >-
92+
${{ github.event_name != 'pull_request_target' &&
93+
github.actor != 'dependabot[bot]' && github.triggering_actor != 'dependabot[bot]' &&
94+
contains(fromJSON('["push","pull_request","workflow_dispatch","schedule","release"]'), github.event_name) &&
95+
(github.event_name != 'pull_request' ||
96+
(github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.repo.fork == false)) &&
97+
fromJSON('["self-hosted","pf-ci","pf-ci-x64-16"]') || 'ubuntu-24.04' }}
98+
env:
99+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64-16"]'
100+
# 16.3-26.2 min on the standard runner; 360 minutes is the platform maximum,
101+
# the only hang catcher (owner rule,
97102
# 2026-10-12: no bound of our own may fail a run for slowness).
98-
timeout-minutes: 360
99103
steps:
100104
- uses: actions/checkout@v4
101105
with:
@@ -168,10 +172,17 @@ jobs:
168172
# names, judged against the same pinned sha256 rows. Reached through CI.
169173
corpus-parity-subset:
170174
if: inputs.mode == 'subset'
171-
runs-on: ${{ (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)) && 'pf-linux-x64-16' || 'ubuntu-24.04' }}
175+
runs-on: >-
176+
${{ github.event_name != 'pull_request_target' &&
177+
github.actor != 'dependabot[bot]' && github.triggering_actor != 'dependabot[bot]' &&
178+
contains(fromJSON('["push","pull_request","workflow_dispatch","schedule","release"]'), github.event_name) &&
179+
(github.event_name != 'pull_request' ||
180+
(github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.head.repo.fork == false)) &&
181+
fromJSON('["self-hosted","pf-ci","pf-ci-x64-16"]') || 'ubuntu-24.04' }}
182+
env:
183+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64-16"]'
172184
# 1.8-4.7 min on the standard runner; 360 minutes is the platform
173185
# maximum, the only hang catcher (owner rule, 2026-10-12).
174-
timeout-minutes: 360
175186
steps:
176187
# Credentials stay persisted, exactly as the nightly job above: the
177188
# submodule clone and `git lfs pull` below go out over https and the

‎.github/workflows/docs.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ permissions:
2222
deployments: write
2323

2424
concurrency:
25-
group: docs-${{ github.ref }}
26-
cancel-in-progress: true
25+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
26+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2727

2828
jobs:
2929
build:

‎.github/workflows/native-live.yml‎

Lines changed: 78 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,74 @@ env:
3636
PINEFORGE_REQUIRE_RELEASE_TAGS: "1"
3737

3838
jobs:
39+
authz:
40+
name: authz
41+
# Pool label (needs no toolchain or Docker). Switch to pf-ci-crj once laneboss's
42+
# bulletin says the Cloud Run class is live.
43+
runs-on: ["self-hosted", "pf-ci", "pf-ci-x64"]
44+
permissions: {}
45+
# No timeout-minutes: the owner's no-time-limits rule (check-no-time-limits refuses new ones).
46+
steps:
47+
- name: Only our own pull requests and our own events run CI
48+
env:
49+
EVENT: ${{ github.event_name }}
50+
REPO: ${{ github.repository }}
51+
HEAD_REPO: ${{ github.event.pull_request.head.repo.full_name }}
52+
HEAD_IS_FORK: ${{ github.event.pull_request.head.repo.fork }}
53+
ASSOCIATION: ${{ github.event.pull_request.author_association }}
54+
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
55+
WR_HEAD_REPO: ${{ github.event.workflow_run.head_repository.full_name }}
56+
WR_ACTOR: ${{ github.event.workflow_run.triggering_actor.login }}
57+
GH_TOKEN: ${{ github.token }} # read-only use: one permission lookup for workflow_run
58+
# Bot logins whose same-repository pull requests count as ours: dependabot[bot] (CI-DEPBOT A)
59+
# and the org's own GitHub App bot logins by name (space-separated), nothing else.
60+
ALLOWED_BOTS: "dependabot[bot] pineforge-app[bot]"
61+
run: |
62+
set -eu
63+
fail() { echo "::error title=authz::$1"; echo "authz: REFUSED: $1" >> "$GITHUB_STEP_SUMMARY"; exit 1; }
64+
case "$EVENT" in
65+
push|workflow_dispatch|schedule|merge_group|release|workflow_call|repository_dispatch)
66+
# Only someone with write access to this repository (or our App's token) can cause these
67+
# events; none of them runs pull-request code.
68+
;;
69+
workflow_run)
70+
# LB-437: bind identity to the triggering run and its re-runner.
71+
# These two App bots are fixed canon policy; ALLOWED_BOTS is PR-only.
72+
[ -n "${WR_HEAD_REPO:-}" ] || fail "workflow_run head repository is missing"
73+
[ -n "${WR_ACTOR:-}" ] || fail "workflow_run triggering actor is missing"
74+
[ "$WR_HEAD_REPO" = "$REPO" ] || fail "workflow_run head repository does not match this repository"
75+
case "$WR_ACTOR" in
76+
"pineforge-app[bot]"|"pineforge-ci-dispatcher[bot]") ;;
77+
*"[bot]") fail "workflow_run bot is not on the canon allowlist" ;;
78+
*)
79+
perm=$(gh api "repos/$REPO/collaborators/$WR_ACTOR/permission" --jq .permission 2>/dev/null) || fail "workflow_run permission lookup failed"
80+
case "$perm" in admin|maintain|write) ;; *) fail "workflow_run triggering actor does not have write permission" ;; esac ;;
81+
esac ;;
82+
pull_request)
83+
[ "$HEAD_REPO" = "$REPO" ] || fail "pull request from another repository (${HEAD_REPO:-unknown})"
84+
[ "$HEAD_IS_FORK" = "false" ] || fail "pull request from a fork"
85+
case "$ASSOCIATION" in
86+
OWNER|MEMBER|COLLABORATOR) ;;
87+
*)
88+
case " $ALLOWED_BOTS " in
89+
*" $PR_AUTHOR "*) ;;
90+
*)
91+
# A member whose org membership is private shows as CONTRIBUTOR: ask GitHub for the
92+
# author's permission on this repository; anything but admin/maintain/write (or a
93+
# failed call) refuses.
94+
perm=$(gh api "repos/$REPO/collaborators/$PR_AUTHOR/permission" --jq .permission 2>/dev/null || echo none)
95+
case "$perm" in admin|maintain|write) ;; *) fail "author ${PR_AUTHOR:-unknown} (${ASSOCIATION:-NONE}) has permission '$perm', not write, and is not an allowlisted bot" ;; esac ;;
96+
esac ;;
97+
esac ;;
98+
*) fail "event $EVENT does not run CI (pull_request_target and other events are not allowed)" ;;
99+
esac
100+
echo "authz: allowed ($EVENT${PR_AUTHOR:+ by $PR_AUTHOR})" >> "$GITHUB_STEP_SUMMARY"
101+
39102
native-live:
40103
name: native-live (${{ matrix.profile }})
41-
# Same trusted-event 16-core policy as CI; forks use the standard runner.
42-
runs-on: ${{ (github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)) && 'pf-linux-x64-16' || 'ubuntu-24.04' }}
43-
timeout-minutes: 360
104+
needs: [authz]
105+
# All three profiles use the canon heavy pool class on every event.
106+
runs-on: ["self-hosted","pf-ci","pf-ci-x64-16"]
44107
strategy:
45108
fail-fast: false
46109
matrix:
@@ -59,6 +122,7 @@ jobs:
59122
# stage, step or row carries a bound of ours any more. Only a hang reaches
60123
# the platform maximum. No row inventory changes.
61124
env:
125+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64-16"]'
62126
CCACHE_DIR: ${{ github.workspace }}/.ccache/${{ matrix.profile }}
63127
steps:
64128
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
@@ -143,17 +207,25 @@ jobs:
143207
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}
144208

145209
native-live-gate:
146-
needs: native-live
210+
needs: [authz, native-live]
147211
if: always()
148-
runs-on: ubuntu-24.04
149-
timeout-minutes: 360
212+
runs-on: ["self-hosted","pf-ci","pf-ci-x64"]
213+
env:
214+
PF_CI_LABELS: '["self-hosted","pf-ci","pf-ci-x64"]'
150215
steps:
216+
- name: Refuse an unauthorised run before anything else
217+
if: ${{ needs.authz.result != 'success' }}
218+
run: |
219+
echo "::error::authz did not pass; nothing of this run's code is checked out or run"
220+
exit 1
151221
- name: Require every native profile to have passed
152222
env:
223+
AUTHZ_RESULT: ${{ needs.authz.result }}
153224
PROFILES_RESULT: ${{ needs.native-live.result }}
154225
run: |
155226
printf 'native profiles: %s\n' "$PROFILES_RESULT"
156227
if test "$PROFILES_RESULT" = cancelled; then
157228
printf 'HANG (re-run): a native profile job was cancelled, which is how the platform stops a job at its 360-minute maximum\n'
158229
fi
230+
test "$AUTHZ_RESULT" = success
159231
test "$PROFILES_RESULT" = success

‎.github/workflows/promote-baseline.yml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ permissions:
102102
jobs:
103103
promote:
104104
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true }}
105-
runs-on: ubuntu-latest
105+
runs-on: ["self-hosted","pf-ci","pf-ci-release"]
106106
steps:
107107
- name: Determine repo axis
108108
id: axis
@@ -113,7 +113,7 @@ jobs:
113113
esac
114114
115115
# The base branch, never the PR (pull_request_target checks out main).
116-
- uses: actions/checkout@v4
116+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
117117
with:
118118
fetch-depth: 0
119119

@@ -188,38 +188,38 @@ jobs:
188188
- name: Mint an org App token to read the campaign tooling
189189
id: app
190190
if: steps.ci.outputs.green == 'true'
191-
uses: actions/create-github-app-token@v1
191+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
192192
with:
193193
app-id: ${{ secrets.PINEFORGE_APP_ID }}
194194
private-key: ${{ secrets.PINEFORGE_APP_PRIVATE_KEY }}
195-
owner: pineforge-4pass
195+
owner: ${{ github.repository_owner }}
196196
repositories: pineforge-workflow
197197
permission-contents: read
198198

199199
- name: Checkout campaign tooling (pineforge-workflow)
200200
if: steps.ci.outputs.green == 'true'
201-
uses: actions/checkout@v4
201+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
202202
with:
203203
repository: ${{ vars.WORKFLOW_REPO || 'pineforge-4pass/pineforge-workflow' }}
204204
ref: ${{ vars.WORKFLOW_REF || 'main' }}
205205
token: ${{ steps.app.outputs.token }}
206206
path: .workflow
207207

208-
- uses: actions/setup-node@v4
208+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
209209
if: steps.ci.outputs.green == 'true'
210210
with:
211211
node-version: '22'
212212

213213
- name: Authenticate to GCP
214214
if: steps.ci.outputs.green == 'true'
215-
uses: google-github-actions/auth@v2
215+
uses: google-github-actions/auth@7c6bc770dae815cd3e89ee6cdf493a5fab2cc093 # v3.0.0
216216
with:
217217
workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }}
218218
service_account: ${{ vars.GCP_SERVICE_ACCOUNT }}
219219

220220
- name: Set up gcloud
221221
if: steps.ci.outputs.green == 'true'
222-
uses: google-github-actions/setup-gcloud@v2
222+
uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db # v3.0.1
223223

224224
# The plane is Postgres on Cloud SQL; the promotion reads the active
225225
# baseline and the gate ledger there, so this runner needs the same

‎.github/workflows/release.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ env:
7777

7878
jobs:
7979
release:
80-
runs-on: ubuntu-latest
80+
runs-on: ["self-hosted","pf-ci","pf-ci-release"]
8181

8282
outputs:
8383
tag: ${{ steps.bump.outputs.tag }}
@@ -95,7 +95,7 @@ jobs:
9595
with:
9696
app-id: ${{ secrets.PINEFORGE_APP_ID }}
9797
private-key: ${{ secrets.PINEFORGE_APP_PRIVATE_KEY }}
98-
owner: pineforge-4pass
98+
owner: ${{ github.repository_owner }}
9999
repositories: pineforge-engine
100100

101101
- name: Checkout (full history)
@@ -340,7 +340,7 @@ jobs:
340340
matrix:
341341
include:
342342
- triple: linux-x86_64
343-
runner: ubuntu-22.04
343+
runner: ["self-hosted","pf-ci","pf-ci-release"]
344344
cmake_extra: ""
345345
- triple: linux-aarch64
346346
runner: ubuntu-22.04-arm
@@ -468,15 +468,15 @@ jobs:
468468
notify-hub:
469469
needs: [release, prebuilt]
470470
if: ${{ !inputs.dry_run }}
471-
runs-on: ubuntu-latest
471+
runs-on: ["self-hosted","pf-ci","pf-ci-release"]
472472
steps:
473473
- name: Mint org App token (hub dispatch)
474474
id: app
475475
uses: actions/create-github-app-token@v1
476476
with:
477477
app-id: ${{ secrets.PINEFORGE_APP_ID }}
478478
private-key: ${{ secrets.PINEFORGE_APP_PRIVATE_KEY }}
479-
owner: pineforge-4pass
479+
owner: ${{ github.repository_owner }}
480480
repositories: pineforge-release
481481

482482
# client_payload = {version: vX.Y.Z[-rc.N], prerelease: true|false,

‎AGENTS.md‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ Both C++ unit tests and full corpus verification must pass.
99
The merge ruleset requires `pineforge/verify` and `pineforge/parity` commit
1010
statuses on the PR head's exact tree. The maintainers post them from their own (private)
1111
verification tooling after full verification on their x86-64 build hosts and a
12-
parity verdict; an outside contributor cannot post them. GitHub Actions is advisory: PR Debug, sanitizers and native jobs
13-
exclude the measured `slow` CTest rows; push-to-main and manual CI dispatch
14-
run every row, and a documentation-only change runs preflight alone. The commands below run the full sets.
12+
parity verdict; an outside contributor cannot post them. GitHub Actions is advisory: PRs run Ubuntu Release/Debug and macOS Release; macOS Debug stays on non-PR events.
13+
PR Release, Ubuntu Debug, kernel-only, sanitizers and native jobs exclude the measured `slow` CTest rows; push-to-main and manual CI dispatch
14+
run every row, and a documentation-only change runs preflight alone among verification jobs.
15+
CI/native start with the canon `authz` job and every other job needs it. Heavy
16+
Linux lanes use `["self-hosted","pf-ci","pf-ci-x64-16"]`, light jobs use
17+
`["self-hosted","pf-ci","pf-ci-x64"]`, with no hosted fallback; macOS is the
18+
exception. Both aggregates always run and refuse non-success authz first.
19+
See `docs/ci.md` for the class table and docs-only exception. The commands below run the full sets.
1520

1621
```bash
1722
# Fast workflow/source checks first (requires actionlint 1.7.12 + ShellCheck).
@@ -140,7 +145,7 @@ The `PineForge strict CI base` ruleset requires `pineforge/verify` (full
140145
`ci_verify.py` profiles on the PR head's exact tree) and `pineforge/parity`
141146
(no parity regression, or no engine behaviour change). The maintainers'
142147
private verification tooling posts both commit statuses; GitHub Actions does not post them.
143-
Its PR jobs provide faster advisory feedback and a documentation-only change runs preflight alone; otherwise push-to-main and manual
148+
Its PR jobs provide faster advisory feedback and a documentation-only change runs preflight alone among verification jobs; otherwise push-to-main and manual
144149
dispatch run the full CI profiles. A campaign PASS verdict still binds the
145150
exact engine and codegen HEADs for baseline promotion.
146151

‎CHANGELOG.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@ README's *Releases* section and on the GitHub releases page. From 1.0.0 the
55
version number follows semantic versioning over the surfaces the
66
[public contract](docs/pages/public-contract.md) lists.
77

8+
## Unreleased
9+
10+
- **Ownership manifest controls run in four CTest shards (CR-196).** The same
11+
loader-discovered cases keep every assertion and the 180-second timeout per
12+
row; a cheap guard checks complete, disjoint assignment for shard counts
13+
1 through 8. Preflight continues to run the complete unsharded suite.
14+
- **EN-115 selected-window completeness proof completed.** From 1.6.2 the image
15+
declares selected-window contract revision `1.3` again: the section-4
16+
producers and manifest are present, `value_ownership` is `complete`, and a
17+
revision `1.3` pairs only with a `complete` receipt. The `docker/run_json.py
18+
--capabilities-json` probe reports
19+
`capabilities.selected_window_contract_revisions` as `["1.3"]` on a
20+
supported runtime and `[]` otherwise. The published 1.5.0 image declared
21+
`1.3-parity` (earlier images carried no revision member), the published
22+
1.6.0 image declared `1.3` without a completeness proof, and engine 1.6.1
23+
(released, no hub image) declares `1.3-parity`; it remains the parity
24+
build's literal, and a tuple holding both is invalid. No wire or ABI change: the selected-window wire version
25+
stays 1, the phase version 1 and the fingerprint/schema version 2.
26+
827
## 1.6.1 — 2026-10-18
928

1029
**[1.6.1](https://github.com/pineforge-4pass/pineforge-engine/releases/tag/v1.6.1)**,

‎CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ set(PINEFORGE_KERNEL_SOURCES
158158
src/selected_window_plan.cpp
159159
src/metrics_spill_curve.cpp
160160
src/report_scratch.cpp
161+
src/scratch_arena.cpp
161162
)
162163
# The kernel-only archive: libpineforge.a's kernel objects and flags, for consumers that never speak Pine.
163164
add_library(pineforge_kernel STATIC ${PINEFORGE_KERNEL_SOURCES})

0 commit comments

Comments
 (0)