Observation strategies¶
A strategy document (.obs) gives the worldview a way to explain a class of requests. A k.IM model might supply rainfall from a particular product. A strategy specifies when to look for models or resolve an intermediate observation.
strategies observations version 2.0;
strategy 0 named dependent.direct
"Find models for a concrete quality or process in its context."
for pattern {
node { kind = one_of(quality, process); abstract = false; }
}
ensure context.exists(), request.fully_specified($this)
observe $this
;
Here the pattern selects kinds of request, the two guards require both a context and a sufficiently specified request, and $this refers to the current observable. observe searches for a compatible model. A resolve operation asks the system to explain an observation and may invoke other strategies. The numeric rank determines the order in which eligible strategies are tried. Candidate models are ranked separately within a strategy.
Resources parses the source, the Reasoner matches it against the request, and the Resolver attempts to satisfy it at the requested scale. The Runtime must still be able to execute the selected computations. In a twin, inspect Dataflow to see a selected plan and Provenance for the recorded work. A k.DL rendering describes a plan. Reconstructing and replaying a complete historical twin from that text is a separate capability. How k.LAB chooses a method · Read a result