Skip to content

Releases

v1.6.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 10:19
v1.6.0
af182dd

[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 as inputs.inner: how the rounds of a barrier
    held under hold_constraints are solved, causal_plan's inner handed 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's cap_per_step, a budget or a combination of
    the levers the log kept at one level, its rounds take the descent, and a WARNING record
    (chc_event="plan") says so. Refused without hold_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_VERSION stays 3: a key is
    added and none changes meaning; a record written before it is refused by
    Prescription.from_json, which names inputs.inner (ADR 0144, amended).

Changed

  • chc.allocation and chc.decision keep their engines in private packages.
    chc._allocation holds the curves' worth, the cutting planes, the branch and bound and the three
    searches built on them; chc._decision holds 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.py is 2 272 lines where it was 4 296, decision.py 5 443 where it was 6 747.
    import chc now also loads chc._decision and its two modules (ADR 0174).

Deprecated

  • A GateConfig whose rollback reads evidence and leaves rollback_restart unset emits a
    FutureWarning
    : not in blocks, or in blocks with a rollback_baseline_share. From 1.7.0 the
    default is rollback_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
    at 1 / alpha_harm + 0.1, 0.005 nats higher at an alpha_harm of 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

  • ConformalHorizon over 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's lam_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 float lam_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 at gamma = 1.5, the true plant stayed in the set over the certified steps on all
    200 with barrier_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 PlanEvaluation has 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 is value - 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

Choose a tag to compare

@github-actions github-actions released this 25 Nov 09:49
v1.5.0
213ba75

[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_design and ProbeDesign, 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) / T with Phi(U) = tr(Wn Gamma(U)^-1) / 2. The fit reads B
    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 in U; a weight on the channel
    alone gives dither_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 reading L periods back, baseline_lag, H unless
    given, in place of each zone's first reading. That is the readings through 1 - S^L, a
    lower-triangular Toeplitz filter, so the estimate stays unbiased for tau_H at any L >= 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 reads L more lags. At the channel
    the noise's share of T^2 times the variance falls by 8 ((T - L) gam_L - sum_(k>L) gam_k),
    gam the 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 at L is negative. On x' = 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; on x' = 2 u + eps, eps an AR(-0.5), the
    channel's spreads 1.165 times as far. It refuses a lag below H, 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 within K steps 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 a QuadraticBarrier,
    upper - (x - c)'P(x - c), bounded above everywhere as the theorem needs, whose mean under any
    noise of covariance S is h(m) - tr(P S). On a LinearGaussianPlant under an AffinePolicy
    the drift condition E[h(x') | x] >= alpha h(x) + slack is read exactly over every state;
    under a callable feedback, a safety filter say, at the states given. On x' = 0.6 x + N(0, 0.45^2) and |x| <= 1 the 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 (an AffineSchedule, a
    CausalPlan, a zero gain), a barrier with no upper bound and a loop on which the condition holds
    at no slack, and certify_safety neither reads nor returns it (ADR 0171).

  • ConformalPessimism and ConformalHorizon, 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 after n decisions is at
    most target + (cap - initial) / (step n) on any sequence of losses; eventual safety, a weight
    of at least safe keeping every window consecutive 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. ConformalHorizon sets a
    RecedingHorizon's lam_unc to 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
    fixed lam_unc = 0 missed 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. RecedingHorizon does not change (ADR 0172).

  • HorizonConformal.calibrate(shift=), opt-in, experimental: a distribution-shift budget for
    the horizon's joint band. shift=("tv", eps) or shift=("kl", rho) holds 1 - delta for 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 the ceil((n + 1) beta)-th score, beta = 1 - delta + eps in exact arithmetic, or
    the root above 1 - delta of KL(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 of delta or 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 for eps = 0.05 at delta = 0.1, 31 for rho = 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.1 held 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 - eta under 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_value runs a robust fitted-Q
    evaluation whose step replaces the expectation of reward + next value by the MSM's sharp bound,
    alpha E[Y] + (1 - alpha) times the mean of the lowest 1 / (Gamma + 1) of Y, alpha = e + (1 - e) / Gamma at the logged propensity: their Lambda is CHC's Gamma, and on one step the
    bound is msm_worst_case_mean's with propensity= (validation/stepwise_confounding.mac).
    stepwise_breakdown bisects for Gamma*, the least level at which the lower value falls below a
    threshold or a baseline plan's nominal value, and reads inf where 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 at Gamma = 2, [31/8, 81/16], where the plain
    evaluation reads 41/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 a KeepOrReplan with 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 runs causal_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 reads keep - replan against the null's least favourable
    law, all of tr(W S) as noncentrality on W 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 on keep_error re-plans with probability
    0.0029 at a nominal 0.05 on one direction,...

Read more

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 18:24
v1.4.0
db7cfa6

[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 against min_effective scaled to the
    windows it keeps; the spread is CV3 about the estimate and the interval Student's t with the
    units less one (MacKinnon, Nielsen and Webb 2023), degrees_of_freedom the units less one,
    bootstrap None, settings.interval in 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.UnitInterval names the two readings. Experimental (ADR 0160).

Changed

  • A held barrier reads infeasible only at a first-order point. causal_plan's barrier rounds
    read infeasible where 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
    ChannelSensitivity with outer="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 read infeasible of a condition
    SLSQP meets at every step. The rounds now read infeasible there only where the plan's
    stationarity is within its tolerance, as converged requires, and no_progress where 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 from infeasible to no_progress, five
    of them the same plan as before, and no status moves to or from converged; under
    outer="safeguarded", 13 of the 100 plans of the misspecification barrier tests do, among them
    two integrator plans that read infeasible on 7 certified steps of 12 and now no_progress
    on 8. A true infeasibility can move as well: on a position held at relative degree 2, the
    lockfile's jax ends no_progress, jax 0.4.30 infeasible, 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_residual warns where no two of its periods are 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_event fit_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_point reads a float32 solve at its rounding as converged. converged was
    residual <= tol, and the default tol = 1e-6 is 8.4 float32 epsilons, below the rounding of a
    relative residual: on the logs of SharedStateMarket(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 against max(tol, 64 eps), eps the
    solve's dtype's; in float64 that is tol for any tol from 1.4e-14 up. The iteration still
    stops at tol, so no iterate, log or plan moves a bit. SharedStateMarket reads the flag in
    place of its own floor of the same value (ADR 0157).
  • delay_estimate's lo and hi bound 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. On DelayOscillationTask'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 whether refine is on or
    not, and lag and delay do not move. A sharply identified lag no longer returns lo == 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. Under rk4 the drift also moved the
    instrumented channel, through RK4's growth factor. On x' = 0.9 x + 0.5 u + 0.8 w + e,
    u = w + eta, with w AR(0.9) and held by the graph, the lean is 0.154 of w'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 to 1e-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) at x = 0.125 it read
    12.000000000625 for a fold whose same-fold mass is 12.000000001625, against the optimum
    12.000000001375. The band now keeps every offset above the rounding of the largest weight, and
    objective is the returned fold's mass on the full matrix.

Documentation

  • sensitivity_analysis's robustness value is shown to be the R^2 that moves the estimate by
    q of itself whatever the noise, so it reads the classical t under robust=True as 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 at q = 1; one built at
    the value the HC3 t would give left 0.46 of it. No number moves.
  • discover_lagged_parents' false-edge figures are re-measured on the exact partial-correlation
    t that 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's z read 26.4 % and 27.0 % on the
    same series. The docstring's 26 % and 27 % stand.
  • PlanEvaluation.normalisation_bias'...
Read more

v1.3.1

Choose a tag to compare

@github-actions github-actions released this 18 Nov 15:54
v1.3.1
3da1088

[1.3.1] — 2026-11-18

Fixed

  • CappedExplorationPolicy.predicted_mass is the optimum where the balance skips a round
    boundary.
    _self_consistent_mass returned the balance sqrt(K (T - n)/(A c)) - I0/c of the
    first round n whose prefix sum reaches it, also where that balance lies below the mass the
    fill delivers before round n. There the cost falls up to that boundary and rises after it, so
    the boundary is the optimum. At A = 1, K = 4, c = 1, I0 = 1, T = 3 and cap = 3/2 it
    read 1 against the optimum 3/2, and at the defaults, T = 10**5 and cap = 0.01 it read
    60.729756 where the policy stops at 60.73. exploration_mass, cost and 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_policy called the root of A w^2 + (K/cap) w = K c T + K I0/cap the exact
    mass and S*/cap the exact block length. The quadratic reads the stopping round as S/cap, but
    the round that delivers S is the integer ceil(S/cap), and the exact mass lies between the
    quadratic's roots at the horizons T - 1 and T (validation/capped_exploration_schedule.mac
    STEP 9). With the item above's A, K, c, I0 and T, at cap = 100 the optimum is
    sqrt(8) - 1 = 1.828427 and the root is 2.449928; at cap = 4/5 the optimum is the schedule
    (4/5, 1/5, 0) at cost 83/9, and the root is 1.321825. The ceiling K/(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.635674 against
    0.02 at cap = 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

Choose a tag to compare

@github-actions github-actions released this 07 Nov 21:01
v1.3.0
cc8cc1a

[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_sample takes 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_t depends on the design,
    not on y, 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 is W_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 million backward_sample draws 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 to 1e-12, and the additive draws are unchanged to the bit. A
    multiplicative step whose W_t has a negative eigenvalue (blocks whose discounts differ, once
    they correlate) is refused naming the form, and so is a step whose W_t moves 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_error and SafetyCertificate.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_star with 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 key certificate.barrier_drift_error and inputs.barrier_drift_error: the held
    barrier and the audit read the fit's drift_error times t sqrt(n), t Student's at 0.975 on
    the channel's degrees of freedom and n the 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_VERSION stays 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 by Prescription.from_json, which names inputs.barrier_drift_error. On 20
    logs of an unstable drift (xdot = 0.5 x + u, a hidden confounder at Gamma = 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, least h +0.72, where without the bound it left on 1,
    least h -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 end infeasible where all ended max_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" of InnerSolve: 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 at c; the rollout's derivative
    reads no slope there and Newton's model no curvature, so a plan whose optimum rests actions on
    c stalled under both the default descent and inner="newton". On a step with one lever, the
    orthant rounds cut each action's box at c on its side, let an action on c leave only toward a
    side where the round falls, and read the plan's first-order check there by the norm's
    subdifferential (CausalPlan.stationarity is the smaller of that reading and the masked one).
    On an unstable drift held under the fit's own ChannelSensitivity (three logs, 30 steps), the
    plans end converged 6.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 end max_iterations 0.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 are inner="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 67 converged that ended
    max_iterations, but made 95 costlier at the same certified steps, 93 that end converged by 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_allocation warns (UserWarning) where it plans through a fit whose
    lack_of_fit is below 0.01, as fit_equilibrium warned, 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 the t read off them were stated in six places; one private module now reads them
    and returns each covariance with its kind, its number of independent terms G, its factor and
    its df (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 and estimate_network_effects,
    G / (G - 1) alone for interference_check, lag_check, persistence_check and the tube's
    noise mean, N / (N - 1) over each arm of shadow_price_effect's contrast. The channel's error,
    its influence, the tube's noise read, persistence_check and 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 and lag_check's t and p-values and shadow_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 it prescribe(planned_cost_bias=True),
    read the two ways' sums whole
    (experimental). A fit clustered two ways, as prescribe fits 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 to S, and the bias is linear in S: on 600 logs of 20 units over 4 periods
    the bias averaged +0.0079, 1.169 times the +0.0068 that S the 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_upper keeps 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_allocation plans on objective="expected" by default, the flip
    1.2.0's warning announced. Called without objective it maximises the completions the fitted
    equilibrium expects under its own uncert...
Read more

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 07 Nov 17:54
v1.2.0
2b99ea5

[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_sha256 and settings.clusters in PlanEvaluation.to_json() (experimental): an
    evaluation names the decision it read, by a sha256 over the decision record's schema_version,
    schedule and inputs less inputs.panel_sha256, the rows in the order they were handed in,
    as JSON with sorted keys and no spaces (null from evaluate_plan, whose
    plan is no decision's), and the column a plan made on groups had the panel grouped by (null
    otherwise). settings.panel_sha256 stays the panel's as handed in; EVALUATION_SCHEMA_VERSION
    stays 1, since both keys are new (ADR 0145).
  • GateConfig.rollback_restart and GateConfig.rollback_horizon (experimental): a deployed zone's
    rollback evidence also starts again every rollback_restart decisions 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 most alpha_harm, and one number a bet carries it. The starts carry the drift
    alarm's epoch weights, or, with rollback_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 an alpha_harm of 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 beside log_rollback (ADR 0146 amended).
  • read_switchback logs switchback_unbounded where the steady state's Fieller interval is the
    whole line, and only there, and SwitchbackReading says how often: on one zone at a = 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 the OuterRule
    type naming the two rules: a held barrier's augmented-Lagrangian rounds each get a fixed share
    of 333 steps, run until steps are 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
    ChannelSensitivity it 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, ending infeasible where the halved
    rounds certified all 12), and ended 18 converged plans max_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_sha256 in the decision record (experimental, as Prescription.from_json
    is): the panel's digest over its rows sorted by unit and period, which from_json checks in place
    of inputs.panel_sha256. SCHEMA_VERSION stays 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 below bias, and bias where 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_effects returns df (evolving), the degrees of freedom of the t its
    interval reads: G - 1 over G clusters of cid, N - 1 without (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 a min(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 it prescribe(planned_cost_bias=True), read
    the fit's own covariance, not the largest of three reads
    (experimental). A fit clustered two
    ways, as prescribe fits a panel of more than one unit over more than one period, gave the bias
    the read of the largest tr(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 with S the 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_test reads the partial correlation's exact t with n - k - 2 degrees of
    freedom
    , where it read Fisher's z with max(n - k - 3, 1). Every p-value moves, and with it
    each discovered edge's stored p-value in LaggedGraph and in a decision record that names a
    discovered graph: at the t's 0.01 point the z read 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 whose z underflowed 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 reads t(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). cid of one cluster is refused.
  • koopman_lqr_gain reads the state's closure residuals, the first state_dim of
    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: on x' = a x + b u the x^2 feature's
    residual is sqrt(1 - a^4) under the linear form and 1 - a^2 under 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 u was 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: on x' = 0.9 x + 0.5 u
    and x' = 0.5 x + 0.5 u every degree from 1 to 3 in both forms. On x' = 2x - x^3 + u/10 at
    degree 3 the gain is now granted and koopman_controller refuses its loop (spectral radius
    1.14), where the gain was refused before; at degree 1 it is ref...
Read more

v1.1.1

Choose a tag to compare

@github-actions github-actions released this 07 Nov 05:41
v1.1.1
d618235

[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_json compared the whole replayed record with the stored one, so
    run.versions (jax, jaxlib, numpy, scipy), run.backend and run.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 and run.x64 are 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.
    prescribe cut certified_horizon at lever_range_step and 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_steps and
    its JSON now read 0 there; plan.safety.certified_steps keeps the audit's count; the report's
    barrier line says "not read past step k (the lever leaves the logged range)", and gamma_star
    keeps its number. trustworthy_steps does not move: the horizon already ended there.

Documentation

  • 1.0.0's migration note: import chc then chc.<module>.<name> reaches the 255 moved names
    outside chc.research; import chc loads no research module (ADR 0117), so the 166 inside it
    need import 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.response says what a bare curve returns below zero spend, where it had said "several
    return nan": nan from BetaCDF and GammaCDF, 0 from LogNormalCDF; from the families that
    raise spend to a shape (Hill, Weibull, BurrXII, Kumaraswamy, ChapmanRichards) nan at
    a shape that is not whole and a positive number at an even one (Kumaraswamy's nan past
    -K); -inf at -K from MichaelisMenten, and from Hill and BurrXII at an odd shape, and
    a positive number (BurrXII nan) past it; elsewhere a negative number, which can overflow far
    below zero. An adstock kernel, a Channel and the readings of the return refuse a negative
    spend, as before.
  • delay_estimate states 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 at INFO (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

Choose a tag to compare

@github-actions github-actions released this 01 Nov 18:43
v1.1.0
a7812a3

[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 costs n_donors - 1 times 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_radius and negative_control_gamma (experimental): a cross-fitted linear
    quantile regression at level Gamma / (Gamma + 1) is taken out of the tails in place of a mean
    (Dorn and Guo's quantile balancing). Sharp per x where that quantile is linear in the
    covariates and valid otherwise. Where the spread of Y | x moves with x it reads it: on
    Y = 2X + (1 + 2X) eps at Gamma = 2 the per-x bound is 2.0908, the residualised form's
    2.0998. It costs 5 linear programs a Gamma, about 250 for negative_control_gamma at its
    defaults (ADR 0150).
  • LaggedGraph.state_p_values, LaggedGraph.control_p_values and LaggedGraph.causal_graph()
    (experimental): discover_lagged_parents keeps 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_graph unrolls the edges into a CausalGraph whose every edge is discovered by
    partial_corr_test with that p-value, which prescribe(adjustment=) writes into the decision
    record. A graph built by hand or by TigramiteDiscovery holds none, and causal_graph refuses
    it (ADR 0151).

v1.0.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 20:52
v1.0.0
f8f95bc

[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 an AttributeError and from chc import <name> an ImportError. Each imports from its
    module, which 0.24.1's warning names, as does chc._MOVED in 0.24.1's source; 166 of them are in
    chc.research. For example, from chc import rollout becomes
    from chc.integrate import rollout.
    The top level keeps its __all__, the lifecycle's names, and keeps importing every module a name
    came from, so import chc then chc.<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_floor and MultivariateVanTreesCurve.floor →
    local_floor. The old names are AttributeErrors (ADRs 0128, 0130).
  • The two re-exports chc.research.sensitivity.confounding_robust_lq_regret and
    confounding_robust_lq_regret_matrix: import the second_order names from the same module.
  • chc.marketplace.DitherCheck, renamed GradientDitherCheck in 0.24.1 apart from
    chc.decision.DitherCheck, another test (ADR 0140).

Changed

  • The decision record is schema_version 3. Prescription.to_json no longer writes the
    certificate's identification_radius, which repeated channel_error since 0.20.0; every other
    key keeps its value. A reader of version 2 reads channel_error, which both versions write; a
    reader that checks the version refuses a version-3 record rather than find the key missing.
    Prescription.from_json replays 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.research and the names marked experimental may change or be withdrawn in any minor
    release (docs/api/index.md). The classifier is Development 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

Choose a tag to compare

@github-actions github-actions released this 28 Oct 18:36
v0.24.1
48e8db3

[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-runs prescribe from
    the record's new inputs and returns only if it gives the record back to the bit; otherwise it
    raises DecisionError naming 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_json gains the keys inputs (every prescribe argument that changes the
    result, the panel's digest, the graph with each edge's source, the known model's digest),
    logger_check and dither_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.EdgeProvenance and CausalGraph.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's planned_cost_bias holds
    the planned cost, the second-order bias with its sign and the corrected cost, and
    planned_cost_bias_reason says why it is None. 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() with EVALUATION_SCHEMA_VERSION = 1: the estimate, interval, level,
    certificate fields, the logger check and the evaluation's own settings, with the evaluated
    panel's panel_sha256 (Prescription.evaluate) or the logs' logs_sha256 (evaluate_plan).
  • inputs.panel_cluster in the decision record: a replay on a panel that declares another cluster
    is refused, naming it.
  • GateConfig(rollback_baseline_share=q) (experimental, needs block_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 or centred).
    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 under serial="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._removals lists everything that leaves at 1.0: the 421 top-level names, eight renamed
    names, two re-exports and the record's identification_radius key, 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 chc and chc.research declares __all__: its own classes,
    functions, constants and choice aliases. A star import no longer hands out a module's imports
    (CausalGraph, Literal or np from chc.decision); attribute access is unchanged, and a test
    holds each __all__ to what its API page renders.
  • chc.marketplace.dither_check refers 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_detectable reads the reference's critical
    value and dither_size refuses 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.DitherCheck is renamed GradientDitherCheck, apart from
    chc.decision.DitherCheck; the old name warns and leaves in 1.0 (ADR 0147).
  • pessimistic_equilibrium_allocation's keyword equilibrium has no default (it always refused
    None).
  • exact_congestion_allocation and per_driver_congestion_allocation bisect 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) and Lever(unit_cost < 0) are refused, naming the field.
  • The DiD estimators refuse a group that is neither never_treated nor a period 0..T-1, naming
    its row: a unit first treated after the panel is labelled never_treated (TWFE and DID_M read
    g >= T as untreated; Callaway–Sant'Anna raised IndexError).
  • read_switchback(jackknife=True) reads the steady state as b_J / (1 - a_J) with a delta-method
    standard error, the centre of its Fieller interval, and refuses a_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_radius and negative_control_gamma read 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 gives identified=False and
    channel_error=None, where it was identified with an error of 0.0; unmoved levers are logged at
    WARNING (event fit_unmoved), and missing or masked cluster labels are refused.
  • SharedStateMarket damps its equilibrium solve by congestion_damping from β·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_allocation and pessimistic_equilibrium_allocation refuse a radius that is nan, infinite
    or negative (a nan returned the even split or nan); stackelberg_allocation refuses 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_price is 0, not nan,
    where a budget cannot lower the level by one bisection step.
  • sinkhorn refuses unequal totals and its dual is finite with a zero-mass zone;
    marketplace_report states an unconverged plan's miss instead of "100% served".
  • prescribe reads 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_spread reads 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_steps is 0 when the tube was read against tolerance=inf (it was the whole
    horizon), and the report says why.
  • Prescription.from_json raises DecisionError naming inputs.<key> where a tampered record
    raised ValueError, CyclicGraphError or prescribe's message with no path;
    PlanEvaluation.to_json accepts keywords given as 0-d arrays.
  • The tube's field part at the plan's actions no longer recompiles its rollout on every
    prescribe call.
  • dither_covariance no longer emits a divide-by-zero RuntimeWarning for 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 end max_iterations under either
    inner solve.
  • WassersteinPenalty describes 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_check states that it reads across groups and has little power with
    few; docs/api/index.md lists the 87 experimental entries, held by a test.