Reference · Calculus

Six operations. Explicit success or refusal.

Recipe Calculus evaluates admitted recipes and bundles. Results are non-publishable evaluation artifacts tied to exact input identity and effective selection.

OperationPurpose
resolve_selectionReturn the deterministic active recipe and component-instance view.
resolve_formulaResolve one active ratio or percentage formula to ordered quantities.
scaleApply one exact factor, or derive it from one root formula target.
convert_quantityPerform exact supported UCUM same-dimension or temperature conversion.
reading_orderTopologically order selected active steps with authored tie order.
scheduleCalculate earliest starts from explicit dependencies and durations.

Closed requests

{
  "operation": "scale",
  "arguments": {
    "formula_target": {
      "formula_id": "main-dough",
      "target": { "kind": "measured", "value": "2", "unit": "kg" }
    }
  }
}

Numeric discipline

Internal work uses exact rational arithmetic. Public decimals are independently quantized half-to-even with at most four fractional digits. Schemami never redistributes rounding residuals to make displayed line items add up cosmetically.

Scheduling is not a calendar

schedule is an earliest-start projection. “Na véspera” remains authored section language; date, timezone, reminders, and operational placement belong to an application.