{
  "$defs": {
    "TotalValueRef": {
      "additionalProperties": false,
      "description": "The sum of known source values in the window, in the source unit.\n\nStart and event windows update after decisions: bar t sees observations through t-1.\nEntry windows update before invested decisions, include t, and reset only on opening\nfrom flat and are absent while flat. Entry windows are refused in gates and event\nstudies; entry conditions may read them, and formula sizing refuses them when their\nabsence necessarily prevents the first entry. Guarded sizing can be admitted when\nthe guard is available while flat and a branch can size before entry. Historical\naccount state is never replayed. State survives paper checkpoints. Offset is refused.\nBind leaf routes or use at; this value has no\nroute fields. Inputs join at their finest frame; coarser children read their last\ncompleted bar and retain their history and readiness.\n\nKnown gaps: a raw trailing ratchet does not reset after firing; an entry window\nincludes the whole bar of a midbar scheduled fill and only the owning entry rule\nresets it. Scale-ins and partial exits do not reset it. Scheduled rules see their\nobserved frame included.\nObserves warmup without trading; historical, routed and stateful consumption is\nrefused. Direct arithmetic and conditional consumption is supported.\nAbsent source values are skipped.",
      "properties": {
        "kind": {
          "const": "total",
          "title": "Kind",
          "type": "string"
        },
        "source": {
          "anyOf": [
            {
              "$ref": "../defs.json#/$defs/ValueRef"
            },
            {
              "type": "number"
            }
          ]
        },
        "window": {
          "$ref": "../defs.json#/$defs/Since"
        }
      },
      "required": [
        "kind",
        "source",
        "window"
      ],
      "title": "TotalValueRef",
      "type": "object"
    }
  },
  "$ref": "#/$defs/TotalValueRef"
}
