Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1050 commits
Select commit Hold shift + click to select a range
e50dcb2
Document the borrowing-floor rule and the adaptive-mesh refusal
hmgaudecker Oct 18, 2026
b502cd7
Match certificate control populations to the remaining sources
hmgaudecker Oct 18, 2026
8caeae9
Merge remote-tracking branch 'origin/main' into HEAD
hmgaudecker Oct 18, 2026
36d6c91
Merge feat/b2-522-1 into state-dependent borrowing feasibility
hmgaudecker Oct 18, 2026
cfa30dc
Merge remote-tracking branch 'origin/feat/b2-522-1' into HEAD
hmgaudecker Oct 18, 2026
10fc6fb
Match certificate self-test expectations to the remaining controls
hmgaudecker Oct 18, 2026
e0d63ba
Align certificate population tests with the branch's corridor
hmgaudecker Oct 18, 2026
054bbed
Document the kink limit of golden-section refinement in adaptive oute…
hmgaudecker Oct 18, 2026
f525f71
Default the signature of AgeSpecializedGrid to its built grid
hmgaudecker Oct 18, 2026
f1fec85
Let DC-EGM constraints read params and align EGM test fixtures
hmgaudecker Oct 18, 2026
5711b59
Repin the feature-free fp32 structure fingerprint
hmgaudecker Oct 18, 2026
d8dd294
Count literal child reads by producer and read equal cash rightmost
hmgaudecker Oct 18, 2026
b9f02b9
Read process states as floats in floor traces; select beta among CES …
hmgaudecker Oct 18, 2026
3c80530
Let regime laws, households, joint lotteries and imputations read val…
hmgaudecker Oct 18, 2026
7475c74
Merge commit 'e0d63baa7' into codex/state-dependent-borrowing-feasibi…
hmgaudecker Oct 18, 2026
2e843b1
Merge commit 'b9f02b99b' into codex/state-dependent-borrowing-feasibi…
hmgaudecker Oct 18, 2026
4f06b92
Merge commit 'cfa30dcd1' into codex/state-dependent-borrowing-feasibi…
hmgaudecker Oct 18, 2026
410649d
Name the canonical query fixture as a test helper and keep codespell …
hmgaudecker Oct 18, 2026
518b0d9
Compare only the outer-helper family's pins in its selection test
hmgaudecker Oct 18, 2026
0be788f
Count the aggregate mutation populations after the scope cut
hmgaudecker Oct 19, 2026
5784ba7
Batch the finite NEGM query's outer candidates instead of unrolling them
hmgaudecker Oct 19, 2026
c359260
Register the finite NEGM trace-size test in the CI workloads manifest
hmgaudecker Oct 19, 2026
930c2e4
Count the nested helper families in the registry coverage test
hmgaudecker Oct 19, 2026
1050aa4
Run OS-independent general files on the Linux legs only
hmgaudecker Oct 19, 2026
e48f489
Rename use_labels to use_categorical_codes
hmgaudecker Oct 19, 2026
a7881d6
Fit the source-certificate campaign inside one job
hmgaudecker Oct 19, 2026
c018b81
Run the solution battery's persistence tests on macOS and Windows
hmgaudecker Oct 19, 2026
3384d89
Re-measure the Linux general legs' weights from JUnit
hmgaudecker Oct 19, 2026
f3252b8
Speak a value grid's values at the user-facing boundaries
hmgaudecker Oct 19, 2026
5209f2e
Document value grids in the user guide
hmgaudecker Oct 19, 2026
735a3f4
Give both Linux general legs a fourth shard
hmgaudecker Oct 19, 2026
4858479
Run the two heaviest certificate modules in their own lane
hmgaudecker Oct 19, 2026
6a44f0a
Read certificate seal test sources as UTF-8, not by locale
hmgaudecker Oct 19, 2026
fa3e772
Accept numeric ages and floating encoder inputs; test what the review…
timmens Oct 19, 2026
163f7a2
Accept signed integer helpers of any width in the composite encoder
timmens Oct 19, 2026
411a00e
Accept int64 next codes from member laws and bound-check them before …
timmens Oct 19, 2026
91148ce
Filter wide successor codes before narrowing in the reachability enum…
timmens Oct 19, 2026
4cf24ae
Parallelise the standalone self-test; two macOS/Windows general shards
hmgaudecker Oct 19, 2026
fccc26b
Value finite NEGM corners at their own passive node
hmgaudecker Oct 19, 2026
58f570c
Merge remote-tracking branch 'origin/feat/b2-522-1' into HEAD
hmgaudecker Oct 19, 2026
f982b59
Merge remote-tracking branch 'origin/feat/feasibility-by-start-period…
hmgaudecker Oct 19, 2026
e496b96
Merge branch 'fix/576-linux-leg-weights' into codex/state-dependent-b…
hmgaudecker Oct 19, 2026
f1e6693
Merge branch 'fix/576-negm-inflation' into codex/state-dependent-borr…
hmgaudecker Oct 19, 2026
24ea7ce
Merge remote-tracking branch 'origin/codex/state-dependent-borrowing-…
hmgaudecker Oct 19, 2026
1da944e
Merge remote-tracking branch 'origin/feat/age-grid-default-signature'…
hmgaudecker Oct 19, 2026
33843fc
DiscreteGrid(values=...) takes only a one-dimensional array
hmgaudecker Oct 19, 2026
c234997
User functions read `<name>_code` for every discrete variable
hmgaudecker Oct 19, 2026
c890de9
Pass helper values to member laws under the user-function argument co…
timmens Oct 19, 2026
5993398
IrregSpacedGrid(points=...) and on_nodes(nodes=...) take only arrays
hmgaudecker Oct 19, 2026
fbbc1d2
Merge feat/b2-522-1 into feat/feasibility-by-start-period
hmgaudecker Oct 19, 2026
ca3c132
Merge feat/feasibility-by-start-period into codex/state-dependent-bor…
hmgaudecker Oct 19, 2026
6dfba6a
Bind `<state>_code` in gate predicates and projections
hmgaudecker Oct 19, 2026
d760f12
Merge codex/state-dependent-borrowing-feasibility into feat/age-grid-…
hmgaudecker Oct 19, 2026
74ed072
Merge feat/age-grid-default-signature into feat/b2-518-4
hmgaudecker Oct 19, 2026
1db2c85
Read integer codes with use_categorical_codes in the composite-state …
hmgaudecker Oct 19, 2026
09db06d
Merge main into codex/state-dependent-borrowing-feasibility
hmgaudecker Oct 19, 2026
f47b892
Merge codex/state-dependent-borrowing-feasibility into feat/age-grid-…
hmgaudecker Oct 19, 2026
c8f199b
Merge feat/age-grid-default-signature into feat/b2-518-4
hmgaudecker Oct 19, 2026
5dfe6f2
Complete the NB actual-resource status acceptance matrix
hmgaudecker Oct 19, 2026
b6366be
Merge remote-tracking branch 'origin/codex/state-dependent-borrowing-…
hmgaudecker Oct 19, 2026
7df8be5
Check the default-signature solve dtype against the run's precision
hmgaudecker Oct 19, 2026
e57c81e
Merge commit '7df8be5fe' into feat/b2-518-4
hmgaudecker Oct 19, 2026
0188163
Register the NB actual-resource matrix and mutation tests in the CI m…
hmgaudecker Oct 19, 2026
65f4df3
Merge commit '01881631f' into feat/b2-518-4
hmgaudecker Oct 19, 2026
efeea2e
Price the finite NEGM floor corner at the actual state, blend then max
hmgaudecker Oct 19, 2026
f2788cd
Merge codex/state-dependent-borrowing-feasibility into fix/576-f4-act…
hmgaudecker Oct 19, 2026
fe0ce9e
Merge codex/state-dependent-borrowing-feasibility into feat/age-grid-…
hmgaudecker Oct 19, 2026
9774b29
Adapt merged tests to array-only grid data and the current params sig…
hmgaudecker Oct 19, 2026
5c0ef7e
Merge feat/age-grid-default-signature into feat/b2-518-4
hmgaudecker Oct 19, 2026
341eefa
Register the NB resource matrix and round-8 corner tests in the CI ma…
hmgaudecker Oct 19, 2026
617d242
Publish inherited child-query slots from a literal-floor NNBEGM parent
hmgaudecker Oct 19, 2026
1889fb8
Merge remote-tracking branch 'origin/codex/state-dependent-borrowing-…
hmgaudecker Oct 19, 2026
afe544a
Register the round-8 child-status tests in the CI manifest
hmgaudecker Oct 19, 2026
54f5254
Merge remote-tracking branch 'origin/codex/state-dependent-borrowing-…
hmgaudecker Oct 19, 2026
058196e
Merge remote-tracking branch 'origin/feat/age-grid-default-signature'…
hmgaudecker Oct 19, 2026
be7f986
Solve the eager child-status case with an eager model
hmgaudecker Oct 19, 2026
0725245
Merge remote-tracking branch 'origin/codex/state-dependent-borrowing-…
hmgaudecker Oct 19, 2026
ddeba49
Merge remote-tracking branch 'origin/feat/age-grid-default-signature'…
hmgaudecker Oct 19, 2026
bf6fc27
Decide a D_target gate at the realised landing in simulate
hmgaudecker Oct 19, 2026
c0fcf21
Merge remote-tracking branch 'origin/feat/b2-518-4' into fix/588-real…
hmgaudecker Oct 19, 2026
86c88ad
Report dissolution routes once per regime-period
hmgaudecker Oct 19, 2026
35cfd9a
Qualify adaptive child-status transport on a converged mesh
hmgaudecker Oct 20, 2026
0def006
Expect the gate route to leave dissolution to the realised landing
hmgaudecker Oct 20, 2026
d791c03
Read no current value in an IID process's continuation
hmgaudecker Oct 20, 2026
11560e6
Publish a collective regime's continuation reads
hmgaudecker Oct 20, 2026
34fb5f0
Pin aca-model to the commit that passes grid points as arrays
hmgaudecker Oct 20, 2026
53bd31e
Merge remote-tracking branch 'origin/feat/b2-518-4' into fix/588-real…
hmgaudecker Oct 20, 2026
53d9559
Amend the finite NEGM mixed-corner contract to blend each kind, then …
hmgaudecker Oct 20, 2026
601cd55
Hand a dissolution route only to a household that passed its gate open
hmgaudecker Oct 20, 2026
c4e6675
Publish a carried value grid's values in simulation output
hmgaudecker Oct 20, 2026
221a351
Merge commit '35cfd9a71' into integrate/576-f35
hmgaudecker Oct 20, 2026
e189169
Name the child-status witness tests by what they check
hmgaudecker Oct 20, 2026
804d10b
Complete a rerouted household's period whatever the regime order
hmgaudecker Oct 20, 2026
77b2ca7
Assert the route phase commits no fallback for an open no-dissolution…
hmgaudecker Oct 20, 2026
aa43fef
Measure a held dissolution route's buffers through its own fields
hmgaudecker Oct 20, 2026
526944c
Reject parameter Series rows that encode to one grid cell
hmgaudecker Oct 20, 2026
9cae12a
Keep a model-level discrete variable read only through its code
hmgaudecker Oct 20, 2026
7769fc8
Register the new value-grid and code-argument test files for CI
hmgaudecker Oct 20, 2026
9acb56f
Merge remote-tracking branch 'origin/feat/b2-518-4' into pr592-cascad…
hmgaudecker Oct 21, 2026
fa0d9a7
Project every dissolution leg from the household's original state
hmgaudecker Oct 21, 2026
df00247
Keep a folded process that feeds a derived code read
hmgaudecker Oct 21, 2026
39d0578
Admit the open-branch entry carrier and keep it a live root
hmgaudecker Oct 21, 2026
c1ade40
Merge remote-tracking branch 'origin/feat/b2-518-4' into fix/588-real…
hmgaudecker Oct 21, 2026
b48b9c1
Merge branch 'fix/588-realised-gate' into perf/iid-continuation-reads
hmgaudecker Oct 21, 2026
cd6eaf5
Read worker RSS through psutil so macOS and Windows release mid-module
hmgaudecker Oct 21, 2026
e3bc18d
Merge remote-tracking branch 'origin/codex/state-dependent-borrowing-…
hmgaudecker Oct 21, 2026
0045a52
Let progress logging take up to twice the host time of off
hmgaudecker Oct 21, 2026
fdbe121
Merge remote-tracking branch 'origin/codex/state-dependent-borrowing-…
hmgaudecker Oct 21, 2026
2135ae5
Merge remote-tracking branch 'origin/feat/age-grid-default-signature'…
hmgaudecker Oct 21, 2026
ada764e
Merge remote-tracking branch 'origin/feat/b2-518-4' into pr592-cascad…
hmgaudecker Oct 21, 2026
48f6c4e
Merge remote-tracking branch 'origin/fix/588-realised-gate' into perf…
hmgaudecker Oct 21, 2026
d78d2f5
Read process states by value or node position in projections and gates
hmgaudecker Oct 21, 2026
e4f14e1
Profile the gated-entry carriers as chunk stages
hmgaudecker Oct 21, 2026
465ea89
Merge remote-tracking branch 'origin/fix/588-realised-gate' into perf…
hmgaudecker Oct 21, 2026
4b2cb5a
Merge remote-tracking branch 'origin/perf/iid-continuation-reads' int…
hmgaudecker Oct 21, 2026
81a3d1c
Bind process-code reads to the reading regime and refuse off-node inputs
hmgaudecker Oct 21, 2026
54b73ab
Let a simulate-phase fallback read the target's carried state
hmgaudecker Oct 21, 2026
627ef13
Name the declaration a target carries a state from in the handoff error
hmgaudecker Oct 22, 2026
5e3065f
Bind process codes by each regime's own declaration and refuse produc…
hmgaudecker Oct 22, 2026
886483e
Merge branch 'fix/projected-value-realised-shock' into fix/fallback-r…
hmgaudecker Oct 22, 2026
945609f
Merge the process-code repair into the handoff-message branch
hmgaudecker Oct 22, 2026
a7d9c4e
Only forward vf arrays that are actually read
mj023 Oct 22, 2026
1701625
Allocate placeholder values on the device and name the value template…
mj023 Oct 22, 2026
980a7b2
Fold IID shocks in collective regimes by routing each node first
hmgaudecker Oct 22, 2026
0e4fe55
Hold continuation templates as abstract structs, not device arrays
hmgaudecker Oct 22, 2026
6c38352
Drop the redundant code-spelling branch of the fold projection check
hmgaudecker Oct 22, 2026
8b0ede9
Re-anchor the candidate certificate to the period-target value changes
mj023 Oct 22, 2026
e5edcc9
Pass a carried state's imputed solve leg through a collective fold
hmgaudecker Oct 22, 2026
2275363
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 22, 2026
0be9559
Satisfy the pre-commit hooks: typed solve inputs, format, re-anchor
mj023 Oct 22, 2026
8513936
Capture value templates as the zeros they stand for
hmgaudecker Oct 22, 2026
a7923f6
Size budget tests and the transfer contract to abstract templates
hmgaudecker Oct 22, 2026
8482ea1
Size footprint and bounded-search budgets to abstract templates
hmgaudecker Oct 22, 2026
8016af1
Pin aca-model to its main with the folded transitory shock
hmgaudecker Oct 22, 2026
09ce1f2
Merge codex/state-dependent-borrowing-feasibility into feat/age-grid-…
hmgaudecker Oct 22, 2026
48e69cd
Start implementation of explicit unresolved names and unread function…
hmgaudecker Oct 22, 2026
d9d9c75
Give the macOS general leg four shards with macOS-measured weights
hmgaudecker Oct 22, 2026
44b0727
Document output-only declarations and deliberate parameter values
hmgaudecker Oct 22, 2026
cbbaacf
Link reporting declarations from API and simulation guides
hmgaudecker Oct 22, 2026
054a0e9
Key the adapter memo on every adapter constructor input
hmgaudecker Oct 22, 2026
890fe6e
Require declarations for output-only functions and reject unread regi…
hmgaudecker Oct 22, 2026
43b5a56
Annotate near-miss runtime parameter names in displayed templates
hmgaudecker Oct 22, 2026
419e8e6
Merge output-only declarations and unread-function validation
hmgaudecker Oct 22, 2026
7f9b95d
Merge parameter typo hints and preprune display vocabulary
hmgaudecker Oct 22, 2026
1732690
Adapt the functions an age-specialized marker builds
hmgaudecker Oct 22, 2026
a6a6744
Pin aca-model to 4862f6f84
hmgaudecker Oct 22, 2026
4328c42
Merge remote-tracking branch 'origin/feat/age-grid-default-signature'…
hmgaudecker Oct 22, 2026
28debd7
Split the ds2024 outer-refinement test so each piece adds one solve
hmgaudecker Oct 22, 2026
3412d3d
Merge remote-tracking branch 'origin/codex/state-dependent-borrowing-…
hmgaudecker Oct 22, 2026
101ea8c
Merge remote-tracking branch 'origin/feat/b2-518-4' into feat/590-per…
hmgaudecker Oct 22, 2026
92dc9bd
Merge remote-tracking branch 'origin/feat/b2-518-4' into fix/588-real…
hmgaudecker Oct 22, 2026
65fd06f
Fix collective output validation and finalized hints; migrate unread …
hmgaudecker Oct 22, 2026
36c82c0
Merge remote-tracking branch 'origin/fix/588-realised-gate' into perf…
hmgaudecker Oct 22, 2026
ee5f01b
Complete formatting and refresh reviewed certificate anchors
hmgaudecker Oct 22, 2026
4bee9c8
Merge remote-tracking branch 'origin/perf/iid-continuation-reads' int…
hmgaudecker Oct 22, 2026
b5b5d12
Merge latest parent PR #603 into explicit function declarations
hmgaudecker Oct 22, 2026
351a243
Merge remote-tracking branch 'origin/fix/projected-value-realised-sho…
hmgaudecker Oct 22, 2026
7003e6b
Merge remote-tracking branch 'origin/fix/fallback-reads-carried-targe…
hmgaudecker Oct 22, 2026
a2446f3
Merge remote-tracking branch 'origin/fix/fallback-reads-carried-targe…
hmgaudecker Oct 22, 2026
ef92ae3
Build a marker for parameter conversion only where its phase reads th…
hmgaudecker Oct 22, 2026
16d2a22
Merge remote-tracking branch 'origin/feat/age-grid-default-signature'…
hmgaudecker Oct 22, 2026
b703e07
Merge remote-tracking branch 'origin/feat/b2-518-4' into feat/590-per…
hmgaudecker Oct 22, 2026
011e0b6
Merge remote-tracking branch 'origin/feat/b2-518-4' into fix/588-real…
hmgaudecker Oct 22, 2026
9da8829
Merge remote-tracking branch 'origin/fix/588-realised-gate' into perf…
hmgaudecker Oct 22, 2026
f9d365f
Merge remote-tracking branch 'origin/perf/iid-continuation-reads' int…
hmgaudecker Oct 22, 2026
12ca165
Merge remote-tracking branch 'origin/fix/projected-value-realised-sho…
hmgaudecker Oct 22, 2026
4e50251
Merge remote-tracking branch 'origin/fix/fallback-reads-carried-targe…
hmgaudecker Oct 22, 2026
26dfc4e
Merge remote-tracking branch 'origin/fix/fallback-reads-carried-targe…
hmgaudecker Oct 22, 2026
b795a50
Preserve pruned states and phase coverage during function validation
hmgaudecker Oct 22, 2026
4e2a896
Declare reporting targets and trim unused fixture registrations
hmgaudecker Oct 22, 2026
d6aa0e6
Pin ACA registration compatibility and refresh source certificates
hmgaudecker Oct 22, 2026
7e99a19
Merge parent phase-specific parameter conversion and CI updates
hmgaudecker Oct 22, 2026
aaf24d7
Merge fix/fallback-reads-carried-target-state into perf/continuation-…
hmgaudecker Oct 22, 2026
57097f1
Merge fix/name-state-declaration-in-handoff-error into perf/continuat…
hmgaudecker Oct 22, 2026
ab5722c
Merge perf/continuation-templates-not-resident into feat/collective-fold
hmgaudecker Oct 22, 2026
ce5f1bd
Describe the adapter-binding regressions by their behaviour
hmgaudecker Oct 22, 2026
6aa1944
Test each adapter memo key component a shared callable can differ in
hmgaudecker Oct 23, 2026
451cf09
Merge remote-tracking branch 'origin/fix/projected-value-realised-sho…
hmgaudecker Oct 23, 2026
8a87c34
Merge branch 'fix/fallback-reads-carried-target-state' into fix/name-…
hmgaudecker Oct 23, 2026
8478426
Merge branch 'fix/name-state-declaration-in-handoff-error' into perf/…
hmgaudecker Oct 23, 2026
1b1ab9d
Merge branch 'perf/continuation-templates-not-resident' into feat/col…
hmgaudecker Oct 23, 2026
a0c1915
Leave continuation templates to the period-target change
hmgaudecker Oct 23, 2026
739e5b6
Merge feat/collective-fold into feat/590-period-target-values
hmgaudecker Oct 23, 2026
b9396e7
Merge feat/590-period-target-values into codex/600-explicit-functions
hmgaudecker Oct 23, 2026
6576b34
Leave collective folding out of the period-target change
hmgaudecker Oct 23, 2026
125f4e0
Attribute a carried state to Model(states=...) only through the model…
hmgaudecker Oct 23, 2026
1b39298
Preserve model identities and finish function-registration migration
hmgaudecker Oct 23, 2026
71da123
Merge fix/name-state-declaration-in-handoff-error into feat/590-perio…
hmgaudecker Oct 23, 2026
671129d
Merge feat/590-period-target-values into codex/600-explicit-functions
hmgaudecker Oct 23, 2026
9e23295
Spread unmeasured test files over the shards and refresh the leg weights
hmgaudecker Oct 23, 2026
87d5853
Gate CI on measured shard weights and refresh them from CI on commit
hmgaudecker Oct 23, 2026
49601fb
Refresh shard weights from CPU run 39923717311
hmgaudecker Oct 23, 2026
e497b0f
Split each slow solution leg into nine shards
hmgaudecker Oct 23, 2026
71285ab
Merge remote-tracking branch 'origin/codex/state-dependent-borrowing-…
hmgaudecker Oct 23, 2026
561237a
Merge remote-tracking branch 'origin/feat/age-grid-default-signature'…
hmgaudecker Oct 23, 2026
4365e2f
Describe the IID weights helper as serving carried processes too
hmgaudecker Oct 23, 2026
96cc55a
Clip rerouted states, run gate cycles in declaration order, count tra…
hmgaudecker Oct 23, 2026
a6256d1
Merge remote-tracking branch 'origin/feat/b2-518-4' into fix/588-real…
hmgaudecker Oct 23, 2026
805ae1c
Merge remote-tracking branch 'origin/fix/588-realised-gate' into perf…
hmgaudecker Oct 23, 2026
c47fd85
Name the period a rerouted row acts in when its state is off the fall…
hmgaudecker Oct 23, 2026
f46a35b
Fill in only the missing shard weights on commit
hmgaudecker Oct 23, 2026
72b002a
Fix debug NAN diagnostic
mj023 Oct 23, 2026
2d05a67
Type the time-kind key of the validate_V callback with typing.Literal
mj023 Oct 23, 2026
ef766b0
Lower the bounded map's row body once and keep one golden-section loop
hmgaudecker Oct 23, 2026
affc4bf
Merge branch 'codex/state-dependent-borrowing-feasibility' of github.…
hmgaudecker Oct 23, 2026
486ae58
Merge remote-tracking branch 'origin/codex/state-dependent-borrowing-…
hmgaudecker Oct 23, 2026
f8f4900
Merge branch 'feat/age-grid-default-signature' into feat/b2-518-4
hmgaudecker Oct 23, 2026
f49e452
Merge branch 'feat/b2-518-4' into fix/588-realised-gate
hmgaudecker Oct 23, 2026
e5c2c99
Merge remote-tracking branch 'origin/fix/588-realised-gate' into perf…
hmgaudecker Oct 23, 2026
78e4856
Stage each bounded action stream's block once
hmgaudecker Oct 23, 2026
f84ea25
Merge remote-tracking branch 'origin/codex/state-dependent-borrowing-…
hmgaudecker Oct 23, 2026
ba5645d
Merge branch 'feat/age-grid-default-signature' into feat/b2-518-4
hmgaudecker Oct 23, 2026
836a02a
Merge branch 'feat/b2-518-4' into fix/588-realised-gate
hmgaudecker Oct 23, 2026
e87b194
Merge branch 'fix/588-realised-gate' into perf/iid-continuation-reads
hmgaudecker Oct 23, 2026
37a65d1
Say the fallback projector's pool omits carried-state imputations
hmgaudecker Oct 23, 2026
63ebf3b
Lead a model-level handoff error with the entry-law fix
hmgaudecker Oct 23, 2026
6cce6cc
Count off-node process holders on the device and name the code argument
hmgaudecker Oct 23, 2026
9d444ec
Vary seeded scan carries like their bodies and fence bounded row bodies
hmgaudecker Oct 23, 2026
1a9faca
Merge remote-tracking branch 'origin/codex/state-dependent-borrowing-…
hmgaudecker Oct 23, 2026
31b2e68
Merge branch 'feat/age-grid-default-signature' into feat/b2-518-4
hmgaudecker Oct 23, 2026
2833fd1
Merge branch 'feat/b2-518-4' into fix/588-realised-gate
hmgaudecker Oct 23, 2026
fbd0195
Merge branch 'fix/588-realised-gate' into perf/iid-continuation-reads
hmgaudecker Oct 23, 2026
3d68808
Merge commit 'fbd01950dd6f939baab687f4ebb8b895b20636fc' into fix/proj…
hmgaudecker Oct 23, 2026
2d18960
Merge branch 'fix/projected-value-realised-shock' into fix/fallback-r…
hmgaudecker Oct 23, 2026
4fd7fef
Merge commit '2d18960f9' into fix/name-state-declaration-in-handoff-e…
hmgaudecker Oct 23, 2026
ce68db5
Merge commit '4fd7fefde' into feat/590-period-target-values
hmgaudecker Oct 23, 2026
23abcfb
Merge branch 'feat/590-period-target-values' into codex/600-explicit-…
hmgaudecker Oct 23, 2026
a7cea0b
Align two simulation witnesses with transition counts and rerouted-st…
hmgaudecker Oct 23, 2026
f21de3b
Merge remote-tracking branch 'origin/fix/588-realised-gate' into perf…
hmgaudecker Oct 23, 2026
b364f00
Merge commit 'f21de3b7d5fd2ae3b689a8495e76b5bf2d35a53f' into fix/proj…
hmgaudecker Oct 23, 2026
6f1ce57
Merge branch 'fix/projected-value-realised-shock' into fix/fallback-r…
hmgaudecker Oct 23, 2026
f49ac8d
Merge commit '6f1ce57fae59c7a712c17c4282d8cf40e4f31840' into fix/name…
hmgaudecker Oct 23, 2026
88b3bb3
Merge commit 'f49ac8d5d6fb5c5839753f874efb028ae8d52124' into feat/590…
hmgaudecker Oct 24, 2026
7e8d108
Merge branch 'feat/590-period-target-values' into codex/600-explicit-…
hmgaudecker Oct 24, 2026
04b71f3
Pin clipped self-route redecision, forward reroutes in a cycle, and m…
hmgaudecker Oct 24, 2026
03a9574
Merge remote-tracking branch 'origin/fix/588-realised-gate' into perf…
hmgaudecker Oct 24, 2026
52260d2
Merge branch 'perf/iid-continuation-reads' into fix/projected-value-r…
hmgaudecker Oct 24, 2026
4b430e9
Merge branch 'fix/projected-value-realised-shock' into fix/fallback-r…
hmgaudecker Oct 24, 2026
33931a8
Merge branch 'fix/fallback-reads-carried-target-state' into fix/name-…
hmgaudecker Oct 24, 2026
c730dc2
Merge branch 'fix/name-state-declaration-in-handoff-error' into feat/…
hmgaudecker Oct 24, 2026
5fad69d
Merge branch 'feat/590-period-target-values' into codex/600-explicit-…
hmgaudecker Oct 24, 2026
a9ea2b8
Merge main into feat/590-period-target-values
hmgaudecker Oct 25, 2026
2ee9167
Merge commit 'a9ea2b87f' into HEAD
hmgaudecker Oct 25, 2026
acc1c8f
Drop the unused zero V-array helper and an unreachable capture branch
mj023 Oct 25, 2026
465cf78
Refresh measured weights for added test cases
hmgaudecker Oct 25, 2026
df3fa3c
Reserve invariant-block assembly and keep capture padding off the device
mj023 Oct 26, 2026
8cc8177
Test that admission charges the assembled destination end to end
mj023 Oct 26, 2026
bf44317
Fix weights
mj023 Oct 26, 2026
6bae0e8
Merge current period-target value fixes into reporting declarations
hmgaudecker Oct 27, 2026
cbd168c
Merge main into codex/600-explicit-functions [skip ci]
hmgaudecker Oct 27, 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
33 changes: 20 additions & 13 deletions docs/reference/model_and_regime.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ defined at model or regime level, never both. A regime-level `None` masks a broa
entry. Broadcast variables unused by every root computation in both phases are pruned;
inspect `model.pruned_variables`.

`output_only_functions=(...)` names functions kept solely for simulation reporting.
Declare a name on the model or on a regime, never both. Model-level names apply to each
regime defining them. Missing names, declarations of already-read functions, and unread
functions without a declaration raise at build. See
[Output-only functions](../user_guide/defining_models.md#output-only-functions).

`koopmans_aggregator` and `certainty_equivalent` are single broadcast values. Declare
each at model level or in every non-terminal regime, not a mixture. `fixed_params` binds
parameters when the model is built. Simulation takes its population from each call's
Expand Down Expand Up @@ -205,19 +211,20 @@ provided.

A general regime declares:

| Field | Contract |
| ---------------------- | ----------------------------------------------------------------------------- |
| `states` / `actions` | Name-to-grid mappings |
| `functions` | Named DAG functions; a finalized regime needs utility |
| `constraints` | Ordinary predicates or structured `Condition` objects |
| `state_transitions` | Ordinary target-state producers for cells not supplied by `joint_transitions` |
| `joint_transitions` | Target-local shared-draw laws that jointly produce one or more next states |
| `derived_categoricals` | Discrete grids for categorical DAG outputs |
| `solver` | `lcm.solvers.GridSearch()` by default |
| `taste_shocks` | Optional EV1 taste-shock configuration |
| `koopmans_aggregator` | Optional regime-level continuation aggregator, `Phased` or `Decoupled` |
| `certainty_equivalent` | Optional regime-level lottery reduction |
| `description` | Human-readable description |
| Field | Contract |
| ----------------------- | ----------------------------------------------------------------------------- |
| `states` / `actions` | Name-to-grid mappings |
| `functions` | Named DAG functions; a finalized regime needs utility |
| `output_only_functions` | Tuple of unread function names retained for simulation reporting |
| `constraints` | Ordinary predicates or structured `Condition` objects |
| `state_transitions` | Ordinary target-state producers for cells not supplied by `joint_transitions` |
| `joint_transitions` | Target-local shared-draw laws that jointly produce one or more next states |
| `derived_categoricals` | Discrete grids for categorical DAG outputs |
| `solver` | `lcm.solvers.GridSearch()` by default |
| `taste_shocks` | Optional EV1 taste-shock configuration |
| `koopmans_aggregator` | Optional regime-level continuation aggregator, `Phased` or `Decoupled` |
| `certainty_equivalent` | Optional regime-level lottery reduction |
| `description` | Human-readable description |

Use `Regime.replace(...)` to derive a modified immutable declaration.

Expand Down
31 changes: 31 additions & 0 deletions docs/user_guide/defining_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,37 @@ absent from a non-terminal regime as readily as from a terminal one, and the pla
moves the values that cross between the two placements. Only a state every regime prunes
is an error, because then no axis is left to spread.

## Output-only functions

Every registered function must be read by another model computation, read by the engine
in a solver role, or declared for reporting:

```python
working = Regime(
functions={"utility": utility, "gross_income": gross_income},
output_only_functions=("gross_income",),
# States, actions and transitions as required by the model.
)
```

Use `output_only_functions=("gross_income",)` on `Model` instead when the same
declaration should apply to every regime that defines that function. Declare each name
at exactly one level. A name declared at both levels, a regime-level name missing from
that regime, or a model-level name missing from every regime raises at model build. A
function the model already reads needs no declaration; declaring it as output-only
raises too.

An unread registration raises `RegimeInitializationError` identifying its regime and
function. Remove dead registrations. When sharing a function dictionary across regimes,
pick the entries each regime reads instead of registering unused helpers.

Output-only functions may have runtime parameters: supply them through `params` just
like any other function's arguments. Omitting a required value raises
`Missing required parameter(s)` at solve. After simulation,
`result.to_dataframe(additional_targets=["gross_income"])` selects the report.
`additional_targets` also accepts functions the model reads, without declaring them as
output-only, and `"all"` selects all available targets.

## Regime ID Classes

The `regime_id_class` maps regime names to integer indices. Use the `@categorical`
Expand Down
12 changes: 12 additions & 0 deletions docs/user_guide/parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ declared in `Model(edges=...)` sit under one more root, `"edges"`; see
[Edge parameters](#edge-parameters). Use the template as a starting point to see what
values you need to provide.

Inspect the template, then write each parameter value deliberately. Filling every entry
with a blanket default can hide a misspelled argument: an unresolved name is still a
runtime parameter. When a name resembles a state, action or function in its regime, the
displayed entry includes a hint, for example
`"consumptioz": "FloatND [close to action 'consumption'; typo?]"`. These hints do not
change parameter resolution or emit a warning at model build.

For profiles indexed by age or period, use explicit temporal declarations and labelled
values; see [Periods and temporal parameters](period_time.md#temporal-parameters).

Expand Down Expand Up @@ -215,6 +222,11 @@ pylcm inspects function signatures and classifies each argument:
- **Special names** (`continuation_value`) — not a parameter
- **Everything else** — a parameter (must appear in the params dict)

Functions retained only for reporting use the same parameter rules. Declare them with
`output_only_functions=` on the model or regime; their unresolved arguments appear in
this template and must be supplied even when solving without reporting those functions.
See [Output-only functions](defining_models.md#output-only-functions).

## See Also

- [Defining Models](defining_models.md) — the `Model` constructor and `fixed_params`
Expand Down
5 changes: 5 additions & 0 deletions docs/user_guide/solving_and_simulating.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,11 @@ collective.

### Additional targets

Functions used solely for reporting must be registered with `output_only_functions=`
when building the model or regime. Functions already read by the model are available
without that declaration. See
[Output-only functions](defining_models.md#output-only-functions).

Compute functions and constraints alongside the standard output:

```python
Expand Down
6 changes: 3 additions & 3 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ grid-search-pair = "python -m benchmarks.grid_search_pair"
[tool.pixi.feature.benchmarks.pypi-dependencies]
# ACA benchmark uses folded health-cost shocks and additive asset transitions.
# Keep an exact revision so benchmark model construction is reproducible.
aca-model = { git = "https://github.com/OpenSourceEconomics/aca-model.git", rev = "4862f6f84df1a384e66c416820c8c840d136da4b" }
aca-model = { git = "https://github.com/OpenSourceEconomics/aca-model.git", rev = "bfcbbc3fc2be736a7ff2e976f12e14a70e60001d" }
[tool.pixi.feature.cuda12]
platforms = [ "linux-64-cuda12" ]
[tool.pixi.feature.cuda12.target.linux-64.dependencies]
Expand Down
145 changes: 143 additions & 2 deletions src/_lcm/model_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
create_params_template,
materialize_granular_transition_params,
)
from _lcm.params.regime_template import iter_transition_callables
from _lcm.params.sequence_leaf import SequenceLeaf
from _lcm.processes.base import _ContinuousStochasticProcess
from _lcm.reachability import PhaseName
Expand All @@ -43,6 +44,7 @@
from _lcm.regime_building.age_specialization import resolve_node
from _lcm.regime_building.broadcast import (
compute_kept_variables,
engine_function_names,
root_functions,
states_read_through_their_draw,
)
Expand Down Expand Up @@ -80,11 +82,15 @@
)
from _lcm.utils.error_messages import format_messages, path_segment_name_errors
from _lcm.utils.functools import is_user_function
from lcm.exceptions import InvalidParamsError, ModelInitializationError
from lcm.exceptions import (
InvalidParamsError,
ModelInitializationError,
RegimeInitializationError,
)
from lcm.params import MappingLeaf
from lcm.phased import Phased
from lcm.regime import Regime as UserRegime
from lcm.transition import JointTransition, Transition
from lcm.transition import AgeSpecializedFunction, JointTransition, Transition
from lcm.typing import Phase, UserFunction, UserParams


Expand Down Expand Up @@ -355,6 +361,13 @@ def validate_model_inputs(
removed_edge_reads: Mapping[
RegimeName, Mapping[str, tuple[RegimeName, ...]]
] = MappingProxyType({}),
declared_function_regimes: Mapping[RegimeName, UserRegime] | None = None,
generated_function_names: Mapping[
RegimeName, frozenset[FunctionName]
] = MappingProxyType({}),
declared_transitions: Mapping[
RegimeName, tuple[Transition, ...]
] = MappingProxyType({}),
) -> None:
"""Validate model constructor inputs.

Expand Down Expand Up @@ -423,6 +436,17 @@ def validate_model_inputs(
)
)

_validate_function_usage(
user_regimes=solver_validation_regimes,
declared_regimes=declared_function_regimes or solver_validation_regimes,
generated_function_names=generated_function_names,
laws=laws,
declared_transitions=declared_transitions,
ages=ages,
active_periods_by_regime=active_periods_by_regime,
visited_periods_by_regime=visited_periods_by_regime,
)

error_messages = list(
_reserved_age_errors(
user_regimes=solver_validation_regimes, laws=laws, ages=ages
Expand Down Expand Up @@ -485,6 +509,123 @@ def validate_model_inputs(
raise ModelInitializationError(msg)


def _validate_function_usage(
*,
user_regimes: Mapping[RegimeName, UserRegime],
declared_regimes: Mapping[RegimeName, UserRegime],
generated_function_names: Mapping[RegimeName, frozenset[FunctionName]],
laws: RegimeLaws,
declared_transitions: Mapping[RegimeName, tuple[Transition, ...]],
ages: TimeAxis,
active_periods_by_regime: Mapping[RegimeName, tuple[int, ...]],
visited_periods_by_regime: Mapping[RegimeName, tuple[int, ...]] | None,
) -> None:
"""Require every declared function to be read or retained for reporting.

Reads include other functions, even reporting functions, and every declared
edge law before horizon-dependent lowering removes dormant cases.
"""
reads = _declared_edge_function_reads(
regime_names=tuple(user_regimes), declared_transitions=declared_transitions
)

errors: list[str] = []
for name, regime in user_regimes.items():
declared = declared_regimes[name]
# Retain declared phase variants without restoring pruned broadcast states;
# finalization contributes generated case and resource producers.
complete = declared.replace(
states={
state_name: declared.states.get(state_name, state)
for state_name, state in regime.states.items()
},
functions={**regime.functions, **declared.functions},
)
direct = reads[name]
direct.update(engine_function_names(regime))
direct.update(regime.decomposed_constraints)
direct.update(regime.value_constraints)
direct.update(regime.derived_categoricals)
direct.add("utility")
direct.update(
("utility",)
if regime.stakeholders is None
else tuple(f"utility_{stakeholder}" for stakeholder in regime.stakeholders)
)
for phase in ("solve", "simulate"):
functions = dict(complete.get_all_functions(phase=phase, law=laws[name]))
functions |= {
key: constraint.as_function(pool=functions)
for key, constraint in normalize_constraints(
constraints=cast(
"Mapping[FunctionName, ConstraintLike]",
complete.decomposed_constraints,
)
).items()
}
roots = root_functions(
regime_name=name, regime=regime, laws=laws, phase=phase
)
functions |= {
key: func
for key, func in roots.items()
if not key.startswith("__output_only__")
}
periods = active_periods_by_regime.get(name, ())
if phase == "simulate" and visited_periods_by_regime is not None:
periods = visited_periods_by_regime.get(name, ())
coordinate = specialization_coordinate_at(
ages=ages, period=(periods or (0,))[0]
)
for func in functions.values():
if not periods and isinstance(func, AgeSpecializedFunction):
continue
if callable(func):
direct.update(
inspect.signature(
resolve_node(node=func, age=coordinate)
).parameters
)

outputs = set(regime.output_only_functions)
read_outputs = sorted(outputs & direct)
if read_outputs:
errors.append(
f"Regime '{name}' reads {read_outputs}; remove those names from "
"output_only_functions=."
)
# Fixed-component reconstruction nodes are lowerer-owned, rather than
# declared helpers. A pruned broadcast state can leave one without reads.
unread = sorted(
set(regime.decomposed_functions)
- direct
- outputs
- generated_function_names.get(name, frozenset())
)
if unread:
errors.append(
f"Regime '{name}' has unread functions {unread}. Remove them, or "
"declare them in output_only_functions=."
)
if errors:
raise RegimeInitializationError(format_messages(errors))


def _declared_edge_function_reads(
*,
regime_names: tuple[RegimeName, ...],
declared_transitions: Mapping[RegimeName, tuple[Transition, ...]],
) -> dict[RegimeName, set[FunctionName]]:
"""Collect reads where each declared edge callable is evaluated."""
reads: dict[RegimeName, set[FunctionName]] = {name: set() for name in regime_names}
for source, declarations in declared_transitions.items():
for declaration in declarations:
for path, func, gate in iter_transition_callables(declaration):
owner = source if gate is None else path[0]
reads[owner].update(inspect.signature(func).parameters)
return reads


def _reserved_age_errors(
*, user_regimes: Mapping[RegimeName, UserRegime], laws: RegimeLaws, ages: TimeAxis
) -> tuple[str, ...]:
Expand Down
Loading