Skip to content
Increment 0.1.0a6 prerelease documentation. These docs describe the increment 0.1.0a6 prerelease (v0.1.0a6). Its API may change. Install: pip install 'increment==0.1.0a6' Keep any extras requested by the guide, such as increment[dashboard]==0.1.0a6.

Statistical limitations

Before acting on an estimate, check the assumptions for its method, population and reference. A method being available does not mean its assumptions hold. A missing number is not zero, and an unavailable diagnostic is not a passed check.

Use the method index below for the limit and the action to take. Exact formulas, refusal contexts and exceptional cases sit with the relevant method; measured campaigns and their scope live in Validation evidence. For a complete analysis, start with the quickstart.

Method or decisionWhat to check
Means and ratiosSmall samples, skew and uncertainty; zero or signed means
Clustered inferenceIndependent contributions and cluster concentration
CUPEDFitted scalar coefficient; mixed-covariate approximation
Conversion and retentionCount-based route, finite-sample boundaries and point-less sets
Quantiles and winsorizationAlpha-dependent intervals; experimental cutoff inference
SwitchbacksReference, carryover and independent units or blocks
Repeated monitoringReveal and stopping rules; unrun certification
Power and sample sizeVariance assumptions, conversion replay, quantile pilots and switchback pilots
Observational effectsDML’s target, IPTW fit, trimming and overlap
Logged policiesFixed logger, support and effective sample size
Multiple comparisonsFixed-horizon dependence; selected sequential intervals
CATE and targetingCluster approximation, identification and separate error budgets
Triggered populationsWhole-site interpretation, monitoring and secondary readouts
Meta-analysisFew segments and prior sensitivity
Warehouse SQLTrusted definitions and read-only credentials

A refusal is a coded early stop, not a silent fallback: branch on .code (Machine-readable contracts). The labels in the capabilities table say where a refusal comes from, not whether it is permanent. Not expressible means the request cannot be declared on that path; declaration may fail with a coded refusal or with ordinary signature/schema validation that has no .code.

Refusal labels: not expressible, SOURCE, CONSTRUCTION, COMBINATION, not comparable

Not every unavailable capability is a coded refusal. Where an entry point has no parameter or constructor for the request, Python raises TypeError (or there is nothing to call). Other declaration failures can carry a refusal code. from_switchback_frame(..., design=...) and from_switchback_frame(..., cluster=...) are examples, as is every logged-policy request made through an experiment builder.

  • SOURCE: the entry point’s input does not carry what the capability needs, as when a moments cube carries no per-unit rows to attach a covariate to. This is a current absence unless the text says structural, as the from_switchback_frame encouragement, observational and cluster rows (not expressible) and quantile requests (a coded refusal) do.
  • CONSTRUCTION: no admissible construction exists for the request on that path. Five reasons are stated: filling an outcome with its pooled mean shrinks variance; the margin verdict is carried by itt; JSON object keys are strings; windowed and retention metrics have no per-unit collapse for a CUPED covariate (use from_frame(..., shape="summary")); and the repair for adaptive logging is not implemented (tracker-owned).
  • COMBINATION: stored state from an earlier release meets the current reader, recipe or roster, as when a format-1 artifact context reaches the current reader.
  • not comparable: the capability concerns something that entry point lacks, such as an artifact store, so there is no result to compare. The cell also names a SOURCE reason.

The parity harness (helper:tests/parity_harness/matrix.py) calls SOURCE source_limited and CONSTRUCTION construction_limited; its waiver strings label the “no switchback schedule” cells COMBINATION: where this page says SOURCE.

A capability is a claim only when its path is named. Six builders feed run(experiment, reader), in three families: dataframe (from_frame(..., shape="summary"), one row per unit; from_frame(..., shape="panel"), one row per unit per day; from_switchback_frame); warehouse (from_definitions, compiling from raw event facts; from_unit_day_artifact, reading unit × day relations previously published into the warehouse); and portable (from_moments, a file of pre-reduced moments exported from any of the others).

Capabilities by entry point records measured behavior on every path, checked against the dataframe unit-summary path as the oracle. The switchback panel estimates a different quantity (a fixed-horizon contrast over a switchback schedule), so it is exercised on its own and never compared row for row with that oracle.

An interval’s guarantee depends on its reference and assumptions, not just on estimating uncertainty from the data. Approximate references are weakest at small samples, for heavy-tailed outcomes and for ratio metrics. Finite-sample guarantees come from eligible fixed-horizon conversion and retention relative-risk sets labelled reference_kind="binomial", prospective switchback UnitCycleVarianceEnvelope bounds, or the registered Bernoulli sequential route, each under its own declared assumptions; the binomial rows’ additive abs_lb/abs_ub interval remains approximate.

The sampling floor (two units per arm for most arm inference, twenty for a quantile) says a method can run, not that its interval is calibrated. No result field diagnoses misspecification or certifies calibration. For ratio metrics, a positive ratio_denominator_skew warning marks a measured regime where undercoverage is more likely; it is not a verdict for every numerator/denominator relationship. A ratio_denominator_skew: unavailable note means the check could not be computed, not that skew was found. The unchanged interval may under-cover in some measured regimes.

Statistical details: how each family estimates uncertainty
  • Conversion and retention arm lift (unadjusted, unit-grain), all four success and failure counts dense: delta-method log-scale uncertainty against a Welch–Satterthwaite t reference (reference_kind="t"), as every unadjusted mean. An approximation with no finite-sample guarantee, checked at the dense-count threshold (conversion_inference="auto", the default).
  • Conversion and retention arm lift (same eligibility), any sparse count, or conversion_inference="finite_sample": exact independent-binomial risk-ratio test inversion (Berger–Boos restricted-nuisance construction); no delta method or Normal reference (reference_kind="binomial").
  • Unit-grain mean/ratio lift and scalar CUPED (sampling inference): delta-method log-scale uncertainty against a Welch–Satterthwaite t reference, whose degrees of freedom are persisted on the row.
  • Clustered unadjusted arm lift: joint additive/control covariance, Fieller relative set; separate additive uncertainty.
  • Sequential: separate registered observation-model contract; fixed-horizon approximations do not establish anytime validity.
  • Quantiles: inversion of an order-statistic bracket (Woodruff), not a delta method.
  • Switchback: independent unit-cycle orders use default UnitCycleTApproximation (sample variance, at least two units, dof = n_units - 1); a valid prospective UnitCycleVarianceEnvelope is a separate stronger route supporting one unit. Shared schedules use block-t on at least two blocks.
  • Observational adjusted methods: influence-function sandwich.

Estimating the variance does not by itself forfeit finite-sample validity — under parametric assumptions it need not. But it does mean each family’s interval inherits the quality of its own approximation, and those are not interchangeable. The gap matters most at small n, for heavy-tailed outcomes, and for ratio metrics, where a first-order approximation is furthest from the truth.

Recorded measurements and scope.

Absolute effects on the switchback and observational paths are estimated natively on the
additive scale rather than reconstructed from a log-scale estimate, so they carry their own
path's approximation and not an additional one.
Approximate inference paths do not promise finite-sample exactness for a discrete outcome.
Eligible fixed-horizon conversion/retention results with `reference_kind="binomial"`
retain a finite-sample guarantee for the relative-risk confidence set and its
relative-scale decisions. Only those rows do: the default `conversion_inference="auto"`
labels a row with dense counts `reference_kind="t"`, an approximation whose noncoverage was
measured to stay within a stated tolerance at the dense-count threshold ([dense-count measurements](/docs/reference/validation-evidence/#dense-count-threshold-measurements)) and is not a finite-sample guarantee; the default is never a universally
finite-sample route. Their additive `abs_lb`/`abs_ub` interval is approximate on either
route: the delta route's is Welch `t`, and the finite-sample route's is the
Miettinen-Nurminen score interval for the difference of proportions
(`abs_reference_kind="score"`), whose test also decides an absolute margin there. The score
test's size at the measured margin boundaries (1,000 units per arm, a 0.01 margin, 2 to 100
expected treatment events) is at most 0.0502 against a nominal 0.05, where the Wald test it
replaced reached 0.0785; neither interval is exact.
Asymptotic and empirically qualified methods are labeled as such rather than treated as
exact; an unfinished or unsupported capability refuses before producing a result.
No result field diagnoses model misspecification.
Statistical details: sampling floors, quantile feasibility and recording grids

For approximate results, no field certifies calibration. A procedure declares a coarse sampling floor — two units per arm for most arm inference, twenty for a quantile. Cluster methods require estimable independent contributions, not a universal ten-cluster admission rule. A feasibility minimum is not a calibration guarantee.

It is not the estimator’s own feasibility check either, and the two can disagree in both directions. The quantile order-statistic bracket needs a sample that depends on the requested quantile and the alpha it is evaluated at: a median at 95% is feasible on six units per arm, well under the declared twenty, while a 99th percentile needs 368.

Each arm’s order-statistic bracket has distribution-free coverage, including on recording grids. The two-arm relative-effect interval is an approximation: it does not inherit a universal finite-sample guarantee from those brackets. Its widening rule protects against unresolved ties and mixed grids (including off-grid values or prices ending in both .99 and .00). Measured coarse-grid intervals were about 1.1 to 3 times the classical formula’s width; that ratio has no fixed bound because a bracket collapsed onto one value has zero classical width. Each widened row states its own ratio in its note. See quantile inference.

This feasibility bound applies to a single reported interval, evaluated at one caller alpha. The p-value computation (see below) scans across alpha internally and never surfaces this refusal to the caller: past the infeasible boundary it treats the construction as “does not exclude the null” and stops searching there, rather than raising.

Statistical details: the ratio-denominator skew check and its calibration

Calibration is metric-specific for approximate methods. Unadjusted unit-grain conversion/retention uses the delta method only where every success and failure count is dense and the exact binomial method below at every other event count. CUPED and ratio-denominator routes retain their delta approximation. Clustered unadjusted arm lift instead retains joint covariance and relative-set geometry; that representation prevents misleading finite intervals near zero controls, but does not establish finite-sample coverage for rare events or few clusters.

A unit-grain ratio row (unadjusted or CUPED, fixed horizon) is checked against the measured under-covering region of the delta-method interval. The moments wire carries the denominator’s centered third moment, so each arm’s standardized sample skewness g1 = m3 / m2^1.5 is known at inference time, and the statistic that governs the interval’s failure is the skewness of the denominator MEAN, g1 / sqrt(n). When either arm exceeds 0.30 the engine raises the coded estimation.engine.ratio_denominator_skew runtime warning (context: metric, arm, n, skewness, statistic, threshold) and the row carries a ratio_denominator_skew note naming each flagged arm. Either arm additionally resolving its denominator mean to a relative standard error sqrt(var_d / n) / d_bar above 0.15 carries the older ratio_denominator_precision note; a scalar CUPED row reads its CUPED-adjusted denominator mean instead, whose standard error includes that of the covariate mean pooled over both arms. A relative standard error beyond the floating-point range (about 1.8e308) still flags its arm: the advisory’s context reports it as null in relative_standard_errors, with past_float_range for that arm in relative_standard_error_unavailable_reasons. A CUPED ratio row’s ratio_denominator_skew note still describes the skew of the raw denominator, because the third moment of the CUPED-adjusted denominator is not available, while its ratio_denominator_precision note describes the CUPED-adjusted mean. Both are advisory qualifications, not refusals or corrected intervals: the estimate and interval are emitted unchanged. The measured flagged regimes show undercoverage, but this is not universal: correlated numerator and denominator can retain near-nominal coverage.

Recorded measurements and scope.

The check runs where its inputs are defined. `from_definitions`, `from_unit_day_artifact`,
`from_frame` summaries and panels and current `from_moments` cubes carry the third
moment through every partition merge (day slices, breakout cells) and reach the same
decision for the same units. A preceding-format moments cube or a format-1 raw-sum row
has no third moment: its ratio rows load, and every lift row estimated from them carries
`ratio_denominator_skew: unavailable` instead of a silent pass. A CUPED-adjusted ratio
row is checked on the unadjusted denominator; the adjusted denominator's third moment
and its calibration are not carried, so this raw-denominator diagnostic does not establish
whether adjustment changes the warning or the adjusted ratio interval's coverage.
Clustered ratio rows and sequential ratio rows carry neither note nor warning: the
region was measured for the single-look unit-grain interval, and a clustered
denominator is a cluster total whose skew/count regime was not measured. Ratio metrics
do not declare winsorization, so the two never meet.

Signed effects require a suitable scale and reference

Section titled “Signed effects require a suitable scale and reference”

Relative lift on the ordinary unclustered route is a log-scale ratio, so it needs arm means that are positive and well resolved. When they are not, run() still returns the row: the relative lift is unavailable, and the additive difference with its Welch t interval is the row’s result. r.relative_unavailable_reason names the cause:

  • "nonpositive_arm_mean": an arm mean is zero or negative, so the log ratio is undefined.
  • "delta_method_unreliable": an arm mean is close to zero relative to its standard error (a combined log-scale standard error of 0.5 or more), where the log-scale approximation no longer holds.
  • "zero_variance": one arm’s outcomes are constant, so the log scale has no uncertainty for that arm; the additive interval is the other arm’s one-sample t.

With no declared margin, the additive difference tested against zero decides the row: its p_value(), stat_sig() and family selection. A declared relative margin has no additive counterpart, so such a row stays a conservative non-rejection with p_value() 1.0. A declared prior marks only the posterior unavailable and leaves an otherwise estimable sampling row unchanged. When both arms are constant, neither scale has uncertainty: the cell has estimation.engine.lift_guard with reason "zero_variance", whether its means are positive, zero or negative. It remains an unavailable member of its family, counted as a non-rejection; it is not an additive row with an invented zero-standard-error test.

A ratio metric’s additive difference divides by the same denominator means as its log ratio, so it can replace a blocked log scale only when both arms resolve their denominator mean: a relative standard error sqrt(var_d / n) / d_bar of at most 0.15, the level above which the row carries the ratio_denominator_precision note. A scalar CUPED row divides by its CUPED-adjusted denominator means, so it is checked on those, with a standard error that includes that of the covariate mean pooled over both arms. Past the level, the cell fails with estimation.engine.lift_guard whichever of the three reasons blocked the log scale: the additive interval’s first-order approximation of the denominator fails along with the log scale’s.

For an adjusted effect or a signed relative set, use a route built for it: observational adjusted methods, encouragement LATE, switchback contrasts, sitewide impact, or the clustered unadjusted route’s signed joint-relative set. run(..., value_scale="absolute") is an observational selector, not a general randomized arm-lift option.

Statistical details: additive routes and the sitewide option

The additive interval uses each arm’s own standard error and size (a Welch-Satterthwaite t), so translating every outcome by a constant leaves it unchanged: control means of 0.1 and -0.05 on otherwise identical data give the same interval. Prior-free adjusted and clustered unadjusted routes preserve additive inference and signed joint-relative sets; a negative control mean is allowed there, and a zero one can leave no finite ratio point. Absolute-scale estimation is supported directly by observational adjusted methods, encouragement LATE, switchback contrasts, and sitewide impact APIs.

A randomized experiment is not shut out, though. sitewide() derives an additive effect directly from enrolled-arm moments, so it is a conditional randomized route for a signed quantity. It is conditional on where the analysis came from: a definitions-backed analysis carries the site-volume evidence it needs, and an artifact-backed one qualifies when the published artifact includes a site-volume evidence extension. It also has its own baseline requirements. Otherwise reach for one of the designs above, or compare a transformed quantity that stays positive.

Cluster references are qualified working approximations

Section titled “Cluster references are qualified working approximations”

Clustered intervals use t references with cluster-count degrees of freedom, and the observational cluster methods an asymptotic Normal reference; all are working approximations, not finite-sample guarantees. They weaken when clusters are few, unbalanced or skewed, or when one cluster dominates its arm’s variance, and neither a large row count nor crossing the 40-cluster warning threshold establishes otherwise. Inspect per-arm cluster counts and concentration; do not substitute row count for independent replication.

Concentrated cluster masses can bias the disjoint-arm variance estimate downward, and a t reference alone does not correct it.

Statistical details: cluster references by route

Disjoint unadjusted arms retain each arm’s cluster-ratio uncertainty. The relative Fieller set uses a fixed t reference with min(K_treatment - 1, K_control - 1) degrees of freedom; the additive interval separately uses Welch–Satterthwaite. Shared-arm dependence retains the complete response-corrected covariance. Observational IPTW/AIPW/DML use their joint influence-function covariance and an asymptotic Normal reference. Neither a Bessel multiplier nor a generic t choice establishes finite-sample validity for arbitrary small, unbalanced, or skewed clusters. Encouragement LATE and sitewide impacts retain their own component-based references. The cluster-asymptotic justification also needs no cluster to dominate its arm’s variance. Neither a large total row count nor crossing the 40-cluster warning threshold establishes that condition. Concentrated cluster masses can bias the disjoint-arm variance estimate downward; a t reference alone does not correct it.

Triggered daily and as-of readouts on clustered histories

Triggered daily/as-of values and outcome lifts are available for definitions and unit-day artifacts with explicit trigger evidence. Each unit enters on its first eligible trigger day, and outcome maturity is evaluated from that anchor. Triggered encouragement compliance is also available through a triggered daily or as-of lift view (View.daily(population="triggered") with run(..., estimands=("compliance",))): the cohort grows at each unit’s trigger date, while uptake windows remain anchored at assignment and obey their declared half-open window and completion rules. The compliance-only request reads trigger and uptake evidence without reducing outcomes. Clustered outcome histories still refuse with facade.analysis.clustered_day_axis; cluster-grain compliance histories use the declared cluster uptake sufficient state.

Statistical details: relative confidence-set geometry and non-positive arm means

relative_confidence_set preserves bounded, disconnected, one-sided, full-real, empty, or unavailable geometry. A zero control mean can leave a confidence set without a finite point. Numeric nulls are not infinities. A genuinely indefinite or unrepresentable joint covariance sets relative_unavailable_reason; additive output survives rather than being replaced by a clipped covariance or fabricated relative precision. Scalar posterior decision probabilities are not recovered from a joint frequentist set. A fixed-horizon mean row whose arm summaries block the log scale (relative_unavailable_reason is "nonpositive_arm_mean", "delta_method_unreliable" or "zero_variance"; see signed effects) has no relative interval; with no declared absolute margin its decision is the additive difference tested against zero under the reference its additive interval was cut from, so p_value(), stat_sig() and family selection read that scale. A declared relative margin also prevents this zero-reference fallback; in that case the row remains a conservative non-rejection. Without an additive interval, it likewise remains a conservative non-rejection. A directional row decided this way and selected by its family has that interval reissued centrally (each tail at half the family level), so it can show discovery=True beside stat_sig() False when its p-value lies between half the family level and the family level.

Covariate adjustment and transformed metrics

Section titled “Covariate adjustment and transformed metrics”

CUPED treats its adjustment coefficient as known

Section titled “CUPED treats its adjustment coefficient as known”

CUPED’s standard error treats the fitted coefficient as known, so the interval is slightly narrower than one holding the coefficient fixed: about 1.3–1.4% on the log scale at 20 units per arm, 0.5% at 50, 0.1% at 200 and negligible beyond. Coverage stayed within 93.4–95.3% at nominal 95% in the tested design (equal allocation, one homogeneous slope); unequal allocation and arm-specific slopes were not tested. Treat these figures as evidence for that design, not as a correction factor for your interval.

Recorded measurements and scope.

Mixed-covariate linear CUPED is fixed-horizon approximate

Section titled “Mixed-covariate linear CUPED is fixed-horizon approximate”

Method.cuped_multicovariate adjusts mean, conversion, and ratio metrics using a shared linear covariate fit, with HC2 uncertainty and a Bell–McCaffrey Student-t reference. Both the fitted slopes and pooled covariate anchor contribute to the uncertainty calculation. This fixed-horizon approximation does not provide finite-sample coverage. A covariate can improve or worsen precision; fit support is not a promise of a narrower interval.

The estimator is intentionally distinct from scalar CUPED, whose adjustment and Welch–Satterthwaite reference are unchanged. Do not transfer evidence between the two methods. The finite-sample behavior of mixed-covariate CUPED is not established by the derivation or the runtime’s M1 support region; campaign status is tracked separately in External validation coverage.

Percentile winsorization needs the cutoff above the zero atom, and its size route is provisional

Section titled “Percentile winsorization needs the cutoff above the zero atom, and its size route is provisional”

A percentile-winsorized mean needs its cutoff strictly above the pooled share of zeros: at or below it the request refuses (estimation.winsor.cutoff_in_zero_atom), and just above it the bootstrap interval can come back unavailable (bootstrap_replicate_failure). The rule that picks the bootstrap-t or the analytic interval (pooled-size-route-v1: the bootstrap below 20,000 pooled units or fewer than 100 expected units above the cutoff) is a provisional engineering choice; both constructions stay experimental and withhold decision evidence. The zero-inflated calibration across that routing boundary has not run; the 12 unresolved positive-only stress-grid rows do not establish it.

Statistical details: the zero atom and the size route

The pooled upper-percentile winsorized mean is defined for nonnegative outcomes with a mass at zero: a zero is an ordinary pool member for the cutoff, the clipped means and the cutoff indicator, and the arm-wise log-kernel pilot resamples each arm’s zeros with the same probability as any positive value. Two limits are inherent to that estimand, and one is a construction restriction. First, the percentile must sit strictly above the pooled zero share: at or below it the population cutoff is zero, every winsorized mean is identically zero and the relative contrast is undefined. The implemented guard is the empirical type-7 rule “the cutoff’s lower neighbour is a zero”, which also refuses the straddle case where the cutoff interpolates between zero and the smallest positive outcome: there the capped means are positive (each arm’s cutoff times its positive share), but the cutoff is an interpolation artefact below every positive outcome that no smooth-cutoff construction describes, so the request refuses (estimation.winsor.cutoff_in_zero_atom) rather than reporting such a contrast. Second, just above that boundary the sampling law of the cutoff has an atom at zero; the bootstrap reproduces it, each replicate whose resampled cutoff lands on a zero is a failed root, and the interval is reported unavailable (bootstrap_replicate_failure). The probability of such a replicate is the probability that the pooled zero count of the resample exceeds the cutoff rank, which falls below 1e-5 once (q - pi) N exceeds roughly 4.5 sqrt(N pi (1 - pi)) for pooled zero share pi.

The default pooled-size-route-v1 chooses between two constructions of the same estimand: the full-procedure bootstrap-t below 20,000 pooled units or fewer than 100 expected units above the cutoff, the analytic normal influence interval otherwise. The thresholds are a provisional engineering choice; the campaign that would calibrate both constructions on zero-inflated designs across that boundary (tracked as 1e0h) has not been executed, and the positive-only calibration record (12 alternative rows with clipped-variance failures, contamination width failures) carries over to both. Prototype evidence only (300 repetitions per design, zero-inflated lognormal arms): at 1,000 and 10,000 units per arm the two constructions produce intervals of the same width within 1% and the same coverage within Monte-Carlo resolution; at 200 units per arm neither is at nominal. The influence interval is a first-order normal approximation and omits the bootstrap-t refinement, which is why small pools keep the bootstrap. Both methods remain experimental and withhold decision evidence.

Conversion and retention arms: dense counts use the delta method, sparse counts are estimated exactly, not refused

Section titled “Conversion and retention arms: dense counts use the delta method, sparse counts are estimated exactly, not refused”

An unadjusted conversion or retention row takes one of two routes, picked from its four success and failure counts before any interval is computed and labelled on the row (reference_kind, shown as route): the delta-method route ("t") when every count is dense, and the exact finite-sample route ("binomial"), which handles every count, otherwise. Only finite-sample rows carry a finite-sample guarantee; the default conversion_inference="auto" is never a universally finite-sample route, and "finite_sample" forces the exact route where it exists. The exact route refuses, rather than degrading, above a billion units per arm or at an alpha below about 3.2e-8 (higher at very large arms), and its cost grows with arm size.

The finite-sample interval is wider than necessary: on the log scale it is about 1.07–1.45× the Katz (log-scale Wald) interval at 2,000–20,000 units per arm, and wider at smaller arms. At a 10% rate it covers 97.5% at 1,000 units per arm and an 8% lift (Katz 95.0%) with 1.36× Katz’s log width, and 99.5% at 200 units with no effect (Katz 95.6%), where its lower endpoint is a -100% lift for 43% of outcomes and its log width is otherwise 2.0× Katz’s. The gap comes from ordering candidates by the r = 1 difference for every candidate. A tighter candidate-ordered construction that removes the gap at exact coverage is being evaluated.

ObservationsPoint estimateConfidence set
Both arms have eventsEmpirical ratioFinite two-sided (or one-sided-plus-unbounded-ceiling) set
Treatment has zero eventsExactly -1 (total loss)Finite two-sided set, lower endpoint exactly -1
Control has zero eventsUnavailable (the empirical ratio’s denominator is zero)A typed, point-less confidence set: finite lower endpoint, genuinely unbounded ceiling
Both arms have zero eventsUnavailableThe full relative-lift support, [-1, +inf)

A row with no finite point still carries a typed binomial_set and answers stat_sig()/p_value() from it; a point-less row is never a failed one.

CUPED and unit-grain ratio-denominator conversion/retention retain their log-scale guards; their sufficient statistics are not raw Bernoulli count pairs. A clustered unadjusted arm instead uses joint relative inference, without the scalar log-SE admission rule. None of those approximate routes inherits finite-sample validity. The remaining scalar log-path refusal is:

log-scale relative-lift inference is undefined (zero events, or a signed metric
that needs an absolute-scale estimand)

Recorded measurements and scope.

Statistical details: route selection and labels

An unadjusted (no CUPED, no declared cluster), unit-grain conversion or retention arm pair has two routes, and a rule that reads only the four per-arm success and failure counts and the row’s own tail allocation (alpha / 2 per tail two-sided, alpha directional) picks one before any interval is computed. It never compares an interval or a p-value, it is the same whether or not the row belongs to a multiplicity family, and it labels the row (reference_kind; the repr and readout show it as route):

  • Delta-method route (reference_kind="t", scale="log", no binomial_set): the log risk ratio against a Welch-Satterthwaite t reference that every unadjusted mean uses, taken when the smallest of x_c, n_c - x_c, x_t and n_t - x_t is at least dense_min_count(tail). It has no arm-size ceiling and no log_se >= 0.5 risk (every count is at least 9 there, which keeps the combined log standard error below sqrt(2/9)), and it carries no finite-sample guarantee.
  • Finite-sample route (reference_kind="binomial", scale="linear", a binomial_set): an exact independent-binomial risk-ratio method (Berger-Boos restricted-nuisance test inversion; see helper:increment/estimation/binomial_rr.py) for every other count pair. It handles every event count directly, with no admission rule and no continuity correction, and only these rows carry the finite-sample guarantee. The hybrid default is never a universally finite-sample route.

Method.conversion_inference selects: "auto" (the default, on Method, MethodSpec and the wire format) routes by counts, and "finite_sample" always takes the finite-sample route (refused by code, estimation.binomial.finite_sample_unavailable, with an informative prior, clustered units, sequential inference or an observational adjustment; and on a metric that is not a conversion or retention rate or on a CUPED-adjusted method, with conversion_inference.finite_sample.metric_type and conversion_inference.finite_sample.cuped, the one code per hazard whether a definition, a frame metric, a method or a plan carries it). There is no forced delta-method value and no analysis-wide knob.

Statistical details: multiplicity families and the composite p-value

A multiplicity family (a BH secondary family, a breakout view under BH view_multiplicity, select_exploratory_family) reads a member’s p-value at levels below the row’s own, as low as q / m, where the delta p-value is not validated. The member is still routed and cut at its own level; what changes is its p-value. Every delta-method conversion row persists its four counts (delta_evidence) with U, the smallest level at which those counts are dense (dense_level, the count rule inverted float by float against itself; 0.0 for counts dense at every representable level). A row no family reads — a sole primary, a guardrail, a sensitivity method’s row, a breakout cell under correction="none" or "bonferroni" — keeps its delta p-value. A family member’s decision row (delta_evidence.composite) reports the composite p* = p_delta when p_delta >= U, otherwise min(p_exact, U), where p_exact is the finite-sample route’s p-value against the row’s null read at the row’s nominal tail with its nominal nuisance budget (escalated_p_value); select_exploratory_family reads the same composite on demand from the persisted counts of the uncorrected rows it is given, so it and a BH breakout view select on identical evidence. Read at any level u, p* <= u only where the pipeline routed by counts at u rejects: by the delta row at u on counts dense at u (where {p* <= u} equals {p_delta <= u}), by the finite-sample test at u elsewhere, up to an exact float tie and the certification gap between the nominal reading of the exact p-value and a finer one (both measured zero on the lattice; calibration.conversion_route composite). The composite is a valid p-value at every level u with a tail in (0, 1/2), including levels above the row’s own alpha, and p* <= alpha agrees with the row’s own interval. A row whose p_delta lies below U carries a note: conversion p-value escalated to the exact p-value when p* = p_exact, or conversion p-value capped at its dense level when p* = U — because the exact p-value is not below U, because U is within the nuisance budget (no exact p-value falls below it, so none is read), or because the exact route is unavailable (an arm above its ceiling, a tail its float margin dominates; the refusal code is persisted as exact_unavailable). A capped p* is not a tail probability but is valid: the row rejects nowhere below U, and at U and above only where its delta p-value does; it can lie below the nuisance budget 1e-6 that bounds every exact p-value. A row persisted before the counts existed restores as a plain Wald row whose p-value is the delta p-value at every level; a family that corrects such a row below U reads an unvalidated delta p-value there. When counts are present, the persisted U is checked against the rule using a relative consistency tolerance: floating-point noise across builds is accepted, while material mismatches (including replacing a positive threshold with zero) are refused.

A selected member is reissued at min(R q / m, alpha) by its counts at that level with no family floor: the delta interval where they are dense there, the exact binomial set from the counts where they are not (its label changes to binomial and its p-value is then the exact p-value read at that level). Discovery agrees with the reissued interval excluding the null on both sides of U, with two residuals: an exact float tie p* = R q / m (selection compares with <=, the interval with <), and a corrected level below 3.2e-5, where the reissue’s nuisance budget is smaller than the nominal one and the two certified bounds are not ordered; the nominal-alpha cap (stat_sig() False with discovery=True) is unchanged. A stored plan or wire payload written before the field existed decodes each method to the route it ran under: "finite_sample" for a prior-free, fixed-horizon method on a conversion or retention metric, whatever its Method.name label, unless it is CUPED or an observational estimator; "auto" for every other method.

Recorded measurements and scope.

Statistical details: encouragement designs, point-less rows and fixed-horizon scope

An Encouragement design’s ITT on a conversion metric takes the same routes (ITT and LATE readouts of a retention metric under an Encouragement design are refused with readout.encouragement.retention; a compliance-only request, estimands=("compliance",), ignores the retention outcome and is measured to succeed on from_definitions only, see the capabilities table): the design’s uptake (first-stage compliance) moments are a different random variable over the same units and do not change the ITT’s own sufficient statistics, so they are stripped before either route reads the arm rather than disqualifying it. Triggered compliance is supported on the daily and as-of lift axes for definitions and unit-day artifacts when explicit trigger evidence is present. Each day includes units whose first eligible trigger is observed by that date; uptake windows and completion remain anchored at assignment. Other ingresses are source-limited because they cannot reconstruct trigger membership.

A row with no finite point (LiftEstimate.lift is None) still carries a typed LiftEstimate.binomial_set (a BinomialConfidenceSet: sufficient counts, the frozen nuisance budget, and finite/unbounded endpoints on the relative-lift scale) and answers stat_sig()/p_value() exactly from it — point availability, confidence-set availability, and reportability are three distinct, independently tracked properties; a point-less row is never a failed one. An unbounded ceiling is represented as upper=None on the set, never as a serialized infinity.

Both routes are fixed-horizon: neither proves validity under optional stopping or repeated peeking (see the sequential-inference limitations elsewhere on this page for that separate guarantee). Under conversion_inference="auto", an informative prior leaves sparse counts on the exact binomial sampling route; dense counts use sampling inference with the delta-method Welch-Satterthwaite t reference. The separate working-model posterior remains subject to its own log-mean/SE guards and can be unavailable while exact sampling inference is valid; see binary posterior availability. A registered sequential specification instead uses its declared raw-observation likelihood and matching sequential inversion, subject to the registered sampling and finalized-window contract.

Statistical details: the three finite-sample boundaries (arm size, latency, extreme alpha)

The finite-sample route also has three boundaries, each a refusal rather than silent degradation (dense counts under auto meet none of them):

  • Arm size. Each arm is capped at binomial_rr.FINITE_SAMPLE_MAX_ARM_SIZE (1,000,000,000; it replaces binomial_rr.MAX_ARM_SIZE, which capped arms at 4,000,000 and is removed without an alias — code that imported the old name imports the new one and gets the new cap). This is a compute-resource applicability boundary, not a statistical one: a call with either arm above the cap refuses immediately (estimation.binomial.finite_sample_arm_ceiling_exceeded, the cap in max_arm_size; it replaces the retired estimation.binomial.arm_too_large_for_exact_enumeration, which increment.errors.RETIRED_CODES maps to it; a dense cell runs at any size under auto) rather than running a search whose cost keeps growing with the arm. The cap is the largest arm the numerical safeguards were validated at against an independent decimal oracle (helper:calibration/binomial_oracle.py, run by helper:scripts/measure_binomial_ceiling.py ulp and recovery at 4,000,000, 16,000,000, 64,000,000, 100,000,000 and 1,000,000,000 per arm): the SciPy binomial primitives’ error allowance (the worst relative error of a pmf, cdf or sf that bears weight, as a share of n units of 2^-52, was 0.198, 0.245, 0.212, 0.236 and 0.226 at those sizes, against an allowance of one), the Clopper-Pearson enclosure, the support window’s omitted mass (each held at every size), and exact-count transport from the DuckDB producer: the integer successes it exports is the count the route uses, and the float first and second moments only validate it, the Bernoulli second-moment check scaling with n. The producer’s counts passed that validation at every size and rate measured (0.5, 0.002, 1e-4 and a single success), the second-moment error reaching at most 0.24 of the check’s rounding bound (2,442 times variance_slack at a billion units), and a constant-0.5 arm, which carries no integer count, was refused at every size. Count thresholds are computed in exact integers, which a float quotient cannot keep above about 67,000,000 per arm. The error allowance is derived for the stated SciPy/Boost model and measured against a decimal oracle on arm64 with fused multiply-subtract; it is not a uniform proof across library or compiler builds. The x86 build has not been run, which remains a verification gap, not a reproduced failure.

  • Latency. Cost grows with arm size. Cold CPU seconds and peak resident set of one two-sided alpha=0.05 confidence_interval with the treatment count at a risk ratio of 1.02 of the control rate, measured on an Apple M3 Pro with scripts/measure_binomial_ceiling.py latency (commits d9b136b to 2cad484, none touching the estimation code; wall time depends on machine load):

    Units per arm5% control rate1e-450%
    4,000,0005.16 s / 178 MiB0.07 s / 122 MiB13.7 s / 207 MiB
    16,000,00010.8 s / 198 MiB0.227 s / 128 MiB44.2 s / 237 MiB
    64,000,00044.5 s / 228 MiB0.731 s / 148 MiB159 s / 242 MiB
    100,000,00082.3 s / 222 MiB1.21 s / 150 MiB179 s / 415 MiB
    1,000,000,000234 s / 336 MiB2.92 s / 165 MiB787 s / 424 MiB

    The cost follows the control-count window, which follows the nuisance rate, so a rare rate is cheap at any size and the window is widest at a 50% control rate. Each p-value bounds a supremum over the control rate’s Clopper-Pearson interval. The search splits that interval until the bound’s distance above a witnessed lower end of the supremum is within 2^-14 of the larger of the p-value and the tail level it is compared with, plus the certificate’s own float noise (2.9e-12 at 1,000 per arm, 8.9e-10 at 1,000,000, 3.6e-9 at 4,000,000, 8.9e-8 at 100,000,000 and 8.9e-7 at 1,000,000,000, which no search narrows), or after 2,048 splits. The reported p-value is therefore a certified upper bound that exceeds the supremum-based p-value by no more than that gap: 2^-14 of the p-value above the tail level and 2^-14 of the tail level below it, plus the noise. For one tail at a billion units per arm that is at most 2.4e-6 at a 0.025 tail (1.5e-6 plus 8.9e-7) and 1.5e-6 at a 0.01 tail (6.1e-7 plus 8.9e-7); at 1,000 units the noise is negligible and it is 1.5e-6 and 6.1e-7. A two-sided p-value is twice the smaller certified tail, so its gap is twice those. The target is never tighter than a fixed 1e-6 stop at a tail level of 0.0164 or more. A certificate whose bounds still straddle the tail level is conservatively non-rejecting; a certified upper bound below the tail rejects even within the declared gap. The endpoint search only compares p-values with the tail level, so each probe also stops once that comparison is certified either way. A search the cap ends is not an error: its p-value stays a valid, conservative bound, and the row’s note says how many probes ended so and the largest gap they left, in units of the p-value the row reports (twice a directional gap on a two-sided row). No tolerance beyond that disclosure is promised. Every BinomialConfidenceSet records binomial_bb_difference_v3: its Clopper–Pearson widening is relative to the smaller endpoint/complement, its numerical allowance scales with arm size, and its lattice thresholds use integer arithmetic. A row persisted under v1 (the absolute-gap stop), v2 (the earlier nuisance envelope), another construction, or no construction is refused when read (estimation.results.binomial.obsolete_construction), rather than combining its endpoints with a verdict recomputed by a different rule. Re-run the analysis to cut it again. Each endpoint is the outer end of a search bracket no wider than 0.05% (2^-11) and no wider than 1/128 of the log risk ratio’s standard error, whichever is finer, so the search works harder as arms grow and the standard error shrinks. The stop is the resolution of the evaluated tail envelope only, not a bound on SciPy’s primitive error; a search that cannot reach it keeps its conservative endpoint and says so in the row’s note. The process caches up to 24 MiB of control and 24 MiB of treatment tail vectors between searches. A readout multiplies this across metrics, arms, and breakout cells. Only sparse counts, or an explicit conversion_inference="finite_sample", take this route. A further large speedup would need a genuinely different tail-evaluation construction (a closed-form or recurrence update between adjacent risk-ratio candidates); none is implemented today. Reduce the number of eligible contrasts in a single call (narrow metrics=, run large-arm breakouts separately) if latency matters more than exactness at your arm sizes. FCR-selected rows refresh this disclosure for the returned interval; an obsolete nominal disclosure is removed while unrelated notes are retained.

  • Extreme alpha. Two floors bound the tail level. The frozen nuisance tail budget passed to the Clopper-Pearson endpoint solver is min(1e-6, alpha / 32); below 1e-9 (i.e. alpha < 3.2e-8), SciPy’s iterative beta-quantile solver has demonstrated large relative error against an exact oracle for small n in the validated regime, so the endpoint is refused (estimation.binomial.tail_unrepresentable) rather than certified outside that regime. And every certified tail carries a float margin that grows with the arms, (A(n_c) + A(n_t) + m) * 2^-52 with A(n) = max(2048, n) (SciPy’s binomial primitives were measured against an exact decimal oracle to a billion trials, where their relative error stays within a quarter of n units of 2^-52): once it reaches what the tail level leaves after the nuisance budget (alpha / 2 - min(1e-6, alpha / 32) two-sided, alpha - min(1e-6, alpha / 32) one-sided) no p-value read from an evaluated tail can be certified below the tail, and the call refuses with the same code (context alpha, margin, n_c, n_t) instead of returning a set that extends to wherever the structure alone stops it. The one exception is a null the structure alone rejects: a two-sided or “less” test of a null ratio above 1 / a, a the control arm’s Clopper-Pearson lower bound at the nuisance budget, has an empty nuisance domain, so its p-value is the budget itself (doubled two-sided) with no tail evaluated, and the upper endpoint is the first candidate above 1 / a, which the control arm certifies by itself; that call is answered, the lower endpoint at zero. Persisted rows retain that guard: stat_sig()/p_value() and table adapters refuse a non-structural null with the same code and context as fresh inference, rather than reporting a margin-floored non-rejection. For equal arms the two-sided threshold is about 3.8e-9 at 4,000,000 per arm, 9.5e-8 at 100,000,000 and 9.5e-7 at 1,000,000,000 (one-sided, about half of that); it passes the 3.2e-8 solver floor at about 34,000,000 per arm, so below that size the solver floor binds. The margin is absent from ordinary levels. Its effect depends on its ratio to the tail level, so it was measured on the production search at 10,000 units per arm with the margin set to the ratio a billion-unit arm has (it was not run at a billion): at alpha >= 1e-4 it does not move an interval, at 1e-5 it widens it by about 1%, and from about 3e-6 it degrades it (+2%, then +43% at 1.5e-6). Planning mirrors both floors: a tail level they refuse leaves the runtime deciding no count pair, so it has no power to plan and is refused, not planned as zero. Under a dominating margin the runtime decides only the count pairs whose control count rejects the null on its Clopper-Pearson bound alone, and refuses the rest; a finite_sample plan whose control window at the baseline rate holds a refused count is refused too, and an auto plan whose refused pairs carry more than half of 1e-6, never planned with those pairs as non-rejections. achieved_power, minimum_detectable_effect and each power_curve row refuse it with power.binomial_tail_level_unrepresentable (context alpha, beta, tail_alpha, margin, n_c, n_t, p_c, decided_from — the smallest control count the runtime decides, None when it decides none — solver_floor, cause, solver_floor or float_margin, and scope, requested) and an arm above the ceiling with power.binomial_arm_ceiling_exceeded (context n_c, n_t, max_arm_size), before any replay. required_sample_size searches only sizes whose decision reads the treatment arm: one the margin dominates even at the smallest design is refused before searching, with power.binomial_tail_level_unrepresentable (scope smallest); a float margin that starts dominating only at larger arms ends the search at that size with power.binomial_size_search_unreachable (context power, maximum_power, n_per_arm, max_arm_size). An allocation so lopsided that the smallest design has an arm above the arm ceiling is refused with power.binomial_arm_ceiling_below_smallest_design. There is no finite-sample route at a smaller alpha; use a larger alpha, or conversion_inference="auto", which takes the delta-method route at counts dense for the tail and has neither floor.

Statistical details: planning on the binomial routes

For these fixed-horizon binomial plans, public power is the computed rejection mass when the enclosure resolves to maximum absolute error at most 1e-6; otherwise it is the enclosure’s conservative lower endpoint. Both statements are conditional on the deployed SciPy/Boost special-function error model; this is not a cross-build floating-point proof. The dense closed-form route instead reports its model’s point probability; its validation tolerance remains 0.005, not a universal bound or finite-sample calibration guarantee. Binomial MDE searches detectable regions to 1e-8 absolute plus 1e-8 relative tolerance on the relative-effect scale, not the first IEEE-representable effect or a global minimum. A band whose resolved ends fall short refuses; a band whose ends straddle the target may be passed over without interior probes. Its interior can already certify the target under the same budgets, so a returned effect certifies only its own target, not exclusion of all earlier effects. Unresolved MDE searches refuse with power.minimum_detectable_effect.numerical_resolution, or leave a companion MDE unavailable with mde_unavailable_reason="numerical_resolution". The reported power is evaluated at the returned effect. Internal accuracy bounds address numerical evaluation, not model misspecification; calibration remains a separate, deferred diagnostic. The planning model is hybrid_finite_plus_delta_v3, and persisted v1/v2 plans require recomputation. A v3 result saved before power_lower/power_upper existed was sized by its computed point and carries no enclosure; recompute it for the lower-bound certificate. See power planning for replay limits and comparisons with other tests.

A quantile’s reported interval depends on the alpha you asked for

Section titled “A quantile’s reported interval depends on the alpha you asked for”

A quantile’s standard error and interval are built at the alpha you asked for, so the same data give a different interval under a different alpha, which is what a multiplicity allocation does. The p-value is computed once from the data by inverting the same construction and does not move with the allocation.

Quantile standard errors and reported intervals from analyses that allocated different alpha are not on the same scale. Compare their p-values instead.

Statistical details: the order-statistic bracket and its p-value

The quantile standard error is derived from an order-statistic bracket evaluated at the caller’s alpha, then divided by the corresponding normal critical value. Change the alpha — which multiplicity allocation does — and the same data and the same quantile yield a different standard error and a different reported interval. This is necessary, not a defect: the bracket must be built at the caller’s own alpha for the reported interval to cover at that alpha; a fixed-reference-alpha SE, rescaled to other alphas, was measured to fail coverage on the same grid that validates this construction.

The p-value used to decide significance does not share this dependence: it is computed once, by inverting this same construction (the smallest alpha at which the construction’s own interval excludes the null), so it is a function of the data alone and does not move when a multiplicity allocation changes the alpha assigned to the row. Do not compare quantile standard errors or reported intervals across analyses that allocated different alpha budgets — they are not on the same scale — but the p-value is comparable across them. Fixed-horizon family selection uses that same inversion rather than reconstructing a p-value from the alpha-dependent standard error. A null that is never excluded has p-value exactly one, so every admissible family threshold leaves it unselected.

The switchback t reference is itself an approximation

Section titled “The switchback t reference is itself an approximation”

The default switchback reference, UnitCycleTApproximation, is a t test on the sample variance of the per-unit contributions. It is an approximation, and the declared floor admits as few as two units, where it is weakest. A prospective UnitCycleVarianceEnvelope gives a finite-sample bound instead, but only under a residual-variance assumption you justify externally; a fitted pilot variance is not a valid envelope. Shared schedules use a block-t reference over at least two blocks.

Coverage degrades with few units, an assignment probability far from 0.5, and skewed, heteroskedastic or high-leverage outcomes; the asymmetric/skew calibration includes a small-N counterexample to nominal coverage. Adding roster units to a shared schedule does not add replication.

Statistical details: the unit-cycle t reference

Independent unit-cycle orders use UnitCycleTApproximation() by default (equivalent to passing it) unless a valid prospective UnitCycleVarianceEnvelope is supplied; the shared-block reference is separate. Both use the independent contributions’ sample variance. That is not a claim of finite-sample coverage, and the approximation is not confined to discrete outcomes.

Under independent unit-cycle orders, each mean-outcome contribution is inverse-probability weighted, so it takes one of only two values, and those two are asymmetric whenever the declared CT/TC probability is not 0.5. The per-unit deltas are means of such contributions, so the t reference relies on those means being approximately Normal — a condition that is not among the contract’s declared assumptions, which name only no_residual_carryover_after_discarded_steps and independent_units. Coverage therefore degrades with few units, with an assignment probability far from 0.5, and with skewed, heteroskedastic, or high-leverage outcomes, and the declared floor admits as few as two units — the regime where the approximation is weakest. The asymmetric/skew calibration includes a small-N counterexample to nominal coverage. Unit-cycle variance envelopes instead give a finite-sample bound under the declared prospective residual-variance assumption, including at one unit. That assumption must be justified externally; a fitted pilot variance is not a valid envelope. Shared schedules instead apply switchback_block_t with a block_t reference to block contributions; their floor is two independent blocks, even with a one-unit roster. More roster units do not increase the replication count or establish finite-sample coverage.

Switchback carryover is assumed away, not tested

Section titled “Switchback carryover is assumed away, not tested”

You declare the washout window and a SwitchbackWindow.carryover_order; the retained window starts at washout_steps + carryover_order. Declaring an order records the assumption precisely, and nothing verifies that it was long enough.

If carryover remains past the retained window’s start, the contrast can be biased and the interval need not cover. The library validates the logged schedule; it cannot establish that the scheduler was random or that carryover has vanished.

Statistical details: the carryover declaration

The switchback contract’s identifying assumption is no_residual_carryover_after_discarded_steps. You declare a washout window, and a SwitchbackWindow.carryover_order (validated 0 <= carryover_order < observation_steps, default 0) names how many additional post-washout steps are still assumed contaminated. The retained window is step >= washout_steps + carryover_order, of length observation_steps - carryover_order. Declaring a nonzero order records the assumption precisely and is applied by from_switchback_frame’s runtime reduction; it does not prove that carryover has vanished.

Nothing verifies that washout_steps + carryover_order was long enough. The library validates the logged schedule, but cannot establish that the scheduler was random or that carryover has actually vanished by the retained window’s start. If residual carryover remains past that point, the contrast can be biased and the interval need not cover.

from_switchback_frame retains step >= washout_steps + carryover_order for declared orders 0, 1, and 2 (whenever enough observation steps remain) under both IndependentBernoulliOrder and SharedScheduleOrder; declaring an order only records the assumption; nothing here proves carryover actually vanished by that point.

Switchback inference requires independent units or blocks

Section titled “Switchback inference requires independent units or blocks”

The unit-cycle estimator assumes units are independent of each other and that each unit’s order was drawn independently; a shared seed, a balanced or stratified schedule, or interference between units breaks that, and the direction of the error is not characterized. A shared schedule is declared with SharedScheduleOrder and analysed at the block grain, where the block is the replicate and cloning the roster changes nothing.

The schedule integrity check refuses an implausibly lopsided realized split (source.frame.switchback.schedule, reason implausible_realized_split); it cannot establish independent randomization or absence of carryover. Interference biases the point estimate and can make the interval anticonservative as well.

Statistical details: correlated schedules, shared shocks, interference and shared-schedule blocks

Under independent unit-cycle orders, the estimator averages all cycles within a labelled unit and applies a t test with n_units - 1 degrees of freedom. This accommodates arbitrary serial correlation within a unit, which is the point of the design. It assumes the units are independent of each other, and that each unit’s order was drawn independently.

Several common patterns bear on that assumption. What each one does to the reported interval depends on the randomization law and on which target you are inferring about, and none of it is characterized here:

  • Correlated schedules. If unit orders are not drawn independently — a shared seed, or a balanced or stratified schedule — independent-unit inference is not valid. The direction of the error depends on both the randomization law and how units’ potential outcomes respond to order, not the law alone: when units respond to order in the same direction, shared orders tend to induce positive covariance between contributions and balanced schedules tend to induce negative covariance (leaving the independent-unit standard error conservative); when units respond to order in opposite directions, these signs can reverse.
  • Shared time shocks. Conditional on the outcomes actually realized, an additive shock shared across units does not couple contributions, because the only randomness is each unit’s independent order draw. Whether such a shock matters for a target beyond the periods you ran depends on the mechanism: what makes that broader target random is a treatment effect that varies with the shock, not the shock level on its own. The library does not state which target it addresses.
  • Interference. If one unit’s assignment changes another unit’s outcome, the estimator is no longer targeting the intended contrast, so the point estimate can be biased. This is fundamentally an identification failure, and there is no exposure-mapping facility to address it — but because one unit’s outcome now depends on another unit’s assignment, it can also couple unit contributions and invalidate the independent-unit standard error, so the reported interval is not reliably conservative either.
  • Geographic or network correlation of outcomes, without interference. Nearby units having similar outcomes is not the same as one unit affecting another. On its own it does not bias the point estimate; as with a shared shock, whether it matters depends on the target.

A SharedScheduleOrder sequence declares a coarser randomization: one shared Bernoulli CT/TC order per two-period block, drawn once for a fixed, complete unit roster rather than independently per unit. from_switchback_frame reduces it with a block-level Student-t reference (n_blocks - 1 degrees of freedom): the independent replicate is the block, not the roster unit, so a uniformly cloned roster changes neither the estimate nor its width.

Both laws target the mean-unit retained-window additive effect. Results record observation_steps and retained_steps=observation_steps-carryover_order; the total/conversion estimand labels explicitly name that retained window.

A schedule integrity check cannot establish either independent randomization or absence of carryover. Under a unit-cycle declaration, a realized schedule too lopsided to be plausible (for example 320 CT and 0 TC unit-cycle draws) refuses before statistics are constructed with source.frame.switchback.schedule and reason implausible_realized_split. Correctly declared, nondegenerate shared schedules are supported.

Sequential information fractions are unit counts, not Fisher information

Section titled “Sequential information fractions are unit counts, not Fisher information”

Alpha-spending boundaries take the analysed-unit fraction of the planned maximum as the information fraction. Under drifting allocation or drifting variance the spending schedule is mis-timed and can over- or under-spend error.

Statistical details: when unit counts equal information

Alpha-spending boundaries are computed at information fractions taken as cumulative analyzed-unit fractions of the planned maximum. That equals the true information fraction only when information is proportional to analyzed count: stable allocation, stable variance, comparable independent increments.

Under drifting allocation or drifting variance the spending schedule is mis-timed, which can over- or under-spend error — in exactly the non-stationary conditions that motivate continuous monitoring in the first place.

The sequential certification campaign has not been executed

Section titled “The sequential certification campaign has not been executed”

The Bernoulli likelihood route has a finite-sample anytime-valid derivation under its registered assumptions; the full empirical campaign that would verify the deployed implementation over its registered manifest has not been run. Continuous-mean, adjusted-mean and ratio sequential routes carry asymptotic qualifications only. Release review uses bounded checks instead; their record is under Unvalidated regimes.

Recorded measurements and scope.

Stopping-date guarantees require the registered reveal contract

Section titled “Stopping-date guarantees require the registered reveal contract”

Sequential guarantees hold under the registered reveal contract: explicit finalized capture, every relevant metric revealed together after its longest window in outcome-independent unit order, and no corrections during continuation. The discovery set is guaranteed for the current date only.

Statistical details: the reveal contract and the likelihood routes

Native, frame-panel and artifact monitoring require explicit finalized capture. All relevant metrics must be revealed together after their longest required window, in outcome-independent unit order. Previously finalized values and assignments cannot be corrected during continuation. A changed generation or freshness hash is insufficient proof of append. Current as-of readouts expose the retained labeled checkpoint; historical curves require retained per-date checkpoints.

The finite-sample public route uses raw Bernoulli/Beta likelihoods and matching inversion. The public mean, adjusted-mean and ratio routes instead provide asymptotic confidence sequences and family approximations; estimated variance does not preserve the exact e-value martingale argument. Scalar Gaussian NIG and paired-Gaussian NIW kernels are private research diagnostics and do not produce public anytime-valid evidence or decision rows. The filtration qualification is the declared common, outcome-independent joint-unit reveal order; a timestamp or observed mean does not establish it. Primary references are Ville’s maximal inequality and Howard et al.’s time-uniform concentration framework. The bounded release evidence review is separate from these mathematical claims; the full sequential research matrix remains uncertified.

Arm power planning depends on declared alternative-arm variance shapes

Section titled “Arm power planning depends on declared alternative-arm variance shapes”

Mean-like metrics are planned with equal absolute variance in the two arms; conversion and retention metrics planned on the asymptotic route rescale the control variance by the Bernoulli shape at the alternative rate. These are declared planning assumptions (power_basis="asymptotic"), not guarantees that future data will follow either shape.

Statistical details: the alternative-arm variance rule

The three arm solvers evaluate the treatment and control terms at their own means under the alternative. Starting from the control-arm effective variance v, mean-like metrics assume equal absolute variance in the two arms (v_treatment = v). Conversion and retention metrics that the runtime does not decide with the finite-sample binomial test (CUPED, clustered, absorbed-factor, sequential, and counts the runtime takes the delta-method route at) instead rescale v by the Bernoulli shape at the alternative rate: v_treatment = v * p_treatment * (1 - p_treatment) / (p_control * (1 - p_control)). These are explicit planning assumptions (power_basis="asymptotic"). They do not guarantee that a future data-generating process has either variance shape.

Conversion planning follows the runtime’s route; the finite-sample replay is bounded

Section titled “Conversion planning follows the runtime’s route; the finite-sample replay is bounded”

Conversion and retention plans mirror the runtime’s count rule: the delta-method decision where the counts are dense and a replay of the finite-sample test elsewhere, summed over the count lattice. Public power is that computed value when its numerical enclosure is within 1e-6 (power_basis="exact") and the enclosure’s lower end otherwise ("lower_bound"), never a midpoint; sufficiently dense auto plans use the closed-form model instead ("asymptotic", measured agreement 0.005). The replay is bounded, so an explicit finite_sample plan refuses (power.binomial_replay_bound_exceeded) at roughly a million units per arm at a 5% baseline and 190,000 at 50%, while a dense auto plan has no such bound.

Sizing returns a verified bracket crossing, not a proven global minimum, and a lower-bound enclosure sizes conservatively (a few units per arm for the standard 10% baseline, 10% lift plan). At a fixed size a target power can be genuinely unattainable: the companion mde_relative is then null with mde_unavailable_reason unattainable, unrepresentable or numerical_resolution.

Statistical details: the hybrid planner and its enclosure

Unadjusted, unclustered, fixed-horizon conversion and retention plans mirror the runtime’s count rule. A count pair is decided by the delta method when its four per-arm success and failure counts are all at least m = dense_min_count for the plan’s tail allocation and by the finite-sample test otherwise, so a plan’s power is the rejection probability of that union over the count lattice: the production delta decision on the routed rectangle plus the replayed finite-sample decision on the rest (power_basis="exact" or "lower_bound"). Public power is the computed rejection mass when its internal enclosure establishes absolute error at most 1e-6, and the enclosure’s lower end otherwise, both conditional on the deployed SciPy/Boost special-function error model; this is not a cross-build floating-point proof. It is neither route’s power: a plan whose counts straddle the threshold is not the smaller of the two. A plan whose counts are dense with probability at least 1 - 1e-6 (P(m <= X <= n - m) per arm, the arms independent) is enumerated while its lattice has at most 100,000 cells (a cost limit, the same for every design), retaining any undecided finite-route mass in the upper bound. Larger dense lattices use the closed-form model above (power_basis="asymptotic", no replay, no cell budget, no arm ceiling, so a dense plan above a billion units per arm is planned). Its figures have the measured 0.005 agreement criterion, not a runtime lower-bound guarantee. A decision the runtime refuses in full on the finite-sample route (a tail level its margin dominates, an arm above its ceiling) is refused for a plan that keeps more than half of 1e-6 of its counts there, never reported as zero power; under a dominating margin the finite-sample route still decides the count pairs whose control count alone rejects a shifted null (see Extreme alpha), and a plan is refused only when the counts it keeps on that route below that control count carry more than half of 1e-6, the context’s decided_from naming the count. A minimum detectable effect whose whole path from the null is closed-form is solved without a lattice. Every enumerated plan is subject to the cell bound below, including sparse and borderline auto plans. conversion_inference="finite_sample" always uses enumeration; sufficiently dense auto plans can instead use the closed-form route.

For these eligible dense rows, the runtime reconstructs Bernoulli moments from the validated integer counts before computing the delta interval. Accepted producer-rounding differences therefore cannot change the decision for identical counts. Other metrics and adjusted conversion rows continue to use their supplied moments.

Recorded measurements and scope.

Statistical details: decision budgets, the effect search and MDE resolution

A plan not evaluated in closed form integrates the count lattice with a bounded decision budget. Evaluated pairs use the runtime’s delta-method calculation on the routed rectangle and the finite-sample replay elsewhere. Each evaluation selects at most 100,000 routed pairs and 150,000 finite-sample directional pairs from its own count windows, prioritising heavier cells and retaining unprocessed probability in the upper bound. Selection depends on the request, not cached decisions: shared, repeated and fresh evaluations report the same enclosure. An enumeration that establishes maximum point error at most 1e-6, conditional on the deployed SciPy/Boost special-function error model, publishes its point (power_basis="exact"); one that cannot publishes the enclosure’s lower end as power (power_basis="lower_bound"), with both ends in power_lower and power_upper, and never a midpoint or a substitute approximation. A size or effect reaches a target only when the lower end does, so a wide enclosure sizes conservatively: the standard 10% baseline, 10% relative lift conversion plan is sized with an enclosure about 3e-4 wide, a few units per arm above where its point crosses. A sizing search that reaches its ceiling with an enclosure holding the target refuses the probability there as unresolved (power.binomial_probability_unresolved, with the enclosure and the size reached), as does the explicit point request of a diagnostic enclosure; a ceiling whose upper end falls short refuses with the replay-bound or size-limit code naming its lower end. The Normal-tail replay only proposes sizes; it pays the same replay budget over the same cells as the runtime’s replay, so its proposal tracks the lower end the search decides from, and the final search steps from the proposal by the slope that replay measured (the standard 10% baseline, 10% lift plan is then decided by two runtime replays, the proposal and its predecessor).

On a loaded 12-core Apple machine, evaluating a dense 62,500-cell plan (1,236 per arm) with the runtime calculation took 10 to 20 seconds. Public calls that also search for an effect require further evaluations. Broader calibration certification of this implementation is pending; the saved campaign results describe the interim planner.

Each evaluated finite-sample pair uses its own replay or a root exit settled by the replay’s first step; no pair inherits a neighbour’s decision, because the runtime’s stopped search need not be monotone in a count. Sizing returns a verified bracket crossing, not a proven global minimum.

An effect search bisects from the null toward the far end of the admissible effects. The far endpoint of each interval it forms is reserved when the interval is formed (its refusals and the cell bound are charged then) and replayed only once something reads it: its power (an interval narrow enough that its curvature term is below one reads both endpoint powers before it is bounded; a narrow interval at the tolerance; the unattainable report), or an interval bound whose value its cells could change. A bound decides of those cells only the ones it could depend on: deciding a cell only moves a control row’s first plus rejection up and its last minus rejection down, so where the row’s bound at the two extremes of that box agrees it is fixed, and only the other rows’ reserved cells inside the bound’s frame are decided. The far end of the admissible effects and the far endpoints of the wide intervals above the answer are never replayed; an endpoint a curvature term reads is, even when the answer then lands below it. The intervals formed, the bounds read and the answer are those of replaying every endpoint when it is formed. The solves of one design (a supplied effect, its companion search, a curve’s rows at one size) share the count-pair decisions any of them made, each decision the runtime’s own; a search’s bounds still read only the cells that search decided, so its stopping point is the same on a fresh geometry. The cost measurements record what that saves.

The internal numerical enclosure accounts for the runtime’s SciPy allowance, summation error, omitted support and unresolved decisions, conditional on the stated SciPy/Boost special-function error model. It is not a uniform proof across builds. Public solvers compare the enclosure’s lower endpoint with the target, not the computed point power. The closed-form route reports its own model probability; its dense agreement criterion remains 0.005, not a universal runtime error bound.

MDE searches the earliest detectable region to 1e-8 absolute plus 1e-8 relative effect tolerance, not the first representable floating-point effect. It excludes an earlier interval only with a valid upper bound and cannot skip a materially earlier unresolved region. Reported power is evaluated at the reported effect. If the search cannot resolve that region, a supplied-effect answer preserves its valid power and has mde_relative=None with mde_unavailable_reason="numerical_resolution". A direct minimum_detectable_effect refusal additionally retains structured context. Triggered plans use the rounded analyzed counts.

Statistical details: the replay bound

A solve’s replay is bounded by the cells it stores: at most 10,000,000 (control, treatment) count cells, the control window by the treatment windows at the null rate and at every alternative that solve evaluates. A supplied effect, an effect search (the union of the windows it evaluates) and each row of a power curve are separate solves: the cells an earlier row or the supplied effect left on the shared geometry are a cache, dropped when the next solve needs the room (the solve’s own cells never are, and its union is what the bound counts), so a curve row answers as its scalar call does. The work follows that count, not the arm size, which the runtime decides up to a billion units. Planning refuses a decision whose null rectangle exceeds the bound before any replay (power.binomial_replay_bound_exceeded), and with the same code (its context then names the alternative treatment rate p_t) an alternative whose window would take its solve past it, before any mask is allocated. An effect search that would exceed it ends unresolved: the companion mde_relative of a supplied-effect answer is null with numerical_resolution (the supplied effect’s power is unchanged), and minimum_detectable_effect is refused with the bound after the work that preceded it. An effect search stores more than the null rectangle, so it reaches the bound at smaller arms than a supplied effect does. required_sample_size searches only sizes about 1/128 under the largest whose null and supplied-effect rectangles fit, and a search that reaches that ceiling refuses with power.binomial_replay_bound_exceeded, whose context adds the target power and power_reached there (a skipped size just above may reach more). The other ends of a size search have their own codes (see the sizing table in the power-analysis guide): the arm ceiling or a float margin that dominates the tail level at larger arms ends it with power.binomial_size_search_unreachable and maximum_power, and a decision refused at the smallest design is refused before any search (see Extreme alpha). Under conversion_inference="finite_sample" a supplied effect reaches the bound at about a million units per arm at a 5% baseline, about 190,000 at 50%, and at any arm the runtime admits at a rate expecting up to about 48,000 events per arm. Under default "auto", dense plans using the closed-form route have no replay and no such bound; small enumerated dense plans remain subject to the replay bound.

Recorded measurements and scope.

Statistical details: bounded rates, segment solvers, sequential MDE and boundary quadrature

Bounded-metric baselines and implied null/alternative rates must stay strictly positive and at most 1. A requested rate above 1 is refused rather than treated as a conservative approximation. At a fixed sample size, the directed noncentrality can peak before the effect-domain boundary, so a target power can be genuinely unattainable. In that case an achieved-power query still reports power for its supplied effect, but its companion mde_relative is null and mde_unavailable_reason states unattainable, unrepresentable, or numerical_resolution.

The segment-pairwise solvers deliberately retain their baseline-only four-arm approximation. Their numbers should not be compared with the changed arm trio as though the two models were identical.

Sequential MDE inversion recomputes the alternative-arm standard error and boundary at each candidate. Its crossing calculation uses composite eight-point Gauss–Legendre panels. Classical derivative-remainder bounds are propagated through every surviving-density and exit-mass integral; floating arithmetic and normal-tail allowances are added separately. Expected information has its own propagated bound. Observed differences between quadrature levels are diagnostics, not the basis of the enclosure.

Public scalar power and expected-information values require their respective enclosures to meet independent convergence tolerances. An inverse that cannot distinguish the target within the declared quadrature, interval, or resource limits refuses with power.minimum_detectable_effect.numerical_resolution instead of consuming an unresolved midpoint or claiming an effect or unattainability. Information fractions remain the analyzed-unit-count approximation described above.

The prospective Gaussian boundary evaluator certifies its results within a 256-look limit, a 300,000,000 kernel-element work limit and a 4,096-node ceiling. Larger schedules refuse with power.boundary_crossing_quadrature and a reason naming the limit, because certifying them takes well over a few seconds per public call. Reduce or group planned looks to stay within the limits; grouping changes the planned schedule rather than approximating the original design. Registered likelihood policies remain unsupported by this Gaussian planning route.

A quantile metric’s planned variance is a projection from the pilot, not a certified bound

Section titled “A quantile metric’s planned variance is a projection from the pilot, not a certified bound”

Quantile sample-size planning projects the pilot’s own order-statistic variance to each candidate size. The projection is close when the candidate is a modest multiple of the pilot’s size and can fall several points short far past it or at an extreme quantile (measured: a 90th-percentile plan targeting power 0.80 achieved 0.73 on one draw). At a few dozen units per arm it can understate the readout’s own standard error, so a size set by the readout’s 0.5 log-scale limit, which required_sample_size flags with power.quantile_size_at_delta_method_limit, still leaves many readouts reporting no relative lift (measured: four in five at a planned 45 per arm). On rounded data power has a ceiling below one, and required_sample_size refuses a target above it with power.quantile_size_search_unreachable.

Statistical details: the pilot projection, the recording-grid ceiling and the log-scale limit

increment.workflows.planning_baseline(experiment, reader, metric) builds a QuantileBaseline from the pilot’s own control-arm values; at each candidate sample size the solver applies the runtime’s own half-width rule to a bracket projected from the pilot — on continuous data the pilot’s classical order-statistic standard error scaled by the asymptotic 1/sqrt(n) rate, on rounded data the pilot’s recorded distribution, averaged over where the quantile falls within its recording cell — since resampling at every candidate size the search visits is not possible from a single pilot draw. The projection is close when the candidate size is a modest multiple of the pilot’s own size; extrapolating far past it, especially toward an extreme quantile where the pilot has few points, inherits that region’s own sampling noise and can be off by a larger margin. This is a property of the SOURCE: a finite pilot is one draw, not a certified estimate of the runtime’s exact variance at an arbitrary future size. A bigger or more representative pilot narrows it; planning a design still sizes an experiment, it does not certify a final result. Measured directly (Monte Carlo, 1500 two-arm draws at the planned size): a 90th-percentile metric with a 5,000-unit pilot, 15% relative lift, and target power 0.80 achieved empirical power as low as 0.73 on one draw — a real, several-point shortfall the deterministic projection does not eliminate, not merely simulation noise.

On rounded data the runtime’s interval never narrows below the log gap from the quantile to the next recorded value, however large the sample. Power therefore has a ceiling below one: required_sample_size refuses a target above it with power.quantile_size_search_unreachable, naming in maximum_power the largest power any size reaches (limiting_condition="recording_grid"). This is a property of the SOURCE’s recording resolution; recording the metric more finely raises the ceiling.

The projection scales the pilot’s bracket by the asymptotic 1/sqrt(n) rate; at a few dozen units the readout’s own order-statistic bracket is on average wider than that. Measured directly (fresh two-arm samples from the pilot’s population): a heavy-tailed median (a log-normal with log-scale standard deviation 2, 1,000-unit pilot) planned for a sixfold lift needs 28 units per arm for power and 45 to keep the projected combined log-scale standard error below 0.5. At 45 per arm that projection is 0.496, readouts average 0.580 and 79% of them refuse the relative lift (delta_method_unreliable); at 60 per arm 62% refuse, and at 100 per arm 2%. A size that passes the projected limit is therefore not one most readouts can report; the power guide shows how to check a size by running the readout on draws from the pilot. On rounded data whose nearest other recorded value lies about a factor of two or more from the quantile, the readout’s half-width never falls below the log gap to it, so no size keeps the combined standard error below 0.5; required_sample_size refuses such a plan with power.quantile_size_search_delta_method_unreliable, naming in log_se the smallest combined standard error it planned at a size reaching the target power. This too is a property of the SOURCE’s recording resolution.

Switchback planning requires its own model

Section titled “Switchback planning requires its own model”

Switchback planning conditions on a pilot’s fitted effect and covariance; it does not include their estimation uncertainty or certify finite-sample calibration. Parallel-arm Baseline.icc does not describe within-unit switchback dependence; see the switchback guide.

Statistical details: pilot-conditioned switchback power

Ordinary switchback planning derives its reference effect and centered contribution/order-slope covariance from a validated pilot, at the independent unit or shared-block grain. Moment-t power conditions on those fitted estimates; it does not account for their estimation uncertainty or certify finite-sample calibration. Optional prospective envelopes and complete-law research oracles retain separate lower-bound and Monte Carlo meanings. Existing small-sample failures and the unresolved computational-certification work remain; see the switchback guide. Parallel-arm Baseline.icc does not describe within-unit switchback dependence.

Increment checks overlap and post-adjustment balance. It cannot validate conditional ignorability, and no diagnostic on this page substitutes for a defensible identification argument.

Categorical encoding and missing values on the observational routes

Categorical strings are internally encoded with a modal reference and one indicator per remaining training level. High-cardinality columns therefore produce many columns; no automatic pooling or cohort trimming is applied. Encoding and per-level balance diagnostics do not establish overlap. Definitions and artifact ingress preserve their default missing-value refusal for numeric and categorical nulls alike. YAML rejects missing/gate tuning; other policies use a full Observational design on the two dataframe routes.

DML reports a partially-linear slope, not an average treatment effect

Section titled “DML reports a partially-linear slope, not an average treatment effect”

DML estimates the slope of a partially linear model, labelled plr_slope, which equals the average treatment effect under homogeneous effects or constant weighting across the analysed population. With heterogeneous effects and varying weights, do not read a DML lift as a population ATE or compare it with IPTW or AIPW as though all three targeted the same quantity.

Statistical details: the slope's weighting and the relative DML row

The double machine-learning estimator identifies the slope of the partially linear model, which weights conditional effects by the conditional variance of treatment. That equals the average treatment effect only under homogeneous effects or a constant weight (e(1-e) with one treatment, p_a p_0 / (p_a + p_0) with several). The result labels its estimand plr_slope and carries a note saying so.

A relative DML row divides that slope by the augmented control-arm mean of the analysed population, with their joint influence covariance; it is not mu1 / mu0 - 1. With several treatments, each row keeps its own comparison-specific slope over one shared control mean. Do not read a DML relative lift as a population ATE when you expect effect heterogeneity, and do not compare it against IPTW or AIPW as though all three targeted the same quantity. Its interval is asymptotic: finite-sample calibration of multi-arm and small-cluster designs is not established.

Only untrimmed native-logistic IPTW accounts for fitting its propensity

Section titled “Only untrimmed native-logistic IPTW accounts for fitting its propensity”

Only untrimmed IPTW with the default logistic learner includes the propensity fit’s estimating equations in its standard error. Generic, pattern-specific and trimmed fits treat the fitted propensity as known, so their standard error omits that contribution with no guarantee of being conservative.

Statistical details: propensity estimating equations and the multi-arm fit

The propensity model is fit on the same data used for estimation. Untrimmed IPTW with the default pooled logistic learner includes those estimating equations, and with several treatments the equations of every treatment-versus-control model that shares the control. Generic, pattern-specific and trimmed fits still treat the fitted propensity as known, so their standard error omits the propensity-estimation contribution, with no guarantee of being conservative once trimming is applied. High-capacity or custom learners can overfit assignment and destabilize the weights.

The multi-arm construction couples pairwise treatment-versus-control fits into marginal arm propensities. With the default logistic learner this is consistent for a multinomial logit propensity, but it is not that model’s joint maximum-likelihood fit.

Trimming changes which population you estimated

Section titled “Trimming changes which population you estimated”

When overlap trimming removes units, IPTW and AIPW relabel the estimand overlap_subpopulation_ate and record the retained population; DML keeps plr_slope either way, so check the recorded population. The standard error does not include the variability of the trim boundary itself.

Statistical details: the retained population and its standard error

When overlap trimming removes units, IPTW and AIPW relabel the estimand to overlap_subpopulation_ate and record the retained population on the result, so the change of target is visible. The standard error conditions on that fitted retained set: it does not include the variability of the trim boundary itself, which depends on estimated propensities.

DML reports plr_slope whether or not trimming occurred, so a DML result alone does not tell you that the population changed. Check the recorded population.

The positivity gate is a fixed threshold, not an overlap assessment

Section titled “The positivity gate is a fixed threshold, not an overlap assessment”

The default identification gate requires propensities within [0.01, 0.99], which caps a raw inverse weight at 100. Passing it is not evidence of good overlap: inspect the reported per-arm effective sample size and maximum weight share as diagnostics, alongside the propensity distribution. These summaries do not replace sensitivity analysis across plausible overlap thresholds.

A handful of near-boundary units can dominate an IPTW or AIPW estimate while the gate still passes, producing an estimate that looks precise and is not stable.

For the evidence record see Unvalidated regimes.

Off-policy evaluation of logged decisions is calibrated only under a fixed logger

Section titled “Off-policy evaluation of logged decisions is calibrated only under a fixed logger”

estimate_policy_contrast reports an interval that is asymptotic in the number of units and calibrated only when the logging policy was fixed: a trace logged under more than one policy version is refused (logged_policy.inference.adaptive_logging_unsupported), and every positive registered or recorded logging probability, chosen or not, must meet the 0.05 floor (logged_policy.trace.propensity_below_floor). Exact zero support is allowed only where the evaluated policies also assign zero mass. Under a fixed logger the interval is nominal from an effective sample size of 20 up (ESS_FLOOR = 20).

Measured before the gate existed, adaptive loggers covered 86.4–89.6% at nominal 95%, with a biased surviving slice under contextual Thompson sampling. The recorded-law constructor is not permission to relabel adaptive data.

Logged-policy estimator and support requirements

estimate_policy_contrast evaluates a target policy against a reference policy from a logged decision trace with a trajectory-level self-normalized importance-weighted estimator, cumulative likelihood ratios, and a unit-clustered sandwich interval on a t reference. The interval is asymptotic in the number of units. It runs on no experiment builder path (SOURCE: none carries a decision trace); its ingress is LoggedTrace.from_records / from_frame, and the guide states the estimand.

Admission requires every positive registered or recorded logging probability, chosen or not, to meet the declared 0.05 floor (logged_policy.trace.propensity_below_floor). Exact zero support is allowed only where the evaluated policies also assign zero mass. A sub-floor positive probability violates the promised importance-weight bound; it does not imply mathematically unbounded weights. The recorded-law constructor is an alternative to registry reconstruction, not a certificate of logger truthfulness or permission to relabel adaptive data.

Recorded measurements and scope.

Recorded measurements and scope.

Fixed-horizon FDR control assumes a dependence condition that is not checked

Section titled “Fixed-horizon FDR control assumes a dependence condition that is not checked”

Fixed-horizon selection across the metric × arm × segment family uses ordinary Benjamini–Hochberg, which controls FDR under independence or positive dependence (PRDS). That condition is not checked; a family sharing a control arm with correlated outcomes can violate it, and there is no Benjamini–Yekutieli option at selection time.

Statistical details: fixed-horizon versus registered sequential families

Selection across the metric × arm × segment family uses ordinary Benjamini–Hochberg, which controls FDR at the stated level under independence or positive dependence (PRDS). An exploratory family sharing a control arm and correlated outcomes can violate that condition, and there is no Benjamini–Yekutieli option at selection time.

This applies to the fixed-horizon path. Registered sequential inference uses current or explicitly frozen likelihood e-values, whose family validity requires the declared common joint-unit filtration. Distributional assumptions are pre-data declarations; timestamps and observed means do not establish them.

Sequential selected intervals use the same stopped likelihood

Section titled “Sequential selected intervals use the same stopped likelihood”

A selected sequential interval is a statement about the selected set under the family’s declared joint-unit filtration, reinverted at min(q * R / m, nominal alpha) on the selection checkpoint. It is not coverage for one metric you chose afterwards.

Statistical details: the selected-set statement

What this assumes is the family’s declared common joint-unit filtration. It matters when a selected interval is read as coverage for one metric chosen afterwards, which is a different statement. Sequential families retain every registered cell, including missing or abstaining cells. Selected intervals are reinverted at min(q * R / m, nominal alpha) on the checkpoint used for selection. This selected-set statement is distinct from coverage conditional on selecting one particular metric. Unbounded, full, empty, and numerically abstaining sets remain explicit in the result.

Clustered CATE uncertainty is cluster-asymptotic

Section titled “Clustered CATE uncertainty is cluster-asymptotic”

Clustered estimate_cate uses a CR1/HC0 score sandwich with K-1 reference degrees of freedom and no CR2. Few, unbalanced or high-leverage clusters still need calibration evidence, and the unclustered calibration figures do not certify clustered AUTOC, Qini, GATES, CLAN or selected policy values.

Statistical details: the sandwich, cluster ARD and duplication invariance

Clustered estimate_cate uses a weighted CR1/HC0 score sandwich and K-1 reference degrees of freedom, with every declared observed cluster counted. It does not implement CR2. Small K, imbalance and high leverage still require scientific calibration; matching the intended sandwich calculation does not establish coverage.

Cluster ARD uses trace(G @ V_JJ) / q as its noise variance, with G the weighted residualized interaction Gram matrix. This is a directional-average precision approximation, not a full correlated-likelihood ARD model. Unclustered ARD retains its existing residual-variance calculation.

Uniformly cloning rows within the same cluster IDs preserves fixed-design point estimates, covariance and cluster ARD precision. Assigning new IDs to the copies declares new independent clusters: under complete doubling the specified sandwich covariance is multiplied by (K-1)/(2*K-1). Invariance to that operation is incompatible with the specified sandwich and literal cluster count; copies that remain dependent must retain their original cluster identity. Learned continuous bases can also change when refitted on duplicated rows.

Exact duplication checks therefore freeze scores and nuisance fits and replicate the entire within-cluster row pattern. A fully refitted pipeline, or a roster-size change that also changes member noise, needs separate behavioral and Monte Carlo evidence. Neither an unchanged independent cluster count nor one replayed p-value establishes null calibration. The existing unclustered calibration figures do not certify clustered AUTOC, Qini, GATES, CLAN or selected policy values.

Targeting validation depends on identification and overlap

Section titled “Targeting validation depends on identification and overlap”

Observational targeting validation (validate_cate, targeting_rule, select_targeting_rule) uses doubly-robust scores but still needs conditional ignorability and overlap, which cannot be checked; after holdout trimming it describes the retained population only (CateValidation.population == "overlap_subpopulation"). Clustered intervals combine a whole-cluster bootstrap-t with a cluster jackknife-t and reject only when both do, which preserves a valid component’s coverage without proving finite-cluster validity.

In the null screen’s tightest design (10 unequal clusters, skewed errors, member weighting, correlation 0.5) each GATES interval missed 18 of 256 times against a nominal 2.5%; the screen is a regression check, not a guarantee, and more repetitions do not remedy too few independent clusters.

Statistical details: scores, clusters and weighting

With an Observational design, validate_cate, targeting_rule, and select_targeting_rule use doubly-robust scores; Randomized keeps IPW scores. Observational GATES and the holdout ATE summarize score means, not raw-outcome Welch contrasts; identification still requires conditional ignorability and overlap. When holdout trimming removes units, CateValidation.population == "overlap_subpopulation": AUTOC, Qini, and GATES describe that retained population, not the full one. [estimate_cate][increment.estimators.estimate_cate] remains randomized-only (cate.identification.randomized_only); its per-unit point predictions are not doubly robust.

Declared clusters retain unit-level scores and outcomes. cluster_weight="member_count" weights members equally; "equal" gives each retained cluster total weight one and requires cluster IDs. Smooth means use centered cluster contributions with the K/(K-1) scale: disjoint randomized arms use their own cluster counts and Welch reference degrees, overlapping contrasts combine signed contributions within each cluster, and observational DR scores use pooled cluster influence.

Clustered DR nuisance models are fitted once on the training half, with frozen heldout predictions. Ranks, empirical GATES/CLAN cutoffs, and policy values are recomputed in a whole-cluster bootstrap (default [ClusterBootstrap(seed=0, repetitions=999)][increment.estimators.ClusterBootstrap]). Randomized pure-arm clusters are resampled within arms; pooled DR and mixed-arm clusters have no arm stratum. Repeated cluster draws are separate sampled instances. Weighted empirical cutoffs keep tied scores together; the clustered AUTOC/Qini integrate the empirical weighted TOC with uniform interpolation within each tied block, making uniform row cloning invariant. Unclustered rank calculations retain their existing discrete definition.

Clustered intervals and tests use bootstrap-t+cluster-jackknife-t. The interval is the smallest interval containing both component intervals; the one-sided p-value is the larger component p-value. Thus a rejection requires both tests to reject, and the reported interval cannot be narrower than either component. This preserves a component’s coverage when that component is valid; it does not prove finite-cluster validity of either component.

Statistical details: the bootstrap-t and jackknife-t construction

For the bootstrap component, use the complete statistic (T), its bootstrap draw (T_b^), and positive covariance reference scales (s,s_b^) to form (R_b^=(T_b^-T)/s_b^). Centering at (T) retains the bootstrap estimate of ratio and cutoff bias; centering at the bootstrap mean would erase it. Dividing by each draw’s own scale retains the dependence between estimation error and uncertainty, which matters for skewed cluster contributions and unequal cluster masses. Even for an ordinary mean of (K) IID clusters, the raw empirical-bootstrap variance is ((K-1)/K) times the usual unbiased variance estimate; more repetitions do not remove that finite-(K) difference. For nonlinear ratios, replicates that omit a large cluster can also have both a large estimation error and a much smaller reference scale. Intervals invert the root tails as ([T-sR^{\mathrm{upper}},T-sR^*{\mathrm{lower}}]); one-sided rank tests compare these same roots with (T/s). The reported se is the standard deviation of the complete bootstrap statistics, including rank and cutoff variation, rather than the conditional reference scale used inside the roots.

For GATES, CLAN, and policy values, the reference is the centered ratio-mean covariance described above, recomputed for each draw’s groups. For ranks, let a tied score block occupy probability interval ((a,b]). Integrating the response weights gives (r_A=(-b\log b+a\log a)/(b-a)) for AUTOC (with (0\log0=0)) and (r_Q=(1-a-b)/2) for Qini. Holding these response weights fixed, the functional (E[r\psi]-E[r]E[\psi]) has influence ((r-E[r])(\psi-E[\psi])-\operatorname{Cov}(r,\psi)). The reference scale sums these signed, member-weighted influences inside each cluster before squaring, with the (K/(K-1)) correction. It is a conditional response covariance, not a claim that estimated ranks or cutoffs are fixed. Inner policy selection similarly uses the cluster covariance of each member’s targeted net-benefit contribution as its reference. All deployed statistics and reference scales are recomputed on every whole-cluster draw; there is no nested bootstrap or extra rank sort for the rank reference.

The second component deletes each observed cluster once and recomputes the complete statistic (T_{(-g)}), including ranks, cutoffs, groups, weights, and policy budgets. It uses the full-estimate-centered cluster jackknife scale [ s_J^2=\frac{K-1}{K}\sum_{g=1}^K (T_{(-g)}-T)^2. ] This is the CV3 construction in MacKinnon, Nielsen and Webb, equation (18). That paper treats regression; applying the construction here requires regularity of the complete nonlinear statistic. For a ratio mean with cluster target-mass share (h_g) and signed contribution (u_g), the exact deletion identity is (T-T_{(-g)}=u_g/(1-h_g)). This captures observed leverage without a fitted multiplier. At equal masses it reduces to the usual cluster-mean standard error. For shared-cluster contrasts, deletion differences combine both sides before squaring, preserving their signed covariance. Estimated cuts and ranks are recomputed, so their deletion changes also enter the scale.

The jackknife interval is (T\pm t_{\nu,\alpha/(2m)}s_J), where (m) is the existing family size and (t) denotes an upper-tail quantile. Its test uses the Student-t survival probability at (T/s_J). The reference has (\nu=\min_h(K_h-1)), using the bootstrap arm/fold strata; without strata it is (K-1). Deletions retain all remaining clusters and their declared target weights, without compensating other clusters in the omitted cluster’s stratum. This unrestricted deletion scale can include composition variation absent from the stratified bootstrap. The smaller stratum reference is conservative relative to using (K-1), but is not an exact small-sample law. This adds (K) full evaluations and no random draws; the bootstrap stream and repetition count are unchanged. reference_df on rank/group/CLAN results describes this jackknife component, while covariance_method describes the bootstrap response reference.

Cost grows with the number of clusters (K): with the default 999 draws, validate_cate takes about half a second at (K=400) and a few seconds at (K=2{,}000), while targeting_rule and select_targeting_rule take tens of seconds to about a minute at (K=2{,}000). The jackknife deletions account for most of the extra rule and selection time at large (K).

The bootstrap component has a first-order asymptotic justification when the complete cluster bootstrap is consistent and (\sqrt K s) and (\sqrt K s^*) converge to the same positive limit: Slutsky’s theorem then gives the same limiting law for the observed and bootstrap roots. The reference need not equal the full rank/cutoff asymptotic standard error for this argument. It does not establish a higher-order accuracy improvement for these nonlinear statistics. Jackknife-t also requires an asymptotically linear statistic and consistent deletion variance; it is not generally valid for a nonsmooth quantile statistic. Independent clusters, adequate moments, no dominating cluster, and regular population quantiles are needed; stable tied blocks can be evaluated, but a quantile exactly at a jump boundary can be nonregular. The AUTOC logarithmic tail additionally needs an integrable squared response-weight envelope. Training-only nuisance predictions remain frozen. Neither this argument nor a calibration screen establishes distribution-free finite-cluster coverage, particularly with few skewed, high-leverage clusters. See the bootstrap-t inversion and RATE asymptotics for the underlying methods; the latter does not by itself certify this clustered implementation.

Statistical details: tail handling and unavailable uncertainty

Recorded measurements and scope.

GATES and CLAN retain separate Bonferroni budgets. Tail indices use the exact
binary64 input alpha divided rationally by twice the family size, rounded outward
on the \(B+1\) order-statistic grid. Monte Carlo p-values also round upward.
A failed bootstrap statistic makes uncertainty unavailable instead of conditioning
on successful draws. A finite draw whose reference scale is nonpositive or
nonfinite uses the observed positive reference scale in its root denominator.
This fallback retains the complete draw; it alone supplies no coverage correction.
`bootstrap_valid_repetitions` counts finite complete bootstrap statistics,
independently of their scale availability and of jackknife evaluations. Repeated
draws of one source cluster are still distinct instances. The observed response
and deletion scales must be positive and finite. An undefined deletion reports
`estimation.targeting.jackknife_unavailable_replicate`; it is never dropped from
the sum or replaced by a successful deletion. Small cluster
counts, empty groups, constant rankings, zero variance, and inadequate tail
resolution retain nullable fields and explicit `unavailable_reason` codes.
Results record cluster count, weighting, method, seed, and requested and valid
repetitions. Increasing repetitions resolves smaller tails; it does not remedy
insufficient independent clusters.
Cluster deployment, saved policies and fraction selection

Deployment grain follows the explicitly declared intervention, independently of uncertainty clustering. A cluster intervention cannot request unit deployment (estimation.targeting.unsupported_unit_deployment). Cluster policies pool member scores and select a score-ordered whole-cluster prefix, breaking ties by canonical ID. Member/equal weighting determines both the budget and the reported population. This prefix is feasible, not a knapsack optimum: unused budget stays unused when the next cluster does not fit. Empty prefixes have no conditional policy effect; zero and one fractions select nobody and everybody. Bootstrap replicates recompute the pooled ranking and budget, counting repeated draws as separate cluster instances while preserving canonical source IDs for score ties. Overlap trimming that retains only part of a cluster is refused for cluster deployment (estimation.targeting.overlap.partial_cluster).

Saved policy JSON retains its fitted scoring basis and coefficients. predict(cols, cluster_ids=...) returns the candidate actions; consult recommendation before deployment. Cluster prediction needs a complete member roster for each deployment cluster and computes the budget over the supplied batch. Unit prediction retains its fitted threshold even with dependence IDs. Neither new-data outcomes nor nuisance refitting enter prediction.

Fraction selection freezes all inner-fold scores before resampling within folds (and arms for randomized designs). The selected inner winner and a policy value reported after the outer validation gate still have no nominal confidence interval; the bootstrap does not remove this selection restriction. A declared cluster intervention defaults to whole-cluster prefix deployment and rejects explicit unit deployment.

The targeting workflow carries no joint error control

Section titled “The targeting workflow carries no joint error control”

Group-effect tests are Bonferroni-corrected inside their own family and characteristic tests inside theirs; the rank-based tests are not corrected alongside them, and no guarantee spans the whole workflow.

Triggered-population sitewide impact needs an external assumption

Section titled “Triggered-population sitewide impact needs an external assumption”

increment.estimators.sitewide(experiment, reader, metric, population="triggered") scales the triggered-cohort lift to the enrolled triggered members while keeping the full-site volume. Reading it as whole-site impact assumes that trigger membership does not depend on treatment and that never-triggered units are unaffected; the allocation balance diagnostic can catch some treatment-dependent trigger rates but cannot prove either assumption. Use the assigned-population result when those assumptions are not defensible.

In the assumption-failure simulations, a 0.1 effect among never-triggered units left the triggered reading covering 3% (the assigned reading still covered 95%), and treatment-dependent membership with equal trigger rates left it covering almost never while the triggered sample-ratio check rejected in only 4.7% of runs.

Statistical details: what the triggered estimate conditions on

sitewide(..., population="triggered") reports a conditional, fixed- membership estimate: the triggered-stratum lift is scaled by the number of enrolled units in finalized trigger membership, while the site-volume counterfactual remains full-site. Reading it as the whole-site impact requires that trigger membership is independent of treatment and that never-triggered units are unaffected. The allocation balance diagnostic can detect some treatment-dependent trigger rates, but its non-rejection does not prove either assumption; equal marginal trigger rates do not rule out treatment-dependent membership or timing.

Both assigned and triggered sitewide() require randomized identification. Observational and encouragement designs refuse before sitewide evidence is loaded; use run(experiment, reader) for their estimands.

Both populations refuse conversion metrics with facade.analysis.sitewide_metric_unaligned: a converter indicator is a per-unit maximum over events, not an additive event total, so it cannot align with the site’s whole-window total. To read conversion events site-wide, declare a count metric (mean metric, aggregation: count) on the conversion fact. Windowed metrics and components with non-additive aggregation (anything but sum or count) use the same refusal because a per-unit window or non-additive outcome cannot align with the additive site total.

For the triggered population, the estimate omits any reach effect among never-triggered units and does not adjust for multiplicity or provide anytime-valid inference. It uses assignment-anchored experiment-calendar outcomes rather than run()’s trigger-anchored windows. Use the assigned-population sitewide result when these conditional assumptions are not defensible.

Assigned and triggered arm outcomes and the site total use only the experiment-calendar window (start .. end), even if observation_end is later. Triggered readings need every outcome feed certified complete through the end day by a watermark. Assigned readings refuse when the snapshot cutoff or a declared watermark stops before the end day; without certification they assume the loaded outcomes are complete, as a native analysis without snapshot evidence always has. Both refusals use facade.analysis.sitewide_outcomes_incomplete. Conversion metrics do not have a sitewide total through sitewide(); use a count metric on the conversion fact to count site events.

Population counts retain every assigned arm, including explicit zero counts for arms with no triggered members. The estimator scales all triggered members in the complete requested roster; unobserved_members counts members across that full roster omitted from the reductions and is zero when the required complete outcome certificates are present.

Recorded measurements and scope.

Recorded measurements and scope.

Recorded measurements and scope.

Triggered sequential monitoring assumes trigger invariance and trigger-order stationarity

Section titled “Triggered sequential monitoring assumes trigger invariance and trigger-order stationarity”

Triggered monitoring additionally assumes that neither whether nor when a unit triggers depends on its arm, and that trigger timing carries no information about the retained outcome; no diagnostic can establish either, and outside them the triggered contrast describes arm-selected cohorts. Triggered compliance cells stay unavailable (triggered_uptake_unsupported).

Statistical details: the triggered chain's assumptions and family guarantee

A trigger-declared registered plan monitors the triggered population as a second chain whose members are revealed in first-trigger order once their trigger-anchored windows close. Its per-cell anytime coverage rests on the assigned route’s assumptions plus two that no diagnostic can establish: that neither whether nor when a unit triggers depends on its arm (treatment may change which units trigger while leaving both arms’ trigger rates equal, which srm(population="triggered") and trigger_rates() cannot see), and that trigger timing carries no information about the retained outcome, ratio components or pre-period covariate. Outside those assumptions the triggered contrast describes arm-selected cohorts, not the triggered intent-to-treat effect, and no null guarantee is asserted. Assignment-window uptake is mechanically tied to trigger timing, so triggered compliance cells stay unavailable (triggered_uptake_unsupported).

The per-cell guarantee holds for any look schedule under those assumptions. The triggered family keeps the assigned family’s e-BH guarantee only under correct triggering (no treatment effect before the trigger, arm-independent trigger propensity and timing) and stopping/freezing decisions adapted to its joint triggered filtration. Use only already-revealed triggered information; do not time a triggered family look, stop or freeze on any assigned result that reveals future triggered outcomes, including the same metric’s result. Correct triggering does not prevent this leak: trigger-day-only outcomes can be identical in both populations yet close earlier in the assigned window. Lookahead can inflate the stopped e-value’s expectation without changing the per-cell crossing bound. Guarantee labels are conditional on this unverified decision rule. Both chains need every contributing feed certified complete through the capture horizon; a process committed without a triggered chain stays assigned-only and is never backfilled. Clustered assignment, registered segments and breakouts remain unsupported on the triggered chain for the same reasons they are on the assigned one.

Triggered breakouts, moment summaries, sitewide impact, CATE and targeting on the trigger-eligible cohort assume that triggering is unaffected by treatment; conditioning on post-assignment triggering otherwise changes the causal estimand. Missing trigger evidence or an unsupported source is a coded refusal, never a fallback to the assigned population.

Where triggered readouts run and what each source must carry

Triggered breakouts and their moment summaries report both the full assigned cohort and the trigger-eligible cohort, with separate population/family identity. They assume triggering is unaffected by treatment; conditioning on post-assignment triggering otherwise changes the causal estimand. Definitions are the raw-event route. Unit-day artifacts need current trigger population and measure-stat evidence; breakouts also need the matching breakout-dimension extension. A stale or incomplete artifact is refused instead of falling back to assigned segments.

dashboard_group_data(population=...) and allocation_history(population=...) are warehouse-native operations: the former preserves pre-assignment property values, while the latter dates triggered cohorts at their first eligible trigger. Artifacts do not retain the raw enrollment timeline or provide the dashboard aggregation operation, so those reads refuse with source-specific capability reasons. Triggered sitewide is available only for unwindowed mean and ratio metrics whose components use sum or count aggregation, with explicit trigger and site-volume evidence; it uses calendar-window outcomes restricted to finalized membership and remains conditional on the assumptions above. CATE, CATE validation, and targeting use the triggered unit population when the source provides triggered outcomes and pre-assignment covariates; artifacts require the corresponding trigger, metric, and unit-covariate evidence. Missing evidence and unsupported source routes remain coded refusals, never assigned population fallbacks.

Meta-analysis can be anticonservative at small K

Section titled “Meta-analysis can be anticonservative at small K”

Pooled intervals use a DerSimonian–Laird heterogeneity estimate with an unmodified Hartung–Knapp–Sidik–Jonkman adjustment. In the tested design the HKSJ interval covers 93.7–95.2% at nominal 95% for every K from 2 to 12, against 80.0% at K = 2 for the plug-in interval. For segment-specific inference prefer the marginalized segment intervals, which integrate over the heterogeneity posterior.

The anticonservatism at small K is bounded at about 1.3 points in the tested design, and Bayesian shrinkage’s half-normal prior (default scale 0.30, suited to log relative effects) can strongly shrink effects measured in absolute units; its Wald intervals carry no finite-sample frequentist coverage guarantee.

Recorded measurements and scope.

Statistical details: Bayesian segment shrinkage

Bayesian segment shrinkage places a half-normal prior on the heterogeneity scale, with a configurable default scale of 0.30. This prior remains consequential: a scale suitable for log relative effects may strongly shrink effects measured in dollars or other absolute units. Adaptive integration now resolves posterior mass beyond the old fixed grid for both shrinkage and rollout pricing; it does not remove prior sensitivity. The reported Wald intervals use posterior means and variances, rather than posterior quantiles; they carry no finite-sample frequentist coverage guarantee.

For segment-specific inference, prefer the marginalized segment intervals, which integrate over the heterogeneity posterior instead of plugging in a point estimate. They are a better per-segment answer; they are not a substitute for the pooled interval, which answers a different question.

The read-only SQL gate is a screen, not a sandbox

Section titled “The read-only SQL gate is a screen, not a sandbox”

The gate admits each definitions SQL string as exactly one read-only query and rejects a fixed list of side-effecting functions; that list cannot be complete. Treat it as protection against a mistake in a definitions file, not as a security boundary: review definitions as code, never load them from an untrusted source, and connect with read-only, least-privilege warehouse credentials.

A side-effecting function outside the list, including any user-defined function, is admitted as an ordinary SELECT. Verify yourself that definitions change only through your review process and that the warehouse role is read-only on the tables in scope.

What the gate rejects and what it cannot see

The gate assumes definitions are trusted code; it matters whenever a definitions file could come from someone you do not trust.

Every SQL string in a definitions file is admitted as exactly one read-only query. The check parses the string with the declared (or the connection’s) dialect and rejects:

  • more than one statement (definition.sql.statement_count);
  • any statement that is not a query, including INSERT, UPDATE, DELETE, DDL, and DML/DDL nested under a WITH;
  • SELECT ... INTO, FOR UPDATE/FOR SHARE, LOCK IN SHARE MODE, and locking table hints such as T-SQL WITH (UPDLOCK), SERIALIZABLE and REPEATABLEREAD (definition.sql.not_read_only); benign hints such as NOLOCK, READPAST and INDEX(...) are admitted;
  • calls to a fixed list of known side-effecting functions (advisory locks, sleeps, large-object and file writers, dblink, session and query cancellation, and similar).

That list cannot be complete. A side-effecting function outside it, including any user-defined function, is admitted, because syntactically it is an ordinary SELECT. Increment makes no claim that an unlisted function is safe. The connection and its privileges belong to you.

Treat the gate as protection against a mistake in a definitions file, not as a security boundary against a definitions author you do not trust. Definitions are trusted, governed code: review them like any other code that runs against your warehouse, and never load a definitions file from an untrusted source. Connect with read-only, least-privilege warehouse credentials (no write, DDL, or execute grants beyond what the queries need).

Repository code cannot tell you how a downstream application accepts definitions, or what grants your warehouse role actually holds. Before relying on the gate, verify both yourself: that definitions can be changed only through your review process, that the application never builds definitions from end-user input, and that the warehouse role is read-only on the tables in scope (for example by attempting a write with that role and confirming it fails).