Repository navigation
Releases
v1.6.0
[1.6.0] — 2026-11-25
A deprecation and one experimental addition, so a minor release; no parameter's default changes and
no number moves. A GateConfig whose rollback reads evidence and leaves rollback_restart unset
now warns that the default becomes rollback_restart=250 in 1.7.0, and rollback_restart=0 keeps
today's reading without the warning. Added, experimental: prescribe(inner=) hands the rounds of a
held barrier to causal_plan's orthant or projected-Newton solve. chc.allocation and
chc.decision keep their engines in private packages, with every public name, record and number
unchanged. Fixed: ConformalHorizon over a controller with a barrier compiled the barrier's rounds
again at each new weight; it now compiles them once, and no plan moves. The rest is documentation.
Added
prescribe(inner=)(experimental), recorded asinputs.inner: how the rounds of a barrier
held underhold_constraintsare solved,causal_plan'sinnerhanded through."diagonal",
the default, is every held plan's solve as before;"orthant"takes the held condition's kink
at the log's mean action by its sides, and"newton"is projected Newton. Both step on the box
alone: where the plan holds linear rows, a lever'scap_per_step, a budget or a combination of
the levers the log kept at one level, its rounds take the descent, and aWARNINGrecord
(chc_event="plan") says so. Refused withouthold_constraints, as a name of no solve, and
past Newton's 4096 actions. On the barrier test's held plan with one lever under the fit's
absolute radius, the default rounds converged in 338 descent steps and"orthant"in 48, both
certified on all 15 steps, the orthant plan 5.4e-7 costlier.SCHEMA_VERSIONstays 3: a key is
added and none changes meaning; a record written before it is refused by
Prescription.from_json, which namesinputs.inner(ADR 0144, amended).
Changed
chc.allocationandchc.decisionkeep their engines in private packages.
chc._allocationholds the curves' worth, the cutting planes, the branch and bound and the three
searches built on them;chc._decisionholds the tube's reads and the record's JSON form. The
code moved verbatim. Every public class and function is defined where it was, so no import path,
__module__, signature, record field or number changes, and a record replays to the bit.
allocation.pyis 2 272 lines where it was 4 296,decision.py5 443 where it was 6 747.
import chcnow also loadschc._decisionand its two modules (ADR 0174).
Deprecated
- A
GateConfigwhose rollback reads evidence and leavesrollback_restartunset emits a
FutureWarning: not in blocks, or in blocks with arollback_baseline_share. From 1.7.0 the
default isrollback_restart=250, the starts weighted as the drift alarm's epochs. Pass
rollback_restart=0, now accepted, to keep reading every decision since the DEPLOY; in blocks
without a share the rollback reads no evidence, and nothing warns. Why: read since the DEPLOY, a
candidate as good as the baseline for 5000 blocks and then 0.12 worse was rolled back within 3000
blocks of the turn on 0.070 of 1000 paths, and per decision a turn 10 000 decisions after the
DEPLOY was caught within 6000 on none of 200; started again every 250, on 0.340 and on all 200.
The restarted e-value is never below the one read since the DEPLOY less 0.1, the later starts'
weight (validation/gate_rollback_restart.mac), so no rollback comes later than that one's would
at1 / alpha_harm + 0.1, 0.005 nats higher at analpha_harmof 0.05. On ADR 0146's 18 power
cells (shares 0.1 to 0.3, plain and centred, the lab's plant and the plants of order 1) it rolled
back as often or more often, by up to 21 of 400 paths, and wrongly no more often: at most 1 of
400 paths in a null cell, unset alike (ADR 0146, amended;scripts/bench_gate_restart.py).
Fixed
ConformalHorizonover a controller with a barrier no longer compiles its rounds at each new
weight. A barrier's rounds weigh the uncertainty penalty by the controller'slam_unc, and
held it as a static field of the module their compiled programs read. The numpy weight the hook
hands over, which the penalised descent reads as an input, was a constant there: each new
weight compiled the rounds' programs again, and equinox warned that a JAX array was set as
static, which failed the plan where warnings are errors. After its first two plans
a moving weight now compiles nothing, with a barrier as without one. A Python floatlam_unc
is a constant of the program as before, and no plan moves: at a fixed weight, with a barrier or
not, and under the hook, the plans are the same bit for bit in float64 and float32.
Experimental.
Documentation
- The barrier's drift-error room, read on 200 logs, and the default's calibration gap. On the
unstable drift's logs of seeds 0 to 199, each plan held and certified under the fit's own
sensitivity atgamma = 1.5, the true plant stayed in the set over the certified steps on all
200 withbarrier_drift_error's bound (Clopper-Pearson 0.982 to 1) and on 173 without it, 0.865
(0.810 to 0.909): below the 0.95 the channel's radius states, since the default room does not
carry the drift's sampling error. The default stays in 1.x: the bound shortens the certified
steps there from 29.2 to 24.6 on average. The misspecification test keeps its rate of 0.9 on 20
logs, the union of the room's two 0.95 statements.certify_safety(drift_error=)and
prescribe(barrier_drift_error=)now state the gap and the bound's reach: at the held plans'
states inside the log's spread the drift's own error was 0.71 to 0.85 of the bound, beyond it 1.45
to 1.63 times it (ADR 0104). No value moves (ADR 0119, amended;scripts/bench_drift_room.py). - Why
PlanEvaluationhas no bias-corrected value. ADR 0155 said the corrected value failed its
rule; on three of the four designs the reported bias was 0.03 to 0.12 of the mean error's Monte
Carlo error, where even an exact correction wins the comparison with probability 0.506 to 0.524,
so the rule could not decide. The field stays out because it isvalue - normalisation_bias,
both already fields and record keys, it has no interval of its own, and where windows persist it
removes a half to a ninth of the bias (ADR 0095). The docstring states the groups' numbers. No
value moves (ADR 0155, amended).
v1.5.0
[1.5.0] — 2026-11-25
New opt-in features, so a minor release; no parameter's default changes. Added, each opt-in or
experimental (one module in the research tier): the probe for a dynamic plan's whole decision, a
moving baseline for a switchback's design reading, a closed loop's K-step exit probability, a
pessimism weight moved by the losses it realises, a distribution-shift budget for the horizon band,
a plan's value under confounding that acts one step at a time with its breakdown Gamma*, a test
that keeps or re-plans after a channel moves, the nuisances' sieve chosen on the moment's score, and
a median-unbiased AR(1) coefficient for the lift fit. Fixes whose numbers move: the safeguarded
barrier rounds keep the projection where next states join (of 293 held plans, 13 cheaper and 12
certified on more steps, none worse); in the research tier, the explicit-constant certificate's
empirical_radius is bisected and its Lipschitz constant is bounded rather than sampled, so its
rho, C and conservatism move. The rest is documentation.
Added
-
chc.experiment.probe_designandProbeDesign, experimental, also at the top level: the
probe for a dynamic plan's whole decision. It chooses the covariance of a Gaussian probe drawn
afresh each period in an LQR loop, at a cap on its power, so that the gain re-solved on a
least-squares fit of[A B]loses the least. The criterion is Wagenmaker, Simchowitz and
Jamieson's (ICML 2021),Phi(U) / TwithPhi(U) = tr(Wn Gamma(U)^-1) / 2. The fit readsB
off the probe alone and the closed loop off the state's excitation, so
Phi = (tr(Wn_xx Sx(U)^-1) + tr(F' Wn F U^-1)) / 2, convex inU; a weight on the channel
alone givesdither_covariance's design (validation/dynamic_probe_design.mac). It reports the
regret beside a white probe's of the same power, a certified gap, and what each probe adds to
the average cost. On a two-lever plant whose gain leans on a weak, cheap lever, the design
predicted 0.753 of the white probe's regret, and 400 runs of 2000 periods read 0.749 ± 0.018.
At ten times the noise's power it leaves 0.942, where both static designs are no better than
white. Closes the lifecycle's "not built" experiment design for a dynamic plan (ADR 0166,
amending ADR 0011). -
read_switchback(se="design", baseline="moving"), opt-in, experimental: the design
reading's moment estimator read against the readingLperiods back,baseline_lag,Hunless
given, in place of each zone's first reading. That is the readings through1 - S^L, a
lower-triangular Toeplitz filter, so the estimate stays unbiased fortau_Hat anyL >= H
and its variance over the coins is Liang and Recht's eq. (2.5) of the filtered response and noise
(validation/switchback_moving_baseline.mac); its plug-in readsLmore lags. At the channel
the noise's share ofT^2times the variance falls by8 ((T - L) gam_L - sum_(k>L) gam_k),
gamthe noise's autocovariance, and the lever's mean effect leaves it: the reading narrows
where the outcome persists, ties with the first reading on white noise at the channel, and
widens where the noise's autocovariance atLis negative. Onx' = 0.8 x + 2 u + eps, i.i.d.
eps,tau_3's estimate over 60 periods spread 0.55 times as far, and its interval covered
0.946 with a standard error 1.10 times its spread; onx' = 2 u + eps,epsan AR(-0.5), the
channel's spreads 1.165 times as far. It refuses a lag belowH, which would read the lever's
own effect, and a run no longer than the lags its plug-in reads. The default,"first", is
unchanged (ADR 0168). -
exit_probability, opt-in, experimental: a bound on the chance that a closed loop leaves
a barrier's safe set withinKsteps under the plant's noise, by Ville's inequality on
Kushner's supermartingale as Cosner, Culbertson, Taylor and Ames state it (RSS 2023, Thm 5), in
both of its forms (validation/exit_probability.mac). The barrier is aQuadraticBarrier,
upper - (x - c)'P(x - c), bounded above everywhere as the theorem needs, whose mean under any
noise of covarianceSish(m) - tr(P S). On aLinearGaussianPlantunder anAffinePolicy
the drift conditionE[h(x') | x] >= alpha h(x) + slackis read exactly over every state;
under a callable feedback, a safety filter say, at the states given. Onx' = 0.6 x + N(0, 0.45^2)and|x| <= 1the bound is 0.2025 where the exact exit probability is 0.0263 at one
step, and 0.896 where it is 0.420 at ten. It refuses an open-loop plan (anAffineSchedule, a
CausalPlan, a zero gain), a barrier with no upper bound and a loop on which the condition holds
at no slack, andcertify_safetyneither reads nor returns it (ADR 0171). -
ConformalPessimismandConformalHorizon, opt-in, experimental: a pessimism weight moved
after each decision by the loss it realised,step (loss - target), the conformal controller of
Lekeufack, Angelopoulos, Bajcsy, Jordan and Malik (ICRA 2024). While its cap,
safe + window step (bound - target), has cut nothing, the mean loss afterndecisions is at
mosttarget + (cap - initial) / (step n)on any sequence of losses; eventual safety, a weight
of at leastsafekeeping everywindowconsecutive losses at the target on average, keeps the
cap from cutting, and a cut logs a warning (validation/conformal_decision.mac: every adversary
over 10 decisions took at most 22/23 of the bound). A loss that rises again with the weight has
no safe weight, and the weight then sits at its cap.ConformalHorizonsets a
RecedingHorizon'slam_uncto the weight before each plan, as a numpy float, so that a moving
weight does not compile the descent again. On a plant whose gain drifts from the model's, a
fixedlam_unc = 0missed its one-step prediction on 70 of 120 decisions; moved toward a target
of 0.2, it missed on 16, within the bound of 0.24.RecedingHorizondoes not change (ADR 0172). -
HorizonConformal.calibrate(shift=), opt-in, experimental: a distribution-shift budget for
the horizon's joint band.shift=("tv", eps)orshift=("kl", rho)holds1 - deltafor every
law of the deployed window within that total variation, or Kullback-Leibler divergence
KL(P || P0), of the calibration windows' law (Cauchois, Gupta, Ali and Duchi, JASA 2024): the
scale is theceil((n + 1) beta)-th score,beta = 1 - delta + epsin exact arithmetic, or
the root above1 - deltaofKL(Bernoulli(1 - delta) || Bernoulli(beta)) = rho
(validation/conformal_shift_budget.mac). The radius is the caller's bound on the shift, not an
estimate, and the library sets none. A total variation ofdeltaor more, which leaves no
finite band, and a radius whose rank passes the windows are refused, the latter with the count
that would hold it: 19 foreps = 0.05atdelta = 0.1, 31 forrho = 0.05. Where the lowest
5 % of uniform scores move beyond every band, a total variation of exactly 0.05, the band at
delta = 0.1held 0.90265 of 20,000 draws of 39 windows, its exact expectation 0.9, and the
unshifted band 0.85135 (0.85). On one series the level is what the ball leaves of
beta - eta:1 - delta - etaunder total variation, less under KL.shift=None, the
default, and a radius of 0 read the band as before (ADR 0170). -
chc.research.stepwise_confounding, new, research tier: a plan's value on a log with a
discrete state and action, bounded under unobserved confounding that acts afresh each step
(Bruns-Smith and Zhou, arXiv 2302.00662).stepwise_robust_valueruns a robust fitted-Q
evaluation whose step replaces the expectation ofreward + next valueby the MSM's sharp bound,
alpha E[Y] + (1 - alpha)times the mean of the lowest1 / (Gamma + 1)ofY,alpha = e + (1 - e) / Gammaat the logged propensity: theirLambdais CHC'sGamma, and on one step the
bound ismsm_worst_case_mean's withpropensity=(validation/stepwise_confounding.mac).
stepwise_breakdownbisects forGamma*, the least level at which the lower value falls below a
threshold or a baseline plan's nominal value, and readsinfwhere no level does. Both read the
premise first,persistence_check's test on the transitions' innovations within units, and
refuse a log it rejects (PersistentConfounding). On a two-state plant confounded at MSM level 2
the true value,65/16, lies in the bounds atGamma = 2,[31/8, 81/16], where the plain
evaluation reads41/9; a confounder that persists with probability 0.9 is refused. The bounds
are plug-in, with no sampling error (ADR 0173). -
ChannelMove.keep_or_replan(plan, level=0.05), opt-in, experimental: keep a plan whose
one-step channel moved, or re-plan on the move's estimate. It returns aKeepOrReplanwith the
re-solved plan,price's two expectations, and a one-sided test of the null that re-planning
does not pay,d' W d <= tr(W S). The re-solve runscausal_plan's descent on the plan's
one-step map plus the estimate times the action taken: the map the decision weight perturbs,
under RK4 and Euler alike. The test readskeep - replanagainst the null's least favourable
law, all oftr(W S)as noncentrality onW S's largest eigenvalue, by Imhof's inversion,
which now takes noncentralities (validation/keep_or_replan.mac). It holds for one read at
levels up to 0.2, where a scan of 154 spectra found that law the heaviest; it is not
anytime-valid. On ADR 0019's budgeted plan, at 0.05, it re-planned on 2%, 3.5%, 21.5% and 91.5%
of the logs of 30, 100, 400 and 1600 decisions and lost 0.102, 0.099, 0.084 and 0.0124, where
keeping lost 0.095, always re-planning 0.184, 0.080, 0.024 and 0.0060, and comparing the two
prices 0.149, 0.100, 0.043 and 0.0060. A Wald test onkeep_errorre-plans with probability
0.0029 at a nominal 0.05 on one direction,...
v1.4.0
[1.4.0] — 2026-11-21
A public status moves, so a minor release. A held barrier's rounds read infeasible only at a
first-order point and no_progress where they stalled, and their penalty's ceiling is an exact
count of growths. Fixes whose numbers move, each with its size below: delay_estimate's lo and
hi hold the delay; prescribe(dither=)'s check holds the adjustment set's push in its
instrumented drift, so its p-value, cost, noise and share move wherever that set is not empty;
fixed_point reads a float32 solve at its rounding as converged; the banded fold design solves
the matrix it is given. One opt-in, experimental: Prescription.evaluate(interval="jackknife").
fit_causal_residual warns on periods no two of which are one step apart. The rest is
documentation, each item with its measurement.
Added
Prescription.evaluate(interval="jackknife"), opt-in: both intervals read from the jackknife
over the units in place of the bootstrap's draws. Each unit is left out in turn and the
evaluation run again on the rest, each leave-out certified againstmin_effectivescaled to the
windows it keeps; the spread is CV3 about the estimate and the interval Student'stwith the
units less one (MacKinnon, Nielsen and Webb 2023),degrees_of_freedomthe units less one,
bootstrapNone,settings.intervalin the record. A leave-out the certificate refuses refuses
the evaluation. On 2000 panels of 30 units of ten windows it covered 0.938 and 0.919 for the
plan's value on the two-state market and the one-state unit where the bootstrap covered 0.917
and 0.895, and 0.944 and 0.944 for the difference against 0.923 and 0.924, 1.08 to 1.13 times as
wide: the best of twelve readings measured, and still short of 0.95 for the value. The default
is unchanged.chc.evaluation.UnitIntervalnames the two readings. Experimental (ADR 0160).
Changed
- A held barrier reads
infeasibleonly at a first-order point.causal_plan's barrier rounds
readinfeasiblewhere their penalty reached its ceiling with some step still short of the
condition after a round that stopped on its own rule, whatever the plan's first-order check
said. That round's descent stops where no step buys its share of an objective the penalty
inflates, so a stall read as a condition no plan meets: on an unstable drift held under a
ChannelSensitivitywithouter="safeguarded", a round at a shortfall of 14 took no step, at
a stationarity of 0.87 against a tolerance of 1.4e-6, and readinfeasibleof a condition
SLSQP meets at every step. The rounds now readinfeasiblethere only where the plan's
stationarity is within its tolerance, asconvergedrequires, andno_progresswhere it is
not: the rounds stalled, which says nothing of the condition (ADR 0156). On a model holding a
curve that starts convex the plan keeps that status, not the relaxed plan's. Of 293 plans held
at a barrier in the library's planning tests, six move frominfeasibletono_progress, five
of them the same plan as before, and no status moves to or fromconverged; under
outer="safeguarded", 13 of the 100 plans of the misspecification barrier tests do, among them
two integrator plans that readinfeasibleon 7 certified steps of 12 and nowno_progress
on 8. A true infeasibility can move as well: on a position held at relative degree 2, the
lockfile's jax endsno_progress, jax 0.4.30infeasible, and the audit certifies no step
either way. - The rounds' penalty ceiling is a count of growths. They gave up where the penalty times ten
would pass 1e8 times its start, which compared seven chained growths with a product equal to
them in exact arithmetic, so rounding decided between seven growths and eight: 25 and 19 of 44
start states near zero on that drift. The rounds now grow the penalty eight times, to 1e8 times
its start, wherever the ceiling stops them. Of the 293 plans it moves three: that position, by
24 descent steps, and two start states of the drift, one certified on 29 steps of 30 where it
was on 28, at a cost 0.56 % higher, the other 0.10 % cheaper. fit_causal_residualwarns where no two of itsperiodsare one step apart. Periods are
whole numbers of steps, and the cosines read every step of the span, a step no transition
starts in holding no score. Periods counted in a finer unit than the step, as days of a weekly
log, were read silently as a span that many times longer; the fit now logs a WARNING naming the
least spacing (chc_eventfit_period_spacing). It does not refuse: a log in steps whose
transitions are never adjacent is read correctly so. A log with gaps of which some two periods
are one step apart reads without it, and no number moves.
Fixed
chc.games.fixed_pointreads a float32 solve at its rounding as converged.convergedwas
residual <= tol, and the defaulttol = 1e-6is 8.4 float32 epsilons, below the rounding of a
relative residual: on the logs ofSharedStateMarket(seed=0..29)88 of 24,000 solves of the
drivers ended at up to 2.0e-6, 16.6 epsilons, and read False on drivers at the float64
equilibrium to rounding. The flag now reads the residual againstmax(tol, 64 eps),epsthe
solve's dtype's; in float64 that istolfor anytolfrom 1.4e-14 up. The iteration still
stops attol, so no iterate, log or plan moves a bit.SharedStateMarketreads the flag in
place of its own floor of the same value (ADR 0157).delay_estimate'sloandhibound the delay, not only the response's peak. They were a
percentile bootstrap interval of the peak's location, which carries the peak's spread and not its
distance from the delay: a delay between two samples peaks at the nearer one, up to half a step
from it, and on a sharp peak every resample peaks there too. OnDelayOscillationTask's log, a
delay of 3.33 steps, the interval was[0.9, 0.9]beside the true 1.0 ([0.936, 0.959]refined)
and held the delay on 0 of 400 seeds; at a delay of 6.67 steps, on 0 of 400 too. The ends are now
the whole steps the resampled peaks reach at the two percentiles, widened by half a step on each
side and cut at zero (validation/delay_interval_resolution.mac):[0.75, 1.05]there, which
held the delay on 400 of 400 seeds at both delays, refined or not, and on 200 of 200 at each of 15
delays from 3 to 4 steps and at 6.67. The premise, that the delay lies within half a step of the
step the response peaks at, is stated. The interval reads the whole step whetherrefineis on or
not, andlaganddelaydo not move. A sharply identified lag no longer returnslo == hi.
DelayOscillationTask's delay-aware arm designs for the minimax over the wider interval, 0.769 of
the delay, and its regret moves from 0.007 to 0.11 against the oracle's cost of 0.57. ADR 0158.prescribe(dither=)'s check no longer rejects a right graph for a covariate that persists.
The instrumented fit conditioned on the states alone, its drift included, while the plan's fit
holds the adjustment set's push in its drift. A covariate that persists leans on the state,
since its past pushed it, so the instrumented drift read that lean into its slope, and the
contrast priced the gap between the two drifts as a miss. Underrk4the drift also moved the
instrumented channel, through RK4's growth factor. Onx' = 0.9 x + 0.5 u + 0.8 w + e,
u = w + eta, withwAR(0.9) and held by the graph, the lean is 0.154 ofw's push over five
transitions a unit (validation/dither_persistence.mac), and the contrast rejected the right
graph on 57 of 200 logs at 5 %. The instrumented fit's drift now holds the adjustment set's push,
as the plan's fit's does, and its moment still reads the states alone: 1 of 200. On
causaldyn-bench's persistent-confounder world, 200 panels a persistence, the true graph's
rejection at 5 % reads 0.035, 0.010, 0.040 and 0.030 at a persistence of 0, 0.5, 0.8 and 0.95,
against 0.000, 0.000, 0.085 and 0.265 before. The plan, its fit and its certificate do not move.
The check's p-value, cost, noise and share move wherever the adjustment set is not empty
(ADR 0159).prescribe(dither=)stays experimental.chc.research.regret.optimal_fold_partition's banded route solves the matrix it is given.
The circulant's band was cut where a weight fell to1e-10, so a spillover weight below that
but above rounding left the band, and the dynamic program solved a truncated matrix and reported
its objective: on a 10-unit cycle with spillovers(1, 0.25, 1e-9)atx = 0.125it read
12.000000000625for a fold whose same-fold mass is12.000000001625, against the optimum
12.000000001375. The band now keeps every offset above the rounding of the largest weight, and
objectiveis the returned fold's mass on the full matrix.
Documentation
sensitivity_analysis's robustness value is shown to be theR^2that moves the estimate by
qof itself whatever the noise, so it reads the classicaltunderrobust=Trueas well, by
design: the confounding's move is least squares' algebra, and no standard error enters it
(validation/robustness_value_ovb.mac). On 150 rows whose noise grew with the action, a
confounder built at the reported value moved the estimate to nothing atq = 1; one built at
the value the HC3twould give left 0.46 of it. No number moves.discover_lagged_parents' false-edge figures are re-measured on the exact partial-correlation
tthat 1.2.0 adopted, by a script that reads them,scripts/bench_discovery_false_edges.py:
0.96 % and 0.94 % of the candidates that are not parents entered, and 26.2 % and 26.8 % of the
graphs of 300 and 1000 steps held a false edge, where Fisher'szread 26.4 % and 27.0 % on the
same series. The docstring's 26 % and 27 % stand.PlanEvaluation.normalisation_bias'...
v1.3.1
[1.3.1] — 2026-11-18
Fixed
CappedExplorationPolicy.predicted_massis the optimum where the balance skips a round
boundary._self_consistent_massreturned the balancesqrt(K (T - n)/(A c)) - I0/cof the
first roundnwhose prefix sum reaches it, also where that balance lies below the mass the
fill delivers before roundn. There the cost falls up to that boundary and rises after it, so
the boundary is the optimum. AtA = 1,K = 4,c = 1,I0 = 1,T = 3andcap = 3/2it
read1against the optimum3/2, and at the defaults,T = 10**5andcap = 0.01it read
60.729756where the policy stops at60.73.exploration_mass,costand the schedule were
already the optimum and do not move.- The constant-cap quadratic is documented as a relaxation, not as the stopping mass.
capped_exploration_policycalled the root ofA w^2 + (K/cap) w = K c T + K I0/capthe exact
mass andS*/capthe exact block length. The quadratic reads the stopping round asS/cap, but
the round that deliversSis the integerceil(S/cap), and the exact mass lies between the
quadratic's roots at the horizonsT - 1andT(validation/capped_exploration_schedule.mac
STEP 9). With the item above'sA,K,c,I0andT, atcap = 100the optimum is
sqrt(8) - 1 = 1.828427and the root is2.449928; atcap = 4/5the optimum is the schedule
(4/5, 1/5, 0)at cost83/9, and the root is1.321825. The ceilingK/(2 A c cap)on what the cap-free form over-states holds
for the relaxation; the exact mass's gap can pass it at a finite horizon,0.635674against
0.02atcap = 100. Tests that compared the mass with the root to within one cap now check
that bracket, and a new test checks the mass against a brute-force minimum over the box of
per-round actions on horizons up to five.
v1.3.0
[1.3.0] — 2026-11-07
Two opt-in settings, the directional DLM form under sign constraints, the marketplace default
1.2.0 announced, and fixes. The barrier's room may read a bound on the drift's error, and a held
barrier's rounds may rest a one-lever action on the radius norm's kink; both are off by default,
every number to the bit as in 1.2.0. Numbers that move, each with its size below: the default
marketplace plan (pessimistic_equilibrium_allocation plans on objective="expected", and refuses
a response there), planned_cost_bias's bias (the two ways' sums read whole), the clustered
t and p-values of interference_check and lag_check and estimate_network_effects' clustered
errors at rounding (one private module reads every robust covariance), and the DLM on a model that
repeats a term. No name is removed or renamed.
Added
constrained_sampletakes the directional form, and the multiplicative one where its
evolution variance is a variance (chc.dlm, experimental). Up to 1.2.0 it refused every form
but"additive", the one that leaks, because its Gibbs blocks assumed an evolution that keeps
the blocks apart, so holding a channel to a sign forced that form.W_tdepends on the design,
not ony, under every form, so the three blocks stay; the other states' draw given the
constrained paths now conditions their innovation on the constrained ones: their evolution adds
K_t (c_t - c_(t-1)),K_t = W_uc W_cc^-1, and its variance isW_uu - K_t W_cu
(validation/dlm_constrained_conditioning.mac). On a level beside a drifting coefficient held
while idle and a static one, eight steps with the variance learned, the directional form's
draws match rejection from 1.5 millionbackward_sampledraws within 1.6 Monte Carlo standard
errors in every mean and 0.8% in every standard deviation, over five seeds; drawn without the
coupling, the level's means missed by 5.6-6.4. With every discount 1 the directional draws
equal the additive ones to1e-12, and the additive draws are unchanged to the bit. A
multiplicative step whoseW_thas a negative eigenvalue (blocks whose discounts differ, once
they correlate) is refused naming the form, and so is a step whoseW_tmoves two constrained
coefficients only together, as the directional form's does for two columns held constant, or at
zero, beside a level alone (ADRs 0121, 0042).certify_safety(drift_error=),BarrierConstraint.drift_errorandSafetyCertificate.drift_error
(experimental): the barrier's room may read a bound on the drift's error. The deviation tube
carries it beside the channel's radius, a constant added to the field at every stage as the
channel's error is,e_{k+1} = ||dF/dx|| e_k + ||dF/dc|| (Delta_k ||D^+ (u_k - c)|| + drift_error),
so a certified step also holds a plant whose drift is within it of the model's: exactly where the
model is affine in the state and the error does not move with it (validation/barrier_deviation_tube.mac
(5) to (7), RK4 and Euler), to first order in the tube's width where it does. The condition, and
gamma_starwith it, still read the model's drift. None reads the channel's error alone, every
number to the bit as in 1.2.0; a negative or non-finite bound is refused (ADR 0119 amended, ADR
0111 amended).prescribe(barrier_drift_error=True)(experimental),DecisionCertificate.barrier_drift_error,
its record keycertificate.barrier_drift_errorandinputs.barrier_drift_error: the held
barrier and the audit read the fit'sdrift_errortimest sqrt(n),tStudent's at 0.975 on
the channel's degrees of freedom andnthe states, a bound read at the log's rows, not at the
plan's states. The report says so in the barrier's line. Off by default; refused without a
constraint and on a fit that gives no drift error.SCHEMA_VERSIONstays 3: keys are added and
none changes meaning. A record replays on the release that wrote it (ADR 0145): one written before
the key is refused byPrescription.from_json, which namesinputs.barrier_drift_error. On 20
logs of an unstable drift (xdot = 0.5 x + u, a hidden confounder atGamma = 1.5, RK4, each
plan held under the fit's own sensitivity and a bound of 0.185 to 0.192), the true plant stayed in
the set over the certified steps on all 20, leasth+0.72, where without the bound it left on 1,
leasth-0.09. The price is the certified steps on that drift: 24.85 of 30 on average, where
they were 29.95; by log 28, 25, 19, 22, 22, 20, 28, 26, 25, 26, 23, 22, 26, 24, 29, 28, 25, 21, 30
and 28, where they were 30 but on one log 29; the cost 5.7 % higher on average (1.4 % to 11.5 %),
and 5 of the 20 plans endinfeasiblewhere all endedmax_iterations. On a stable drift (-1)
every plan was certified on all 30 steps either way, at a cost 0.43 % higher on average (0.01 % to
1.30 %). A plan held without the bound and only audited with it keeps about half its steps: 15.90
on average on the unstable drift (14 to 17), 18.90 on the stable one (14 to 27).causal_plan(inner="orthant"),RecedingHorizon(inner="orthant")(experimental) and the value
"orthant"ofInnerSolve: a held barrier's rounds step by projected Newton with the radius
norm's kink at the barrier's centre taken by its sides. Under a radius, a step's condition and the
deviation tube both read||D^+ (u - c)||, which has a kink atc; the rollout's derivative
reads no slope there and Newton's model no curvature, so a plan whose optimum rests actions on
cstalled under both the default descent andinner="newton". On a step with one lever, the
orthant rounds cut each action's box atcon its side, let an action oncleave only toward a
side where the round falls, and read the plan's first-order check there by the norm's
subdifferential (CausalPlan.stationarityis the smaller of that reading and the masked one).
On an unstable drift held under the fit's ownChannelSensitivity(three logs, 30 steps), the
plans endconverged6.3e-8, 8.0e-8 and 4.2e-8 above SLSQP's cost, certified on all 30 steps,
in 91, 2 814 and 1 880 descent steps, with 27, 27 and 29 actions on zero as SLSQP's; the default
rounds endmax_iterations0.17 %, 1.54 % and 0.32 % above it, Newton's 0.69 %, 0.21 % and
0.52 %. At 100 000 steps they return the same plans. With several levers a step, or no radius,
the rounds areinner="newton"'s, bit for bit. It ships opt-in: of 227 plans the planning tests
hold at a barrier it left 36 within 1e-9, made 90 cheaper at the same certified steps (up to
81 %), certified 6 on more leading steps and none on fewer, and ended 67convergedthat ended
max_iterations, but made 95 costlier at the same certified steps, 93 that endconvergedby at
most 7.5e-7 and two oscillator plans at a budget of 10 steps by 5.4 %. The default stays
"diagonal", every number to the bit as in 1.2.0 (ADR 0144 amended).pessimistic_equilibrium_allocationwarns (UserWarning) where it plans through a fit whose
lack_of_fitis below 0.01, asfit_equilibriumwarned, and names the zones it holds at zero
incentive with the attractiveness the fit read for each: on one log outside the fitted class the
fit read −1.5e12 for such a zone, and its own warning names no zone.
Changed
- One robust covariance. The small-sample factors, the clusters' sums (one way, two ways
less their intersection, less any part below nothing), the periods' cosines and the degrees of
freedom of thetread off them were stated in six places; one private module now reads them
and returns each covariance with its kind, its number of independent termsG, its factor and
itsdf(ADR 0053 and ADR 0062 amended). Each reader keeps its factor: CR1's
G / (G - 1) (N - 1) / (N - k)for the channel's error andestimate_network_effects,
G / (G - 1)alone forinterference_check,lag_check,persistence_checkand the tube's
noise mean,N / (N - 1)over each arm ofshadow_price_effect's contrast. The channel's error,
its influence, the tube's noise read,persistence_checkand every HC3 error read to the bit what
1.2.0 read. Where a copy took the factor at another point of the product, numbers move at
rounding:interference_check's andlag_check'stand p-values andshadow_price_effect's
contrast covariance by at most 6 float64 eps;estimate_network_effects' clustered errors by 4
float64 eps, and by up to 4e-7 of themselves in float32, where each cluster's scores are now
summed in another order. chc.misspecification.planned_cost_bias, and with itprescribe(planned_cost_bias=True),
read the two ways' sums whole (experimental). A fit clustered two ways, asprescribefits a
panel of more than one unit over more than one period, gave the bias the two ways' covariance
with its part below nothing taken away, as the channel's error reads it. Taking that part away
adds a covariance toS, and the bias is linear inS: on 600 logs of 20 units over 4 periods
the bias averaged +0.0079, 1.169 times the +0.0068 thatSthe parameters' covariance across the
logs gives, 2.44 paired standard errors above it, and each dimension at its own small-sample
factor read the same +0.0079. Read whole it averages +0.0071, 1.041 times, 0.58 standard errors
above; it moved on 546 of the 600 logs. The quickstart's bias moves from +2.8435e-5 to
+2.9763e-5.bias_upperkeeps the clipped reads and is now the largest of them and the bias,
never below it: the whole sums' bias was above every clipped read's on 37 of the 600 logs. Its
quickstart value, +3.263e-5, does not move (ADR 0088 amended).pessimistic_equilibrium_allocationplans onobjective="expected"by default, the flip
1.2.0's warning announced. Called withoutobjectiveit maximises the completions the fitted
equilibrium expects under its own uncert...
v1.2.0
[1.2.0] — 2026-11-07
Fixes, four opt-in settings and one deprecation. Numbers that move, each with its size below:
the default marketplace plan (pessimistic_equilibrium_allocation's tilted objective now also
starts from the fitted game's optimum), partial_corr_test's p-values (the exact t),
estimate_network_effects' standard errors (CR1 over clusters, HC3 without),
planned_cost_bias (the fit's own covariance), the DLM's directional form under a change of
units, and which Koopman lifts koopman_lqr_gain grants. pessimistic_equilibrium_allocation
warns that its default objective becomes "expected" in 1.3.0. No name is removed or renamed.
Added
settings.plan_sha256andsettings.clustersinPlanEvaluation.to_json()(experimental): an
evaluation names the decision it read, by a sha256 over the decision record'sschema_version,
scheduleandinputslessinputs.panel_sha256, the rows in the order they were handed in,
as JSON with sorted keys and no spaces (null fromevaluate_plan, whose
plan is no decision's), and the column a plan made on groups had the panel grouped by (null
otherwise).settings.panel_sha256stays the panel's as handed in;EVALUATION_SCHEMA_VERSION
stays 1, since both keys are new (ADR 0145).GateConfig.rollback_restartandGateConfig.rollback_horizon(experimental): a deployed zone's
rollback evidence also starts again everyrollback_restartdecisions after the DEPLOY, blocks
in blocks, and discards none. The rollback reads a mixture of e-processes started on that grid,
each 1 until its start: one test supermartingale under the same null, so a wrong ROLLBACK keeps
probability at mostalpha_harm, and one number a bet carries it. The starts carry the drift
alarm's epoch weights, or, withrollback_horizon, equal weights over the starts within it. In
blocks of one period at a mean of 0.5, the baseline's blocks at 0.2, centred, a candidate that
turned 0.12 worse 5000 blocks after its DEPLOY was rolled back within 3000 blocks on 0.340 of
1000 paths every 250 blocks with the epoch weights and on 0.770 alike over 10 000, against
0.070 unset; turned at the DEPLOY, on 0.929 and 0.732 against 0.925. A candidate that did not
turn was rolled back within 8000 blocks on 6 of 1000 paths with the epoch weights, as unset, and
on 4 alike, at analpha_harmof 0.05, and the lab plant's six null cells on none of 1000 paths
each. Per decision, a candidate +0.06 for 3000 decisions and -0.06 after was caught on 185 and
198 of 200 paths against 3. Unset, every e-value and verdict is what it was; the gate's log
records carry both settings besidelog_rollback(ADR 0146 amended).read_switchbacklogsswitchback_unboundedwhere the steady state's Fieller interval is the
whole line, and only there, andSwitchbackReadingsays how often: on one zone ata = 0.9,
1000 runs, 13.9 % of the jackknife's readings over 200 periods and 0.3 % over 400, 0.1 % and none
uncorrected; none on 4 zones. The near-unit-root warning fired on every one of the 200-period
runs on both paths, so it did not tell them apart (ADR 0143 amended).causal_plan(outer="safeguarded"),RecedingHorizon.outer(experimental) and theOuterRule
type naming the two rules: a held barrier's augmented-Lagrangian rounds each get a fixed share
of 333 steps, run untilstepsare spent (at
most 30 rounds more than the full shares), and grow the penalty tenfold after every round whose
measure fails to halve, its share run out or not, Birgin and Martínez's rule as they state it.
Under the default"halved"rounds, each given half of the steps left, a plan whose every round
runs out of its share never grows the penalty: on an unstable drift held under the fit's own
ChannelSensitivityit stayed at its start over all 15 rounds, and at 100 000 steps the plan
was certified on 27 steps of 30 where 10 000 certified 30. Safeguarded, the penalty grew 7 times
there, and ten times the budget ran the same rounds further, shortening no plan's certified
steps on the two logs measured and lowering one's cost 65.95203 → 65.95086. It ships opt-in
because it moves plans both ways: of 218 plans the planning tests hold at a barrier it left 125
within 1e-9, made 27 cheaper and 62 costlier at the same certified steps (by up to 43 %),
certified 4 on fewer leading steps (two from 12 to 7, endinginfeasiblewhere the halved
rounds certified all 12), and ended 18 converged plansmax_iterations. Neither rule brings
those unstable plans within 0.2 % of SLSQP's: its plan rests most actions at the deviation
tube's kink at zero (ADR 0144, amended).inputs.panel_sorted_sha256in the decision record (experimental, asPrescription.from_json
is): the panel's digest over its rows sorted by unit and period, whichfrom_jsonchecks in place
ofinputs.panel_sha256.SCHEMA_VERSIONstays 3: a key is added and none changes meaning
(ADR 0145).PlannedCostBias.bias_upper(experimental) and the record's
certificate.planned_cost_bias.bias_upper: the largest bias over the reads of a fit's
covariance, never belowbias, andbiaswhere the fit has one read; None for a bias read from
a covariance given by hand.report()prints it where it is above the bias, and says that the
first-order term is not read (ADR 0088).estimate_network_effectsreturnsdf(evolving), the degrees of freedom of thetits
interval reads:G - 1overGclusters ofcid,N - 1without (ADR 0062 amended).
Changed
- The default's plans move.
pessimistic_equilibrium_allocation's tilted objective, the
default, is ascended from the fitted game's exact optimum as well as from the even split, by the
helper the expected objective uses, and keeps the plan better on its surrogate. One ascent from
the even split stopped on amin(demand, drivers)kink short of what is reachable. On markets
0-29, logs of 400 blocks, the tilted plan's share of the exact oracle's lift rose from 0.900 to
0.948 in float64 and from 0.907 to 0.941 in float32; its surrogate fell on no market. In float64
the share rose on 17 markets and fell on 3, by up to 0.079, each with a higher surrogate. On
float32 market 18, where the tilted plan won 0.735 against the naive plan's 0.805, it wins 0.978.
Logs of 50 blocks: 0.789 to 0.815; outside the fitted class, 100 logs: 0.733 to 0.762 (ADR 0137
amended). chc.misspecification.planned_cost_bias, and with itprescribe(planned_cost_bias=True), read
the fit's own covariance, not the largest of three reads (experimental). A fit clustered two
ways, asprescribefits a panel of more than one unit over more than one period, gave the bias
the read of the largesttr(W S)among the two ways' and each dimension's alone, and the largest
of three noisy reads sits above each: on 600 logs of 20 units over 4 periods the bias averaged
+0.0105 against +0.0068 withSthe parameters' covariance across the logs. It now reads the two
ways' covariance, +0.0079 there; the bias moves only where another read was the largest (477 of
the 600 logs), and the quickstart's +2.84e-5 does not move. The docstring states the second-order
expansion and that its first-order term is not read (-0.0047 on those logs) (ADR 0088).partial_corr_testreads the partial correlation's exacttwithn - k - 2degrees of
freedom, where it read Fisher'szwithmax(n - k - 3, 1). Every p-value moves, and with it
each discovered edge's stored p-value inLaggedGraphand in a decision record that names a
discovered graph: at thet's 0.01 point thezread the p-value 23 % low at 10 rows, 4.6 % at
50 and 0.6 % at 400; on the 600-step series the discovery tests keep, the stored p-values moved
by factors of 1.003 to 1.7e6, an edge whosezunderflowed to 0 now keeps 6.5e-254, and the
graphs, their digests and the pathways read the same (ADR 0151 amended,
validation/partial_corr_t.mac).estimate_network_effects' standard errors are CR1 over the clusters and HC3 without them.
The clusters' scores were summed with no small-sample factor, CR0, and the docstring read the
interval at the normal's 1.96; without clusters the error was HC0, where the library's other
regressions read HC3. The clustered errors now carry ADR 0053's factor
G / (G - 1) (N - 1) / (N - 2), so on a log of 300 rows they moved ×1.0368 at 15 clusters and
×1.1199 at 5, every row its own cluster reads HC1 (HC0 × 1.0034), and the HC3 error read 1.3 %
above HC0; a 95 % interval readst(df)'s quantile, 12 % wider than the normal's on the old
error at 15 clusters and 37 % at 5. On 200 panels of 20 clusters, 2560 rows each, the direct
effect's interval covered the truth 93.5 % of the time where it covered 90.0 %, the spillover's
96.0 % where it covered 95.0 % (ADR 0062 amended).cidof one cluster is refused.koopman_lqr_gainreads the state's closure residuals, the firststate_dimof
KoopmanModel.closure_residuals, where it read every feature's. In one step a lift of degree 2
or more does not close even on an exactly linear plant: onx' = a x + b uthex^2feature's
residual issqrt(1 - a^4)under the linear form and1 - a^2under the bilinear one, while
the state's is zero (validation/koopman_discrete_closure.mac). The default degree-3 lift of
x' = 0.9 x + 0.5 uwas refused at 0.607, though it predicted the next state to round-off and
its gain was the plant's LQR to 8e-9, and the refusal's remedies, a richer lift or
form="bilinear", could not help. Some lifts refused before are granted: onx' = 0.9 x + 0.5 u
andx' = 0.5 x + 0.5 uevery degree from 1 to 3 in both forms. Onx' = 2x - x^3 + u/10at
degree 3 the gain is now granted andkoopman_controllerrefuses its loop (spectral radius
1.14), where the gain was refused before; at degree 1 it is ref...
v1.1.1
[1.1.1] — 2026-11-07
A patch: no feature, and no signature moves. A decision record replays on another machine's
dependencies, as ADR 0145 promised, and one certificate field moves, in one corner, to the
guarantee it states.
Fixed
- A decision record replays on another machine's dependencies and device.
Prescription.from_jsoncompared the whole replayed record with the stored one, so
run.versions(jax, jaxlib, numpy, scipy),run.backendandrun.device_kind, which a replay
reads off the machine it runs on, refused every record after a patch upgrade of numpy, scipy or
jax, or on another device, where ADR 0145's rule is that they are not asked. They are no longer
compared. The library's own version andrun.x64are still checked before the replay; a number
that moves is still refused, naming the field and the versions that differ; and the replay
returned holds this machine's versions and device. - A barrier's certified steps end where the certified horizon does, at the first step a lever
leaves its logged range.prescribecutcertified_horizonatlever_range_stepand copied
the barrier audit's count as it was, though the audit reads the fitted channel past the logged
range, where its error is not priced: on a cubic plant logged within ±0.2 and planned at 0.4
from the first step, the certificate read "barrier: certified steps 40 at gamma 1.5" while the
true plant crossed the bound (least h −0.121 on one of three logs).barrier_certified_stepsand
its JSON now read 0 there;plan.safety.certified_stepskeeps the audit's count; the report's
barrier line says "not read past step k (the lever leaves the logged range)", andgamma_star
keeps its number.trustworthy_stepsdoes not move: the horizon already ended there.
Documentation
- 1.0.0's migration note:
import chcthenchc.<module>.<name>reaches the 255 moved names
outsidechc.research;import chcloads no research module (ADR 0117), so the 166 inside it
needimport chc.research.<module>first. - 1.1.0's notes: its defaults are compared with 1.0.0's to a tolerance (1e-9 relative, or the
search's own), not pinned to the bit; with 4 donors the AR(1) plug-in's coverage falls to
0.85–0.88 at the last post period by the batch of seeds, not to 0.852 alone. chc.responsesays what a bare curve returns below zero spend, where it had said "several
return nan":nanfromBetaCDFandGammaCDF, 0 fromLogNormalCDF; from the families that
raise spend to a shape (Hill,Weibull,BurrXII,Kumaraswamy,ChapmanRichards)nanat
a shape that is not whole and a positive number at an even one (Kumaraswamy'snanpast
-K);-infat-KfromMichaelisMenten, and fromHillandBurrXIIat an odd shape, and
a positive number (BurrXIInan) past it; elsewhere a negative number, which can overflow far
below zero. An adstock kernel, aChanneland the readings of the return refuse a negative
spend, as before.delay_estimatestates that its interval covered the true delay in 0 of 10 seeds on
DelayOscillationTask's log: it is an interval of the peak's location, not of the delay.docs/lifecycle.md: an evaluation's logger check logs atINFO(ADR 0136); it does not warn.
The README and the site no longer call the library small. The quickstart says a replay gives the
record back with the machine's dependencies and device aside. Notebook 09 reads the barrier's
count from the plan's own audit and says why the certificate's is 0.
Notes
- The misspecification job collects every test under
tests/misspecification/by its path: the
lagged-lever check's 10 tests carried no marker, so the job ran 55 of 65 and every leg of the
matrix ran those 10. - The gate's e-values and the blank-period readings are compared with stored values to 1e-9
relative (1e-12 absolute for an exact zero) instead of a ten-digit digest, which hashed rounding
noise: a fresh epoch's log e-value is 0 exactly and reads −3.6e-16 in floats, and a perturbation
of every value by 1e-12 of itself moved the gate's digest every time.
v1.1.0
[1.1.0] — 2026-10-31
Four opt-in readings; no default moves, each pinned to the bit against 1.0.0.
Added
blank_period_inference(serial="ar1", ar_error="jackknife")(experimental) and
BlankPeriodInference.ar_coefficient_variance: the AR(1) intervals widen by the coefficient's
donor-jackknife variance through the delta method, about the plug-in's centres. On factor panels
at 0.95, 10 post periods,alpha = 0.1, 4 donors cover 0.895–0.912 where the plug-in falls to
0.852, at a last-period radius 13 % wider; 19 donors cover 0.903–0.916 against the plug-in's
0.884. It refuses fewer than three donors and costsn_donors - 1times the plug-in's fits
(ADR 0148).cvar_allocate(weights=)(experimental): the worst share's mean weighs each reading, as a
stacked posterior's draws are weighed; its boundary is a weighted quantile. Integer weights plan
as the readings repeated, and a reading of weight 0 is left out of the share, its gain still read
on the split (ADR 0149).msm_worst_case_mean(covariate_form="quantile"), and the same argument of
confounding_robust_radiusandnegative_control_gamma(experimental): a cross-fitted linear
quantile regression at levelGamma / (Gamma + 1)is taken out of the tails in place of a mean
(Dorn and Guo's quantile balancing). Sharp perxwhere that quantile is linear in the
covariates and valid otherwise. Where the spread ofY | xmoves withxit reads it: on
Y = 2X + (1 + 2X) epsatGamma = 2the per-xbound is 2.0908, the residualised form's
2.0998. It costs 5 linear programs aGamma, about 250 fornegative_control_gammaat its
defaults (ADR 0150).LaggedGraph.state_p_values,LaggedGraph.control_p_valuesandLaggedGraph.causal_graph()
(experimental):discover_lagged_parentskeeps each edge's p-value, the shrink phase's last
test of it given the target's other kept parents, nominal and not post-selection valid, and
causal_graphunrolls the edges into aCausalGraphwhose every edge isdiscoveredby
partial_corr_testwith that p-value, whichprescribe(adjustment=)writes into the decision
record. A graph built by hand or byTigramiteDiscoveryholds none, andcausal_graphrefuses
it (ADR 0151).
v1.0.0
[1.0.0] — 2026-10-28
The surface freezes: what 0.24.1 warned about leaves, and from here the stable tier follows semantic
versioning. No default moves, and one number only where a solver stopped short (Fixed). To prepare,
run your suite on 0.24.1 with -W error::DeprecationWarning: every name under Removed warns there,
naming its replacement (ADR 0147).
Removed
- The 421 names the top level served since 0.8.0 with a
DeprecationWarning.chc.<name>is
now anAttributeErrorandfrom chc import <name>anImportError. Each imports from its
module, which 0.24.1's warning names, as doeschc._MOVEDin 0.24.1's source; 166 of them are in
chc.research. For example,from chc import rolloutbecomes
from chc.integrate import rollout.
The top level keeps its__all__, the lifecycle's names, and keeps importing every module a name
came from, soimport chcthenchc.<module>.<name>still works (ADR 0016). - The eight renamed names, deprecated in 0.20.0 and 0.21.0:
DecisionCertificate.identification_radius→channel_error,
ConfoundingRobustLQRegretCurve.regret_bounds→second_order_regrets,
highprob_regret_certificate→local_highprob_regret_certificate,
NonlinearDwrCurve.denominator_against_result_55→denominator_against_closed_form,
confounding_robust_lq_regret→confounding_robust_lq_second_order_regret,
confounding_robust_lq_regret_matrix→confounding_robust_lq_second_order_regret_matrix,
MultivariateActionFloor.floor→local_floorandMultivariateVanTreesCurve.floor→
local_floor. The old names areAttributeErrors (ADRs 0128, 0130). - The two re-exports
chc.research.sensitivity.confounding_robust_lq_regretand
confounding_robust_lq_regret_matrix: import thesecond_ordernames from the same module. chc.marketplace.DitherCheck, renamedGradientDitherCheckin 0.24.1 apart from
chc.decision.DitherCheck, another test (ADR 0140).
Changed
- The decision record is
schema_version3.Prescription.to_jsonno longer writes the
certificate'sidentification_radius, which repeatedchannel_errorsince 0.20.0; every other
key keeps its value. A reader of version 2 readschannel_error, which both versions write; a
reader that checks the version refuses a version-3 record rather than find the key missing.
Prescription.from_jsonreplays version 3 only, so a record 0.24.1 wrote is refused, naming
schema_version; a digest over the whole record moves (ADR 0130). - The stability promise. From 1.0 the stable tier follows semantic versioning: a change that
breaks it waits for the next major and gets a deprecation cycle first. The evolving tier may gain
keyword arguments and change a default in a minor, with a changelog entry arguing why;
chc.researchand the names marked experimental may change or be withdrawn in any minor
release (docs/api/index.md). The classifier isDevelopment Status :: 5 - Production/Stable.
Fixed
plan_regret_bound(constraints=)meets the maximum it bounds. Its dual descent, L-BFGS-B
from the linear program's multipliers, could stop well short where a lever meets its box: the
dual's gradient bends there and the secant pairs taken across the bend spoil the search. On one
three-lever, two-row problem the bound was 0.5218 against a maximum of 0.4332. The descent now
restarts where it stopped while the dual still falls, at most 8 times; that problem meets its
maximum, and 12 000 random problems are all within 3e-14 of it. A bound stopped short was valid
before and is valid now; it is only tighter.
v0.24.1
[0.24.1] — 2026-10-28
0.24.0 was tagged but never reached PyPI: its wheel job failed on two tests, so nothing was
published. 0.24.1 is the first release of everything below.
The 1.0 surface completed and one review round's fixes; no default moves. The last minor before
1.0, which removes what ADR 0147 lists.
Added
Prescription.from_json(record, panel, *, model=None)(experimental): re-runsprescribefrom
the record's newinputsand returns only if it gives the record back to the bit; otherwise it
raisesDecisionErrornaming the field (another chc release or precision, other data, a missing
or different known model, a missing input, or the first field the replay changed). A record
replays on the chc release and the precision that wrote it (ADR 0145).Prescription.to_jsongains the keysinputs(everyprescribeargument that changes the
result, the panel's digest, the graph with each edge's source, the known model's digest),
logger_checkanddither_check. Every key 0.23.0 wrote keeps its value;SCHEMA_VERSION
stays 2, as a new key changes no key's meaning (ADR 0130).chc.graph.EdgeProvenanceandCausalGraph.from_edges(..., provenance=): an edge is asserted,
discovered (with its test and p-value) or a known mechanism. Not part of the graph's equality.prescribe(planned_cost_bias=True)(experimental): the certificate'splanned_cost_biasholds
the planned cost, the second-order bias with its sign and the corrected cost, and
planned_cost_bias_reasonsays why it isNone. Opt-in, as it refits the channel with its
influence rows (ADR 0088, ADR 0145). On the quickstart: planned cost 2.150022, bias +2.84e-5.PlanEvaluation.to_json()withEVALUATION_SCHEMA_VERSION = 1: the estimate, interval, level,
certificate fields, the logger check and the evaluation's own settings, with the evaluated
panel'spanel_sha256(Prescription.evaluate) or the logs'logs_sha256(evaluate_plan).inputs.panel_clusterin the decision record: a replay on a panel that declares another cluster
is refused, naming it.GateConfig(rollback_baseline_share=q)(experimental, needsblock_length): a deployed zone of
a gate in blocks runs the baseline in each block with probability q, and its rollback e-process
reads their contrast after the burn-in, inverse-probability weighted (plain orcentred).
Before, only a drift alarm rolled such a zone back. On the lab plant a candidate that turns
0.157 worse after its DEPLOY is rolled back on 96.5 % of paths at q = 0.2 (median 215 blocks,
centred), against 0 %; wrong rollbacks 0 of 1000. Cost: q × the sustained gain a period
(ADR 0146). Centred, the deployed blocks are read against a level that starts again at the
DEPLOY, so the 96.5 % holds through the gate's own deploy (a level carried over from the
experiment gave 52.5 %).BlankPeriodInference.ar_check_p_value: a portmanteau check of the AR(1) model on the donors'
filtered gaps underserial="ar1", reported, never a refusal. Size 2.5–4.9 %; power 62 %
against an AR(2) alternative, weak against factors persisting at different rates.chc._removalslists everything that leaves at 1.0: the 421 top-level names, eight renamed
names, two re-exports and the record'sidentification_radiuskey, each with its replacement.
A test holds the list equal to the library's deprecation warnings, re-exports and record keys
(ADR 0147). No behaviour changes.
Changed
- Every public module of
chcandchc.researchdeclares__all__: its own classes,
functions, constants and choice aliases. A star import no longer hands out a module's imports
(CausalGraph,Literalornpfromchc.decision); attribute access is unchanged, and a test
holds each__all__to what its API page renders. chc.marketplace.dither_checkrefers its HC3 Wald statistic to a wild bootstrap by default
(reference="wild",draws=1999,seed=0;reference="f"keeps the F reference) and refuses
fewer than 4 blocks per tested direction;minimum_detectablereads the reference's critical
value anddither_sizerefuses a planned study below the floor. With the true fit at 5 %, the F
reference rejected 10.0–14.5 % at 25–100 blocks; the bootstrap rejects 2.8–6.8 % at 44–400 (ADR
0140). It stays experimental.chc.marketplace.DitherCheckis renamedGradientDitherCheck, apart from
chc.decision.DitherCheck; the old name warns and leaves in 1.0 (ADR 0147).pessimistic_equilibrium_allocation's keywordequilibriumhas no default (it always refused
None).exact_congestion_allocationandper_driver_congestion_allocationbisect the level without the
budget in its scale; at the published budget the exact oracle moves by at most 3.5e-14.Target(weight <= 0)andLever(unit_cost < 0)are refused, naming the field.- The DiD estimators refuse a group that is neither
never_treatednor a period0..T-1, naming
its row: a unit first treated after the panel is labellednever_treated(TWFE and DID_M read
g >= Tas untreated; Callaway–Sant'Anna raisedIndexError). read_switchback(jackknife=True)reads the steady state asb_J / (1 - a_J)with a delta-method
standard error, the centre of its Fieller interval, and refusesa_J >= 1. The 0.23.0 entry's
bias figures were sample means of a ratio with no mean: as medians, at a = 0.9 over 200 periods
on one zone, uncorrected −0.96…−1.17, the 0.23.0 jackknife −0.62…−0.87, this one +0.07…+0.43.
Fixed
blank_period_inference(serial="ar1")'s intervals are the k-step AR(1) forecast's t prediction
intervals from the blank innovations (normal innovations assumed; the test itself assumes no
distribution). At AR 0.8 the 80 % intervals covered 70.3 % and now cover 79.6 %; at levels 90 %
and 95 % they were unbounded with five blank periods and now cover 89.6 % and 94.8 %. The
default reading is unchanged (ADR 0146).msm_worst_case_mean,confounding_robust_radiusandnegative_control_gammaread an(n, 1)
column of outcomes as its vector; the first two read the last rows, not the largest (−0.087
where the vector reads 0.529). Other shapes and non-finite outcomes are refused (a nan returned
nan).fit_causal_residual: a log that moves no direction of the channel givesidentified=Falseand
channel_error=None, where it was identified with an error of 0.0; unmoved levers are logged at
WARNING (eventfit_unmoved), and missing or masked cluster labels are refused.SharedStateMarketdamps its equilibrium solve bycongestion_dampingfrom β·c = 6 and raises on
a solve that ends unconverged; at β·c = 20 it read 11.43 rides of 12. The published logs keep
their bits.sutva_allocationandpessimistic_equilibrium_allocationrefuse a radius that is nan, infinite
or negative (a nan returned the even split or nan);stackelberg_allocationrefuses an objective
that is not finite at its start.- At absurd budgets the exact optimum no longer falls (3.46 → 3.5 at 1e16) and per-driver rides no
longer pass the drivers (12.116 → 12 at 1e15).CongestionAllocation.shadow_priceis 0, not nan,
where a budget cannot lower the level by one bisection step. sinkhornrefuses unequal totals and its dual is finite with a zero-mass zone;
marketplace_reportstates an unconverged plan's miss instead of "100% served".prescribereads every collection once. Neighbours given as iterators were consumed by the
record: the interference check reported "not tested" (p nan where lists give 0.265) and the
record did not replay.DecisionCertificate.tube_per_log_spreadreads the field's error at the plan's actions under
either form, the noise the fit absorbed and the radius's own read over logs. Quickstart step 3:
0.0005 → 0.0047, observed 0.0061; a two-lever box form's last step 0.125 → 0.0074, observed
0.0013 (it errs wide where the mean share passes 0.99). The report states the spread about the
mean share.trustworthy_stepsis 0 when the tube was read againsttolerance=inf(it was the whole
horizon), and the report says why.Prescription.from_jsonraisesDecisionErrornaminginputs.<key>where a tampered record
raisedValueError,CyclicGraphErroror prescribe's message with no path;
PlanEvaluation.to_jsonaccepts keywords given as 0-d arrays.- The tube's field part at the plan's actions no longer recompiles its rollout on every
prescribecall. dither_covarianceno longer emits a divide-by-zeroRuntimeWarningfor a prior with a zero
eigenvalue (values unchanged).- Reachability fractions are exact counts in float64 (0.7515527606 → 0.7515527950 for 121/161).
- The absolute-radius refusal under rk4 no longer repeats its advice.
Documentation
- The
serial="ar1"intervals hold their level at the true AR(1) coefficient; with it estimated,
few donors or a long post period lower it (a measured table in the docstring and ADR 0146). causal_plan(inner="newton"): Newton's rounds converge where the round is smooth; a plan at rest
at the barrier's centre (prescribe's log mean action) can endmax_iterationsunder either
inner solve.WassersteinPenaltydescribes the local-gradient margin it computes, not the W1 worst case.- ADR 0139's dither power reads 400 logs: 0.39 at c = 0.15 and 0.875 at c = 0.27 (was 0.32 and
0.68 on 60 and 40);lag_checkstates that it reads across groups and has little power with
few;docs/api/index.mdlists the 87 experimental entries, held by a test.