Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1621 commits
Select commit Hold shift + click to select a range
d1e206e
Merge branch 'wip/607-b3audits' into codex/607-engine-redesign
hmgaudecker Oct 29, 2026
5f0d9fb
Patch the canonical evaluation where the jitted policy read calls it
hmgaudecker Oct 29, 2026
b29625a
Trace each native EGM kernel once per cold solve
hmgaudecker Oct 30, 2026
148885b
Merge branch 'wip/607-egmtrace' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
8ab23ee
Run each policy-query period's chunk loop on the device
hmgaudecker Oct 30, 2026
f0f32e3
Merge branch 'wip/607-qloop2' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
a130728
Price arrivals one level deep with stored continuation surfaces (WIP,…
hmgaudecker Oct 30, 2026
e5cd172
Document policy-first default simulation and ordinary replay
hmgaudecker Oct 30, 2026
0a72907
Merge branch 'wip/607-b3docs' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
44379fe
Fill CI workload weights for new test files
hmgaudecker Oct 30, 2026
ad5cbb6
Persist arrival surfaces in solution archives
hmgaudecker Oct 30, 2026
afba24b
Merge branch 'wip/607-arrdepth' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
126bc98
Admit the policy-first EGM read under a device-memory budget
hmgaudecker Oct 30, 2026
cb81f2e
Merge branch 'wip/607-fixbench' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
cb45ff7
Refuse a DCEGM parent of a finite NNBEGM child with a clear message
hmgaudecker Oct 30, 2026
93b0f24
Merge branch 'wip/607-doc618' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
b051a9e
Capture the retained Case-U publisher through the function's own point
hmgaudecker Oct 30, 2026
d6b04a7
Merge branch 'wip/607-fixcaseu' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
0ea113d
Refuse value-reading gates and remove Gate.references and the D artifact
hmgaudecker Oct 30, 2026
b93ee2f
Compile only the dispatched programs of a query period
hmgaudecker Oct 30, 2026
189f15e
Merge branch 'wip/607-s12rm' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
a6024b3
Merge branch 'wip/607-qprune' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
6769070
Read the DC-EGM policy first for regimes with fixed process-state nodes
hmgaudecker Oct 30, 2026
422ff98
Merge branch 'wip/607-nodereplay' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
f5c0624
Declare post-choice IID shocks on the regime
hmgaudecker Oct 30, 2026
de4dd7b
Merge branch 'wip/607-postshock' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
1bfa71e
Route current-IID EGM sources through the node-axis adapter
hmgaudecker Oct 30, 2026
d514b82
Merge branch 'wip/607-adapterprod' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
1377ba0
Re-pin certificate populations after the policy-diagnostics deletion
hmgaudecker Oct 30, 2026
6cbb738
Merge branch 'wip/607-fixcert' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
aa8167d
Read the NBEGM grid policy first in simulation
hmgaudecker Oct 30, 2026
1b62bc7
Merge branch 'wip/607-nbreplay' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
b9e00a0
Record the post-choice read refusal in the regime slot read ledger
hmgaudecker Oct 30, 2026
9a5245c
Place query parameter copies for the chunk-loop query program
hmgaudecker Oct 30, 2026
d24dabf
Merge branch 'wip/607-qpfix' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
7b8bc3d
Present declared shocks as shocks and refuse off-grid finite NNBEGM s…
hmgaudecker Oct 30, 2026
7e2ef8b
Merge branch 'wip/607-adapterfix' into codex/607-engine-redesign
hmgaudecker Oct 30, 2026
8e7bf1e
Delete the native current-IID EGM route
hmgaudecker Oct 30, 2026
c91d921
Publish the closed-form DC-EGM value where the savings floor binds
hmgaudecker Oct 30, 2026
f5f86df
Store arrival decision branches and take the decision again at the la…
hmgaudecker Oct 30, 2026
b3849f3
Merge wip/607-arrbranch: store participation branches, re-decide at l…
hmgaudecker Oct 30, 2026
4cd8c2d
Model the closed-form floor publication in the activation oracle
hmgaudecker Oct 30, 2026
d075c1d
Merge wip/607-nativerm into the adapterfix head
hmgaudecker Oct 30, 2026
cd76e5b
Merge wip/607-floorerr: publish the DC-EGM binding floor in closed form
hmgaudecker Oct 30, 2026
24712e2
Pin fully observed consent groups and batch information maps
hmgaudecker Oct 30, 2026
d120e3a
Merge the arrbranch head into wip/607-nativerm2
hmgaudecker Oct 30, 2026
3b98f26
Merge wip/607-nativerm2: delete the native current-IID route
hmgaudecker Oct 30, 2026
bf2f3ae
Delete the dead asset-node reference publisher and guard the binding …
hmgaudecker Oct 30, 2026
1b7a90c
Merge wip/607-assetfloor: drop dead asset-row publishers
hmgaudecker Oct 30, 2026
f3774a3
Refuse IID shocks entering EGM utility other than through resources
hmgaudecker Oct 30, 2026
58a4a67
Merge wip/607-utilrefuse: refuse IID shocks entering EGM utility
hmgaudecker Oct 30, 2026
dc4b00f
Delete the solve-time DISSOLUTION_FLAG output role and artifact key
hmgaudecker Oct 30, 2026
78b6694
Infer shock timing from reads; remove post_choice_shocks and fold=
hmgaudecker Oct 30, 2026
7cb7bda
Merge wip/607-ddelete: remove the solve-time dissolution flag
hmgaudecker Oct 30, 2026
a163250
Merge wip/607-readtiming: infer shock timing from reads
hmgaudecker Oct 30, 2026
433c5a7
Pin aca-model to the read-timing migration (aca-model#27)
hmgaudecker Oct 30, 2026
e1b50e1
Rename arrival decisions to participation checks (decision 54)
hmgaudecker Oct 30, 2026
fda811c
Merge branch 'codex/607-engine-redesign' into wip/607-rename
hmgaudecker Oct 30, 2026
01d8ea1
Drop the duplicate coverage marker that aborted the xdist suite
hmgaudecker Oct 30, 2026
964aeab
Key query chunks by width and widen row steps as chunks narrow
hmgaudecker Oct 30, 2026
51ec8fa
Merge wip/607-xdistfix: drop a duplicate coverage marker that aborted…
hmgaudecker Oct 30, 2026
b43ba61
Pin aca-model 2b9f127 (test-only follow-up to the read-timing migration)
hmgaudecker Oct 30, 2026
5ae7ec7
Update draw-read tests to read-timing: IID read only as its draw has …
hmgaudecker Oct 30, 2026
15a0a67
Fix the sfmisc suite failures and surface worker collection errors
hmgaudecker Oct 30, 2026
9c943f9
Merge wip/607-sfmisc: fix suite failures, surface worker collection e…
hmgaudecker Oct 30, 2026
1b109ab
Delete the unreachable current-IID fold machinery
hmgaudecker Oct 30, 2026
f8bb6f9
Keep the axis of a draw-only IID state on NBEGM and NNBEGM regimes
hmgaudecker Oct 30, 2026
e460b78
Merge wip/607-sftiming: update draw-read tests, keep NBEGM draw axes
hmgaudecker Oct 30, 2026
6e9fd3d
Refuse off-node processes entering EGM utility, admit node draws
hmgaudecker Oct 30, 2026
96bb3e2
Merge wip/607-arrefuse: refuse off-node processes entering EGM utility
hmgaudecker Oct 30, 2026
1bca136
Refine NB-EGM savings-node actions to the interior Euler saving
hmgaudecker Oct 30, 2026
d4065af
Merge wip/607-nbsnap: stop NBEGM snapping savings to grid nodes
hmgaudecker Oct 30, 2026
f6874ac
Merge wip/607-eklperf: key query chunks by width, widen row batches
hmgaudecker Oct 30, 2026
7ef6735
Rename the flattened read-projection segment to reads
hmgaudecker Oct 30, 2026
3f9f0d7
Merge branch 'codex/607-engine-redesign' into wip/607-rename
hmgaudecker Oct 30, 2026
761eccf
Keep pinned ancestor rows compact in descendant answers
hmgaudecker Oct 30, 2026
d4f9fcf
Narrow a refused query closure to its fitting width in one pass
hmgaudecker Oct 30, 2026
b5faaa1
Merge wip/607-rename: arrival becomes participation check
hmgaudecker Oct 30, 2026
794bd83
Merge 9c943f94c into wip/607-foldrm; drop the benchmark fold identity
hmgaudecker Oct 30, 2026
a2a6b42
Merge b5faaa14a (arrival becomes participation) into wip/607-eklperf
hmgaudecker Oct 30, 2026
157ce9d
Step through 131072 query lanes, now that pinned copies stay compact
hmgaudecker Oct 30, 2026
a437040
Re-derive lazy-fallback budgets from the post-nbsnap donor-pair census
hmgaudecker Oct 30, 2026
7fe395d
Merge wip/607-sflazy: re-derive lazy-fallback byte budgets after nbsnap
hmgaudecker Oct 30, 2026
13bdcc4
Merge b5faaa14a into wip/607-foldrm
hmgaudecker Oct 30, 2026
eaef4fd
Merge wip/607-foldrm: delete the engine's current-IID fold machinery
hmgaudecker Oct 30, 2026
87c1df1
Merge wip/607-eklperf: compact pinned rows, one-pass narrowing, 13107…
hmgaudecker Oct 30, 2026
06be28e
Re-pin certificate populations after the deletion merges
hmgaudecker Oct 31, 2026
9d3c98d
Merge wip/607-sfcert: re-pin certificate populations after deletions
hmgaudecker Oct 31, 2026
228cfbe
Re-pin model fingerprints after the rename and fold removal; fence th…
hmgaudecker Oct 31, 2026
81f8e54
Merge wip/607-sfpin: re-pin model fingerprints, fix rename leftover i…
hmgaudecker Oct 31, 2026
1a4c1ce
Restore the S10 cost capture script for the post-nativerm fixtures
hmgaudecker Oct 31, 2026
1bc0948
Draw the capture's health cost from a bounded law
hmgaudecker Oct 31, 2026
d4e0c3e
Offer only the applicable remedies when EGM utility reads a process
hmgaudecker Oct 31, 2026
10e1c81
Skip the NaN breakdown for regimes reading gated continuations
hmgaudecker Oct 31, 2026
d4a73e7
Put the capture's keep investment exactly on the grid
hmgaudecker Oct 31, 2026
0c23c02
Rename the draw-only shock lowering after the timing rule
hmgaudecker Oct 31, 2026
e5679a4
Drop stale dissolution-flag prose and smooth participation wording
hmgaudecker Oct 31, 2026
2b80928
Document current shocks, exits, addressed draws and their refusals
hmgaudecker Oct 31, 2026
05b0d7a
Run the ACA inventory script on the current shock API
hmgaudecker Oct 31, 2026
74005a7
Simulate saved EGM solutions under a device budget
hmgaudecker Oct 31, 2026
5ec4028
Merge wip/607-gpuload: simulate saved EGM solutions under a device bu…
hmgaudecker Oct 31, 2026
3ef2a10
Merge codex/607-engine-redesign 5ec402880 (gpuload fix) into wip/607-…
hmgaudecker Oct 31, 2026
56a416c
Merge wip/607-s12docs: finish S12 docs, refusal remedies and leftovers
hmgaudecker Oct 31, 2026
f49077f
Merge wip/607-b4final: S10 cost capture script
hmgaudecker Oct 31, 2026
7a7c3e1
Read each NB savings-node column only at its own liquid point
hmgaudecker Oct 31, 2026
5a942fb
Treat an EGM branch below the savings floor as dead in the policy read
hmgaudecker Oct 31, 2026
1233c66
Read per-subject EGM policy rows in place instead of copying them
hmgaudecker Oct 31, 2026
715a52a
Bound the exact envelope's run capacity per cell, not per chain
hmgaudecker Oct 31, 2026
6f73c98
Merge wip/607-nnbspeed: fold NB savings-node columns at their own query
hmgaudecker Oct 31, 2026
4bc14c0
Keep runs of one slot contiguous where they only touch
hmgaudecker Oct 31, 2026
9929b19
Key the budgeted EGM policy read by the model's regime
hmgaudecker Oct 31, 2026
48d6cc2
Merge integration 6f73c9893 (nnbspeed) into wip/607-egmnan
hmgaudecker Oct 31, 2026
83ef5b0
Merge integration 6f73c9893 (nnbspeed) into wip/607-dcspeed
hmgaudecker Oct 31, 2026
248eb70
Merge wip/607-dcspeed: key the budgeted policy read by the model's re…
hmgaudecker Oct 31, 2026
798b9ce
Name IID shocks read only as next_x post-decision shocks
hmgaudecker Oct 31, 2026
1f653ce
Poison the NEGM overflow fixture past its per-cell run depth
hmgaudecker Oct 31, 2026
c07ceb9
Merge wip/607-pdrename: name IID shocks read only as next_x post-deci…
hmgaudecker Oct 31, 2026
a7cf5dd
Enumerate a budgeted workspace frontier once per axis declaration
hmgaudecker Oct 31, 2026
47e5512
Rename the process keyword simulate_draws to simulated_draws
hmgaudecker Oct 31, 2026
dd6a58e
Build the current-IID realisation program once per shock group
hmgaudecker Oct 31, 2026
9b36a63
Read the constrained segment below an EGM row; key regimes without ex…
hmgaudecker Oct 31, 2026
5050a86
Add an NBEGM arm to the dc-aca S10 cost capture
hmgaudecker Oct 31, 2026
90470e9
Merge wip/607-egmnan: bound the exact envelope's run capacity per cell
hmgaudecker Oct 31, 2026
7fc23b0
Assert the DC-EGM archive replay agrees up to rounding
hmgaudecker Oct 31, 2026
e763d96
Merge integration 90470e955 (egmnan, pdrename) into wip/607-dcspeed
hmgaudecker Oct 31, 2026
8fc8dfe
Derive the lazy-fallback budgets from the reservation census
hmgaudecker Oct 31, 2026
767791a
Add the parity rule for performance changes to the testing guide
hmgaudecker Oct 31, 2026
9280f53
Simulate post-decision shocks with continuous draws by default
hmgaudecker Oct 31, 2026
f6aba50
Integrate post-decision shocks out of NBEGM regimes
hmgaudecker Oct 31, 2026
bcec7f2
Pin the NB-EGM interior saving 5/6 in its own witness
hmgaudecker Oct 31, 2026
4c0e15b
Merge integration 90470e955 (egmnan) into wip/607-nbint
hmgaudecker Oct 31, 2026
343e0b6
Compare the constrained read against the stored wealth at float32
hmgaudecker Oct 31, 2026
0e1dfc0
Merge wip/607-smallfix: replay-rounding assertion, census-derived bud…
hmgaudecker Oct 31, 2026
2a3e6d3
Merge wip/607-dcspeed round 2: cache warm planning, read the constrai…
hmgaudecker Oct 31, 2026
b48058e
Merge integration 2a3e6d318 (dcspeed round 2) into wip/607-nbint
hmgaudecker Oct 31, 2026
b13559e
Merge wip/607-nbint: NBEGM integrates post-decision shocks out
hmgaudecker Oct 31, 2026
50bf61d
Name ExactEnvelope's run capacity in the NaN error of the regimes it …
hmgaudecker Oct 31, 2026
db78302
Stream NB Euler links in blocks; locate refined node reads by bracket
hmgaudecker Oct 31, 2026
dd4de8e
Merge wip/607-smallfix2: name ExactEnvelope max_runs in DC-EGM NaN er…
hmgaudecker Oct 31, 2026
9f01681
Refuse negative node weights at declaration; remove signed= plumbing
hmgaudecker Oct 31, 2026
4ea7abb
Merge wip/607-signed: refuse negative node weights at declaration
hmgaudecker Oct 31, 2026
4502e89
Read Euler links run-wise and pick one savings node per point in NB-EGM
hmgaudecker Oct 31, 2026
cf23e17
Merge integration b13559e7b (nbint) into wip/607-pdcont
hmgaudecker Oct 31, 2026
6a8dc3c
Drop the unreachable GridSearch-only refusal of post-decision groups
hmgaudecker Oct 31, 2026
5f97f11
Run each formation query once per class of caller rows it reads
hmgaudecker Oct 31, 2026
ee3fed8
Merge commit '4ea7abbac' into wip/607-pricebankC
hmgaudecker Oct 31, 2026
0205dea
Merge wip/607-pricebank: price each formation read class once (phase A)
hmgaudecker Oct 31, 2026
d91d828
Find each point's savings-node brackets by one search per ascending run
hmgaudecker Oct 31, 2026
f0b89bf
Remove the Smolyak node rule
hmgaudecker Oct 31, 2026
da31280
Merge commit '4ea7abbac' into wip/607-nbspeed2
hmgaudecker Oct 31, 2026
add3b6c
Merge commit '0205dea4b' into wip/607-nbspeed2
hmgaudecker Oct 31, 2026
491af6e
Merge wip/607-nosmolyak: remove the Smolyak node rule
hmgaudecker Oct 31, 2026
5b2448b
Merge commit '491af6e8f' into wip/607-nbspeed2
hmgaudecker Oct 31, 2026
baf9853
Merge wip/607-nbspeed2: NB-EGM reads Euler links run-wise and keeps o…
hmgaudecker Oct 31, 2026
81371c5
Evaluate a caller's own stay problem once per class of rows it reads
hmgaudecker Oct 31, 2026
5eb1f50
Merge wip/607-pricebankC: solve a query's stay problem once per class…
hmgaudecker Oct 31, 2026
d280c40
Merge wip/607-pdcont: draw post-decision shocks continuously; rename …
hmgaudecker Oct 31, 2026
96513bf
Name the next-only process states in the post-decision vocabulary
hmgaudecker Oct 31, 2026
ec91b07
Integrate post-decision shocks out of NNBEGM regimes
hmgaudecker Oct 31, 2026
50dc061
Merge wip/607-nnbaxis: NNBEGM integrates post-decision shocks through…
hmgaudecker Oct 31, 2026
b9f884f
Name NBEGM node-bank candidates per query when one-shot identities ex…
hmgaudecker Oct 31, 2026
deaf9a3
Merge wip/607-idoverflow: name NB-EGM node candidates within int32 at…
hmgaudecker Oct 31, 2026
f821085
Re-pin fingerprints and re-derive the pair budget and overflow fixtur…
hmgaudecker Oct 31, 2026
4859e62
Declare StayTable before _query_cell reads it; check every module's c…
hmgaudecker Oct 31, 2026
447fa3b
Clear finished test modules' caches so a worker's memory-map count st…
hmgaudecker Oct 31, 2026
5525af8
Read every stakeholder's continuation value in one mapped interpolation
hmgaudecker Oct 31, 2026
d6b0460
Merge wip/607-suitefix: fix the final-suite failures at deaf9a3b0
hmgaudecker Oct 31, 2026
1dc529e
Merge wip/607-couplekernel: read every stakeholder's continuation in …
hmgaudecker Oct 31, 2026
0c8ace6
Fix the three remaining suite failures at 1dc529e39
hmgaudecker Oct 31, 2026
3be2e89
Merge wip/607-suitefix2: last three suite failures at 1dc529e39
hmgaudecker Oct 31, 2026
95ea678
Avoid redundant DAG captures for state-only exit projections
hmgaudecker Oct 31, 2026
f224886
FIX Omit null-event values when publishing node-axis expectations
hmgaudecker Oct 31, 2026
56bedfb
FIX Validate canonical participation fallback coordinates for every h…
hmgaudecker Oct 31, 2026
c78457e
FIX Canonically score floor-binding policies during replay selection
hmgaudecker Oct 31, 2026
0443992
FIX Accept authentic JAX scalar literals in CE transpose callbacks
hmgaudecker Oct 31, 2026
c05b6f8
FIX Preserve subnormal Hermite guards under Clang flush modes
hmgaudecker Oct 31, 2026
0553644
Merge qualified EKL state-only projection construction repair
hmgaudecker Oct 31, 2026
17dc79b
FIX Validate node-state shock overrides at consumed cells
hmgaudecker Oct 31, 2026
654f5b0
TST Qualify GPU candidate retention and loaded-library prerequisites
hmgaudecker Oct 31, 2026
d5c249b
FIX Preserve support diagnostics for consumed shock overrides
hmgaudecker Oct 31, 2026
0c9b3df
CI Fill new workload weights from the measured closing run
hmgaudecker Oct 31, 2026
ce1c6e4
TST Align Mahler moments with addressed simulation streams
hmgaudecker Oct 31, 2026
eec24e3
FIX Derive coverage contributors from the CI shard layout
hmgaudecker Nov 1, 2026
edbe470
Merge current engine redesign into declared-target validation
hmgaudecker Nov 1, 2026
4e4ddb3
PERF Share statically identical single query evaluations
hmgaudecker Nov 1, 2026
cebca3d
PERF Reuse profiled simulation programs across dispatch
hmgaudecker Nov 1, 2026
f90b22a
FIX Mark complete query chunks live before GPU lowering
hmgaudecker Nov 1, 2026
4292fd1
FIX Preserve abstract replay payloads during operand placement
hmgaudecker Nov 1, 2026
c55b630
PERF Reuse saved capacity for deferred simulation targets
hmgaudecker Nov 1, 2026
2125b90
FIX Widen feasibility counters without widening query indices
hmgaudecker Nov 1, 2026
73f0b58
Bump the github-actions group with 3 updates
dependabot[bot] Nov 1, 2026
d04ccb5
TST Align feasibility count checks with configured precision
hmgaudecker Nov 1, 2026
c3bb8ee
PERF Avoid collection setup for value-only solves
hmgaudecker Nov 1, 2026
98abc0f
PERF Reuse a loop for named RNG address folds
hmgaudecker Nov 2, 2026
0b89ffe
DOCS Align IID migration guidance with current public API
hmgaudecker Nov 2, 2026
82acbeb
Merge remote-tracking branch 'origin/codex/607-engine-redesign' into …
hmgaudecker Nov 2, 2026
249be2e
Merge branch 'codex/553-declared-target-validation' into codex/on-nod…
hmgaudecker Nov 2, 2026
e724833
Merge branch 'codex/on-nodes-transition-rules' into codex/514-continu…
hmgaudecker Nov 2, 2026
16baa86
ENH Give stochastic processes the off_grid option of continuous grids
hmgaudecker Nov 2, 2026
1c46963
Carry the simulated_draws rename into the on-nodes law comparison
hmgaudecker Nov 2, 2026
b7e46c5
Merge commit '16baa86a9' into codex/on-nodes-transition-rules
hmgaudecker Nov 2, 2026
0534f60
Rederive the CI workloads from one parent and register the off-grid t…
hmgaudecker Nov 2, 2026
f3486d7
Merge branch 'codex/on-nodes-transition-rules' into codex/514-continu…
hmgaudecker Nov 2, 2026
6ca7379
FIX Read process transition rows that stay lotteries off the nodes
hmgaudecker Nov 2, 2026
740bbca
Regenerate the process panels for transition rows read from the law
hmgaudecker Nov 2, 2026
0c61843
Fill CI workload weights for the process off-grid tests
hmgaudecker Nov 2, 2026
db01ea4
Merge branch 'codex/on-nodes-transition-rules' into codex/514-continu…
hmgaudecker Nov 2, 2026
02cf1a2
Merge CI updates and refresh numerical dependencies
hmgaudecker Nov 2, 2026
4dbea19
Keep runtime type and engine helper checks valid
hmgaudecker Nov 2, 2026
6394f56
Fix shock entry validation and remove unused engine paths
hmgaudecker Nov 2, 2026
e56d64f
Preserve constant continuation values during extrapolation
hmgaudecker Nov 2, 2026
80f6a9e
Align scalar mutation registry with the remaining phase helpers
hmgaudecker Nov 2, 2026
f684e8b
TST Simulate the household example over three periods from a mixed co…
hmgaudecker Nov 3, 2026
79998f1
Merge branch 'codex/607-engine-redesign' into codex/553-declared-targ…
hmgaudecker Nov 3, 2026
f9205d8
Merge the published household CI fixture repair
hmgaudecker Nov 3, 2026
6116972
Preserve the published FUES comparison pending the rounding decision
hmgaudecker Nov 3, 2026
85b0f75
Refresh model fingerprints and the paired-admission budget
hmgaudecker Nov 3, 2026
abe84dd
Store participation surfaces with strong array types
hmgaudecker Nov 3, 2026
9ca523d
Bind certificate and winner tests to the live source
hmgaudecker Nov 3, 2026
5ddb8a6
Decline affine blends with unsupported endpoint differences
hmgaudecker Nov 3, 2026
4d0c97f
Use a bounded analytic reference for the extreme lognormal fixture
hmgaudecker Nov 3, 2026
ea017e8
Bound layout comparisons by one array-scale ULP
hmgaudecker Nov 3, 2026
8073296
Run archive replay outside parallel solution workers
hmgaudecker Nov 3, 2026
acf1535
Keep active PR benchmarks running across pushes
hmgaudecker Nov 3, 2026
6ea6eb2
Restore cancellation of superseded PR benchmarks
hmgaudecker Nov 3, 2026
f7e77f4
Rebalance CPU jobs from complete JAX 0.12 timings
hmgaudecker Nov 3, 2026
93389b6
Qualify stored model outputs for the updated CPU environment
hmgaudecker Nov 3, 2026
cd65ba1
Balance cold solution lanes and reuse precision caches
hmgaudecker Nov 3, 2026
783ffd4
Skip large collective benchmarks pending runtime repair
hmgaudecker Nov 3, 2026
1f6701e
Merge remote-tracking branch 'origin/codex/607-engine-redesign' into …
hmgaudecker Nov 3, 2026
94673fa
Merge branch 'codex/cascade-pr625-20261103' into codex/cascade-pr626-…
hmgaudecker Nov 3, 2026
38f8212
Merge branch 'codex/cascade-pr626-20261103' into codex/cascade-pr628-…
hmgaudecker Nov 3, 2026
e490728
Share continuation construction and dynamic reads across process corners
hmgaudecker Nov 4, 2026
5643eb4
Retain observed source shocks on current-period mover rows
hmgaudecker Nov 4, 2026
c04f42b
Merge #621 review fixes into #625
hmgaudecker Nov 4, 2026
7b7d298
Merge #625 review fixes into #626
hmgaudecker Nov 4, 2026
c7ebd3b
Merge #626 review fixes into #628
hmgaudecker Nov 4, 2026
230ea41
Merge reviewed #621 fixes into the #628 performance repair
hmgaudecker Nov 4, 2026
5c37d31
Compile one shared program for process-edge corners
hmgaudecker Nov 4, 2026
aa0fd3c
Run saved-solution replay test one subject at a time
hmgaudecker Nov 4, 2026
10ecfe0
Merge published replay verification fix into shared-corner repair
hmgaudecker Nov 4, 2026
fb0aa03
Preserve finite scaled means at the support boundary
hmgaudecker Nov 5, 2026
a4d9df4
Merge main into codex/514-continuation-overflow
hmgaudecker Nov 5, 2026
81ba353
Merge remote-tracking branch 'origin/codex/514-continuation-overflow'…
hmgaudecker Nov 5, 2026
edfc8e4
Reuse linear continuation expectations across process corners
hmgaudecker Nov 5, 2026
0526c01
Keep lognormal process fixture income in levels
hmgaudecker Nov 5, 2026
2e7028a
Refresh normal process model fingerprints after fixture annotation
hmgaudecker Nov 5, 2026
bcd4ee1
Keep zero scaled means on their mass scale
hmgaudecker Nov 5, 2026
226e6b8
Reuse solve executables across calls to the same model
hmgaudecker Nov 6, 2026
382ef23
Fix continuation review findings and warm-cache CI
hmgaudecker Nov 6, 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
18 changes: 14 additions & 4 deletions hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,12 @@ def _tool_version(executable: str | None) -> str | None:
"""Return one compiler's version report for the installed-build manifest."""
if executable is None:
return None
command = [executable]
if Path(executable).stem.lower() != "cl":
command.append("--version")
try:
result = subprocess.run( # noqa: S603
[executable, "--version"],
command,
capture_output=True,
text=True,
check=False,
Expand All @@ -110,9 +113,17 @@ def _tool_version(executable: str | None) -> str | None:
return f"exit={result.returncode}\n{report}"


def _find_cpu_compiler() -> str | None:
"""Find the compiler used to build the CPU payload on this platform."""
override = os.environ.get("CXX")
if sys.platform == "win32":
return override or shutil.which("cl")
return override or shutil.which("c++") or shutil.which("g++")


def native_build_inputs(*, root: Path) -> dict[str, object]:
"""Return all inputs that decide whether an installed payload is reusable."""
compiler = os.environ.get("CXX") or shutil.which("c++") or shutil.which("g++")
compiler = _find_cpu_compiler()
nvcc = shutil.which("nvcc")
try:
from importlib.metadata import version # noqa: PLC0415
Expand Down Expand Up @@ -486,9 +497,9 @@ def build_exact_affine(
source_dir = root / PACKAGE_DIR
output_dir = output_dir or root / ".pylcm-native-build"
include_dir = jax_include_dir or _find_jax_include_dir()
compiler = _find_cpu_compiler()

if sys.platform == "win32":
compiler = os.environ.get("CXX") or shutil.which("cl")
if compiler is not None and not _accepts_msvc_flags(compiler):
msg = (
f"CXX is set to {compiler!r}, which does not take MSVC flags. The "
Expand Down Expand Up @@ -532,7 +543,6 @@ def build_exact_affine(
)
]

compiler = os.environ.get("CXX") or shutil.which("c++") or shutil.which("g++")
if compiler is None:
msg = (
"No C++ compiler found. pylcm's certified upper envelope needs one to "
Expand Down
121 changes: 5 additions & 116 deletions src/_lcm/certainty_equivalent.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@
weighted_power_mean,
)
from _lcm.probability import (
binades_above_smallest_normal,
binades_to_fit_product,
is_live,
is_negative,
is_represented_zero,
rescaled_lottery_weights,
scaled_down_by_power_of_two,
)
from _lcm.utils.functools import get_union_of_args
from _lcm.zero_safe import zero_safe_weighted_term
from _lcm.zero_safe import scaled_lottery_mean, zero_safe_weighted_term
from lcm.exceptions import (
RegimeInitializationError,
ScaledLotteryDifferentiationError,
Expand Down Expand Up @@ -233,12 +230,10 @@ def aggregate_scaled(
The expectation, reduced over the last axis.

"""
value_terms, weight_terms = _scaled_lottery_terms(
mean, _ = scaled_lottery_mean(
values=values, coefficients=coefficients, shifts=shifts
)
return _states_no_derivative(
jnp.sum(value_terms, axis=-1) / jnp.sum(weight_terms, axis=-1)
)
return _states_no_derivative(mean)


@beartype(conf=REGIME_CONF)
Expand Down Expand Up @@ -413,14 +408,11 @@ def aggregate_scaled(
transformed = self.transform(
value=safe_values, **_args_for(func=self.transform, params=params)
)
value_terms, weight_terms = _scaled_lottery_terms(
mean, _ = scaled_lottery_mean(
values=transformed, coefficients=coefficients, shifts=shifts
)
return _states_no_derivative(
self.inverse(
value=jnp.sum(value_terms, axis=-1) / jnp.sum(weight_terms, axis=-1),
**_args_for(func=self.inverse, params=params),
)
self.inverse(value=mean, **_args_for(func=self.inverse, params=params))
)


Expand Down Expand Up @@ -647,106 +639,3 @@ def aggregates_nonlinearly(certainty_equivalent: CertaintyEquivalent | None) ->
return certainty_equivalent is not None and not isinstance(
certainty_equivalent, LinearExpectation
)


def _scaled_lottery_terms(
*, values: FloatND, coefficients: FloatND, shifts: IntND
) -> tuple[FloatND, FloatND]:
"""Return a lottery's value terms and weight terms on one shared scale.

A node's contribution to a mean is `c * 2**-s * v`, and the order those
three are combined in decides whether the node survives. Two orders each
lose it at one end of the range:

- forming the weight `c * 2**-s` first loses a rare node, because the
weight of a node many binades below the likeliest one is not
representable and becomes zero, taking its value with it — although the
*product* it was heading for may be an ordinary number, which is
precisely the case where the node changes the answer;
- forming `c * v` first loses a node whose coefficient has been normalized
above one and whose value sits near the top of the range, because that
intermediate overflows to infinity before any scale is applied to bring
it back.

Splitting the scale covers both. The coefficient absorbs as much of the
downward shift as it can while staying normal, the product absorbs the
remainder. Neither an unrepresentable weight nor an overflowing product is
ever materialized, and a rare node earns its place in the mean exactly when
its value is large enough to offset its probability.

Both returned terms carry the same shift, so the scale cancels in their
ratio and the caller divides them directly. The shift is the smallest the
row carries, per lottery rather than per batch, so the likeliest node's
weight lands at its own magnitude and no unrelated lottery beside it can
move it. A dead node takes no part in that choice: an unreachable node
carrying a large shift would otherwise push every live weight down with it.

The row's own weight total joins that shift, scaled against the largest
value the row carries, so that the weighted sum cannot reach infinity while
the mean it states is an ordinary number. Two equally likely nodes near the
top of the range are the case: their mean is comfortably representable, but
the numerator alone is not. That correction is the smallest one that fits,
because every binade spent at the top is one the rarest term of the same
sum loses at the bottom.

A coefficient that is not a probability at all — negative, infinite, or
NaN — is not a dead node and is not silently dropped. It poisons its whole
row, so a malformed lottery is visible in the result rather than reduced to
a plausible number.

Args:
values: Continuation values of the lottery along the last axis.
coefficients: The weights' significands, over the same axis.
shifts: Each weight's own base-two scale, broadcast against them.

Returns:
Tuple of the value terms and the weight terms, both over the last axis
and both carrying the row's shared scale.

"""
coefficients = jnp.asarray(coefficients)
values = jnp.asarray(values)
shifts = jnp.broadcast_to(jnp.asarray(shifts), jnp.shape(coefficients))

live = is_live(coefficients) & jnp.isfinite(coefficients)
invalid = is_negative(coefficients) | (
~jnp.isfinite(coefficients) & ~is_represented_zero(coefficients)
)
unusable = jnp.max(shifts, axis=-1, keepdims=True)
common = jnp.min(jnp.where(live, shifts, unusable), axis=-1, keepdims=True)
scale = (common - shifts).astype(jnp.int32)

on_common_scale = jnp.where(
live,
scaled_down_by_power_of_two(values=coefficients, shift=scale),
jnp.zeros_like(coefficients),
)
total = jnp.sum(on_common_scale, axis=-1, keepdims=True)
largest = jnp.max(
jnp.where(live, jnp.abs(values), jnp.zeros_like(values)),
axis=-1,
keepdims=True,
)
full = scale - binades_to_fit_product(left=total, right=largest)

room = binades_above_smallest_normal(coefficients)
on_weight = jnp.maximum(full, -room)
scaled_coefficients = scaled_down_by_power_of_two(
values=coefficients, shift=on_weight
)
products = zero_safe_weighted_term(
weight=scaled_coefficients,
value=values,
subnormal_is_accounted_for=False,
)
value_terms = scaled_down_by_power_of_two(values=products, shift=full - on_weight)
weight_terms = scaled_down_by_power_of_two(values=coefficients, shift=full)

value_terms = jnp.where(live, value_terms, jnp.zeros_like(value_terms))
weight_terms = jnp.where(live, weight_terms, jnp.zeros_like(weight_terms))
invalid_row = jnp.any(invalid, axis=-1, keepdims=True)
nan = jnp.asarray(jnp.nan, dtype=coefficients.dtype)
return (
jnp.where(invalid_row, nan, value_terms),
jnp.where(invalid_row, nan, weight_terms),
)
33 changes: 0 additions & 33 deletions src/_lcm/probability.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,39 +1025,6 @@ def binades_above_smallest_normal(values: FloatND) -> _BitsND:
)


def binades_to_fit_product(*, left: FloatND, right: FloatND) -> _BitsND:
"""Halvings of `left` that bring `left * right` inside the format's range.

A caller reducing a weighted mean uses this to scale a row's weight total
against its largest value, so the weighted sum cannot reach infinity while
the mean it states is an ordinary number. The shift is a power of two
applied to both sides of the ratio, so it is exact and leaves the mean
unchanged.

It is the *smallest* such shift, which matters at the other end of the
range: every binade spent here is one the smallest term of the same sum
loses, and one binade too many turns a representable contribution into a
subnormal a backend may flush. A product that already fits needs none.

Args:
left: The factor to be scaled down — the weight total.
right: The factor it will meet — the largest value in the row.

Returns:
The non-negative number of halvings of `left` that make the product
representable.

"""
arr = jnp.asarray(left)
largest_exponent = jnp.finfo(arr.dtype).maxexp - 2
excess = (
_unbiased_exponent(arr)
+ _unbiased_exponent(jnp.asarray(right))
- largest_exponent
)
return jnp.maximum(excess, 0).astype(jnp.int32)


def _unbiased_exponent(values: FloatND) -> _BitsND:
"""Return each entry's base-two exponent, subnormals included."""
arr = jnp.asarray(values)
Expand Down
42 changes: 42 additions & 0 deletions src/_lcm/processes/ar1.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,23 @@ def compute_transition_probs(self, **kwargs: ScalarFloat | ScalarInt) -> FloatND
[first_col, jnp.diff(cdf_vals, axis=1), last_col], axis=1
)

def transition_row_at(
self, *, from_value: ScalarFloat, **kwargs: ScalarFloat | ScalarInt
) -> Float1D:
"""Return the law's transition row from any current value, on the nodes.

The row bins the conditional law at the nodes' midpoints, exactly as
`compute_transition_probs` does at each node, so it is a probability
distribution wherever the current value lies.
"""
return tauchen_row(
nodes=self.compute_gridpoints(**kwargs),
rho=kwargs["rho"],
sigma=kwargs["sigma"],
from_value=from_value,
mu=kwargs["mu"],
)

def draw_shock(
self,
*,
Expand Down Expand Up @@ -323,6 +340,14 @@ def compute_transition_probs(self, **kwargs: ScalarFloat | ScalarInt) -> FloatND
"""Evaluate the selected transition row at each supplied source node."""
return jax.vmap(partial(self.compute_transition_row, **kwargs))(self.to_jax())

def transition_row_at(
self, *, from_value: ScalarFloat, **kwargs: ScalarFloat | ScalarInt
) -> Float1D:
"""Return the selected rule's row from any current value."""
return self.compute_transition_row(
from_value, rho=kwargs["rho"], sigma=kwargs["sigma"], mu=kwargs["mu"]
)

# keyword-only-exempt: library-callback=jax.vmap
def compute_transition_row(
self,
Expand Down Expand Up @@ -1054,6 +1079,23 @@ def compute_transition_probs(self, **kwargs: ScalarFloat | ScalarInt) -> FloatND
P = P.at[:, 0].set(upper[:, 0])
return P.at[:, -1].set(1 - lower[:, -1])

def transition_row_at(
self, *, from_value: ScalarFloat, **kwargs: ScalarFloat | ScalarInt
) -> Float1D:
"""Return the law's transition row from any current value, on the nodes.

Each node's bin reaches half a step to either side, the first and last
bins open, as in `compute_transition_probs`.
"""
x = self.compute_gridpoints(**kwargs)
mixture = {name: kwargs[name] for name in ("p1", "mu1", "sigma1", "mu2")}
half_step = 0.5 * (x[-1] - x[0]) / (self.n_points - 1)
z = x - kwargs["mu"] - kwargs["rho"] * from_value
upper = _mixture_cdf(x=z + half_step, sigma2=kwargs["sigma2"], **mixture)
lower = _mixture_cdf(x=z - half_step, sigma2=kwargs["sigma2"], **mixture)
row = (upper - lower).at[0].set(upper[0])
return row.at[-1].set(1 - lower[-1])

def draw_shock(
self,
*,
Expand Down
10 changes: 6 additions & 4 deletions src/_lcm/processes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,18 @@ def __new__(
)
"""How a value beyond the outer nodes is read, as on a continuous grid.

- `"extrapolate"`: transition rows, continuations and policies extend
linearly along the edge segment.
- `"extrapolate"`: Tauchen evaluates its transition law at the off-grid
value. Rouwenhorst uses the edge node's transition row and extends the
continuation along the edge segment. Interpolated policies also extend
along the edge segment.
- `"clip_lookup"`: those reads use the nearest edge node; the state keeps
its value.
- `"clip_state"`: a simulated value is additionally clipped to the outer
nodes.
- `"raise"`: a simulated value beyond the outer nodes is refused.

A `simulated_draws="nodes"` draw samples the nearest edge node's row under
every rule, since an extrapolated row can carry negative weights.
A `simulated_draws="nodes"` draw beyond the nodes samples the nearest edge
node's transition row when the off-grid rule permits the state.
"""

state_conditioned: StateConditioned | None = field(init=False, default=None)
Expand Down
Loading
Loading