Simulate an in-flight working-tree patch (no stored decision plan)
Request
- Base URL: https://api.algenta.ai
- URL: https://api.algenta.ai/v1/repositories/{repository_id}/simulate-patch
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Path parameters
Request body
Response
Successful Response
Which simulation algorithm was used. Possible values: monte_carlo | qmc_sobol | lhs | bootstrap | scenario | sensitivity | mcmc | decision_tree | time_series | compare | importance_sampling
Engine that ran the simulation (e.g. 'mojo-native-expr', 'lhs', 'mcmc')
High-level simulation contract class. Examples: predictive, scenario_analysis, sensitivity_analysis, decision_tree.
Stable engine or model revision used to generate this result.
Stable fingerprint of the validated simulation assumptions executed by the engine.
Normalized summary of the validated request inputs used for execution. Includes mode, runs, variable counts, and model selection.
Primary outcome confidence interval derived from the simulated distribution.
Correlation identifier propagated from the API request.
Populated for simulation_model='scenario': expected_value, best_case, scenarios list
Populated for simulation_model='sensitivity': tornado_chart, first_order_sobol, variable_importance
Populated for simulation_model='bootstrap': statistic, observed_value, CI, bias, SE
Populated for simulation_model='mcmc': posterior summaries, R-hat, acceptance_rate
Populated for simulation_model='importance_sampling'. Contains: tail_direction, target_threshold, tail_probability, tail_probability_se, cvar_tail, weighted_mean, weighted_std, theta (tilt parameter), tilt_variable, effective_sample_size, nominal_sample_size, variance_reduction_factor, naive_tail_count.
Populated for simulation_model='decision_tree': n_paths, expected_value, paths[]
Populated for simulation_model='time_series'. Contains: model, granularity, dt_years, initial_value, n_steps, fan_chart (per-horizon p5/p25/p50/p75/p95), terminal distribution, max_drawdown_pct, and optional sample_paths for visualization.
Human-readable formatted output values with units. Populated when output_unit_specs or unit_spec is provided. Contains: mean_formatted, p5_formatted, p95_formatted, unit, unit_type, etc.
Unit metadata for all variables and outputs. Contains per-variable unit type, code, precision, and display scale. Use this to reconstruct formatted values client-side.
Non-fatal unit validation warnings (e.g. negative currency, out-of-range probability). Simulation still ran — these are advisory only.
Pre-computed Vega-Lite compatible chart specs for instant rendering. Populated when include_charts=true in the request or automatically for sensitivity/time_series engine types. Keys: 'histogram', 'cdf', 'tornado', 'fan_chart', 'scatter'. Each value is a complete Vega-Lite spec that can be passed to vega-embed.
Pre-computed histogram bins (50 bins) for the primary output distribution.
SHA-256 fingerprint of the INPUT payload (variables, distributions, objective function, seed). Cryptographic proof of what data was used to make this decision. Computed at submission time before simulation runs. Format: hex string, 64 chars.
SHA-256 fingerprint of this decision OUTPUT (64-char hex). Covers: run_id, request_hash (input binding), recommended_action, confidence, rationale, metrics, percentiles, scenarios_run, engine_version, simulation_model. Binds the decision to both its inputs AND outputs. Use to verify the decision has not been tampered with. Also returned as X-Decision-Hash response header.
Changes
No recorded changes to this operation across all 1 revision of this API.