branches), Adapt-1 preserves cross-channel tail dependence across simultaneous outcomes, holds prequential forecast receipts across multi-revision future_id updates as evidence arrives, and learns online from every scored outcome.
Use the returned joint distribution directly when your action does not alter the future outcome distribution, or connect the same persistent transition model to Probabilistic planning when actions change future states or outcomes.
Handled automatically by default: Adapt-1 automatically abstains below
required_support: 2 or outside max_distance: 0.75 within the matching group and action, learns prequential prior-versus-kernel blending weights under default conditioning: "adaptive", subsets conditioning to present keys when partial evidence is sent on POST /query, groups and scores multi-revision forecasts via default future_id_path: "metadata.future_id" before ingesting the closing outcome, and applies 75/25 chronological RMSE-skill gating with empirical fallback whenever numeric_transport: "linear_residual" is enabled.Authorization: Bearer <token>, a descriptive non-default User-Agent (to avoid Cloudflare 403 error 1010), Accept: application/json, and Content-Type: application/json, and serialize strict RFC-8259 JSON (no NaN, Infinity, or -Infinity). See HTTP and contracts.
Configure the Domain
For complete joint exports without truncation past event 16, create the Domain with this 8-keylearning.transition setup:
"temperature_c", "wind_speed_mps", "demand", and "generation") in schema.signals and "outcome" in schema.event_types. Aligning max_samples, max_support, and max_branches at 128 (or fewer) exports the complete retained joint atom cloud without striding or silent tail truncation (server defaults max_branches: 16 and max_support: 256 begin dropping continuous branch mass into omitted_probability on event 17).
If you only read 1D marginals rather than joint branches, you can omit all three 128 caps (a 5-key learning.transition setup, scaling max_samples and max_support up to 1,024); for categorical or boolean targets, decode canonical JSON keys in marginals.*.probabilities with json.loads.
Seed and stream
- Create the Domain and seed resolved observations: Send completed historical rows to
POST /domains/{domain_id}/events(or optionally pre-seed viaPOST /domains/{domain_id}/batchwith at most50"event"or"feedback"operations per call;/batchdoes not accept"query"). Send complete finitevaluesand a strictly increasing UTC ISO-8601timestamp(...Z, incrementing ties by+1 msso repeated discrete rows are not deduplicated), and confirmlearner_eligibility.acceptedon every response (incomplete ornullevent inputs still returnHTTP 201withlearner_eligibility.accepted: false,rejection_reason: "missing_input_paths", andsample_count_delta: 0). - Issue a forecast at decision time: Call
POST /domains/{domain_id}/querywith currently observed inputs incontext.values, a stablecontext.metadata.future_id,update_memory_state: false, andreturn_fields: ["decision_id", "transition_prediction"]. Futures queries still allocatepending_forecastsreceipt slots even whenupdate_memory_stateisfalse. Omit unavailable query keys rather than sendingnullwhen missingness is non-informative (MCAR), or include explicit missingness indicator flags when missingness predicts the outcome (MNAR). - Check forecast status and abstention reason: Read
transition_prediction.futures.status("predicted"or"abstained", never"ready"). On"predicted", savedecision_id,future_id, and the returned distribution; on"abstained", readtransition_prediction.futures.abstention_reasonand apply your fallback. - Verify complete joint support: Confirm
omitted_probabilityis0(at most1e-6) before evaluating joint events overbranches, and never renormalize truncated branches to1.0. Live wire branch probabilities round to 4 decimal places, sosum(b["probability"] for b in branches)can differ from1.0by roughly1e-4even whenomitted_probability == 0. - Resolve once the outcome matures: Submit one
POST /domains/{domain_id}/eventswith complete finite issue-time features, measured targets, and a strictly increasing UTC ISO-8601timestamp. Attachdecision_id(from the latest"predicted"query) andfuture_idinmetadataonly when the forecast status was"predicted"(omit both for unissued or abstained queries to avoid leakingpending_forecasts), and verify bothlearner_eligibility.acceptedand the nested pathlearner_eligibility.futures_update.accepted. - Repeat strictly in outcome availability order: Never seed or resolve an outcome before it becomes available to your application. To revise an open forecast as new signals arrive, query again with the same
future_idand all currently known inputs; one closing event scores all pending revisions strictly before ingesting the resolved outcome once. Inspectpending_forecastsviaPOST /explain(update_memory_state: false) to verify that settled outcomes reconcile cleanly.
Score action-independent decisions over joint branches
When your choice of action does not alter the future outcome distribution, issue one joint forecast withaction_path omitted and evaluate each permitted action over the same weighted joint branches. For instance, evaluate reserve capacity against joint demand and wind generation:
Enable linear_residual numeric transport for shifting levels
Enable linear_residual numeric transport for shifting levels
Default
numeric_transport: "none" produces valid empirical joint distributions immediately from row 2. Opt in to "numeric_transport": "linear_residual" under learning.transition.futures when context shifts numeric target levels while paired residuals preserve cross-channel tail co-movement.- Automatic activation gate: Transport activates per numeric target once matching support reaches at least
nh >= max(29, 2 * (d + 1))complete finite rows fordnumeric inputs and passes the 75/25 chronological RMSE-skill gate (numeric_min_skill, default0.0). While under-seeded or below threshold,futures.numeric_transport.statusreturns"unavailable"and the server automatically falls back to untransported empirical futures. - Regularization and outlier protection: Start with
"numeric_ridge": 1.0underlearning.transition(replacing the1e-8default) and keep inputs compact (2to6low-collinearity numeric features, or up to8mixed). Because leave-one-out residuals can amplify high-leverage outliers on heavy-tailed or shock-prone streams, apply causal rank or variance-stabilizing transforms and tunenumeric_ridge(for example10.0to40.0) on an earlier calibration partition. - Physical bounds:
linear_residualdoes not enforce physical limits on transported targets; validate or post-clip exported branch values client-side, or forecast on an appropriate transformed scale.
Tune conditioning, missing-feed masks, shock admission, and batch seeding
Tune conditioning, missing-feed masks, shock admission, and batch seeding
conditioning: "kernel"versus"adaptive": Default"adaptive"shrinks toward the unconditioned prior until linked resolutions accumulate (resolved_support > 0), so queries after unlinked historical seeding can appear flat. Switch to"conditioning": "kernel"for immediate sensitivity on unlinked historical seeds, multi-action planning, or streams with more than10distinct missing-feed masks (and raisemax_calibration_groupsup to1024when tracking many mask, group, and action combinations). Changingprior_strengthhas no effect under"kernel".- Shock admission (
max_distance):max_distancecontrols query admission rather than zeroing individual branch weights. Raise it from default0.75to1.0on heavy-tailed or shock-prone streams if0.75abstains too aggressively. POST /batchpre-seeding does not resolvefuture_id: Pre-seeding resolved observations viaPOST /batch(at most50operations per call) populatestransition_samplescleanly withpending_forecasts: 0, but/batch"event"operations do not resolve openfuture_idreceipts. Always submit closing resolutions for issued forecasts throughPOST /events.
Pair with automatic Transition Discovery
Pair with automatic Transition Discovery
To discover inputs automatically instead of authoring
input_paths, set "input_paths": [] with "autonomous_projection": {"enabled": true, "maximum_input_paths": 8, "maximum_buffered_events": 128} alongside learning.transition.futures. Transition Discovery pairs natively with joint numeric targets, state-conditioned error distributions, and mixed multi-revision streams.- Streaming warmup vs. optional
/batchpre-seeding: NormalPOST /eventstraffic activates Discovery automatically (early events returnlearner_eligibility.accepted: falsewithrejection_reason: "projection_accumulating"untilstatus: "ready", when buffered rows rebuild together). Optional/batchpre-seeding transitions directly tostatus: "ready"withinput_source: "discovered"andpending_forecasts: 0. - Pin essential structural keys: Inspect active discovered
input_pathsviaPOST /explain. Because warmup screening can drop slow regime or cross-entity indicators that matter mainly during rare shifts, pin essential structural keys ininput_pathswhile letting Discovery select covariates, and pin reviewed paths once production semantics must stay fixed. Use a separate Domain when evaluating an independent calibration partition. See Discover transition inputs.
Model state-conditioned error distributions around an existing forecaster
When you already operate an existing forecaster whose uncertainty intervals degrade under changing conditions, you can apply the same persistent futures surface to model the state-conditioned distribution of its realized errors. Use only forecasts recorded at issue time and outcomes already resolved at ingestion time.- Audit the raw forecaster on an earlier calibration partition first: Evaluate the raw forecaster’s tail coverage and calibration on a separate earlier calibration partition before wrapping it. Adopt state-conditioned error distributions when conditional residuals improve tail coverage, calibration, or proper scores over unconditioned residuals.
- Additive residuals: Record the observed target minus the issue-time median forecast, pair with
numeric_transport: "linear_residual"and calibratednumeric_ridgeregularization, and add each returned error branch to the current issue-time median. - CDF-transformed residuals: If the existing forecaster supplies a predictive CDF, transform realized outcomes through that CDF and the standard-normal inverse CDF, clipped to a finite range such as
[-4.5, 4.5]. Pair withnumeric_transport: "none"or"linear_residual", then map returned branches back through the standard-normal CDF and the current forecaster’s inverse CDF. - Support and causal inputs: Use a shared joint window of
128(max_samples = max_support = max_branches = 128) for complete joint error clouds and compact causal inputs (domain signals plus issue-time forecast dispersion and level summaries). Seed with resolved errors computed strictly from forecasts saved at issue time.
Maintain state
- Monitor persistent state with
POST /explain: CallPOST /domains/{domain_id}/explainwithupdate_memory_state: falseto trackstate_identity.counters.transition_samples,state_identity.counters.evidence_memories, andlearning_state.subsystems.structured_transition.futures.pending_forecastsalongsideresolved_count,mean_energy_score, andmean_prior_energy_score. Keep production Domains persistent so retained evidence, calibration histories, and learned projections continue to compound over time. - Continuous bounded retention vs. hard resets: Prefer continuous bounded retention on noisy streams so conditional similarity preserves tail coverage across changing conditions. Reserve hard resets for genuine structural discontinuities where prior transition dynamics no longer apply.
- Preview
evidence_memorieslimit: In the current Preview deployment,state_identity.counters.evidence_memoriescontinues growing with ingested events even when transition sample retention is bounded, which can gradually increase latency or approach storage quotas on long streams (for example after1,000to3,000events). Monitorevidence_memoriesviaPOST /explain, and follow Preview operational limits and Inspect learning and troubleshoot if you reach that ceiling or need an intentional reset.
