{
  "esm_integrator": "0.1.0",
  "description": "Refusal codes of the planner (spec/plan.md, spec/run-config.md §8, D79). A refusal reports its code, a JSON pointer into the run config (or a model location) and a message; conformance tests compare the code and the pointer only. 'rule' is the rule number of spec/run-config.md §8, or null for a refusal that section does not list. 'planners', where present, lists the only planners that raise the refusal (a check not every planner makes, D107); absent, every planner does. The planners are named 'julia' and 'rust'. A refusal fixture (tests/conformance/plans/refusals/) of a code with 'planners' is refused by those planners and must be planned by the others.",
  "codes": [
    {"code": "run_config_invalid", "rule": null, "where": "spec/plan.md §4 step 1", "meaning": "The run config does not validate against its JSON Schema (pointer \"\", the document root), or a duration read from a parameter is not a positive finite number (pointer: the duration's key), or a partition.shards entry names a coupled node or an operator a coupled node names (pointer: /partition/shards/<key>, spec/plan.md §7.4)."},
    {"code": "version_unsupported", "rule": null, "where": "spec/run-config.md §1", "meaning": "The run config's esm_integrator version is not one this planner implements. Pointer: /esm_integrator."},
    {"code": "toy_model_not_plannable", "rule": 1, "where": "spec/plan.md §4 step 2", "meaning": "The model is toy:<problem>, which only the conformance harness accepts. Pointer: /model."},
    {"code": "model_load_failed", "rule": 1, "where": "spec/plan.md §4 step 3", "meaning": "The model does not load or validate with EarthSciAST; the message carries EarthSciAST's own code. A rejected solver.time_span whose cause is a rule-14 one takes that code instead (spec/plan.md §4 step 3). Pointer: /model."},
    {"code": "solver_external_mismatch", "rule": 1, "where": "spec/plan.md §4 step 4", "meaning": "The model's solver.external does not resolve to this run config. Pointer: /model."},
    {"code": "model_flatten_failed", "rule": 1, "where": "spec/plan.md §4 step 5", "meaning": "EarthSciAST refused to flatten the model or expand its references. Pointer: /model."},
    {"code": "unsupported_event", "rule": 16, "where": "spec/plan.md §0.1", "meaning": "The flattened model has continuous or discrete events; condition and map operators need U6 (M4b). Pointer: /model."},
    {"code": "unsupported_parameter_update", "rule": 16, "where": "spec/plan.md §0.1, §4.1, D75, D87", "meaning": "A parameter carries an update rule other than the single data rule of a data-fed parameter: schedule, condition, remesh and wiener rules, a handler, and a data rule beside another rule. Pointer: /model."},
    {"code": "unsupported_forcing", "rule": 16, "where": "spec/plan.md §0.1, §4.1, D87", "meaning": "A loader_fields entry of the flattened model names no parameter of it, so no data-fed parameter can carry its values. Pointer: /model."},
    {"code": "unsupported_index_set", "rule": 16, "where": "spec/plan.md §4 step 6", "meaning": "An index set is not an interval with an integer size. Pointer: /model."},
    {"code": "unsupported_map_parameter_target", "rule": 16, "where": "spec/plan.md §5.1.5, D132", "meaning": "A map operator's target is a parameter; a parameter that changes during a run is not yet specified for the runtimes. Pointer: /operators/<op>/map/<target>."},
    {"code": "unsupported_map_adjoint", "rule": 16, "where": "spec/plan.md §0.1, §6.8, D132", "meaning": "The run config has adjoint and its schedule has a map node; the map document's Jacobian, which map_vjp needs, is not yet emitted. Pointer: the map node."},
    {"code": "unsupported_solve_pairing", "rule": 16, "where": "spec/plan.md §5.9.5, D120", "meaning": "A solving node has no diagonal pairing of its residual blocks with its unknown blocks although the singularity test (spec/plan.md §5.9.3) did not refuse it; an element-level matching is not yet specified. Pointer: the node."},
    {"code": "unsupported_dae_bounds", "rule": 16, "where": "spec/run-config.md §4.3, D122", "meaning": "A coupled node with algebraic operators has a bounded unknown (lb or ub); a complementarity DAE is not specified. Pointer: the node."},
    {"code": "unsupported_dae_initialize", "rule": 16, "where": "spec/run-config.md §4.3, spec/plan.md §7.1", "meaning": "The initialize method of a coupled node with two or more algebraic operators uses picard, converged.rel_change, a scale that names a variable, or a block_lu or sparse_block_lu linsolve (checked in that order); the frozen documents and the block structure these need are per operator, and their combination over the node's operators is not specified. Pointer: the key, <node>/initialize/picard, <node>/initialize/converged/rel_change, <node>/initialize/scale/<unknown> (the first such unknown in code-point order) or <node>/initialize/linsolve."},
    {"code": "unsupported_bound_reference", "rule": 16, "where": "spec/plan.md §5.9.7, D95, D125", "meaning": "A solve node's bounded unknown has a bound that refers to a state, or to an observed that depends on a state; numbers, parameters and state-free observeds are planned (a bound that moves with the state is a later addition). Pointer: the unknown's entry, <node>/unknowns/<i>."},
    {"code": "unsupported_solve_option", "rule": 16, "where": "spec/methods.md §15.6", "meaning": "A solve method (or a DAE's initialize) asks for linesearch strong_wolfe or anderson greater than 0, which v1 does not specify. Pointer: the key."},
    {"code": "operator_mixes_kinds", "rule": 20, "where": "spec/plan.md §5.9.1, D120", "meaning": "An operator's selector matches both right-hand-side terms and algebraic equations. Pointer: /operators/<op>."},
    {"code": "operator_kind_mismatch", "rule": 20, "where": "spec/plan.md §7.1, D120", "meaning": "A solve node names an operator that is not algebraic, or a leaf names an algebraic operator. Pointer: the node's operator entry."},
    {"code": "algebraic_unknown_unsolved", "rule": 20, "where": "spec/plan.md §5.9.2, D120", "meaning": "A solved unknown (an algebraic unknown some algebraic equation reads) is solved by no solve or coupled node. Pointer: /model, naming the first in code-point order."},
    {"code": "algebraic_unknown_solved_twice", "rule": 20, "where": "spec/plan.md §5.9.2, D120", "meaning": "An algebraic unknown is solved by two solve or coupled nodes. Pointer: the second node in tree order."},
    {"code": "solve_structurally_singular", "rule": 20, "where": "spec/plan.md §5.9.3, D120", "meaning": "A solving node's residuals and unknowns admit no perfect structural matching: their element counts differ, or the block dependency graph's maximum flow is less than the number of unknowns. Pointer: the node."},
    {"code": "solve_pairing_ambiguous", "rule": 20, "where": "spec/plan.md §5.9.6, D120", "meaning": "A solving node's canonical pairing is not unique along an alternating cycle that passes through a bounded unknown, whose pairing decides its complementarity conditions. Pointer: the node."},
    {"code": "dae_method_invalid", "rule": 20, "where": "spec/run-config.md §4.3, D122", "meaning": "A coupled node with algebraic operators has an alg that is not one of the stiffly accurate methods Rodas3, Rodas4, Rodas5P, TRBDF2, Kvaerno3, Kvaerno4, or has imex. Pointer: the node's alg, or its imex."},
    {"code": "unsupported_split_explicit", "rule": 16, "where": "spec/run-config.md §4.11", "meaning": "A split_explicit node (M7)."},
    {"code": "unsupported_crossing_update", "rule": 16, "where": "D22", "meaning": "A crossing parameter-update rule (not in v1). Reported in place of unsupported_parameter_update whenever any parameter has one, whatever the parameter order; it does not jump ahead of unsupported_event (spec/plan.md §4 step 6). Pointer: /model."},
    {"code": "unsupported_dt_scope", "rule": 16, "where": "spec/partitioning.md §2.1, §2.5, D97", "meaning": "A column leaf gives control.dt_scope cell or shard; column lane pools are specified (spec/partitioning.md §2.5) but not yet implemented. Refused in spec/plan.md §7.1's unsupported-construct pass, in tree order. Pointer: the node's <node>/control/dt_scope."},
    {"code": "dt_scope_not_local", "rule": 19, "where": "spec/run-config.md §8 rule 19; spec/partitioning.md §2.1; D97", "meaning": "control.dt_scope cell or shard on a leaf whose class is stencil or global, on a pointwise leaf whose Jacobian storage is not block_diagonal, or on a coupled node: its cells cannot step alone. Checked with rule 19 (spec/plan.md §7.1). Pointer: the node's <node>/control/dt_scope."},
    {"code": "dt_scope_bind_dt", "rule": 19, "where": "spec/run-config.md §8 rule 19; spec/partitioning.md §2.1; D97", "meaning": "control.dt_scope cell or shard on a leaf with a bind_dt: leaf parameter, which cannot hold several step sizes at once. Pointer: the node's <node>/control/dt_scope."},
    {"code": "reshard_without_shard_scope", "rule": 19, "where": "spec/run-config.md §8 rule 19; spec/partitioning.md §6.2, §10.1; D104", "meaning": "A leaf's partition.reshard other than none on a leaf whose resolved dt_scope is not shard. Pointer: the node's <node>/partition/reshard."},
    {"code": "unsupported_state_bounds", "rule": 16, "where": "spec/run-config.md §4.2, D95", "meaning": "A state advanced by a leaf or coupled node has a model bound (lb or ub, U18) other than lb 0 with no ub; lb 0 alone makes the state nonnegative (domain), and other bounds on states are not yet specified. Raised once the planner's EarthSciAST carries bounds (U18). Pointer: /model."},
    {"code": "axes_unresolved", "rule": null, "where": "spec/plan.md §5.2.1, D67", "meaning": "axes names an index set that does not exist or names one twice, or more than two horizontal axes result. Pointer: /axes. Also an axes.faces entry whose face set is not an index set or is itself a horizontal or vertical axis, whose cell axis is neither, or whose face set does not have one element more than its cell axis (D105). Pointer: /axes/faces/<face set>."},
    {"code": "name_unresolved", "rule": 2, "where": "spec/run-config.md §8", "meaning": "A qualified name does not resolve in the flattened model, or a precision key names no operator, node or default (spec/plan.md §7.1)."},
    {"code": "name_wrong_kind", "rule": 2, "where": "spec/run-config.md §8", "meaning": "A qualified name resolves to the wrong kind of variable."},
    {"code": "map_shape_mismatch", "rule": 2, "where": "spec/plan.md §5.1.5, D132", "meaning": "A map operator's source observed has another shape than its target. Pointer: /operators/<op>/map/<target>."},
    {"code": "operator_undefined", "rule": 3, "where": "spec/run-config.md §8", "meaning": "The schedule names an operator that is neither defined nor an existing default operator, in a leaf or coupled list, a frozen entry or an imex entry. Pointer: the entry, such as <node>/leaf/<i> or <node>/imex/<part>/<i> (spec/plan.md §7.1)."},
    {"code": "term_selected_twice", "rule": 4, "where": "spec/plan.md §5.1.3", "meaning": "A term is matched by two operators' selectors."},
    {"code": "selector_matches_nothing", "rule": 4, "where": "spec/plan.md §5.1.3", "meaning": "An operator's selector matches no term. With several, the first in code-point order is reported."},
    {"code": "ambiguous_term_owner", "rule": null, "where": "spec/plan.md §5.1.3, D65", "meaning": "A term that reads variables of two or more other components is matched by no selector while some selector uses components. Pointer: /operators."},
    {"code": "term_origin_unknown", "rule": null, "where": "spec/plan.md §5.1.1", "meaning": "A contribution has an empty origins list. Pointer: /model."},
    {"code": "operator_not_advanced", "rule": 5, "where": "spec/run-config.md §8", "meaning": "An operator, named or default, is advanced by no node of the schedule (a frozen entry counts as advancing). Pointer: /operators/<op>, or /schedule for a default operator."},
    {"code": "operator_advanced_twice", "rule": 5, "where": "spec/run-config.md §8", "meaning": "An operator is named by two leaf or coupled nodes (a strang running a child twice is one place; frozen entries do not count). Pointer: the second such node's operator entry in tree order, <node>/leaf/<i> or <node>/coupled/<i> (<node>/leaf when the leaf is a single string; spec/plan.md §7.1)."},
    {"code": "imex_partition_invalid", "rule": 6, "where": "spec/run-config.md §4.5", "meaning": "An imex partition leaves an operator of the leaf in neither part or puts one in both, or an IMEXEuler leaf has no imex. Pointer: the leaf's <node>/imex for a bad partition; the leaf's pointer (spec/plan.md §7.1) when imex is missing."},
    {"code": "duplicate_node_id", "rule": 7, "where": "spec/plan.md §7.1", "meaning": "Two nodes have the same id, or a given id equals a path the planner assigns."},
    {"code": "node_id_reserved", "rule": 7, "where": "spec/plan.md §7.1", "meaning": "A path-form node id on a node whose path it is not."},
    {"code": "hold_tendency_child_not_leaf", "rule": 8, "where": "spec/run-config.md §4.9", "meaning": "An every node with hold: tendency whose child is not a single leaf. Pointer: the every node's <node>/every."},
    {"code": "tstop_off_fixed_step", "rule": 9, "where": "spec/run-config.md §5", "meaning": "A tstop that is not t0 plus a multiple of a fixed step.dt, under a root that cannot land on it. Pointer: /step/hit_multiples, or /adjoint/functional/over for an adjoint observation time (spec/plan.md §7.3)."},
    {"code": "precision_contradicts_declaration", "rule": 10, "where": "spec/plan.md §7.5", "meaning": "A state or rhs precision role contradicts a declared element_type, or a leaf's written states declare different element_types. Pointer: the precision entry that set the role, /precision/<key>; for mixed declarations with no entry setting state, the leaf's pointer in the schedule (spec/plan.md §7.1)."},
    {"code": "precision_rhs_below_state", "rule": 10, "where": "spec/plan.md §7.5", "meaning": "The rhs role is below the state role. Pointer: the precision entry that set the role, /precision/<key>."},
    {"code": "precision_conflict", "rule": null, "where": "spec/plan.md §7.5", "meaning": "precision entries for two operators of one leaf disagree on a role. Pointer: the first entry in the leaf's operator order that disagrees on that role with the leaf's first entry setting it, /precision/<op>."},
    {"code": "precision_low_with_classical_rosenbrock", "rule": null, "where": "spec/plan.md §7.5, architecture §8", "meaning": "A jacobian or factors role below rhs on a Rosenbrock method other than Rosenbrock23; for an alg of \"auto\", checked once spec/plan.md §5.5.3 resolves the method. Pointer: the precision entry that set the role, /precision/<key>."},
    {"code": "wrt_matches_nothing", "rule": 11, "where": "spec/run-config.md §7.2", "meaning": "An adjoint.wrt entry matches nothing; a forcing: entry matches the data-fed parameters (spec/plan.md §4.1, §7.6)."},
    {"code": "wrt_bound_parameter", "rule": 11, "where": "spec/run-config.md §7.2", "meaning": "An adjoint.wrt entry names a parameter bound by bind_dt."},
    {"code": "step_control_missing", "rule": 12, "where": "spec/plan.md §7.3", "meaning": "step has neither dt nor limits and the schedule root is not a single adaptive leaf or coupled node."},
    {"code": "step_after_invalid", "rule": 12, "where": "spec/run-config.md §5, D138", "meaning": "step.after does not name a child of the schedule's root sequence, or a child at or before it is not a solve node."},
    {"code": "adaptive_without_error_estimate", "rule": 13, "where": "spec/run-config.md §4.2, D52", "meaning": "A leaf with dt omitted whose method has no embedded error estimate."},
    {"code": "time_interval_missing", "rule": 14, "where": "spec/plan.md §7.2", "meaning": "No source gives a run interval. Pointer: /time."},
    {"code": "time_interval_empty", "rule": 14, "where": "spec/plan.md §7.2", "meaning": "The interval's end is not after its start. Pointer: /time, \"\" for the caller's interval, /model for the model's solver.time_span."},
    {"code": "time_invalid_date", "rule": 14, "where": "spec/plan.md §7.2", "meaning": "A timestamp is malformed (EarthSciAST's timestamp_malformed) or names a day its month does not have (timestamp_no_calendar_day): in the caller's interval, which no schema checks, or in the model's solver.time_span, including a malformed bound EarthSciAST's schema rejects at load. A run-config timestamp the run-config schema rejects is run_config_invalid. Pointer: the timestamp's key, \"\" for the caller's, /model for the model's solver.time_span."},
    {"code": "time_origin_invalid", "rule": 14, "where": "spec/plan.md §7.2, D74", "meaning": "A timestamp is given and the model's time-origin field cannot be read. Pointer: the timestamp's key (\"\" for the caller's, /model for solver.time_span)."},
    {"code": "bind_dt_leaf_without_dt0", "rule": 15, "where": "spec/run-config.md §4.2", "meaning": "An adaptive leaf binds a parameter to the leaf step but gives no control.dt0. Pointer: the binding, the leaf's bind_dt or /operators/<op>/bind_dt."},
    {"code": "output_time_outside_interval", "rule": null, "where": "spec/run-config.md §7.3", "meaning": "An output or saveat time lies outside the run interval. Cannot occur at M2: saveat is a duration whose multiples are taken inside (t0, tf] (D83)."},
    {"code": "auto_strategy_unavailable", "rule": null, "where": "spec/plan.md §5.5.3, D71", "meaning": "An auto choice has no M2 resolution: a stiff global leaf, a stiff pointwise leaf whose Jacobian storage is not block_diagonal, a stencil leaf with a stiff column operator and no dt, or an implicit method on a stencil or global leaf with linsolve omitted."},
    {"code": "auto_stiffness_reads_forcing", "rule": 17, "where": "spec/plan.md §5.5.2, D87", "meaning": "An operator's stiffness would be classified by the Gershgorin bound (rule 4), but its Jacobian reads a data-fed parameter, whose sampled values are synthetic. Name the alg of the leaf that advances it. Pointer: that leaf's pointer, /schedule under an auto schedule."},
    {"code": "forcing_without_scale", "rule": 17, "where": "spec/plan.md §4.1, D87", "meaning": "A used data-fed parameter (read by an operator or an ic equation) has no default, or a default with a zero element, so the planner's checks have no scale to sample it around. Checked after pass 3. Pointer: /model."},
    {"code": "forcing_records_invalid", "rule": 17, "where": "spec/plan.md §4.1, D87", "meaning": "A data-fed parameter's effective records_per_sample is 2 but its source's temporal block is not discrete (no start, or neither frequency nor file_period), so there is no successor record. What EarthSciAST validates itself (no temporal block; a record shape whose first index set does not have two members) is refused at load (records_per_sample_invalid, reported as model_load_failed); this code covers only the cadence check EarthSciAST does not make. Pointer: /model."},
    {"code": "forcing_refresh_not_hit", "rule": 17, "where": "spec/plan.md §7.3, D87", "meaning": "An operator reads a time-varying (discrete) data-fed parameter but step.hit does not name forcing_refresh, so a step could cross a forcing epoch. Pointer: /step/hit, or /step when it has no hit."},
    {"code": "solve_bounds_invalid", "rule": 18, "where": "spec/run-config.md §4.10, D95", "meaning": "A solve node has a bounded unknown (a model variable with lb or ub) and either a rel_change convergence criterion (a bounded solve converges on its reformulated residual only) or a referenced bound that is, or depends through observeds on, one of the node's unknowns (it would move during the solve). Pointer: the node's <node>/method/converged/rel_change, or <node>/unknowns/<i> for the bounded unknown (spec/plan.md §7.1)."},
    {"code": "solve_bounds_sign", "rule": 18, "where": "spec/run-config.md §4.10, D95", "meaning": "A bounded component's diagonal Jacobian entry dg_i/dz_i is positive at a state the solve operator's band check samples, so its residual likely has the wrong sign (the residual of lhs ~ rhs is rhs - lhs). Pointer: the unknown's entry, <node>/unknowns/<i> (spec/plan.md §7.1)."},
    {"code": "solve_scale_invalid", "rule": 18, "where": "spec/run-config.md §4.10, D125", "meaning": "A solve method's (or a DAE initialize's) scale names an observed that depends on a state, or a parameter or observed whose shape is neither scalar nor the unknown's. Pointer: <node>/method/scale/<unknown> (or <node>/initialize/scale/<unknown>)."},
    {"code": "band_model_failed", "rule": null, "where": "spec/plan.md §5.2.2, §5.4", "meaning": "EarthSciASTDiff refused to differentiate a term or an operator. Pointer: /model."},
    {"code": "reserved_component_name", "rule": null, "where": "spec/plan.md §4 step 7, §6.1.4", "meaning": "The model has a top-level component named JacobianEval. Pointer: /model."},
    {"code": "partition_axis_missing", "rule": null, "where": "spec/plan.md §7.4", "meaning": "ranks or tiles divide a horizontal axis the model does not have. Pointer: /partition."},
    {"code": "partition_too_fine", "rule": null, "where": "spec/plan.md §7.4", "meaning": "ranks times tiles exceeds an axis's size. Pointer: /partition."},
    {"code": "partition_conflict", "rule": null, "where": "spec/plan.md §7.4", "meaning": "partition.shards entries for two operators of one leaf disagree. Pointer: the first entry in the leaf's operator order that disagrees with the leaf's first entry, /partition/shards/<op>."},
    {"code": "validation_rhs_sum_failed", "rule": null, "where": "spec/plan.md §8.1", "meaning": "The operators' right-hand sides do not sum to the model's. Pointer: /model."},
    {"code": "validation_band_model_failed", "rule": null, "where": "spec/plan.md §8.1", "meaning": "An operator's band Jacobian disagrees with the independent Jacobian, or has a non-finite value at a sampled state. Pointer: /model."},
    {"code": "validation_time_band_model_failed", "rule": null, "where": "spec/plan.md §6.7, §8.1, D102, D107", "meaning": "An operator's time-derivative document disagrees with the exact derivative in t at a sampled state beyond the tolerance of spec/plan.md §8.1, or a row with no time band depends on t. Only a planner that differentiates exactly in t makes this check (Julia); the others skip it. Pointer: /model.", "planners": ["julia"]},
    {"code": "validation_empty_operator", "rule": null, "where": "spec/plan.md §8.1", "meaning": "An operator has no term, or no band although a term reads a state. Pointer: /model."}
  ]
}
