{"modulePath":"github.com/Open-MBEE/OpenSysML","version":"v0.13.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package runtime\n\nPackage runtime provides the SysML v2 execution runtime: expression evaluation, instance materialization, and KerML operator library.\n\n### Usage Example {#hdr-Usage_Example}\n\n\t// Create the model-derived part once, then a runtime context over it\n\tmodel := runtime.NewModel(passes.NewTypedModel(resolver), resolver)\n\tctx := runtime.NewContext(model, runtime.DefaultMaxSteps)\n\n\t// Instantiate a part\n\tpartSym := resolveSymbol(root, \"MyCar\")\n\tinst, err := ctx.Instantiate(partSym)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// Evaluate an expression\n\texprNode := parseExpression(\"1 + 2\")\n\tresult, err := ctx.Eval(exprNode)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Println(result.Const.Int) // 3\n\n### Architecture {#hdr-Architecture}\n\nThe runtime is organized in three tiers:\n\n  - Tier 1: Feature flattening (effective-feature lists per type)\n  - Tier 2: Instance model (lazy feature value materialization, multiplicity-driven collections)\n  - Tier 3: Expression evaluator (literals, operators, feature access, calc invocation, KerML builtins)\n\nKey types:\n\n  - Context: Runtime execution context (ID allocator, instance registry, memoization)\n  - Value: Runtime-evaluable value (int/real/bool/string/null/instance/Sequence/Set)\n  - EffectiveFeature: One entry in a type's effective feature list (Tier 1 schema)\n  - Instance: Runtime-materialized object with typed feature values\n  - EvalContext: Lexical environment for evaluation (frame stack)\n\n### Integration {#hdr-Integration}\n\n  - Consumes semantics.Model (inherits features, multiplicity, constant folding)\n  - Gates on pass-validated models (LevelConstraint success)\n  - One Context per workspace session (LSP/REPL lifetime)\n\nBehavioral simulation (actions, state machines) is out of scope (future Tiers 4–5).\n\n## Constants\n\n```go\nconst (\n\t// DefaultMaxSteps bounds expression evaluations.\n\tDefaultMaxSteps int64 = 10000000\n\t// DefaultMaxActionSteps bounds the token-flow steps one action run performs.\n\tDefaultMaxActionSteps int64 = 1000000\n\t// DefaultMaxStateEvents bounds the events one state machine run dispatches.\n\tDefaultMaxStateEvents int64 = 1000000\n\t// DefaultMaxDoSteps bounds the do actions one state machine run\n\t// performs.\n\tDefaultMaxDoSteps int64 = 5000000\n\t// DefaultMaxElements bounds the collection elements one evaluation holds,\n\t// ~104MB of Values.\n\tDefaultMaxElements int64 = 1000000\n\t// DefaultMaxCalcDepth bounds the nested calc invocations one evaluation holds\n\t// on the stack, ~10KB each.\n\tDefaultMaxCalcDepth int64 = 10000\n\t// DefaultMaxSweepRuns bounds the runs one parameter sweep or sample makes,\n\t// each of which is a whole analysis or calc run of its own.\n\tDefaultMaxSweepRuns int64 = 1000\n\t// DefaultMaxIntegerBits bounds the magnitude of one Integer a run computes,\n\t// 2^20 bits (315,653 decimal digits, 128KiB).\n\tDefaultMaxIntegerBits = semantics.DefaultMaxIntegerBits\n)\n```\nDefault bounds on one run. Each one stops a different kind of runaway, so each counts a different thing and has its own variable.\n\nThe step and event bounds are sized by how long a runaway takes to report rather than by memory: those steps allocate nothing that outlives them, and the only thing they make grow is a %trace, at 34-83 bytes an entry. Measured rates are ~13.6M evaluation steps/s and ~1.9M events/s, so each default reports a runaway within about a second, and a fully traced run at those four ceilings holds ~320MB.\n\nCollection elements are the exception, and MaxElements is the bound that reads as memory: a materialized element is a 104-byte Value living as long as the collection holding it, and \\`1..10000000\\` conjures one per step. It counts the elements one evaluation holds, not the elements a run produced in total, so a loop or a state machine building a small collection each step is not stopped by the steps before it.\n\n```go\nconst (\n\tMaxStepsEnvVar       = \"OPENSYSML_MAX_STEPS\"\n\tMaxActionStepsEnvVar = \"OPENSYSML_MAX_ACTION_STEPS\"\n\tMaxStateEventsEnvVar = \"OPENSYSML_MAX_EVENTS\"\n\tMaxDoStepsEnvVar     = \"OPENSYSML_MAX_DO_STEPS\"\n\tMaxElementsEnvVar    = \"OPENSYSML_MAX_ELEMENTS\"\n\tMaxCalcDepthEnvVar   = \"OPENSYSML_MAX_CALC_DEPTH\"\n\tMaxSweepRunsEnvVar   = \"OPENSYSML_MAX_SWEEP_RUNS\"\n\tMaxIntegerBitsEnvVar = \"OPENSYSML_MAX_INTEGER_BITS\"\n)\n```\nEnvironment variables overriding the defaults above, following the OPENSYSML\\_LIBRARY\\_PATH convention. The legacy SYSML\\_-prefixed names remain accepted via envvar.Lookup, with the OPENSYSML\\_ name winning when both are set.\n\n```go\nconst (\n\tBoundSteps       = \"steps\"\n\tBoundActionSteps = \"actionSteps\"\n\tBoundEvents      = \"events\"\n\tBoundDoSteps     = \"doSteps\"\n\tBoundElements    = \"elements\"\n\tBoundBehaviors   = \"behaviors\"\n)\n```\nThe executor budgets a search runs under, by the name a bound hit reports; each names one field of Budgets, so a report spells the limit that stopped it.\n\n```go\nconst (\n\tMonteCarloRunsOutput      = \"runs\"\n\tMonteCarloMeanOutput      = \"mean\"\n\tMonteCarloDeviationOutput = \"deviation\"\n\tMonteCarloOutOfSpecOutput = \"outOfSpec\"\n)\n```\nThe features Simulation::MonteCarlo declares, by the name each is declared under; the outputs are exported for the comparison of a case's statistics with a tool's.\n\n```go\nconst BehaviorStartFailureCode = \"behavior-start-failed\"\n```\nBehaviorStartFailureCode is the diagnostic code a behavior that failed to start is reported under beside the object that still stands.\n\n```go\nconst CalcCompileEnvVar = \"OPENSYSML_CALC_COMPILE\"\n```\nCalcCompileEnvVar switches the compiled tier for pure calc bodies off when set to 0 (or false/off/no), leaving every calc to the reference evaluator.\n\n```go\nconst ChoiceDiagnosticCode = \"choice-point\"\n```\nChoiceDiagnosticCode is the code every choice-point diagnostic carries.\n\n```go\nconst HeldObjectDepth = maxMaterializeDepth\n```\nHeldObjectDepth is how many objects deep validating an object reaches: a feature held deeper is cut, as materializing it would be.\n\n```go\nconst MinMaxIntegerBits = semantics.MinMaxIntegerBits\n```\nMinMaxIntegerBits is the least Integer size budget a run may be given.\n\n```go\nconst ScheduleEnd = -1\n```\nScheduleEnd asks ReplaySchedule for the run's end, every move followed.\n\n```go\nconst ToolDivergenceCode = \"tool-divergence\"\n```\nToolDivergenceCode is the diagnostic code of a ToolDivergence note.\n\n```go\nconst UndeterminedText = \"\u003cundetermined\u003e\"\n```\nUndeterminedText is how every surface spells a result the model does not determine: a model-level read of a valueless or open-count feature, or over one.\n\n```go\nconst UnevaluableGuardCode = \"guard-unevaluable\"\n```\nUnevaluableGuardCode is the code a diagnostic about a guard the run could not evaluate carries.\n\n```go\nconst UnsetText = \"\u003cunset\u003e\"\n```\nUnsetText is how every surface spells a feature value that holds no value: a valueless feature of a value type, whose instances are values rather than objects.\n\n## Variables\n\n```go\nvar (\n\n\t// ErrStepLimitExceeded is returned when the evaluation step counter exceeds maxSteps.\n\tErrStepLimitExceeded = errors.New(\"evaluation step limit exceeded\")\n\n\t// ErrInterrupted is returned when a run is stopped from outside, through the\n\t// flag Context.SetInterrupt installs, before it ended on its own.\n\tErrInterrupted = errors.New(\"interrupted\")\n\n\t// ErrElementLimitExceeded is returned when the collection elements one run\n\t// materializes exceed maxElements. It is a bound on memory rather than on\n\t// work, so it is its own error and its own budget.\n\tErrElementLimitExceeded = errors.New(\"collection element limit exceeded\")\n\n\t// ErrIntegerSizeLimit is returned when an Integer result would need more\n\t// bits than the run's Integer size budget allows. Integers are unbounded;\n\t// the budget bounds the memory and time one result may take.\n\tErrIntegerSizeLimit = semantics.ErrIntegerSizeLimit\n\n\t// ErrInstanceLimitExceeded is returned when materializing one more object\n\t// would take the context past the bound SetMaxInstances set.\n\tErrInstanceLimitExceeded = errors.New(\"object limit exceeded\")\n\n\t// ErrUnresolvedReference is returned when a feature reference cannot be resolved.\n\tErrUnresolvedReference = errors.New(\"unresolved reference\")\n\n\t// ErrTypeMismatch is returned when an operation receives a value of unexpected type.\n\tErrTypeMismatch = errors.New(\"type mismatch\")\n\n\t// ErrDivisionByZero is returned when a division or remainder has a zero\n\t// divisor. It is the answer to the expression, not a missing declaration.\n\tErrDivisionByZero = semantics.ErrDivisionByZero\n\n\t// ErrMultiplicityViolation is returned when a feature value access/assignment violates multiplicity bounds.\n\tErrMultiplicityViolation = errors.New(\"multiplicity violation\")\n\n\t// ErrUniquenessViolation is returned when a value written to a unique feature repeats one of its values.\n\tErrUniquenessViolation = errors.New(\"uniqueness violation\")\n\n\t// ErrNotACalc is returned when a calc invocation targets a symbol that is\n\t// not a calc definition or usage.\n\tErrNotACalc = errors.New(\"not a calc\")\n\n\t// ErrNotAConstraint is returned when a symbol asked to be evaluated as a\n\t// constraint declares something else. It is a usage error about the request,\n\t// not a verdict about the model, so callers can tell the two apart.\n\tErrNotAConstraint = errors.New(\"not a constraint\")\n\n\t// ErrNotARequirement is returned when a symbol asked to be evaluated as a\n\t// requirement declares something else. Like ErrNotAConstraint it reports the\n\t// request, not the model.\n\tErrNotARequirement = errors.New(\"not a requirement\")\n\n\t// ErrNotAnObject is returned when a symbol asked to be validated as an object\n\t// has no objects: a package, an attribute, a comment. It reports the request.\n\tErrNotAnObject = errors.New(\"not an object\")\n\n\t// ErrNotAnAnalysis is returned when a symbol asked for its objectives or\n\t// asked to be run is not a case whose body runs. Like ErrNotAConstraint it\n\t// reports the request, not the model.\n\tErrNotAnAnalysis = errors.New(\"not an analysis case\")\n\n\t// ErrAcceptDeadlock is returned when an action can no longer progress\n\t// because every token it has left is parked at an accept, so no token can\n\t// post the message any of them waits for. An accept suspends the action\n\t// rather than failing, so this is how a suspension that can never end is\n\t// reported instead of hanging.\n\tErrAcceptDeadlock = errors.New(\"accept deadlock\")\n\n\t// ErrActionDeadlock is returned when action tokens cannot make progress.\n\tErrActionDeadlock = errors.New(\"action deadlock\")\n\n\t// ErrExecutorReleased is returned when a released executor is stepped.\n\tErrExecutorReleased = errors.New(\"executor released\")\n\n\t// ErrNegativeDuration is returned when a delay — an `accept after`, a time\n\t// transition's or an advance of the clock — is negative, infinite, no number\n\t// at all, or leads past the last instant the clock can hold: the clock never\n\t// runs backwards and always reads a finite instant.\n\tErrNegativeDuration = errors.New(\"negative duration\")\n\n\t// ErrNothingDue is returned when one step is asked of an executor whose only\n\t// remaining work waits on the clock for an instant it has not reached.\n\tErrNothingDue = errors.New(\"nothing due at the current instant\")\n\n\t// ErrCalcRecursionLimit is returned when calc invocation nests deeper than\n\t// the run's calc depth budget, which an unbounded recursion would otherwise\n\t// do until the process ran out of stack.\n\tErrCalcRecursionLimit = errors.New(\"calc recursion limit exceeded\")\n\n\t// ErrActionStepLimitExceeded is returned when an action executor exceeds\n\t// its token-flow step budget.\n\tErrActionStepLimitExceeded = errors.New(\"action step limit exceeded\")\n\n\t// ErrStateEventLimitExceeded is returned when state processing exceeds its\n\t// event budget.\n\tErrStateEventLimitExceeded = errors.New(\"state event limit exceeded\")\n\n\t// ErrDoStepLimitExceeded is returned when a state do behavior exceeds its\n\t// action-step budget.\n\tErrDoStepLimitExceeded = errors.New(\"state do-step limit exceeded\")\n\n\t// ErrMixedArguments is returned when an operation invocation gives positional and\n\t// named arguments together: an argument list is one form or the other (KerML 8.2.5.8.3).\n\tErrMixedArguments = errors.New(\"positional and named arguments mixed\")\n\n\t// ErrStreamCycle is returned when streaming flows lead a value written to a pin back\n\t// to that pin while the write is still being carried on.\n\tErrStreamCycle = errors.New(\"streaming flows form a cycle\")\n\n\t// ErrViolated is returned when an asserted constraint or a required\n\t// condition evaluates to false. It is a verdict about the model, not a\n\t// failure to evaluate, so callers can tell the two apart.\n\tErrViolated = errors.New(\"evaluated to false\")\n\n\t// ErrNoValue is returned when a feature carries no value: no feature value or\n\t// default, an output never assigned, or a calc or constraint result nothing bound.\n\tErrNoValue = errors.New(\"no value\")\n\n\t// ErrCyclicFeatureValue is returned when a feature value's default value depends, directly or\n\t// through other feature values, on the one being computed.\n\tErrCyclicFeatureValue = errors.New(\"cyclic feature value dependency\")\n\n\t// ErrIncommensurableUnits is returned when an operation combines quantities\n\t// whose units measure different things; see semantics.ErrIncommensurableUnits.\n\tErrIncommensurableUnits = semantics.ErrIncommensurableUnits\n\n\t// ErrNotASatisfaction is returned when a satisfaction assertion is asked of\n\t// an element that states none.\n\tErrNotASatisfaction = errors.New(\"not a satisfaction assertion\")\n\n\t// ErrNoRequirement is returned when a satisfaction assertion states no\n\t// requirement to evaluate: it references none, or references one that\n\t// resolves to nothing.\n\tErrNoRequirement = errors.New(\"no requirement to satisfy\")\n\n\t// ErrIndexOutOfRange is returned when an index names no position of the\n\t// sequence or string it indexes; indices are 1-based, so 0 is out of range\n\t// as much as size+1 is, and each operation names what it indexed.\n\tErrIndexOutOfRange = errors.New(\"index out of range\")\n\n\t// ErrBodyArity is returned when the body expression a collection operation\n\t// is given declares a number of parameters the operation cannot call it\n\t// with: `select` calls its selector with one element, so a selector\n\t// declaring two parameters has no second argument to receive.\n\tErrBodyArity = errors.New(\"body parameter count mismatch\")\n\n\t// ErrVariationUnselected is returned when a variation is read without having\n\t// been bound to one of its variants: it classifies its variants abstractly,\n\t// so it stands for no one value until a variant is selected.\n\tErrVariationUnselected = errors.New(\"variation has no variant selected\")\n\n\t// ErrFeatureValueMaterialization marks an error as a feature value that could not be\n\t// materialized, whatever kept it from materializing. Reading a feature value is what\n\t// finds such a failure, so a surface reporting one answered nothing about\n\t// that feature value rather than deciding anything about the model.\n\tErrFeatureValueMaterialization = errors.New(\"feature value could not be materialized\")\n\n\t// ErrNoSuchFeature is returned when a member read, a write, or a chained\n\t// assignment reaches an object whose type declares no feature of that name:\n\t// the object has nothing to answer with and nowhere to hold the value.\n\tErrNoSuchFeature = errors.New(\"object has no such feature\")\n\n\t// ErrNeedsObject is returned when a case a definition owns is run with no\n\t// object of the definition to run on: the case is a feature of such an\n\t// object, so with none instantiated its body has nothing to read.\n\tErrNeedsObject = errors.New(\"needs an object\")\n)\n```\n\n```go\nvar DefaultExploreBudget = ExploreBudget{Runs: 1024, Depth: 64}\n```\nDefaultExploreBudget is the budget \\`explore\\` has when its spelling names none.\n\n```go\nvar DefaultExploreSchedulePolicy = SchedulePolicy{/* contains filtered or unexported fields */}\n```\nDefaultExploreSchedulePolicy is \\`explore\\` with no options: every linearization within the default budget.\n\n```go\nvar DefaultSchedulePolicy = SchedulePolicy{/* contains filtered or unexported fields */}\n```\nDefaultSchedulePolicy is the policy runs use unless one is set: \\`reverse\\`.\n\n```go\nvar ErrAmbiguousSubject = errors.New(\"ambiguous subject\")\n```\nErrAmbiguousSubject is returned when more than one object carries the checked element, so which one the verdict would be about is a question, not an answer.\n\n```go\nvar ErrCheckRefused = errors.New(\"check refused\")\n```\nErrCheckRefused is the typed error every move the run could not make as the checker selected it wraps.\n\n```go\nvar ErrClockStep = errors.New(\"invalid clock step\")\n```\nErrClockStep is the typed error a clock step that is not a finite, non-negative number is refused with.\n\n```go\nvar ErrExplorationDiverged = errors.New(\"exploration diverged\")\n```\nErrExplorationDiverged is the typed error for a replay that did not meet the choice points its prefix recorded, so no outcome set can be trusted.\n\n```go\nvar ErrExploreUndriven = errors.New(\"explore is not a policy one context runs under\")\n```\nErrExploreUndriven is the typed error SetSchedule returns for \\`explore\\`, which Explore drives over fresh contexts rather than one.\n\n```go\nvar ErrInvalidSchedulePolicy = errors.New(\"invalid scheduling policy\")\n```\nErrInvalidSchedulePolicy is the typed error every unparseable policy spelling wraps.\n\n```go\nvar ErrNoMetaclass = errors.New(\"no reflective metaclass classifies the element\")\n```\nErrNoMetaclass is returned when an element's declaration is classified by no reflective metaclass the loaded libraries declare, so it has no metaobject.\n\n```go\nvar ErrNotAQuantityValueType = errors.New(\"not a quantity value type\")\n```\nErrNotAQuantityValueType reports a quantity said to be held as a type no quantity is held as.\n\n```go\nvar ErrNotCarried = errors.New(\"object does not carry the case\")\n```\nErrNotCarried is returned when a case a type owns is run on an object that is not of that type and holds none.\n\n```go\nvar ErrNotCompleted = errors.New(\"action did not complete\")\n```\nErrNotCompleted is the typed error an action run for a duration that has not completed by its end fails with; the message names where it stopped.\n\n```go\nvar ErrNotExploring = errors.New(\"scheduling policy does not explore\")\n```\nErrNotExploring is the typed error Explore returns for a policy that is not \\`explore\\`.\n\n```go\nvar ErrProgressMonitor = errors.New(\"progress checking requires a named pending predicate\")\n```\nErrProgressMonitor means that no named pending-obligation predicate was provided.\n\n```go\nvar ErrProgressTimed = errors.New(\"progress checking requires untimed execution without a clock horizon\")\n```\nErrProgressTimed means a started invocation declared a horizon or advanced its clock during search.\n\n```go\nvar ErrReflectiveFeatureUnsupported = errors.New(\"reflective feature is not derived\")\n```\nErrReflectiveFeatureUnsupported is returned when a metaclass declares the feature read from a metaobject but the runtime derives no value for it.\n\n```go\nvar ErrReplayDisagrees = errors.New(\"replay disagrees with the witness\")\n```\nErrReplayDisagrees is the typed error every replay that reaches another state wraps.\n\n```go\nvar ErrReplayRefused = errors.New(\"replay refused\")\n```\nErrReplayRefused is the typed error every refused replay move wraps.\n\n```go\nvar ErrRescheduleMidRun = errors.New(\"reschedule inside a step\")\n```\nErrRescheduleMidRun is Reschedule from inside a step.\n\n```go\nvar ErrSnapshotMidRun = errors.New(\"snapshot inside a step\")\n```\nErrSnapshotMidRun reports a snapshot asked for from inside a step: a snapshot is taken between steps, where no run, body or evaluation is on the stack.\n\n```go\nvar ErrSnapshotPausedBody = errors.New(\"snapshot of a body paused mid-statement\")\n```\nErrSnapshotPausedBody reports a body paused mid-statement — a token's step a breakpoint or a wait on the clock suspended, or a do behavior waiting — whose continuation points into its model's lowered statements: a Snapshot of the same context captures it, a portable image (HeldImage) does not.\n\n```go\nvar ErrTool = errors.New(\"tool failed\")\n```\nErrTool is the typed error every failure of a tool invocation unwraps to.\n\n```go\nvar ErrToolDryRun = errors.New(\"tool dry run\")\n```\nErrToolDryRun is the error a dry run stops the performance with at its first tool call; it passes through unchanged.\n\n```go\nvar ErrUnknownCheckFeature = errors.New(\"no such feature to check divergence of\")\n```\nErrUnknownCheckFeature is the typed error a check whose Diverge names no feature wraps.\n\n```go\nvar ErrUnseededDraw = errors.New(\"modeled randomness needs a seed\")\n```\nErrUnseededDraw is the typed error a modeled draw raises when no seed fixes it.\n\n```go\nvar ErrVerdictUndecided = errors.New(\"verdict undecided: a behavior that failed to start may still write a feature the condition read\")\n```\nErrVerdictUndecided marks a verdict withheld because a condition read a feature a failed behavior of the object may still write.\n\n```go\nvar ErrWitnessInput = errors.New(\"witness input refused\")\n```\nErrWitnessInput is the typed error every witness input the run cannot fix wraps.\n\n```go\nvar ExecutorBounds = []string{BoundSteps, BoundActionSteps, BoundEvents, BoundDoSteps, BoundElements, BoundBehaviors}\n```\nExecutorBounds lists the executor budgets a bound hit may name, in report order.\n\n```go\nvar SchedulePolicyNames = []string{\"declared\", \"reverse\", \"seed:\u003cn\u003e\", \"explore[:runs=\u003cn\u003e,depth=\u003cd\u003e]\", \"replay:\u003cfile\u003e\"}\n```\nSchedulePolicyNames lists the policy spellings ParseSchedulePolicy accepts, for usage text; \\`seed:\\\u003cn\u003e\\` stands for any non-negative decimal seed and the bracketed options of \\`explore\\` are each optional; \\`replay:\\\u003cfile\u003e\\` names a file of choice lines.\n\n```go\nvar SignalDefinitionKinds = []symbols.SymbolKind{\n\tsymbols.SymbolAttributeDef,\n\tsymbols.SymbolItemDef,\n\tsymbols.SymbolOccurrenceDef,\n\tsymbols.SymbolPartDef,\n\tsymbols.SymbolIndividualDef,\n\tsymbols.SymbolEnumerationDef,\n\tsymbols.SymbolMetadataDef,\n}\n```\nSignalDefinitionKinds are the definitions a signal is declared as: what an accept may be typed by and a send may carry. A behavior definition is neither.\n\n## Functions\n\n```go\nfunc ActionNodeName(node ast.Node) string\n```\nActionNodeName returns the declared name of an action graph node, or \"\" when the node is anonymous or not a named node kind.\n\n```go\nfunc BranchLabel(pos int, target ast.Node) string\n```\nBranchLabel names a decision's succession as a choice line does: its declared position, counted from 1, and its target.\n\n```go\nfunc BranchLabelOf(pos int, graph *lower.ActionGraph, target program.NodeID) string\n```\nBranchLabelOf is BranchLabel of the target behind target in graph.\n\n```go\nfunc CheckClockStep(step float64) error\n```\nCheckClockStep is ErrClockStep unless step is a finite, non-negative number of seconds.\n\n```go\nfunc ConditionText(n ast.Node) string\n```\nConditionText is the text a NoValueError names the expression n by.\n\n```go\nfunc DecisionPlace(node ast.Node) string\n```\nDecisionPlace is where a choice line places a decision node's branch choice.\n\n```go\nfunc DecisionPlaceOf(graph *lower.ActionGraph, node program.NodeID) string\n```\nDecisionPlaceOf is DecisionPlace of the decision behind node in graph.\n\n```go\nfunc DeclScope(sym *symbols.Symbol) *symbols.Scope\n```\nDeclScope returns the scope a declaration's body was written in: the scope the declaration owns, in which its own members are visible to each other, falling back to the scope it was declared in when it owns none. It is the scope an expression written among its members resolves its names against — an attribute default, a guard, an assignment in a nested action body — and the scope the runtime lowers the declaration in.\n\n```go\nfunc DescribeGaps(gaps []CoverageGap) string\n```\nDescribeGaps joins the gaps' descriptions, in their order.\n\n```go\nfunc DescribeValue(val Value) string\n```\nDescribeValue names a value's kind for a diagnostic, distinguishing the numeric constants a single kind covers.\n\n```go\nfunc ElementCount(val Value) int64\n```\nElementCount is how many values val holds: a collection's elements, required members counted made or not; none for null; one for any other value.\n\n```go\nfunc ExecutorBound(name string, b Budgets) (int64, bool)\n```\nExecutorBound is the limit the named executor bound has under the budgets, false for a name that is no executor bound's. The object behaviors' rounds are counted in events, so both names spell the events limit.\n\n```go\nfunc FormatChoices(choices []ChoiceTaken) string\n```\nFormatChoices renders a witness as one line, its choices in run order.\n\n```go\nfunc FormatComplex(z complex128) string\n```\nFormatComplex renders a complex number as its parts read, \\`1.0 + 2.0i\\`, with the imaginary part's sign as the operator: \\`1.0 - 2.0i\\`.\n\n```go\nfunc FormatTraceValue(v Value) string\n```\nFormatTraceValue renders a runtime value canonically for a trace. Set elements are sorted by their rendering, since a set has no order of its own and its backing map does not iterate in a stable one.\n\n```go\nfunc FormatValue(v Value) string\n```\nFormatValue renders a value with the notation used by user-facing runtime results and diagnostics.\n\n```go\nfunc FormatWeight(w float64) string\n```\nFormatWeight spells a weight as a trace reports it.\n\n```go\nfunc GapNames(gaps []CoverageGap) []string\n```\nGapNames lists the gaps' identifiers, in their order.\n\n```go\nfunc IsRunnableCaseSymbol(sym *symbols.Symbol) bool\n```\nIsRunnableCaseSymbol reports whether sym declares a case whose body runs as steps: an analysis case or a verification case, definition or usage.\n\n```go\nfunc IsSignalDefinition(sym *symbols.Symbol) bool\n```\nIsSignalDefinition reports whether a symbol declares a definition a signal may be typed by, one of SignalDefinitionKinds.\n\n```go\nfunc IsUninitializedFeatureValue(err error) bool\n```\nIsUninitializedFeatureValue reports whether err is a read of a required feature that holds no value and has no default, which a caller shows as unset rather than as a failure.\n\n```go\nfunc IsVerificationCaseSymbol(sym *symbols.Symbol) bool\n```\nIsVerificationCaseSymbol reports whether sym declares a verification case definition or usage.\n\n```go\nfunc LibraryFunctionParams(fqn string) (params []string, ok bool)\n```\nLibraryFunctionParams is the declared parameter names of the library function fqn in declared order, an anonymous parameter as \"\".\n\n```go\nfunc Magnitude(value Value) (semantics.Value, string, bool)\n```\nMagnitude is MagnitudeValue with the quantity's unit (\"\" for a bare number); a one-element sequence is read as its element, so its unit is the element's.\n\n```go\nfunc MagnitudeValue(value Value) (semantics.Value, bool)\n```\nMagnitudeValue is the number a value is as written, Integer or Real, a quantity's magnitude included, and whether it is one.\n\n```go\nfunc NegatedDecl(sym *symbols.Symbol) bool\n```\nNegatedDecl reports whether sym's declaration asserts that its conditions do not hold (\\`assert not constraint { … }\\`, \\`assert not satisfy … by …\\`).\n\n```go\nfunc NodesOf(refs []NodeRef) []ast.Node\n```\nNodesOf is the declarations the references name, in order.\n\n```go\nfunc OrderDependenceText(unresolved int) string\n```\nOrderDependenceText is the marker a value nothing fixed prints with: how many of the run's unresolved choice points touch it, and where the set it stands in is shown. Empty for a value no conflicting alternative wrote.\n\n```go\nfunc ParseClockStep(text string) (float64, error)\n```\nParseClockStep reads a clock step as \\`-clock-step\\` and a witness spell it: a finite, non-negative number of seconds, else ErrClockStep.\n\n```go\nfunc PathText(steps []PathStep) string\n```\nPathText spells steps as an object path.\n\n```go\nfunc PooledDeviation(mean float64, spreads []Spread, dof int) float64\n```\nPooledDeviation is the root of the weighted squares of spreads, those About the mean taken from it, over dof degrees of freedom, 0 for none. Values and mean are scaled by the power of two below the largest before differencing and squaring, which rounds nothing, so finite values however large or far apart pool to a finite deviation.\n\n```go\nfunc ReplaySpelling(spelling string) bool\n```\nReplaySpelling reports whether the spelling asks for a replay, whose file ParseSchedulePolicy reads; a surface with no files of the caller's refuses it before parsing.\n\n```go\nfunc RequireAnalysis(sym *symbols.Symbol) error\n```\nRequireAnalysis returns an ErrNotAnAnalysis usage error unless sym declares an analysis case, so a caller can settle the kind before asking for objectives.\n\n```go\nfunc RequireConstraint(sym *symbols.Symbol) error\n```\nRequireConstraint returns an ErrNotAConstraint usage error unless sym declares a constraint, so a caller can settle the kind before evaluating.\n\n```go\nfunc RequireObject(sym *symbols.Symbol) error\n```\nRequireObject is ErrNotAnObject unless sym has objects to validate: a definition or usage that is neither a namespace nor a data value (attribute, enumeration).\n\n```go\nfunc RequireRequirement(sym *symbols.Symbol) error\n```\nRequireRequirement returns an ErrNotARequirement usage error unless sym declares a requirement.\n\n```go\nfunc RequirementVerdicts(v RequirementVerifier, scopes []*symbols.Scope) view.Verdicts\n```\nRequirementVerdicts is the verdict overlay v answers over the cases in scopes: each case verifying a requirement, the subcases its body performs aside.\n\n```go\nfunc ResolveCheckFeatures(exec *ActionExecutor, names []string) (map[string]FeatureOwner, error)\n```\nResolveCheckFeatures resolves the names a check compares as Check does over an invocation of the started action exec alone, telling whose feature each is; a name nothing answers to is an unknownCheckFeatureError.\n\n```go\nfunc RunSeed(seed uint64, i int64) uint64\n```\nRunSeed is the model seed run i (from 1) of a Monte Carlo seeded from seed draws under: SplitMix64's finalizer over seed + i·stride, a bijection, so two runs of one Monte Carlo never share a seed, and run i is the same on every platform.\n\n```go\nfunc SettleMonteCarloRuns(runs []*MonteCarloRun, stats *MonteCarloStatistics) ([]bool, error)\n```\nSettleMonteCarloRuns settles every run's checks over the sample's statistics and counts outOfSpec into stats, returning the checks that are the sample's. The point between it and the last run's Conclude is where a call boundary before the conclusion is taken.\n\n```go\nfunc StateVertexName(node ast.Node) string\n```\nStateVertexName returns the name of a StateNode or PseudostateNode, \"\" for any other node.\n\n```go\nfunc SymbolText(sym *symbols.Symbol) string\n```\nSymbolText names a symbol in diagnostics, falling back to its kind when it is anonymous.\n\n```go\nfunc TokenLabel(id int64, node ast.Node) string\n```\nTokenLabel names a token as a choice line does: its ID at the node it sits at.\n\n```go\nfunc TokenLabelOf(id int64, graph *lower.ActionGraph, node program.NodeID) string\n```\nTokenLabelOf is TokenLabel of the node behind node in graph.\n\n```go\nfunc WeightedMean(weighted []Counted) (mean float64, count int64)\n```\nWeightedMean is the mean of the values weighted by their counts, exact until it rounds to a Real, with the exact total count; a value that is no finite number carries into the mean as Real arithmetic would carry it.\n\n## Types\n\n```go\ntype AcceptWait struct {\n\tParamName  string // the accept parameter the message will bind to\n\tSignalType string // the type awaited, empty when the accept named none\n\tViaPort    string // the port awaited on, empty when the accept named none\n\tSince      int    // the step during which the token parked, numbered as the trace numbers steps\n\t// Trigger describes the time or change event awaited instead of a message\n\t// (`accept when x \u003e 1`), empty when the accept waits for a message.\n\tTrigger string\n\t// Timed is set for a wait on the context's clock, Due the instant it ends.\n\tTimed bool\n\tDue   float64\n}\n```\nAcceptWait describes the message a parked token is waiting for. It is the accept's lowered shape plus the step the token parked at, which is what lets a blocked run report which accept is waiting for what rather than only that it is stuck.\n\n```go\nfunc (w AcceptWait) String() string\n```\nString describes what a parked token is waiting for, and since when, for error messages and for the REPL's view of a suspended executor.\n\n```go\ntype ActionExecutor struct {\n\t// contains filtered or unexported fields\n}\n```\nActionExecutor executes action bodies using token-flow semantics.\n\n```go\nfunc (e *ActionExecutor) AcceptTaking(m Message) (taking []TakingAccept, err error)\n```\nAcceptTaking lists the accepts parked for m, in the action's own flow and in the work it performs, in the order their tokens are held; the step dispatching m lets one go on.\n\n```go\nfunc (e *ActionExecutor) AcceptsMessage(m Message) (accepted bool, err error)\n```\nAcceptsMessage reports whether a token parked at a signal accept, or an action performed for a paused token, would take m; a port failing to resolve is the error.\n\n```go\nfunc (e *ActionExecutor) ActionSymbol() *symbols.Symbol\n```\nActionSymbol returns the action being executed.\n\n```go\nfunc (e *ActionExecutor) Awaiting(token Token) []lower.ActionEdge\n```\nAwaiting returns the successions into the node token is held at that no token has arrived over yet, nil for a token not held there.\n\n```go\nfunc (e *ActionExecutor) BreakpointAt(within []ast.Node, node ast.Node) (NodeBreakpoint, bool)\n```\nBreakpointAt resolves a breakpoint on node, in the flow of the nested action nodes within (outermost first), to ids; false where a node is not one a performance of the one before holds.\n\n```go\nfunc (e *ActionExecutor) Breakpoints() []string\n```\nBreakpoints lists the node names breakpoints are set at, sorted.\n\n```go\nfunc (e *ActionExecutor) ClearBreakpoints()\n```\nClearBreakpoints removes all breakpoints.\n\n```go\nfunc (e *ActionExecutor) Data() map[string]Value\n```\nData returns the live feature space of the action's own performance; a nested node's features live in its own performance and are reported by Results.\n\n```go\nfunc (e *ActionExecutor) Graph() *lower.ActionGraph\n```\nGraph is the lowered flow the run performs, the one every step of it consumes.\n\n```go\nfunc (e *ActionExecutor) HasPendingSignal() bool\n```\nHasPendingSignal reports whether a message in flight would let a parked token proceed, without consuming it.\n\n```go\nfunc (e *ActionExecutor) Held() Held\n```\nHeld copies what the action's own performance holds now.\n\n```go\nfunc (e *ActionExecutor) Holds(sym *symbols.Symbol, scope *symbols.Scope) (bool, error)\n```\nHolds evaluates a requirement or constraint against the run's state as the executor now holds it: a feature the condition names resolves to the performance's value first, then to the performer's, then to the declaration. It reports whether the conditions hold as CheckRequirementOn and CheckConstraintOn decide, the condition that failed carried as a ViolationError, and a runtime failure of the evaluation as its own error.\n\n```go\nfunc (e *ActionExecutor) KeepTraversals(keep bool)\n```\nKeepTraversals has the run keep the successions its tokens take until TraversalsSince releases them, for a debugger; off (the default), it keeps none.\n\n```go\nfunc (e *ActionExecutor) NextWait() (float64, bool)\n```\nNextWait returns the instant the earliest token parked on the clock proceeds at, false when none is; one already due is not a wait.\n\n```go\nfunc (e *ActionExecutor) NodeNames() []string\n```\nNodeNames returns the names of the action's graph nodes, in declaration order, then those of the flows nested under it: the flows its nodes own and the block flows their bodies state. Anonymous nodes are omitted; a debugger uses it to check that a breakpoint names a node that exists.\n\n```go\nfunc (e *ActionExecutor) NoteCount() int\n```\nNoteCount is how many notes the executor's run has made so far.\n\n```go\nfunc (e *ActionExecutor) Notes() []RunNote\n```\nNotes returns what the executor's run noted so far, in order; see Context.Notes.\n\n```go\nfunc (e *ActionExecutor) NotesSince(mark int) []RunNote\n```\nNotesSince returns what the executor's run noted since mark, a NoteCount read earlier.\n\n```go\nfunc (e *ActionExecutor) Outcome() Outcome\n```\nOutcome is the outcome of the run so far: the values its features hold, and whether a \\`terminate\\` ended it short of its own end.\n\n```go\nfunc (e *ActionExecutor) PausedAt() string\n```\nPausedAt returns the breakpoint node the last run stopped at, or \"\" when the run was not stopped by a breakpoint.\n\n```go\nfunc (e *ActionExecutor) PausedBreakpoint() (NodeBreakpoint, bool)\n```\nPausedBreakpoint identifies the node the last run stopped at, in its nested flow: a node a body performs is identified even as its token stays on the enclosing action. False when the run was not stopped by a breakpoint. The path is the caller's own.\n\n```go\nfunc (e *ActionExecutor) Performer() *Instance\n```\nPerformer returns the object performing the action, nil for an action performed outside any object.\n\n```go\nfunc (e *ActionExecutor) PerformerAttributes() []string\n```\nPerformerAttributes names, in name order, the attributes of the object performing the action: the features a check compares for it absent names; none without one.\n\n```go\nfunc (e *ActionExecutor) Release()\n```\nRelease ends the run for good: the work of every token a breakpoint left paused is ended, so an executor abandoned mid-run holds no suspended run, the clock drives it no further, and a later Step or RunToCompletion returns ErrExecutorReleased, completed or not. Safe to call more than once.\n\n```go\nfunc (e *ActionExecutor) ReplaceBreakpointsAt(bps []NodeBreakpoint)\n```\nReplaceBreakpointsAt makes bps the breakpoints set by identity, named or not, one occurrence of a node each: a debugger holding the graph (Graph, Token.Within) sets breakpoints this way. A stop already made at one kept stands, so a resumed run passes it; one removed stops again once re-set.\n\n```go\nfunc (e *ActionExecutor) Results() map[string]Value\n```\nResults returns the values the action's features hold, under \\`node.pin\\` those of each nested non-repeated node's latest performance and under \\`part.attribute\\` what the one object each of its own parts denotes holds; a performed usage's mirror its occurrence.\n\n```go\nfunc (e *ActionExecutor) ResultsWithError() (map[string]Value, error)\n```\nResultsWithError returns the values the action's features hold and the first binding derivation error; a feature whose binding fails to derive is omitted.\n\n```go\nfunc (e *ActionExecutor) Resume() bool\n```\nResume returns a run a breakpoint suspended to running, for a driver that moves it by other means than a step: the clock, say. Any other state is left as it is.\n\n```go\nfunc (e *ActionExecutor) RunToCompletion() error\n```\nRunToCompletion executes until StateCompleted, a breakpoint, or error. Includes infinite loop protection.\n\nA run stops as soon as a token sits on a node a breakpoint was set on (see SetBreakpoint), or a body a token runs is about to perform one, leaving the tokens where they are so the run can be resumed by calling RunToCompletion again or stepped with Step; PausedAt names the node it stopped at. With no breakpoints set the run is unconditional.\n\nA message-parked action can be resumed by its caller posting a matching message after this run returns; an unowned run reports ErrAcceptDeadlock when none can. A token parked on the clock is resumed by advancing it to its instant.\n\n```go\nfunc (e *ActionExecutor) RunToQuiescence() error\n```\nRunToQuiescence runs the action until it completes, stops at a breakpoint, or parks every remaining token at an accept, holding the clock where it is: for an object's action a parked token is quiescence, not a deadlock.\n\n```go\nfunc (e *ActionExecutor) SetBreakpoint(nodeName string)\n```\nSetBreakpoint adds a breakpoint at the given node name.\n\n```go\nfunc (e *ActionExecutor) SetInputs(inputs map[string]Value)\n```\nSetInputs binds input parameter values into the action's feature space. Inputs are applied after attribute defaults, so they override defaults with the same name. Must be called before initialize().\n\n```go\nfunc (e *ActionExecutor) SetTrace(trace *TraceRecorder)\n```\nSetTrace sets the trace recorder for this executor and the context it evaluates in.\n\n```go\nfunc (e *ActionExecutor) State() ExecutionState\n```\nState returns current execution state.\n\n```go\nfunc (e *ActionExecutor) Step() error\n```\nStep advances execution by one step for all active tokens. Safely handles token slice modifications (fork/join) by collecting indices first.\n\nA step moves each token at most once: a token the step created or moved — a fork's branch, the one a synchronized node performs with — has its first step in the next, so the tokens held at a node are all in before it performs.\n\nA token that reaches an accept with no message it can consume parks there rather than failing: the action is suspended until a matching message arrives. When a step moves nothing and at least one token is parked, the executor enters StateWaiting instead of reporting a deadlock — a caller driving Step itself (the REPL, or a state machine running in the same context) may still post the awaited message and step again, which resumes the parked token. RunToCompletion has no such caller, so it turns a step that leaves the executor waiting into ErrAcceptDeadlock.\n\nA step ends early, with the executor suspended, when a body a token runs is about to perform a node a breakpoint is set on (see SetBreakpoint): the token stays at its node with its work half done and no further token steps. The next step steps the other tokens first, then resumes it.\n\nReturns an error if a deadlock unrelated to accepts is detected (no progress made and nothing is waiting for a message).\n\n```go\nfunc (e *ActionExecutor) StepToBreakpoint() error\n```\nStepToBreakpoint is Step with the breakpoints a run stops at: a token sitting on one the run has not yet stopped at suspends the run before any token moves, and one a step lands on suspends it after, so the next step resumes past it.\n\n```go\nfunc (e *ActionExecutor) Tokens() []Token\n```\nTokens returns a copy of active tokens.\n\n```go\nfunc (e *ActionExecutor) TraversalCount() int\n```\nTraversalCount counts the successions taken so far, released ones included: a mark to read what a later step took from.\n\n```go\nfunc (e *ActionExecutor) Traversals() []Traversal\n```\nTraversals returns the successions kept, in order: a fork's branches as the tokens they spawned, a join as the one token that passes on.\n\n```go\nfunc (e *ActionExecutor) TraversalsSince(mark int) []Traversal\n```\nTraversalsSince returns the kept successions taken since mark, a TraversalCount read earlier, and releases those before it: the run keeps only from the last mark.\n\n```go\ntype AdvanceReport struct {\n\t// From and To are the instants the clock moved between, in seconds.\n\tFrom, To float64\n\t// Events, DoSteps and Steps count the state events dispatched, the do\n\t// actions run and the action steps taken along the way.\n\tEvents, DoSteps, Steps int64\n\t// Dropped are the signals dispatched along the way that no transition\n\t// consumed and no do behavior went on with: deferred by the active state, or dropped.\n\tDropped []Dispatch\n\t// Notes are what the advance noted: the choice points it drew and the\n\t// guards it could not evaluate, in order.\n\tNotes []RunNote\n}\n```\nAdvanceReport is what one advance of the clock did.\n\n```go\ntype AffineTransformation3d struct {\n\tRotation    [9]float64\n\tTranslation [3]float64\n}\n```\nAffineTransformation3d is an AffineTransformationMatrix3d: the 3x3 rotation in row-major order and the translation, both bare numbers.\n\n```go\ntype AnalysisArgs struct {\n\t// Subject is the object the case is run on; nil leaves the case's own\n\t// subject binding, or the enclosing case's subject, to supply it.\n\tSubject *Instance\n\n\t// Positional bind the input parameters the case does not bind itself, in\n\t// declaration order; the subject is never among them.\n\tPositional []Value\n\n\t// Named bind parameters by name.\n\tNamed map[string]Value\n}\n```\nAnalysisArgs are the values a run of an analysis case supplies: an object as its subject, and arguments for its input parameters by position or by name.\n\n```go\ntype AnalysisEvaluation struct {\n\t// Function is the qualified name of the calc applied.\n\tFunction string\n\n\t// Arguments are what the calc was applied to, by parameter position, a named\n\t// one at its parameter's; null where none was given before a later one.\n\tArguments []Value\n\n\t// Result is what the calc computed; unset when Error says why it computed nothing.\n\tResult Value\n\tError  error\n\n\t// Selected marks the evaluation of the value `selectOne` picked and the case\n\t// returned. Tied marks one computing what the selected did, passed over for it.\n\tSelected bool\n\tTied     bool\n}\n```\nAnalysisEvaluation is one application, during a case's run, of a calc held as a function value: a trade study's evaluation of one alternative.\n\n```go\ntype AnalysisResult struct {\n\t// Case is the qualified name of the case that ran.\n\tCase string\n\n\t// Subject is the object the case ran on — supplied, bound by the usage or\n\t// taken from the enclosing case; nil for a case declaring no subject.\n\tSubject *Instance\n\n\t// Inputs are the values the run bound the case's input parameters to, in\n\t// declaration order, the subject parameter excluded: what the body ran with.\n\tInputs []InputBinding\n\n\t// Outputs are the case's out and return parameters, in declaration order;\n\t// a value the body returned into an unnamed result is named \"result\".\n\tOutputs []CalcOutputValue\n\n\t// Verdicts are the case's objectives, in order, then its assertions.\n\tVerdicts []AnalysisVerdict\n\n\t// Evaluations are the applications of the case's own calcs as function values\n\t// the run made, in the order first made, once per distinct argument list.\n\tEvaluations []AnalysisEvaluation\n}\n```\nAnalysisResult is what one run of an analysis case produced: its output values in declaration order, and the verdict of each objective and assertion.\n\n```go\ntype AnalysisVerdict struct {\n\t// Kind is \"objective\" or \"assertion\".\n\tKind string\n\n\t// Name names the objective or the asserted constraint usage, or spells an\n\t// anonymous assertion's condition as written.\n\tName string\n\n\t// Symbol declares the objective or the named constraint asserted; nil for an\n\t// anonymous assertion.\n\tSymbol *symbols.Symbol\n\n\t// Status is what the check decided.\n\tStatus VerdictStatus\n\n\t// Detail is the violated condition of a failed check, or why an undecided\n\t// one could not be evaluated; empty for a satisfied one.\n\tDetail string\n}\n```\nAnalysisVerdict is what one check of an analysis case decided after its body ran: an objective's required conditions, or an assertion in its body.\n\n```go\ntype AnnotationObject struct {\n\tAnnotation semantics.ElementMetadata\n\tObject     *Instance\n\tErr        error\n}\n```\nAnnotationObject is one annotation of an element and the object it denotes: Err says why the object could not be made, and Object is then nil.\n\n```go\ntype ArgumentError struct {\n\tIndex int\n\tErr   error\n}\n```\nArgumentError reports the argument of an argument list, by position, whose evaluation failed.\n\n```go\nfunc (e *ArgumentError) Error() string\n```\n\n```go\nfunc (e *ArgumentError) Unwrap() error\n```\nUnwrap returns the evaluation error itself.\n\n```go\ntype Array struct {\n\tDimensions []int64\n\tElements   []Value\n\t// Object is the Collections::Array object the value was read from, which keeps\n\t// answering the members a specialization adds; 0 for an array made by value.\n\tObject int64\n}\n```\nArray is a Collections::Array: its \\`dimensions\\` and its \\`elements\\` flattened in row-major order. \\`rank\\` and \\`flattenedSize\\` derive from the dimensions.\n\n```go\nfunc (a *Array) Format(element func(Value) string) string\n```\nFormat renders \\`Array(2, 2)\\[1, 2, 3, 4]\\` with each element rendered by element; an array of rank 0 is \\`Array()\\[7]\\`.\n\n```go\nfunc (a *Array) Rank() int\n```\nRank is the number of dimensions.\n\n```go\ntype Asserted struct {\n\tKind AssertionKind\n\t// Symbol is the asserting usage and Scope the scope its conditions resolve in.\n\tSymbol *symbols.Symbol\n\tScope  *symbols.Scope\n\t// Text is the assertion as written, so an anonymous one can be named.\n\tText string\n\t// contains filtered or unexported fields\n}\n```\nAsserted is one assertion a type states about every object of it: an asserted or invariant constraint, a requirement it carries, or a satisfy usage.\n\n```go\ntype AssertionKind string\n```\nAssertionKind is the kind of assertion an object verdict is about.\n\n```go\nconst (\n\tAssertionConstraint   AssertionKind = \"constraint\"\n\tAssertionRequirement  AssertionKind = \"requirement\"\n\tAssertionSatisfaction AssertionKind = \"satisfaction\"\n\t// AssertionBinding is a binding connector linking fewer values than its ends hold,\n\t// which identifies some value of one end with some value of the other.\n\tAssertionBinding AssertionKind = \"binding\"\n)\n```\n\n```go\ntype BehaviorStartFailure struct {\n\tBehavior *ObjectBehavior\n}\n```\nBehaviorStartFailure is a behavior a type bound to an object that failed to start, or failed while the creation ran it to quiescence, as a finding about the object: the object stands and the behavior runs no further.\n\n```go\nfunc (f BehaviorStartFailure) Describe() string\n```\nDescribe renders the failure for a diagnostic: the behavior and what it failed with.\n\n```go\nfunc (f BehaviorStartFailure) Diagnostic() diag.Diagnostic\n```\nDiagnostic is the failure as a finding about the object: a warning, since the object was made and the behavior's failure is a fact about this run of it.\n\n```go\nfunc (f BehaviorStartFailure) Location() (string, source.Span)\n```\nLocation is where the behavior was bound to the object's type.\n\n```go\nfunc (f BehaviorStartFailure) String() string\n```\nString is the trace line the failure is recorded as.\n\n```go\ntype BodySteps struct {\n\tStmts     []lower.Statement\n\tScope     *symbols.Scope\n\tNode      ast.Node // first statement, for spans\n\tOrder     *lower.StatementOrder\n\tFootprint lower.Footprint\n}\n```\nBodySteps is the statements one constraint body performs before its conditions are evaluated, with the body scope for spans and name resolution.\n\n```go\nfunc (s *BodySteps) Written() source.Span\n```\nWritten is where the steps begin, empty for none.\n\n```go\ntype Bring func(id int64) (*Instance, error)\n```\nBring answers, for an object of another context, the object of this one that stands for it; an error when none does.\n\n```go\ntype Budgets struct {\n\tMaxSteps       int64\n\tMaxActionSteps int64\n\tMaxStateEvents int64\n\tMaxDoSteps     int64\n\tMaxElements    int64\n\tMaxCalcDepth   int64\n\tMaxSweepRuns   int64\n\tMaxIntegerBits int64\n}\n```\nBudgets bounds one run of the runtime, and how many runs one sweep asks for. The bounds count incommensurable things — expression evaluations, action token-flow steps, state machine events, do actions, materialized collection elements, nested calc invocations, swept runs and the bits of one Integer — so raising one says nothing about the others.\n\n```go\nfunc BudgetsFromEnv() (Budgets, error)\n```\nBudgetsFromEnv returns the bounds the environment asks for: for each variable the positive integer it holds, or the default when it is unset or empty. Every unusable value is reported, naming its variable and the value, so a typo is reported instead of silently leaving the default in place.\n\n```go\nfunc DefaultBudgets() Budgets\n```\nDefaultBudgets returns the bounds a run uses when the environment names no override.\n\n```go\nfunc (b Budgets) Validate() error\n```\nValidate reports every bound that is not positive, which would let a run make no progress at all, below its floor, or above its ceiling, which would fail unrecoverably.\n\n```go\ntype Builtin struct {\n\tName   string\n\tFQN    string\n\tParams []string\n\t// Collection is true for the operations over sequences, collections and\n\t// bodies, which are the ones written in the postfix `x-\u003ename()` form.\n\tCollection bool\n\t// Package is the library package that declares the function, which a model\n\t// imports for a call by the unqualified name to be legal: the name resolves\n\t// as any other does, so `import RealFunctions::*;` is what makes a bare\n\t// `sqrt(x)` denote RealFunctions::sqrt.\n\tPackage string\n}\n```\nBuiltin is one library function this runtime implements directly, described for a caller that lists them: the unqualified name a call may use, the library declaration that name denotes, and the parameter names of that declaration when the registry knows them.\n\n```go\nfunc Builtins() []Builtin\n```\nBuiltins returns every library function this build implements that a model calls by name, in name order, each with the package a call by that name needs imported. It is the registry behind the REPL's %builtins listing, so what the REPL advertises is what this build implements. A declaration registered only to report itself as not evaluable is left out, as is one named as an operator, which a model writes as that operator rather than as a call.\n\n```go\ntype CalcOutputValue struct {\n\tName  string\n\tValue Value\n}\n```\nCalcOutputValue is the value one output feature of a calc usage took, in the order the calc declares its outputs.\n\n```go\ntype Call struct {\n\tOperation string\n\tDeclared  *symbols.Symbol\n\tArgs      map[string]Value\n}\n```\nCall is the payload of an eventCall: the operation invoked, its declaration as a behavior member of the machine's owner (nil when it declares none) and the arguments.\n\n```go\ntype CheckArgs struct {\n\tPositional []Value\n\tNamed      map[string]Value\n}\n```\nCheckArgs are the values a check of a constraint or requirement supplies for its \\`in\\` parameters: by position in declaration order, the subject never among them, or by name. The zero value supplies nothing.\n\n```go\ntype CheckBudget struct {\n\tDepth  int\n\tStates int\n}\n```\nCheckBudget bounds a check: the moves one schedule may make and the distinct states the search may visit; 0 leaves either unbounded.\n\n```go\ntype CheckFinal struct {\n\tOutcome string\n\tValues  map[string]string\n\tWitness Witness\n\t// contains filtered or unexported fields\n}\n```\nCheckFinal is one distinct outcome of the complete schedules and a schedule reaching it; Values spells every feature divergence is reported over, the performing object's as \\`this.\\\u003cname\u003e\\`, and Outcome spells the action's outputs with the object's values after them.\n\n```go\ntype CheckOptions struct {\n\t// Diverge names the features whose divergence is reported: the action's own\n\t// bare, a performed node's as `node.pin`, the performing object's as `this.\u003cname\u003e`;\n\t// none names the action's own features and the object's attributes. A name\n\t// no feature answers to fails the check (ErrUnknownCheckFeature).\n\tDiverge []string\n\t// Reduce explores one representative of each class of equivalent schedules;\n\t// off, every schedule. It is off only to test that the reduction loses nothing.\n\t// A check with properties searches unreduced: what a property reads is not\n\t// in the footprints the reduction is sound for.\n\tReduce bool\n}\n```\nCheckOptions selects what a check reports and how it searches.\n\n```go\ntype CheckProperty struct {\n\tName  string\n\tHolds func(*Context, *Invocation) (bool, error)\n}\n```\nCheckProperty is a property evaluated at every stable state of a check: a requirement or constraint, false at a state being a violation. Holds is asked in the check's context of the invocation the check runs, and again of a replay of the witness that claims it false or failing to evaluate.\n\n```go\ntype CheckReport struct {\n\tVerdict CheckVerdict\n\t// States counts the distinct states visited; Moves the moves made; MaxDepth\n\t// the longest schedule searched.\n\tStates   int\n\tMoves    int\n\tMaxDepth int\n\t// BoundsHit names the search and statement-order bounds it ran into, and the\n\t// executor's budgets by name (ExecutorBounds); none when exhaustive.\n\tBoundsHit []string\n\t// Limits are the executor's budgets the search ran under.\n\tLimits Budgets\n\t// Horizon is the instant the search stopped the clock at: no schedule was\n\t// followed past it, and a state there is final.\n\tHorizon    Horizon\n\tViolations []Violation\n\tDivergent  []Divergence\n\t// Finals are the distinct outcomes of the complete schedules, in canonical order.\n\tFinals []CheckFinal\n\t// Unenumerated are the constructs whose unordered alternatives the searched\n\t// runs took in one order without a choice point, so a clean report observed\n\t// rather than bounded the result.\n\tUnenumerated []CoverageGap\n\t// Coverage is every state entered and transition taken over all the searched\n\t// schedules, not only the witness of each final, with how many schedules did so.\n\tCoverage Coverage\n\t// Scope is the distinct reasons the finals were observed short of quiescence.\n\tScope []ObservationReason\n\t// MassBounded reports the violations' masses are lower bounds: they are when a\n\t// bound kept schedules out, moves left an interleaving out, a state was reached\n\t// again, or the reduction left a move unexplored at a state.\n\tMassBounded bool\n}\n```\nCheckReport is what a check of the schedules of an action found.\n\n```go\nfunc Check(stop context.Context, fresh func() (*Context, error), start Starter, budget CheckBudget, opts CheckOptions, props []CheckProperty) (*CheckReport, error)\n```\nCheck searches the schedules of the invocation start begins in the context fresh makes. Every violation and every final value carries the witness a replay of the same starter follows (Replay). It stops with a CheckStopped when stop ends first; it fails when the run refused a move it selected. The start draws choice points itself (region entry order), so it is begun once per way of resolving them and the search runs from every state a start reaches.\n\n```go\nfunc (r *CheckReport) Status() string\n```\nStatus renders how the check ended for a report.\n\n```go\ntype CheckResult struct {\n\tHolds       bool\n\tSubject     *Instance\n\tSubjectRoot *Instance\n\tSubjectPath []string\n\n\t// Vacuous says why a holding requirement check judged no required condition:\n\t// it states none, or an assumption did not hold. Empty for a verdict about conditions.\n\tVacuous string\n}\n```\nCheckResult is the outcome of one check: whether it holds, the object its conditions were evaluated against — nil when they were evaluated against the declaration because no object carries the checked element — and, for a nested subject, the object the search started from plus the features walked from it, one name a segment — ending in the declaration the object materializes, as an ambiguity names it — which are how a caller names an object holding no name of its own.\n\n```go\ntype CheckStopped struct {\n\tStates   int\n\tMoves    int\n\tMaxDepth int\n\tCause    error\n}\n```\nCheckStopped is a check the caller stopped before it ended, with what it had searched so far; it unwraps to the caller's reason.\n\n```go\nfunc (e *CheckStopped) Error() string\n```\n\n```go\nfunc (e *CheckStopped) Unwrap() error\n```\n\n```go\ntype CheckVerdict int\n```\nCheckVerdict is how a check ended.\n\n```go\nconst (\n\t// CheckExhaustive found no violation and every schedule, up to equivalence, was searched.\n\tCheckExhaustive CheckVerdict = iota\n\t// CheckWithinBounds found no violation among the schedules the bounds let it search.\n\tCheckWithinBounds\n\t// CheckViolation found a violation.\n\tCheckViolation\n\t// CheckDivergent found no violation and a feature whose final value the schedule decides.\n\tCheckDivergent\n)\n```\n\n```go\nfunc (v CheckVerdict) String() string\n```\n\n```go\ntype ChoiceKind int\n```\nChoiceKind names what an executor chose among at a choice point.\n\n```go\nconst (\n\t// ChoiceTokenOrder: several tokens were steppable in one step, and the step\n\t// advanced them in an order the library does not fix.\n\tChoiceTokenOrder ChoiceKind = iota\n\t// ChoiceDecisionBranch: several guards of one decision node held.\n\tChoiceDecisionBranch\n\n\t// ChoiceTransition: several transitions out of one state were enabled for\n\t// one event.\n\tChoiceTransition\n\t// ChoiceRegionOrder: one event enabled transitions in several regions, which\n\t// fired in an order the library does not fix.\n\tChoiceRegionOrder\n\t// ChoiceDueOrder: several executors had work due at one instant of the\n\t// shared clock, and one of them ran first.\n\tChoiceDueOrder\n)\n```\n\n```go\nfunc (k ChoiceKind) String() string\n```\nString is the kind as a trace or diagnostic names it.\n\n```go\ntype ChoiceParseError struct {\n\t// Line is the 1-based line of the witness, 0 for a line parsed on its own.\n\tLine   int\n\tText   string\n\tReason string\n}\n```\nChoiceParseError reports a line of a witness that spells no choice, with why.\n\n```go\nfunc (e *ChoiceParseError) Error() string\n```\n\n```go\nfunc (e *ChoiceParseError) Is(target error) bool\n```\nIs makes every ChoiceParseError match errInvalidChoice.\n\n```go\ntype ChoicePoint struct {\n\tKind ChoiceKind\n\t// Step is the action step the choice was made in, 0 for a state machine.\n\tStep int\n\t// Where names the decision node, the state and event, or the instant of a\n\t// due order; empty for a token order.\n\tWhere string\n\t// Alternatives are canonical: tokens by ID, branches and transitions by\n\t// declaration position, writes by writing token, reacting states by name in\n\t// declaration order, executors due at one instant in the order they were\n\t// created, tied events in arrival order. Taken indexes the one taken.\n\tAlternatives []string\n\tTaken        int\n\t// Weights are the probabilities the model states for the alternatives of a\n\t// weighted decision, one per alternative; nil for a choice the model does not weight.\n\tWeights []float64\n\t// Drew is the unit draw that selected Taken among the Weights, when Drawn.\n\tDrew  float64\n\tDrawn bool\n\t// File and Span locate the declaration the choice was made at; File is \"\"\n\t// when the runtime could not name one.\n\tFile string\n\tSpan source.Span\n\t// Independent reports that the alternatives commute by their lowered\n\t// footprints: whichever is taken, the run's values are the same, so the\n\t// choice leaves no value order-dependent.\n\tIndependent bool\n\t// Touches are the features the conflicting alternatives write, sorted; the\n\t// run's value of each is order-dependent on this choice.\n\tTouches []string\n\t// contains filtered or unexported fields\n}\n```\nChoicePoint is one point where an executor had several enabled alternatives the Kernel Semantic Library leaves unordered and took one by its own scheduling rule.\n\n```go\nfunc (c ChoicePoint) Choice() ChoiceTaken\n```\nChoice is the choice point as a witness lists it: what ChoiceTaken.String spells and ParseChoice reads back.\n\n```go\nfunc (c ChoicePoint) Describe() string\n```\nDescribe renders the choice for a diagnostic: the alternatives in canonical order and which one the executor took; a weighted decision's alternatives carry their weights and how the branch was selected.\n\n```go\nfunc (c ChoicePoint) Diagnostic() diag.Diagnostic\n```\nDiagnostic is the choice as a finding about the run: informational, since a model is not wrong for admitting several orders and the run took one of them.\n\n```go\nfunc (c ChoicePoint) Location() (string, source.Span)\n```\nLocation is where the choice was made.\n\n```go\nfunc (c ChoicePoint) Standing() string\n```\nStanding is what the choice leaves open: \\`independent\\` when its alternatives commute by their footprints, else \\`order-dependent\\`, naming the features the conflicting alternatives wrote.\n\n```go\nfunc (c ChoicePoint) String() string\n```\nString is the trace line the choice is recorded as.\n\n```go\ntype ChoiceTaken struct {\n\tKind ChoiceKind\n\t// Step is the action step the choice was made in, 0 for a state machine.\n\tStep int\n\t// Where names the decision node or the state and event; empty for a token order.\n\tWhere string\n\t// Alternatives is how many the point had; Taken indexes the one taken.\n\tAlternatives int\n\tTaken        int\n\t// Among names the alternatives as a trace does; Took is the one taken: the\n\t// token tried next, a branch or a transition by declared position and target,\n\t// or the state whose transition fired first.\n\tAmong []string\n\tTook  string\n\t// Weights are the probabilities the model states for the alternatives, one\n\t// per alternative, for a weighted decision; nil for a choice it does not weight.\n\tWeights []float64\n\t// Drew is the unit draw that selected Taken among the Weights, when Drawn.\n\tDrew  float64\n\tDrawn bool\n}\n```\nChoiceTaken is one choice point of a run and the alternative it took, as the witness of an outcome lists them.\n\n```go\nfunc ParseChoice(text string) (ChoiceTaken, error)\n```\nParseChoice reads one choice as ChoiceTaken.String spells it: \\`step N: T first of A, B\\`, \\`step N: decision D -\u003e B\\`, \\`S -\u003e T\\`, \\`W: X first of A, B\\` (a region order, a due order at \\`t=…\\`, or a dispatch order among \\`events at t=…\\`), \\`step N: statements in …: X first of A, B\\`.\n\n```go\nfunc ParseChoices(text string) ([]ChoiceTaken, error)\n```\nParseChoices reads the choices of a witness header naming no object and spelling no input: as ChoiceTaken.String spells them, one per line or joined by \\`; \\`, ending at the first blank line after it; what follows is ignored.\n\n```go\nfunc (c ChoiceTaken) String() string\n```\nString renders the choice for a table or a failure message, as ParseChoice reads it back: a name the line's own punctuation occurs in is quoted, and a weighted branch carries the alternatives with their weights and the draw.\n\n```go\ntype Clock struct {\n\t// contains filtered or unexported fields\n}\n```\nClock is the simulation time every executor of one context shares: the current instant in seconds and the executors whose waits it reads in due order.\n\n```go\nfunc (c *Clock) NextDue() (float64, bool)\n```\nNextDue returns the earliest instant a wait comes due at past the current one, false when nothing waits on the clock.\n\n```go\nfunc (c *Clock) Now() float64\n```\nNow returns the current simulation instant, in seconds.\n\n```go\nfunc (c *Clock) Waits() []ClockWait\n```\nWaits lists everything waiting on the clock for an instant it has not reached, by due instant and, at one instant, by the executors' creation order.\n\n```go\ntype ClockWait struct {\n\t// Due is the instant the wait comes due at, in seconds.\n\tDue float64\n\t// contains filtered or unexported fields\n}\n```\nClockWait describes one wait on the clock for a view of the run.\n\n```go\nfunc (w ClockWait) Holder() string\n```\nHolder names the executor waiting.\n\n```go\nfunc (w ClockWait) What() string\n```\nWhat describes the wait itself.\n\n```go\ntype Condition struct {\n\t// Expr is the condition's expression, nil for a group.\n\tExpr ast.Node\n\n\t// ExprID is Expr in the model's table, lowered in Scope; 0 for a group.\n\tExprID program.ExprID\n\n\t// Scope is where Expr's names resolve, or the type a Conflict is found on;\n\t// nil for a group.\n\tScope *symbols.Scope\n\n\t// Group is the conditions a body states, all of which must hold; nil for a\n\t// condition stating an expression.\n\tGroup []Condition\n\n\t// Steps are the statements the body performs before its Group's conditions\n\t// are evaluated, as one Boolean function performance; nil for a condition\n\t// or a group stating none.\n\tSteps *BodySteps\n\n\t// Conflict is a second result expression, stated or inherited (KerML\n\t// 8.3.4.8); no verdict is reached. Nil otherwise.\n\tConflict *semantics.ResultExpressionConflict\n\n\t// Negated is the negation the declaration wrote, applied to Expr or to the\n\t// whole conjunction Group stands for.\n\tNegated bool\n\n\t// Required distinguishes a required condition from an assumption: a\n\t// requirement holds when its assumptions imply its required conditions.\n\tRequired bool\n\n\t// Constraints are the named constraint usages stating the condition through\n\t// their types, outermost first: each one's parameter values mask the\n\t// enclosing ones', which mask the checked element's. empty reads the latter alone.\n\tConstraints []*symbols.Symbol\n\n\t// Circular is the requirement a `require r` names while r's own conditions\n\t// are being collected: a reference back into the check, stating nothing evaluable.\n\tCircular *symbols.Symbol\n\n\t// Subrequirement is the requirement usage whose check Group states, its assumptions\n\t// implying its required conditions (RequirementCheck::result); nil for a body's conjunction.\n\tSubrequirement *symbols.Symbol\n\n\t// Bound is the Subrequirement's feature where a value is bound to it: the container's check ranges\n\t// over the values the binding yields, Group judged on each (`constraints` holds values). Nil otherwise.\n\tBound *EffectiveFeature\n}\n```\nCondition is one boolean check a constraint or requirement states, with the scope its expression resolves names in. A condition states either an expression or a group, which holds when all of its conditions hold.\n\n```go\nfunc (c Condition) Label() string\n```\nLabel renders the condition as written, negation and grouping included.\n\n```go\nfunc (c Condition) Owner() *symbols.Symbol\n```\nOwner is the nearest named element declaring the condition (the supertype an inherited one came from), or nil; a body-local or anonymous scope is skipped.\n\n```go\nfunc (c Condition) Written() (source.Span, bool)\n```\nWritten is where the condition's own expression was written, false for a condition stating none.\n\n```go\ntype ConnectorEnd struct {\n\tName string\n\t// Feature is the end's own declaration, when the model registers one: through\n\t// it the end's value is a value of every feature the end subsets.\n\tFeature *symbols.Symbol\n\tValue   Value\n}\n```\nConnectorEnd is one end of a materialized connector: the name of the end feature it occupies, empty for an end the model leaves unnamed, and the value the end attaches to. The value is the connected feature itself — an object held at an end is the very object the connected feature holds, not a copy of it (KerML 1.0 §7.4.6) — so writing through one is read through the other.\n\n```go\ntype Context struct {\n\t// contains filtered or unexported fields\n}\n```\nContext is the run-derived state of one execution over a Model: the objects it created, their values and lifetimes, the messages in flight, the clock, the executors' progress. A snapshot captures it; the Model it runs over is shared with every other run of the same model and is not part of it.\n\n```go\nfunc NewContext(model *Model, maxSteps int64) *Context\n```\nNewContext creates a run's context over the model-derived part model. maxSteps sets the runaway guard (step counter limit); the executor bounds take their defaults, which SetBudgets replaces. It panics if maxSteps \\\u003c= 0: the limit is a programmer-supplied invariant, not user input, so callers must pass a positive value.\n\n```go\nfunc (ctx *Context) ActionInputs(scope *symbols.Scope, sym *symbols.Symbol, positional []Value, named []NamedInput) (map[string]Value, error)\n```\nActionInputs is the inputs an invocation of sym binds, as bindArgumentList binds them: the positional arguments to the first \\`in\\` parameters in declaration order, then the named ones in their order — each written name resolved through BoundParameter as an invocation's is. More positional arguments than parameters is errActionArity, a name no \\`in\\` parameter carries is errUnknownParameter, and one already bound is errDuplicateArgument.\n\n```go\nfunc (ctx *Context) ActionOutcome(outputs map[string]Value) Outcome\n```\nActionOutcome is the outcome of an action run: the values its features hold.\n\n```go\nfunc (ctx *Context) ActionOutcomeAdvancedBy(action *symbols.Symbol, self *Instance, inputs map[string]Value, duration float64) (Outcome, error)\n```\nActionOutcomeAdvancedBy runs action as ActionOutcomePerformedBy does, but for duration of simulated time, as \\`sysml -action X -advance T\\` does; one still running then is ErrNotCompleted.\n\n```go\nfunc (ctx *Context) ActionOutcomePerformedBy(action *symbols.Symbol, self *Instance, inputs map[string]Value) (Outcome, error)\n```\nActionOutcomePerformedBy runs an action as ExecuteActionPerformedBy does and reports the outcome an exploration compares: its features and, under \\`this.\\`, the performer's attributes.\n\n```go\nfunc (ctx *Context) Adopt(prev *Context, shapes *Shapes, obj *Instance) ([]string, error)\n```\nAdopt takes obj — and every object it holds — over from prev into this context, keeping the identity and the values they carry across a re-analysis of the document they were materialized from. Each object is rebound to the declaration of the same qualified name here, which must resolve to the shape recorded in shapes; anything else is refused with the context left untouched. The objects are moved rather than copied, so prev holds them too afterwards and this context takes over its identity sequence; nothing new should be materialized through prev, which registers it there alone.\n\nA behavior a carried object ran belongs to the analysis it started in, so it is started again here from its initial state rather than continued. The behaviors restarted are returned, so the carry-over reports what it cost.\n\n```go\nfunc (ctx *Context) AdoptIdentities(prev *Context)\n```\nAdoptIdentities takes over the identity sequence of a context this one replaces, without carrying any object over: objects a run started before still materializes through it, so neither context may hand out the other's.\n\n```go\nfunc (ctx *Context) Advance(duration float64) (AdvanceReport, error)\n```\nAdvance moves the clock by duration seconds, running everything due on the way instant by instant; a wait due later stays queued and nothing waiting is no error. The duration and the instant it leads to must be finite.\n\n```go\nfunc (ctx *Context) AdvanceUntil(duration float64, halted func() bool) (AdvanceReport, error)\n```\nAdvanceUntil is Advance stopping early, the clock held at the instant whose due work made halted true — a debugger's breakpoint — before moving on.\n\n```go\nfunc (ctx *Context) AnalysisOutcome(r AnalysisResult) Outcome\n```\nAnalysisOutcome is the outcome of a case's run: its outputs, and each verdict as a value named by the objective or assertion it decided.\n\n```go\nfunc (ctx *Context) AnnotatedElement(sym *symbols.Symbol) *symbols.Symbol\n```\nAnnotatedElement answers the element \\`sym.metadata\\` reads the metadata of: the one an alias names, and any other symbol itself.\n\n```go\nfunc (ctx *Context) AnnotationObjectsOf(sym *symbols.Symbol) []AnnotationObject\n```\nAnnotationObjectsOf answers the annotations of an element as \\`.metadata\\` reads them, one whose values cannot be evaluated reported in its place.\n\n```go\nfunc (ctx *Context) AssertionsOf(typ *symbols.Symbol, scope *symbols.Scope) []Asserted\n```\nAssertionsOf lists the assertions typ states about its objects, inherited ones first, a named one a closer member shadows or redefines left out: the same collection validating an object of typ checks. scope stands in for typ's own.\n\n```go\nfunc (ctx *Context) BehaviorNamed(inst *Instance, name string) (*ObjectBehavior, bool)\n```\nBehaviorNamed returns the behavior the object runs under the given name or under another name of the same feature: a redefinition renames the behavior it redefines (KerML 1.0 §7.3.4.5), so both names denote one execution. The renaming may come from any type of the object, a classifier included.\n\n```go\nfunc (ctx *Context) Budgets() Budgets\n```\nBudgets returns the bounds this context runs under.\n\n```go\nfunc (ctx *Context) CalcCompile() bool\n```\nCalcCompile reports whether this context runs eligible calc bodies compiled.\n\n```go\nfunc (ctx *Context) CalcUsageOutputs(sym *symbols.Symbol, scope *symbols.Scope, self *Instance) ([]CalcOutputValue, error)\n```\nCalcUsageOutputs evaluates a calc usage and returns the value of every output feature it declares, in declaration order, from one run of its body.\n\n```go\nfunc (ctx *Context) Carry(v Value, bring Bring) (Value, error)\n```\nCarry is v as a value of ctx: a number, string, quantity or the like as it is; every object it names is the one bring answers for it; a function is read again here, bound to what bring answers for its self. A deferred expression closed over its environment, or a function over a behavior body, cannot be carried.\n\n```go\nfunc (ctx *Context) CaseConditionsOf(sym *symbols.Symbol, scope *symbols.Scope) []Condition\n```\nCaseConditionsOf returns the conditions a case states as what it holds true of its parameters: the conditions its own members state, and the ones stated by the constraints it requires, assumes or asserts in its body. A constraint declared without one of those keywords states nothing the case checks, so it is left out.\n\n```go\nfunc (ctx *Context) Changed(shapes *Shapes) (string, bool)\n```\nChanged returns the declaration this context no longer resolves the way shapes recorded it, so a caller can name what invalidated the state it took those shapes for. They were recorded outwards, so reading them back names the one that changed rather than one that only holds it.\n\n```go\nfunc (ctx *Context) CheckBindingOn(binding lower.Binding, inst *Instance) (CheckResult, error)\n```\nCheckBindingOn checks a binding as the constraint it states about inst (KerML 1.1 §7.4.6, §8.4.4.6.2): each value of an end is among the other's where that end's cross multiplicity requires a link, and the ends share the links declared.\n\n```go\nfunc (ctx *Context) CheckConstraintOn(sym *symbols.Symbol, scope *symbols.Scope, self *Instance) (CheckResult, error)\n```\nCheckConstraintOn evaluates a constraint as EvaluateConstraintOn does and also reports the object it turned out to be about, which a caller labelling the verdict needs: it is not always the instance supplied.\n\n```go\nfunc (ctx *Context) CheckConstraintWith(sym *symbols.Symbol, scope *symbols.Scope, self *Instance, args CheckArgs) (CheckResult, error)\n```\nCheckConstraintWith is CheckConstraintOn with arguments bound to the constraint's \\`in\\` parameters for this check, as a calc's are for an invocation.\n\n```go\nfunc (ctx *Context) CheckPerformedInputs(action *symbols.Symbol, behavior *ObjectBehavior, inputs map[string]Value) error\n```\nCheckPerformedInputs is refusePerformedInputs for a caller attaching to the performance itself: inputs equal to the bindings the performance stored, or its declaration states while it is held, pass; any other is refused.\n\n```go\nfunc (ctx *Context) CheckRequirementOn(sym *symbols.Symbol, scope *symbols.Scope, self *Instance) (CheckResult, error)\n```\nCheckRequirementOn evaluates a requirement as EvaluateRequirementOn does and also reports the object it turned out to be about.\n\n```go\nfunc (ctx *Context) CheckRequirementWith(sym *symbols.Symbol, scope *symbols.Scope, self *Instance, args CheckArgs) (CheckResult, error)\n```\nCheckRequirementWith is CheckRequirementOn with arguments bound to the requirement's \\`in\\` parameters for this check, as a calc's are for an invocation.\n\n```go\nfunc (ctx *Context) CheckSatisfactionOn(a *SatisfyAssertion, subject *Instance) (CheckResult, error)\n```\nCheckSatisfactionOn evaluates a satisfaction assertion as evaluateSatisfactionOn does and also reports the object it turned out to be about.\n\n```go\nfunc (ctx *Context) Choices() []ChoicePoint\n```\nChoices returns the choice points made since the latest run began, in order.\n\n```go\nfunc (ctx *Context) ClassifyValue(scope *symbols.Scope, value Value, target *symbols.Symbol) (semantics.TypeClassification, error)\n```\nClassifyValue reports whether the value, read in scope, is of the target type by any of the types it carries.\n\n```go\nfunc (ctx *Context) ClearModelSeed()\n```\nClearModelSeed leaves modeled draws to the scheduling policy's seed, if any.\n\n```go\nfunc (ctx *Context) Clock() *Clock\n```\nClock returns the simulation clock every executor of this context shares.\n\n```go\nfunc (ctx *Context) ClockMagnitude(val Value, what string) (float64, error)\n```\nClockMagnitude reads a value as a number of clock units: a bare number is one already, a quantity is converted from its unit; what names it in errors.\n\n```go\nfunc (ctx *Context) ClockStep() float64\n```\nClockStep is the step the clock's waits come due on, 0 for a continuous clock.\n\n```go\nfunc (ctx *Context) ClockValue() Value\n```\nClockValue is the clock's instant now as a value: a duration in seconds, or a bare number where no library reduces the second.\n\n```go\nfunc (ctx *Context) CompositeTypeOf(feat *EffectiveFeature) *symbols.Symbol\n```\nCompositeTypeOf returns what a feature is materialized from, or nil for one that holds a value rather than an object — a default that binds takes precedence over instantiation, as in GetFeatureValue above. A usage with features of its own is instantiated as itself, so its body governs and an untyped nested part materializes at all. Answering costs no allocation, so a caller walking an object graph can decide whether to descend before descending.\n\n```go\nfunc (ctx *Context) ConditionCarrier(kind, element string, sym *symbols.Symbol, self *Instance) (*Instance, error)\n```\nConditionCarrier is the object a check of sym is about, resolved as evaluation resolves it — self when it carries the element, else the single object of this runtime that does — with the same error, ambiguity included, an evaluation reports.\n\n```go\nfunc (ctx *Context) ConditionsOf(sym *symbols.Symbol, scope *symbols.Scope) []Condition\n```\nConditionsOf returns the conditions sym states, its inherited ones first: the same collection, in the same order, that evaluating sym checks. scope stands in for sym's own scope when sym declares none.\n\n```go\nfunc (ctx *Context) CreateActionExecutor(action *symbols.Symbol) (*ActionExecutor, error)\n```\nCreateActionExecutor creates an action executor without starting execution. For REPL debugging - allows step-by-step execution control.\n\n```go\nfunc (ctx *Context) CreateActionExecutorFor(action *symbols.Symbol, self *Instance) (*ActionExecutor, error)\n```\nCreateActionExecutorFor creates an action executor for an action performed by self, without starting execution. An action a ToolExecution annotates has no flow to step: its tool is invoked once and the executor returned completed with its outputs.\n\n```go\nfunc (ctx *Context) CreateActionExecutorWithInputs(action *symbols.Symbol, self *Instance, inputs map[string]Value) (*ActionExecutor, error)\n```\nCreateActionExecutorWithInputs creates an action executor for an action performed by self with its inputs bound ahead of its defaults, without starting execution.\n\n```go\nfunc (ctx *Context) CreateStateExecutor(stateMachine *symbols.Symbol) (*StateExecutor, error)\n```\nCreateStateExecutor creates a state executor without starting execution. For REPL debugging - allows step-by-step execution control.\n\n```go\nfunc (ctx *Context) CreateStateExecutorFor(stateMachine *symbols.Symbol, self *Instance) (*StateExecutor, error)\n```\nCreateStateExecutorFor creates a state executor for a machine performed by self, without starting execution.\n\n```go\nfunc (ctx *Context) DeliverEvents(exec *ActionExecutor, events []Message) error\n```\nDeliverEvents posts each of events to exec's run in turn: the run goes until it completes or every token waits, the event is posted, and an accept node waiting for it takes it on the next step. One no waiting accept takes is an error, as is one the run completed before.\n\n```go\nfunc (ctx *Context) Destroyed(inst *Instance) (at int64, ok bool)\n```\nDestroyed reports the activation at which inst was destroyed, and whether it was; an object the context holds without a lifetime or one merely ended is not.\n\n```go\nfunc (ctx *Context) DrawPolicy() DrawPolicy\n```\nDrawPolicy is the policy the runs started from now on resolve their random draws under.\n\n```go\nfunc (ctx *Context) DrawsTaken() []DrawTaken\n```\nDrawsTaken returns the random draws every run of the context made, in order, as a witness lists them: what a \\`replay\\` policy over them hands the same calls.\n\n```go\nfunc (ctx *Context) ElementAt(val Value, index int) (Value, error)\n```\nElementAt is the value at the 0-based index of a collection, a required member's object made once it is reached; any other value is its only element.\n\n```go\nfunc (ctx *Context) EntryText(entry *lower.ExprEntry, scope *symbols.Scope) string\n```\nEntryText is ExprText of a lowered expression.\n\n```go\nfunc (ctx *Context) EnumerationLiteralValue(sym *symbols.Symbol) (Value, bool, error)\n```\nEnumerationLiteralValue is the value sym has when it is an enumeration literal, reported as such so a caller holding only a symbol — an \\`%eval\\` of a literal — answers with the value rather than \"no value\".\n\n```go\nfunc (ctx *Context) Eval(node ast.Node) (Value, error)\n```\nEval is the top-level entry point for evaluating an expression in an empty environment. Resolves names from the root scope.\n\n```go\nfunc (ctx *Context) EvalArguments(scope *symbols.Scope, args []ast.Node) ([]Value, error)\n```\nEvalArguments evaluates an invocation's whole argument list in one run, so a seeded draw continues the one before it; the i-th value is the i-th argument's, or an ArgumentError.\n\n```go\nfunc (ctx *Context) EvalDeclaredValue(sym *symbols.Symbol) (Value, error)\n```\nEvalDeclaredValue evaluates the value a usage declaration binds, as a read of the declaration does: in its own scope, and answering to its declared type. A usage binding none but shaped as an Array by its own features is that Array.\n\n```go\nfunc (ctx *Context) EvalEntryOn(entry *lower.ExprEntry, scope *symbols.Scope, self *Instance) (Value, error)\n```\nEvalEntryOn is EvalWithScopeOn of a lowered expression.\n\n```go\nfunc (ctx *Context) EvalWithScope(node ast.Node, scope *symbols.Scope) (Value, error)\n```\nEvalWithScope evaluates an expression with a given scope context for name resolution.\n\n```go\nfunc (ctx *Context) EvalWithScopeOn(node ast.Node, scope *symbols.Scope, self *Instance) (Value, error)\n```\nEvalWithScopeOn evaluates an expression against a concrete instance, whose feature values the names read; it brackets one run, as EvalWithScope does, bounding it by the step budget.\n\n```go\nfunc (ctx *Context) EvaluateConstraint(sym *symbols.Symbol, scope *symbols.Scope) (bool, error)\n```\nEvaluateConstraint evaluates a constraint definition/usage naming no object: against the single object of this runtime carrying it, the declared defaults when there is none, ErrAmbiguousSubject when there are several. Checked against the defaults, \\`this\\` denotes an exemplar of the type made for the check and abandoned with it (exemplar.go). Returns (satisfied, error). If IsAssert=true, violation is an error. If IsAssert=false (assume), always returns (true, nil) but logs assumptions.\n\n```go\nfunc (ctx *Context) EvaluateConstraintOn(sym *symbols.Symbol, scope *symbols.Scope, self *Instance) (bool, error)\n```\nEvaluateConstraintOn evaluates a constraint against a concrete instance: a feature the constraint names resolves to that instance's feature value, so the same constraint can pass for one instance and fail for another. An instance that does not carry the constraint itself is searched for the nested object that does; a nil instance leaves the subject to EvaluateConstraint's rule.\n\n```go\nfunc (ctx *Context) EvaluateRequirement(sym *symbols.Symbol, scope *symbols.Scope) (bool, error)\n```\nEvaluateRequirement evaluates a requirement definition/usage naming no object, choosing its subject as EvaluateConstraint does. Returns (satisfied, error). Validates subject/actor types and evaluates assume/require expressions: the requirement holds when its assumptions imply its required conditions (RequirementConstraintCheck::result).\n\n```go\nfunc (ctx *Context) EvaluateRequirementOn(sym *symbols.Symbol, scope *symbols.Scope, self *Instance) (bool, error)\n```\nEvaluateRequirementOn evaluates a requirement against a concrete instance, binding the features it names to that instance's feature values. The subject is chosen as EvaluateConstraintOn chooses it, and the subject/actor bindings are evaluated against that same object.\n\n```go\nfunc (ctx *Context) EvaluateSatisfaction(a *SatisfyAssertion) (bool, error)\n```\nEvaluateSatisfaction evaluates a satisfaction assertion against a fresh instance of its subject, so that the values the subject declares supply the requirement's own.\n\n```go\nfunc (ctx *Context) ExecuteAction(action *symbols.Symbol) (map[string]Value, error)\n```\nExecuteAction executes an action definition/usage to completion. Returns the values the action's features hold when it completed.\n\n```go\nfunc (ctx *Context) ExecuteActionAdvancedBy(action *symbols.Symbol, self *Instance, inputs map[string]Value, events []Message, duration float64) (outputs, performer map[string]Value, err error)\n```\nExecuteActionAdvancedBy runs action as ExecuteActionWithEvents does, but for duration of simulated time as ActionOutcomeAdvancedBy does.\n\n```go\nfunc (ctx *Context) ExecuteActionPerformedBy(action *symbols.Symbol, self *Instance, inputs map[string]Value) (map[string]Value, error)\n```\nExecuteActionPerformedBy executes an action performed by self, whose connections route what the action sends and whose variant selections decide which of them are realized. A nil self performs the action outside any object.\n\n```go\nfunc (ctx *Context) ExecuteActionReportingPerformer(action *symbols.Symbol, self *Instance, inputs map[string]Value) (outputs, performer map[string]Value, err error)\n```\nExecuteActionReportingPerformer runs an action as ExecuteActionPerformedBy does and also reports its performer's attributes, keyed as ActionOutcomePerformedBy keys them.\n\n```go\nfunc (ctx *Context) ExecuteActionWithEvents(action *symbols.Symbol, self *Instance, inputs map[string]Value, events []Message) (outputs, performer map[string]Value, err error)\n```\nExecuteActionWithEvents runs an action as ExecuteActionReportingPerformer does, posting each of events to the run in turn once every token of it waits, as the REPL's %send does, and running on; without events it is that call.\n\n```go\nfunc (ctx *Context) ExecuteActionWithInputs(action *symbols.Symbol, inputs map[string]Value) (map[string]Value, error)\n```\nExecuteActionWithInputs executes an action, seeding its feature space with the provided input parameter bindings (keyed by parameter name). Inputs override action attribute defaults of the same name. Returns the final feature values.\n\n```go\nfunc (ctx *Context) ExecuteOccurrence(sym *symbols.Symbol) (*OccurrenceRun, error)\n```\nExecuteOccurrence performs an occurrence definition or usage as the interaction its body states (SysML v2.1 §7.16.1: a message \"may be realized … using transfers from send actions to accept actions\"): the occurrence is materialized, and its nodes are visited in the order the events admit. At an event the messages reaching it are taken off the bus by the lifeline object holding it, the actions the event performs are performed once on that object, the constraints it asserts are checked there, and the messages leaving it are posted, typed by their payloads, to the objects holding their target events; at an occurrence usage of a nested interaction, that interaction is performed on the object the usage holds. The trace records each transfer as a send and an accept.\n\n```go\nfunc (ctx *Context) ExecuteState(stateMachine *symbols.Symbol) (map[string]Value, error)\n```\nExecuteState executes a state machine, processing events until completion or suspension. Returns final state data from the state machine's execution. Execution stops when: - A final state is reached (StateCompleted) - Event queue is empty (StateSuspended) - Max event processing steps exceeded (error)\n\n```go\nfunc (ctx *Context) ExecuteStatePerformedBy(stateMachine *symbols.Symbol, self *Instance, events []string) (map[string]Value, []string, error)\n```\nExecuteStatePerformedBy executes a state machine performed by self, whose connections route what the machine sends and whose variant selections decide which of them are realized. A nil self performs it outside any object.\n\n```go\nfunc (ctx *Context) ExecuteStateWithEvents(stateMachine *symbols.Symbol, events []string) (map[string]Value, []string, error)\n```\nExecuteStateWithEvents executes a state machine, first injecting the provided signal events (by signal-type name) into the event queue, then processing all events until completion or suspension. Returns the final state data and the ordered list of visited state names.\n\n```go\nfunc (ctx *Context) ExhibitsState(member, sym *symbols.Symbol) bool\n```\nExhibitsState reports whether member is an exhibit declaration whose objects run sym's machine: member itself, anything its bindings reach, or a type they conform to. Declarations are compared.\n\n```go\nfunc (ctx *Context) ExprEntry(id program.ExprID) *lower.ExprEntry\n```\nExprEntry is the expression behind id in the model's table, nil for none: what a condition's, an objective's or a declared value's id names.\n\n```go\nfunc (ctx *Context) ExprText(expr ast.Node, scope *symbols.Scope) string\n```\nExprText renders an expression as the model wrote it, from the document's text where this context was given it, else from its structure.\n\n```go\nfunc (ctx *Context) FeaturesOf(typeSym *symbols.Symbol) []EffectiveFeature\n```\nFeaturesOf returns the ordered, deduplicated effective-feature list for the given type symbol. Result: own + inherited − redefined/masked, memoized per symbol.\n\n```go\nfunc (ctx *Context) FeaturesOfObject(inst *Instance) []ObjectFeature\n```\nFeaturesOfObject returns the features of an object under every type of it: the declared type's, then those each classifier adds, in declaration order, each name once.\n\n```go\nfunc (ctx *Context) FunctionValue(sym *symbols.Symbol) (Value, bool, error)\n```\nFunctionValue is the function a read of the declaration sym denotes — a calc definition, or a calc usage with an input no read could supply — closed over its own scope and no object; false when sym is no calc read as one.\n\n```go\nfunc (ctx *Context) HeldElements(val Value) ([]Value, error)\n```\nHeldElements is what a collection value holds, in order — a lazily held member named by the identity reserved for it, whose object Instance makes — or the value itself when it is no collection. One holding more than the element budget is ErrElementLimitExceeded.\n\n```go\nfunc (ctx *Context) HeldFeatures(typ *symbols.Symbol) []HeldFeature\n```\nHeldFeatures lists the object-holding features of typ the model declares, library-declared ones left out, each with the elements whose assertions an object it holds carries besides the feature's own: what validating an object of typ checks object by object (ValidateObject).\n\n```go\nfunc (ctx *Context) HeldObjects(inst *Instance) ([]heldObjectEntry, error)\n```\nHeldObjects returns the objects inst's object-valued features hold — occurrence usages and structured attributes alike — in feature order then collection order, materializing lazy ones as reading them does. An object reached through several features is listed once, under a scalar feature when it has one. A feature that cannot be read is a HeldObjectsError.\n\n```go\nfunc (ctx *Context) HoldsNoValue(val Value) bool\n```\nHoldsNoValue reports whether a value is an object materialized for a valueless feature of a value type. Such an object has no feature that could hold a value and is no value itself (KerML: a DataType classifies values), so it reads as unset rather than as an object.\n\n```go\nfunc (ctx *Context) HoldsObject(val Value) bool\n```\nHoldsObject reports whether the value is, or carries, an object of this context: one a reader can inspect, so the value is only meaningful in the context it came from.\n\n```go\nfunc (ctx *Context) Image(objects ...*Instance) (*HeldImage, error)\n```\nImage takes the objects and everything they hold, own or name by value. It refuses, in a HeldImageError, a destroyed root (errOccurrenceDestroyed), ErrSnapshotMidRun, ErrSnapshotPausedBody, notPortableError and errImageBound.\n\n```go\nfunc (ctx *Context) ImpliedCollection(inst *Instance, name string) bool\n```\nImpliedCollection reports whether the feature of inst named name is reached only through subsetting implied by nesting: enumeration surfaces skip it, an object it holds being listed under the declared feature that holds it.\n\n```go\nfunc (ctx *Context) ImpliedCollectionOfType(typ *symbols.Symbol, name string) bool\n```\nImpliedCollectionOfType is ImpliedCollection for a type alone, over the features its instances would hold.\n\n```go\nfunc (ctx *Context) Instance(id int64) (*Instance, bool)\n```\nInstance retrieves an instance by ID, so a caller holding a ValInstance can reach the object it names.\n\n```go\nfunc (ctx *Context) InstanceCount() int\n```\nInstanceCount is how many objects this context holds, nested ones counted.\n\n```go\nfunc (ctx *Context) InstanceIDs() []int64\n```\nInstanceIDs lists the identities of every object this context holds, in ascending order, so a caller can say which ids an unknown one is not among.\n\n```go\nfunc (ctx *Context) InstantValue(t float64) Value\n```\nInstantValue is instant t as the runtime reports the clock: a quantity in seconds when the library defines them, otherwise a bare real.\n\n```go\nfunc (ctx *Context) Instantiate(sym *symbols.Symbol) (*Instance, error)\n```\nInstantiate materializes an instance of the given usage/definition symbol. Allocates ID, creates feature values per FeaturesOf(sym), evaluates default values, leaves composite features lazy, then starts the behaviors the type exhibits or performs and runs them to quiescence. Returns the instance or an error.\n\nEach call materializes a distinct object with an identity and behaviors of its own. The object becomes what the usage denotes from then on, so an expression naming the usage or a feature path under it reads this object as it was run.\n\n```go\nfunc (ctx *Context) InstantiateRead(sym *symbols.Symbol, read func(*Instance) error) (*Instance, error)\n```\nInstantiateRead is Instantiate with read run over the new object before it is returned, as one creation: a read that fails abandons the object with all it materialized, so a context under a bound is left as it was.\n\n```go\nfunc (ctx *Context) InvokeCalc(sym *symbols.Symbol, args []Value, scope *symbols.Scope) (Value, error)\n```\nInvokeCalc invokes a calculation with the given positional arguments and returns its result. Arguments bind to the calc's input parameters in declaration order; a parameter with no argument falls back to its declared default. The body is evaluated in the calc's own scope, so scope is used only as a fallback for a symbol that owns no scope. A library function's \\`expr\\` parameter takes a body or expression value, applied only when selected, or the operand's value itself.\n\n```go\nfunc (ctx *Context) InvokeCalcWith(sym *symbols.Symbol, positional []Value, named map[string]Value, scope *symbols.Scope) (Value, error)\n```\nInvokeCalcWith invokes a calculation with positional arguments and arguments bound by parameter name together, which is what an argument list plus a swept parameter binds. Arguments bind exactly as InvokeCalc and invokeCalcNamed bind them: by position first, then by name.\n\n```go\nfunc (ctx *Context) InvokeOperationWith(inst *Instance, name string, args OperationArguments) (map[string]Value, error)\n```\nInvokeOperationWith is invokeOperation taking either argument list form.\n\n```go\nfunc (ctx *Context) InvokePredicate(sym *symbols.Symbol, args []Value, scope *symbols.Scope) (bool, error)\n```\nInvokePredicate applies a constraint or requirement to positional arguments and reports whether its conditions hold.\n\n```go\nfunc (ctx *Context) IsVariationFeature(feat *EffectiveFeature) bool\n```\nIsVariationFeature reports whether a feature is a variation point, whose feature value holds the variant it is bound to rather than an object of itself.\n\n```go\nfunc (ctx *Context) LiveRoots() []*Instance\n```\nLiveRoots returns every object this runtime holds that stands on its own — not held by another's feature value, not materialized only to read a nested declaration, not destroyed — in identity order. A declaration materialized twice is two of them: the name denotes the latest, but a feature of the definition is a feature of each object.\n\n```go\nfunc (ctx *Context) MadeElements(val Value) ([]int, []Value)\n```\nMadeElements is what a collection holds of values already there, each with its 0-based position: every element, but of the required members only those already made.\n\n```go\nfunc (ctx *Context) MaterializationErrors(inst *Instance) (errs []error, bounded bool)\n```\nMaterializationErrors reads every feature value of an object, and of the objects its feature values hold, and returns what materializing them reported, in the order the feature values were read. Feature values are lazy, so a default that does not conform to its feature's multiplicity is only found by reading it: a caller reporting on an object it created calls this rather than leaving those diagnostics to whoever reads a feature value next. bounded is true when the walk did not read every feature value — its budget was spent, or nesting it does not descend into was elided — so what it did not reach is unreported rather than clean.\n\n```go\nfunc (ctx *Context) MaxInstances() int\n```\nMaxInstances is the bound SetMaxInstances set, zero when there is none.\n\n```go\nfunc (ctx *Context) MeasurementUnitValue(sym *symbols.Symbol) (Value, bool, error)\n```\nMeasurementUnitValue is the reference a measurement-unit declaration names (true for one). A library unit is the declaration whatever defines it (\\`'m/s' = m/s\\`); a model feature typed by a unit and given a value holds that value instead (false). A measurement scale (\\`UTC\\`, \\`'°C\\_abs'\\`) is the one-axis frame its declaration describes.\n\n```go\nfunc (ctx *Context) Model() *Model\n```\nModel returns the model-derived part this context runs over.\n\n```go\nfunc (ctx *Context) ModelSeed() (uint64, bool)\n```\nModelSeed is the seed set by SetModelSeed, and whether one is.\n\n```go\nfunc (ctx *Context) Notes() []RunNote\n```\nNotes returns what the latest run noted about itself, in order: its choice points and the guards it could not evaluate.\n\n```go\nfunc (ctx *Context) ObjectivesOf(sym *symbols.Symbol, scope *symbols.Scope) []Objective\n```\nObjectivesOf returns the objectives sym states, its inherited ones first and in declaration order. An objective restating an inherited one, by name or by redefinition, is the same objective declared again and keeps its place.\n\n```go\nfunc (ctx *Context) ObserveMonteCarlo(sym *symbols.Symbol, args AnalysisArgs, scope *symbols.Scope, self *Instance) (*MonteCarloRun, error)\n```\nObserveMonteCarlo makes one run of a Simulation::MonteCarlo case as RunAnalysis would, reading \\`observed\\` and the checks in place of the outputs, which concludeMonteCarlo evaluates.\n\n```go\nfunc (ctx *Context) OccurrenceLife(id int64) (OccurrenceLife, bool)\n```\nOccurrenceLife answers the lifetime of the occurrence an instance identity denotes, and false for an identity the context never registered.\n\n```go\nfunc (ctx *Context) OccurrenceUsage(inst *Instance) string\n```\nOccurrenceUsage is the qualified name of the declared usage inst is an occurrence of, or \"\" for an object materialized any other way.\n\n```go\nfunc (ctx *Context) OptimizationObjectivesOf(sym *symbols.Symbol, scope *symbols.Scope) []Objective\n```\nOptimizationObjectivesOf returns the objectives of every stage, in stage order.\n\n```go\nfunc (ctx *Context) OptimizationStagesOf(sym *symbols.Symbol, scope *symbols.Scope) []OptimizationStage\n```\nOptimizationStagesOf returns the stages of sym's optimization: the case's own objectives and conditions, then each nested analysis's, each stage refining the optimum the stages before it settled within its own conditions too.\n\n```go\nfunc (ctx *Context) OrderDependent(feature string) int\n```\nOrderDependent reports how many unresolved choice points of the run the feature's value stands on, by its name alone or as the last segment of a written path: those whose alternatives touched it and those what was computed into it stood on (order\\_marks.go).\n\n```go\nfunc (ctx *Context) OrderDependentAmong(names []string) map[string]int\n```\nOrderDependentAmong is, for each named value an unresolved choice point of the run touches, how many do; a value nothing order-dependent wrote is absent.\n\n```go\nfunc (ctx *Context) Parameters(sym *symbols.Symbol) ([]Parameter, error)\n```\nParameters are the input parameters the calc or case declares, the subject included, in declaration order.\n\n```go\nfunc (ctx *Context) PathsTo(root, target *Instance, bounds PathBounds) Paths\n```\nPathsTo lists every root-relative path that reaches target from root: every sequence of feature values that ends at target, none visiting an object twice nor, as Traverse, an object whose type an object already on the path has — aliases through connector ends and reference usages included, since those hold the object they refer to as a value. The paths come in the order Traverse walks: depth-first, features in name order, values in their order. The root itself is reached by the empty path and nothing is read for it.\n\n```go\nfunc (ctx *Context) PendingMessages() []Message\n```\nPendingMessages returns the messages still in flight, oldest first.\n\n```go\nfunc (ctx *Context) PerformedExecutor(behavior *ObjectBehavior) (*ActionExecutor, error)\n```\nPerformedExecutor is the executor of an action the object performs; one a succession order holds back is started once the order admits it, as stateRunFor starts a held machine.\n\n```go\nfunc (ctx *Context) PositiveScalar(typ *symbols.Symbol) bool\n```\nPositiveScalar reports a type that is, or specializes, ScalarValues::Positive.\n\n```go\nfunc (ctx *Context) PostMessage(msg Message)\n```\nPostMessage puts a message on the context-wide bus, where every executor sharing this context can see it. Actions and state machines communicate through this bus rather than through per-executor queues, so a message a state machine's entry action sends can be accepted by one of its transitions.\n\nA message posted with a destination but no Delivery — one injected from outside the model — is held to the destination it names.\n\n```go\nfunc (ctx *Context) Pristine(inst *Instance) error\n```\nPristine reports whether inst is as its declaration materializes it in a fresh context: nothing written, no behavior moved nor waiting on a clock past zero, no message awaiting it or open to it, not destroyed. Else a heldStateError names the reason.\n\n```go\nfunc (ctx *Context) QualifiedName(sym *symbols.Symbol) string\n```\nQualifiedName renders a symbol's qualified name, falling back to its local name when no index is reachable.\n\n```go\nfunc (ctx *Context) QuantityNumber(typ *symbols.Symbol) (*symbols.Symbol, bool)\n```\nQuantityNumber is the feature holding a scalar quantity type's magnitude, the \\`num\\` a quantity value's number is bound to; false for any other type.\n\n```go\nfunc (ctx *Context) ReadEntryInSatisfaction(a *SatisfyAssertion, subject *Instance, scope *symbols.Scope, ref *lower.ExprEntry) (Value, error)\n```\nReadEntryInSatisfaction is ReadInSatisfaction of a lowered reference.\n\n```go\nfunc (ctx *Context) ReadInSatisfaction(a *SatisfyAssertion, subject *Instance, scope *symbols.Scope, ref ast.Node) (_ Value, retErr error)\n```\nReadInSatisfaction evaluates ref, written in scope, as a's require conditions read it on subject: with the requirement's subject and other members bound as checkSatisfactionOn binds them.\n\n```go\nfunc (ctx *Context) RequireAnalysisCase(sym *symbols.Symbol) error\n```\nRequireAnalysisCase reports ErrNotAnAnalysis for a symbol that is not a case whose body runs — an analysis or verification case definition or usage — describing what it is instead.\n\n```go\nfunc (ctx *Context) RequireMonteCarloCase(sym *symbols.Symbol) error\n```\nRequireMonteCarloCase reports errNotMonteCarlo for a symbol that is not an analysis case specializing Simulation::MonteCarlo, describing what it is instead.\n\n```go\nfunc (ctx *Context) Reschedule(policy SchedulePolicy) error\n```\nReschedule is SetSchedule reaching the runs driven call by call as well — the clock and the behaviors the objects run — which resolve their choice points under the policy from their next step on, as a run started under it would from its first: their configurations, pending events, clock and choices so far are kept, and the draws of a seeded policy start over. It fails with ErrRescheduleMidRun from inside a step.\n\n```go\nfunc (ctx *Context) Resolver() *resolve.Resolver\n```\nResolver returns the name resolver this context resolves references with.\n\n```go\nfunc (ctx *Context) RunAnalysis(sym *symbols.Symbol, args AnalysisArgs, scope *symbols.Scope, self *Instance) (AnalysisResult, error)\n```\nRunAnalysis runs an analysis case — a definition or a usage — binding its subject and input parameters from args and its own declarations, and reports every output it declares together with the verdict of each objective and assertion. self, when non-null, is the object a usage is a feature of. A usage run with no arguments answers from the same evaluation a read of its outputs does, so both report the same values. A run whose output could not be evaluated fails, and reports beside the error what it did establish: the evaluations it made and the verdicts, undecided where they read that output.\n\n```go\nfunc (ctx *Context) RunVerification(sym *symbols.Symbol, args AnalysisArgs, scope *symbols.Scope, self *Instance) (VerificationResult, error)\n```\nRunVerification runs a verification case's body as RunAnalysis runs an analysis case's — same lowering, same subject and input binding, same step execution — and reports the verdict the body produced together with the objective and assertion verdicts of the same run.\n\nA body that cannot run is the case's error verdict carrying the message, not an error of the call: a verdict is what a verification case answers. An error is returned only for a request that cannot be made at all — a symbol that is not a verification case, or arguments the case does not take.\n\n```go\nfunc (ctx *Context) SatisfactionSubjects(a *SatisfyAssertion, roots []*Instance) []SatisfactionSubject\n```\nSatisfactionSubjects returns the objects an assertion naming no \\`by\\` subject is about among roots, the objects the caller holds: every one of the type stating it — each object of a declaration instantiated more than once, the ones nested in a root, and ones classified by the type since they were made — as ValidateObject applies a type's \\`satisfy r;\\` to every object of the type. It is nil for an assertion naming its subject, or stated by no type.\n\n```go\nfunc (ctx *Context) SatisfyAssertionOf(sym *symbols.Symbol) (*SatisfyAssertion, error)\n```\nSatisfyAssertionOf returns the assertion sym declares, or an error when sym is not a satisfaction assertion. It names the one a \\`satisfy requirement r by p\\` form declares under a name.\n\n```go\nfunc (ctx *Context) SatisfyAssertionsIn(scope *symbols.Scope) []*SatisfyAssertion\n```\nSatisfyAssertionsIn returns the satisfaction assertions stated in scope and, recursively, in the scopes nested within it, in declaration order. An assertion is anonymous in its usual form, so it is reached through the element that states it rather than by name.\n\n```go\nfunc (ctx *Context) SatisfySubject(a *SatisfyAssertion) (*Instance, error)\n```\nSatisfySubject returns an object of the feature a satisfaction assertion names with \\`by\\`: the object its requirement is evaluated against when the caller supplies none. A plain name is instantiated afresh; a feature chain is read as the expression it is, so \\`config.child\\` materializes the occurrence \\`config\\` and answers the object its \\`child\\` holds. An assertion naming no subject is about the objects of the type stating it: one stated by a usage instantiates that usage, while one stated by a definition is about whichever objects of it exist (SatisfactionSubjects), so none is made up here.\n\n```go\nfunc (ctx *Context) Schedule() SchedulePolicy\n```\nSchedule returns the policy the next run resolves its choice points under.\n\n```go\nfunc (ctx *Context) Semantics() *semantics.Model\n```\nSemantics returns the semantic model this context operates over.\n\n```go\nfunc (ctx *Context) SetBudgets(b Budgets) error\n```\nSetBudgets replaces the bounds this context runs under, rejecting a set that holds a non-positive bound. The evaluation step counter already spent is left alone: the budget is a bound on the run, not a reset of it.\n\n```go\nfunc (ctx *Context) SetCalcCompile(on bool)\n```\nSetCalcCompile turns the compiled tier on or off for this context.\n\n```go\nfunc (ctx *Context) SetClockStep(step float64) error\n```\nSetClockStep makes the waits set from now on come due at multiples of step seconds, as a simulation clock ticking by step does: a wait ending between two ticks comes due at the later. 0 restores the continuous clock.\n\n```go\nfunc (ctx *Context) SetDrawPolicy(policy DrawPolicy)\n```\nSetDrawPolicy fixes how the runs started from now on resolve their random draws; a run under way, paused or not, keeps the policy it started under.\n\n```go\nfunc (ctx *Context) SetInterrupt(flag *atomic.Bool)\n```\nSetInterrupt installs the flag that stops this context's runs: once it is raised, the next evaluation step, action step or state machine unit fails with ErrInterrupted. The flag is shared, and the driver lowers it again.\n\n```go\nfunc (ctx *Context) SetMaxInstances(n int)\n```\nSetMaxInstances bounds the objects this context holds at once, nested ones counted, zero lifting it; the materialization past it is ErrInstanceLimitExceeded.\n\n```go\nfunc (ctx *Context) SetModelSeed(seed uint64)\n```\nSetModelSeed fixes the seed the modeled draws of the runs started from now on come from, independent of the scheduling policy; ClearModelSeed unsets it.\n\n```go\nfunc (ctx *Context) SetSchedule(policy SchedulePolicy) error\n```\nSetSchedule sets the policy the runs started from now on resolve their choice points under; a run already under way keeps the one it started with. An \\`explore\\` policy is ErrExploreUndriven: it is driven by Explore. A \\`replay\\` policy starts its witness over, which the runs then follow in turn.\n\n```go\nfunc (ctx *Context) SetToolRunner(runner ToolRunner)\n```\nSetToolRunner attaches the runner tool-computed actions and calcs of this context's runs invoke.\n\n```go\nfunc (ctx *Context) SetTrace(tr *TraceRecorder)\n```\nSetTrace attaches a trace recorder to this context, so that every expression and calc evaluated through it is recorded. Pass nil to stop tracing.\n\n```go\nfunc (ctx *Context) ShapesOf(obj *Instance) *Shapes\n```\nShapesOf records the shapes obj and everything it holds were materialized against: the objects reachable through its feature values and connector ends, plus the variants its values selected. A connector no name reaches is materialized again rather than carried, so it is no part of this.\n\n```go\nfunc (ctx *Context) ShapesOfType(sym *symbols.Symbol) *Shapes\n```\nShapesOfType records the shape of one declaration as this context resolves it, which is what state held over a declaration rather than an object — a debugging session over an action — is invalidated by a change to.\n\n```go\nfunc (ctx *Context) ShareVerdicts() (done func())\n```\nShareVerdicts opens a span over which checks on objects of one shape share their verdicts; the function returned closes it. A span opened within another continues it.\n\n```go\nfunc (ctx *Context) SignalMessage(signal *symbols.Symbol, args map[string]Value, to *Instance) (Message, error)\n```\nSignalMessage builds the message \\`send Signal(args) to \\\u003cobject\u003e\\` posts, for PostMessage; a nil object is one anyone may take, an argument no feature of the signal admits is refused. An element that is no signal definition (see SignalDefinitionKinds) is refused with errNotASignal.\n\n```go\nfunc (ctx *Context) Snapshot() (*Snapshot, error)\n```\nSnapshot captures the run-derived state of the context between steps: its objects and their values, the bus, the clock, its run bookkeeping and the state of every behavior an object of it runs. An executor driven over the context is captured through its own Snapshot. It fails with ErrSnapshotMidRun from inside a step; a body paused mid-statement is captured where it paused.\n\n```go\nfunc (ctx *Context) SourceLocation(file string, span source.Span) string\n```\nSourceLocation renders where a span in a file was written, as \\`file:line:col\\`, falling back to a byte offset for a file whose text was not registered.\n\n```go\nfunc (ctx *Context) StartActionPerformedBy(action *symbols.Symbol, self *Instance, inputs map[string]Value) (exec *ActionExecutor, reused bool, err error)\n```\nStartActionPerformedBy is CreateActionExecutorWithInputs binding to the performance self already runs of the action as performanceOf does; reused marks it, not the caller's to release.\n\n```go\nfunc (ctx *Context) StartFailureNotes(root *Instance) []RunNote\n```\nStartFailureNotes are StartFailures as the notes a creation reports beside the object.\n\n```go\nfunc (ctx *Context) StartFailures(root *Instance) []*ObjectBehavior\n```\nStartFailures lists the behaviors of root and of the objects it holds, directly or below, that failed to start, in attachment order: the failures placed, not the objects walked.\n\n```go\nfunc (ctx *Context) StartStatePerformedBy(stateMachine *symbols.Symbol, self *Instance) (exec *StateExecutor, reused bool, err error)\n```\nStartStatePerformedBy is CreateStateExecutorFor binding to the machine self already exhibits as stateRunFor does; reused marks it, not the caller's to release.\n\n```go\nfunc (ctx *Context) StateOutcomeAdvancedBy(stateMachine *symbols.Symbol, self *Instance, events []string, duration float64) (Outcome, error)\n```\nStateOutcomeAdvancedBy runs a state machine as StateOutcomePerformedBy does, but sends the events and then moves the clock by duration, as \\`sysml -state X -advance T\\` does.\n\n```go\nfunc (ctx *Context) StateOutcomePerformedBy(stateMachine *symbols.Symbol, self *Instance, events []string) (Outcome, error)\n```\nStateOutcomePerformedBy runs a state machine as ExecuteStatePerformedBy does and reports the outcome an exploration compares: its own and, under \\`this.\\`, the performer's attributes.\n\n```go\nfunc (ctx *Context) StateOutcomeWithEvents(stateMachine *symbols.Symbol, events []string) (Outcome, error)\n```\nStateOutcomeWithEvents runs a state machine as ExecuteStateWithEvents does and reports where it came to as the outcome an exploration compares.\n\n```go\nfunc (ctx *Context) SubjectMembersOf(requirement *symbols.Symbol) []*symbols.Symbol\n```\nSubjectMembersOf are the subject members requirement declares or inherits: what a satisfaction binds to the object \\`by\\` names.\n\n```go\nfunc (ctx *Context) SubsettingFeatures(inst *Instance, typ *symbols.Symbol, name string) []EffectiveFeature\n```\nSubsettingFeatures returns the features of typ subsetting the named feature under any of its redefinition names, in declaration order, reading nothing; inst is nil for a type alone.\n\n```go\nfunc (ctx *Context) SweepRunBudget() int64\n```\nSweepRunBudget is the number of runs one sweep may ask for when none is stated.\n\n```go\nfunc (ctx *Context) ToolRunner() ToolRunner\n```\nToolRunner is the runner attached, nil when none is.\n\n```go\nfunc (ctx *Context) Trace() *TraceRecorder\n```\nTrace is the recorder attached to this context, nil when not tracing.\n\n```go\nfunc (ctx *Context) TransformationPose(t *CoordinateTransformation) (FramePose, bool)\n```\nTransformationPose resolves whichever shape t has to the pose it states; false when t names no source, its shape resolves to none or its axis units do not convert.\n\n```go\nfunc (ctx *Context) Traverse(root *Instance, bounds TraversalBounds) Reached\n```\nTraverse walks the objects reachable from root through their feature values and reports how each was reached. The order is deterministic: depth-first from the root, over the features of an object in name order and the values of a feature in their order, descending into an object the first time it is reached and never into one whose type an object already on the path from the root has (which bounds a recursive type). An object below bounds.Depth is reached but not descended into. A feature whose value cannot be read is skipped; the caller reading the values sees the error.\n\n```go\nfunc (ctx *Context) TypesOfObject(inst *Instance) []*symbols.Symbol\n```\nTypesOfObject answers the model elements an object is of: the usage or definition it was made from, then each feature that classified it since.\n\n```go\nfunc (ctx *Context) Unfollowed() error\n```\nUnfollowed is the first witness move the last run under a \\`replay\\` policy could not make — one refused, or one left over when the run ended — as a ReplayError; nil when the run followed its witness whole or ran under another policy.\n\n```go\nfunc (ctx *Context) UnitOf(scope *symbols.Scope, text string) (semantics.Unit, error)\n```\nUnitOf reads a unit spelled as expression text in scope, else in the library's SI package, which a nil scope reads alone; the reading is memoized per scope.\n\n```go\nfunc (ctx *Context) UnresolvedChoices() int\n```\nUnresolvedChoices counts the run's choice points whose alternatives may not commute: the ones a default run's result stands only up to.\n\n```go\nfunc (ctx *Context) ValidateObject(root *Instance, scopes []*symbols.Scope) (ValidationReport, error)\n```\nValidateObject checks every assertion about root and the objects it holds: asserted constraints, carried requirements, and satisfactions (in scopes or the types) about them.\n\n```go\nfunc (ctx *Context) VariantValueEntry(variant *symbols.Symbol) *lower.ExprEntry\n```\nVariantValueEntry is the value a variant states, in the model's table; nil for none.\n\n```go\nfunc (ctx *Context) VerificationResultsOn(scopes []*symbols.Scope, req *symbols.Symbol, subject *Instance) []VerificationResult\n```\nVerificationResultsOn is VerificationVerdictsOn reporting each run whole: the body verdict with the objective and assertion verdicts of the same run and its subcases.\n\n```go\nfunc (ctx *Context) VerificationResultsOnce(scopes []*symbols.Scope, req *symbols.Symbol, subject *Instance, runs *VerificationRuns) []VerificationResult\n```\nVerificationResultsOnce is VerificationResultsOn skipping the runs recorded in runs, and recording the ones it makes; a nil runs records nothing.\n\n```go\nfunc (ctx *Context) VerificationVerdictsIn(scopes []*symbols.Scope, req *symbols.Symbol) []VerificationVerdict\n```\nVerificationVerdictsIn runs the verification cases of every scope whose objective verifies req and reports each body and subcase verdict; a case a type owns runs once per object of that type.\n\n```go\nfunc (ctx *Context) VerificationVerdictsOn(scopes []*symbols.Scope, req *symbols.Symbol, subject *Instance) []VerificationVerdict\n```\nVerificationVerdictsOn is VerificationVerdictsIn for a verdict about subject: a case a type owns runs once on each object of that type subject is or holds, every held one when subject is nil.\n\n```go\nfunc (ctx *Context) VerificationVerdictsOnce(scopes []*symbols.Scope, req *symbols.Symbol, subject *Instance, runs *VerificationRuns) []VerificationVerdict\n```\nVerificationVerdictsOnce is VerificationVerdictsOn skipping the runs recorded in runs, and recording the ones it makes; a nil runs records nothing.\n\n```go\nfunc (ctx *Context) VerifiedOutcome(result AnalysisResult, verdicts []VerificationVerdict) Outcome\n```\nVerifiedOutcome is the outcome of a verification case's run: the case's outcome, and what each body answered as a value named by the case that ran.\n\n```go\ntype CoordinateFrame struct {\n\tDecl           *symbols.Symbol           // the usage declaring the frame; nil for one composed by arithmetic\n\tType           *symbols.Symbol           // the type the frame is a value of\n\tDimensions     []int64                   // `dimensions`: (3) for a 3-D frame, () for a scale\n\tAxes           []Unit                    // `mRefs`, one per element the dimensions shape\n\tTransformation *CoordinateTransformation // `transformation`, whose target is this frame; nil for none\n\tScale          *MeasurementScale         // what a MeasurementScale adds; nil for a frame\n\tObject         int64                     // the object the frame was read from; 0 for one composed\n\tText           string                    // the frame as written: `spatialCF`, `spatialCF / s`\n}\n```\nCoordinateFrame is a VectorMeasurementReference held as a value: the axes of a coordinate frame, or the one axis a measurement scale is, with the placement relating it to another reference where the model states one.\n\n```go\nfunc (f *CoordinateFrame) Name() string\n```\nName is how the frame is referred to in diagnostics: its declared name, else how it was composed.\n\n```go\nfunc (f *CoordinateFrame) String() string\n```\nString renders the frame as its name over its axes: \\`spatialCF \\[m, m, m]\\`; a scale over the unit its magnitudes are in: \\`°C\\_abs \\[°C]\\`.\n\n```go\ntype CoordinateTransformation struct {\n\tDecl      *symbols.Symbol  // the usage declaring the transformation; nil for a constructed one\n\tType      *symbols.Symbol  // the type the transformation is a value of\n\tSource    *CoordinateFrame // `source`; nil when the model states none\n\tTarget    *CoordinateFrame // `target`; nil for a frame's own transformation, whose target it is\n\tPlacement *FramePlacement\n\tSequence  []FrameStep\n\tAffine    *AffineTransformation3d\n\tObject    int64\n}\n```\nCoordinateTransformation is a CoordinateTransformation held as a value: the placement of the target in the source by at most one of Placement, Sequence and Affine; a subtype of no library shape holds none and cannot be applied.\n\n```go\nfunc (t *CoordinateTransformation) Name() string\n```\nName is how the transformation is referred to in diagnostics.\n\n```go\nfunc (t *CoordinateTransformation) String() string\n```\nString renders the transformation as its name over the frames it relates: \\`trs (datum → lbcf)\\`.\n\n```go\ntype Counted struct {\n\tCount int64\n\tValue float64\n}\n```\nCounted is one term of a weighted mean: Value, over Count runs; the count is exact, as the runs a tool summarises are.\n\n```go\ntype Coverage struct {\n\tStates      []CoverageEntry\n\tTransitions []CoverageEntry\n}\n```\nCoverage is what the runs of an exploration, or the schedules of a check, entered and took: every state entered and every transition taken by any run, not only by the witness of each outcome, with the number of runs that did so.\n\n```go\nfunc (c Coverage) Empty() bool\n```\nEmpty reports whether nothing was entered or taken.\n\n```go\nfunc (c Coverage) Lines(did string) []string\n```\nLines renders the coverage for a text verdict: a summary, then one line per entry with its instance path, declaration and how many runs (or \\`did\\`, e.g. schedules) did so.\n\n```go\ntype CoverageEntry struct {\n\tPath        string\n\tDeclaration string\n\tRuns        int\n}\n```\nCoverageEntry is one state entered or transition taken, under the instance that ran the machine (\\`Cov::Sys#1.m.run: s0 -\u003e viaB\\`) and its declaration (\\`Cov::M::run::s0 -\u003e viaB\\`).\n\n```go\ntype CoverageGap int\n```\nCoverageGap is a construct whose unordered alternatives a run performs in one order without a choice point, so exploring or checking it enumerates fewer orders than the library admits and neither may report its outcome set complete. No construct records one today: every order the executors take without a choice point is fixed by the library or canonical (see scheduling.md). A construct found to perform an open order as one move is named here and recorded with noteGap, so Complete() is false over it rather than a note.\n\n```go\nfunc (g CoverageGap) Description() string\n```\nDescription says what the gap left unenumerated, as a status prints it.\n\n```go\nfunc (g CoverageGap) String() string\n```\nString is the gap's identifier, as a conformance case's \\`exploreGaps\\` names it.\n\n```go\ntype Decision struct {\n\tFires   []string\n\tResumes []string\n}\n```\nDecision is what dispatching a message now would do: the transitions that would fire on it, or the do behaviors parked at an accept it lets go on.\n\n```go\nfunc (d Decision) Enabled() bool\n```\nEnabled reports whether dispatching the message would do something with it.\n\n```go\ntype DeclaredReader struct {\n\t// contains filtered or unexported fields\n}\n```\nDeclaredReader reads feature values as the model declares them for a concrete carrier, materializing each element once and starting no behavior.\n\n```go\nfunc NewDeclaredReader(model *semantics.Model, resolver *resolve.Resolver) *DeclaredReader\n```\nNewDeclaredReader creates a reader over a fresh, behavior-free runtime context. model carries the checker's argument typing, as NewModel requires: a feature valued by a call is read through it, and fails with errNoArgumentTyper without one.\n\n```go\nfunc NewDeclaredReaderIn(held *Context) *DeclaredReader\n```\nNewDeclaredReaderIn creates a reader on a fresh declarative context seeded from held: its tool runner, so tool-computed calcs a derived feature calls answer through the same runner, the parser reading the units they answer in, the budgets it runs under, and the notes a run makes, which held's own Notes report.\n\n```go\nfunc (r *DeclaredReader) CompareMagnitudes(left, right semantics.Quantity) (int, error)\n```\nCompareMagnitudes orders two quantities on the left one's reference, a point on a measurement scale carried through its anchor.\n\n```go\nfunc (r *DeclaredReader) QuantityBinary(op ast.OperatorKind, left, right semantics.Quantity) (semantics.Quantity, error)\n```\nQuantityBinary applies a binary operator to two quantities as evaluation does, the affine cases of a point on a measurement scale included.\n\n```go\nfunc (r *DeclaredReader) QuantityUnary(op ast.OperatorKind, q semantics.Quantity) (semantics.Quantity, error)\n```\nQuantityUnary applies a unary operator to a quantity as evaluation does: a point on a measurement scale (\\`26.85 \\[SI::'°C\\_abs']\\`) has no negative.\n\n```go\nfunc (r *DeclaredReader) Read(sym *symbols.Symbol, name string) (Value, error)\n```\nRead evaluates the named feature of the element sym denotes, resolving every leaf through that element's redefinitions. An unbound leaf is a \\*NoValueError.\n\n```go\nfunc (r *DeclaredReader) Validate(sym *symbols.Symbol, scopes []*symbols.Scope) (ValidationReport, error)\n```\nValidate checks every assertion about the object the element declares, and the objects it holds, as the model declares them: ErrNotAnObject for an element with no object (a package, an attribute).\n\n```go\nfunc (r *DeclaredReader) VerificationVerdictsIn(scopes []*symbols.Scope, req *symbols.Symbol) []VerificationVerdict\n```\nVerificationVerdictsIn runs the verification cases in scopes whose objective verifies req, in the reader's behavior-free context.\n\n```go\ntype DeliveryKind uint8\n```\nDeliveryKind is what a message's destination resolved to, and so what a consumer must match: an unaddressed message resolved nothing and any consumer may take it, while every addressed or routed one names a destination in full.\n\n```go\ntype Dispatch struct {\n\tEvent   Event\n\tFired   bool\n\tResumed []string\n}\n```\nDispatch is what became of an event a step took off the queue: a transition fired on it, or nothing was enabled for it and it was dropped; Resumed names the states whose do behavior went on from an accept with it.\n\n```go\ntype Distribution struct {\n\tCount    int\n\tIntegral bool\n\tMin      semantics.Value\n\tMean     float64\n\t// Deviation is the sample standard deviation about Mean, 0 for fewer than two runs.\n\tDeviation float64\n\tMax       semantics.Value\n\tP50       semantics.Value\n\tP90       semantics.Value\n\tHistogram []HistogramBin\n}\n```\nDistribution summarises one observable over the runs of a Monte Carlo: extremes, mean, sample standard deviation, nearest-rank p50/p90 and a histogram, exact on Integers save the Real mean and deviation.\n\n```go\nfunc Distribute(numbers []semantics.Value) *Distribution\n```\nDistribute summarises numbers in any order, nil for none: all Integers make an integral distribution computed exactly, a Real among them one over Reals.\n\n```go\ntype Divergence struct {\n\tFeature string\n\tValues  []DivergentValue\n}\n```\nDivergence is a feature whose final value the schedule decides: every value some complete schedule leaves it with, in canonical order.\n\n```go\nfunc (d Divergence) String() string\n```\nString spells the divergence as \\`x ends as 1 or 2\\`.\n\n```go\ntype DivergentValue struct {\n\tValue   string\n\tWitness Witness\n}\n```\nDivergentValue is one final value of a divergent feature and a schedule reaching it.\n\n```go\ntype DrawPolicy int\n```\nDrawPolicy is how a run resolves the draws of the RandomFunctions library: at random from the seeded stream, or at a fixed point of each call's distribution. weighted decisions are not durations, so they draw the same under every policy.\n\n```go\nconst (\n\t// DrawRandom draws from the seeded modeled stream, or a witness's recorded draws.\n\tDrawRandom DrawPolicy = iota\n\t// DrawMin yields the least value each call can draw.\n\tDrawMin\n\t// DrawMax yields the greatest value each call can draw.\n\tDrawMax\n\t// DrawAverage yields the mean of each call's distribution.\n\tDrawAverage\n)\n```\n\n```go\nfunc ParseDrawPolicy(text string) (DrawPolicy, error)\n```\nParseDrawPolicy reads a policy spelling: one of drawPolicyNames.\n\n```go\nfunc (p DrawPolicy) Fixed() bool\n```\nFixed reports whether the policy resolves every draw without a random stream.\n\n```go\nfunc (p DrawPolicy) String() string\n```\nString is the policy's spelling, as ParseDrawPolicy reads it.\n\n```go\ntype DrawTaken struct {\n\tWhat  string\n\tValue semantics.Value\n}\n```\nDrawTaken is one random value a run drew: the call that drew it with its arguments as evaluated, and the value, spelt \\`draw uniform(1, 80) = 42.5\\`.\n\n```go\nfunc ParseDraw(text string) (DrawTaken, error)\n```\nParseDraw reads one draw as DrawTaken.String spells it: \\`draw \\\u003ccall\u003e = \\\u003cnumber\u003e\\`.\n\n```go\nfunc (d DrawTaken) Describe() string\n```\nDescribe renders the draw for a diagnostic.\n\n```go\nfunc (d DrawTaken) String() string\n```\nString spells the draw as a witness lists it and ParseDraw reads it back.\n\n```go\ntype EffectiveFeature struct {\n\tName         string\n\tSymbol       *symbols.Symbol // the declaring feature symbol\n\tOwnerType    *symbols.Symbol // type that declares this feature (may be supertype)\n\tType         *symbols.Symbol // resolved type (nil if untyped)\n\tMultiplicity semantics.Range // declared, inherited or implicit; else the representative one value\n\t// MultiplicityDefaulted marks a feature that states and inherits no multiplicity, so the\n\t// usual default 0..* governs it: Multiplicity is representativeRange and judges no count.\n\tMultiplicityDefaulted bool\n\tDefaultValue          ast.Node        // value-binding expression (nil if none)\n\tDefaultValueID        program.ExprID  // DefaultValue in the model's table, lowered in DefaultScope\n\tDefaultDecl           *symbols.Symbol // feature the DefaultValue was written on (nil if none)\n\tHoldsSet              bool            // values form a set: a Collection's unordered unique elements\n\tUnique                bool            // holds no two equal values (KerML isUnique, the default)\n\t// GovernedByChain marks a feature a valued nested chain from a more specific\n\t// body reaches below, so its bound value does not govern, as with a\n\t// redefining body.\n\tGovernedByChain bool\n\t// YieldsToBinding marks a value written on a parameter of a usage the type subsets:\n\t// the slot holds it unless a holder of the object binds the parameter.\n\tYieldsToBinding bool\n}\n```\nEffectiveFeature represents one feature value in a type's flattened schema: own + inherited − redefined/masked, carrying type + multiplicity + default.\n\n```go\nfunc (f *EffectiveFeature) Binds() bool\n```\nBinds reports whether DefaultValue was written with \\`=\\`: a binding the feature holds at all times, neither a \\`default\\` fallback nor a \\`:=\\` initial value.\n\n```go\nfunc (f *EffectiveFeature) DeclScope() *symbols.Scope\n```\nDeclScope returns the scope the feature was declared in, which is the scope a default value written on it must be evaluated in: an inherited feature's default refers to names visible where the supertype was written, not where the instantiated type is.\n\n```go\nfunc (f *EffectiveFeature) DefaultScope() *symbols.Scope\n```\nDefaultScope returns the scope DefaultValue resolves its names in, which for an inherited default is where the redefined declaration wrote it.\n\n```go\nfunc (f *EffectiveFeature) HoldsOnlyContributions() bool\n```\nHoldsOnlyContributions reports whether a feature of known multiplicity materializes no object of its own: it is abstract, or a scalar whose lower bound demands none and whose own body describes none.\n\n```go\nfunc (f *EffectiveFeature) Scalar() bool\n```\nScalar reports whether the feature holds at most one value.\n\n```go\ntype EntryRef struct {\n\tOwner  program.StateID\n\tRegion program.RegionID\n\tIndex  int\n}\n```\nEntryRef names an entry transition by the body it is written in (a state, a region, or neither for the machine's own) and its 1-based position there; the zero EntryRef names none.\n\n```go\nfunc (r EntryRef) IsZero() bool\n```\nIsZero reports whether the reference names no entry transition.\n\n```go\ntype EvalContext struct {\n\t// contains filtered or unexported fields\n}\n```\nEvalContext is the lexical environment during evaluation (Tier 3).\n\n```go\nfunc NewEvalContextIn(ctx *Context, scope *symbols.Scope, self *Instance) *EvalContext\n```\nNewEvalContextIn creates an evaluation context bound to an instance, so that a feature name resolves to that instance's feature value rather than to the declared default of the same name.\n\n```go\nfunc (ec *EvalContext) Eval(node ast.Node) (Value, error)\n```\nEval evaluates an expression node, charging a step per evaluation against ctx.maxSteps; a traced context records it after its sub-expressions, whose order the trace thus holds.\n\n```go\nfunc (ec *EvalContext) EvalEntry(entry *lower.ExprEntry) (Value, error)\n```\nEvalEntry is Eval of a lowered expression.\n\n```go\nfunc (ec *EvalContext) Lookup(name string) (Value, bool, error)\n```\nLookup searches for a name in the frame stack (innermost first).\n\n```go\nfunc (ec *EvalContext) Pop()\n```\nPop removes the top frame from the stack (on return, lambda exit).\n\n```go\nfunc (ec *EvalContext) Push(bindings map[string]Value)\n```\nPush adds a new frame to the stack (on calc invocation, lambda entry).\n\n```go\ntype Event struct {\n\tID        int64       // Unique event ID\n\tType      EventType   // Event type\n\tTimestamp float64     // Virtual time when event fires\n\tPayload   interface{} // Event-specific data\n}\n```\nEvent represents a state machine event.\n\n```go\nfunc (e Event) String() string\n```\n\n```go\ntype EventQueue struct {\n\t// contains filtered or unexported fields\n}\n```\nEventQueue is a priority queue of events sorted by timestamp (min-heap).\n\n```go\nfunc (q *EventQueue) Events() []Event\n```\nEvents lists the pending events in dispatch order.\n\n```go\nfunc (q *EventQueue) Len() int\n```\nLen returns the number of pending events.\n\n```go\nfunc (q *EventQueue) Peek() Event\n```\nPeek returns the earliest event without removing it.\n\n```go\nfunc (q *EventQueue) Pop() Event\n```\nPop removes and returns the earliest event.\n\n```go\nfunc (q *EventQueue) Push(e Event)\n```\nPush adds an event to the queue.\n\n```go\nfunc (q *EventQueue) With(e Event) *EventQueue\n```\nWith is a copy of the queue with the event pushed; the queue itself is untouched.\n\n```go\ntype EventType int\n```\nEventType identifies event kinds for state machines.\n\n```go\nfunc (t EventType) String() string\n```\n\n```go\ntype ExecutionState int\n```\nExecutionState tracks executor state.\n\n```go\nconst (\n\tStateReady      ExecutionState = iota // Not started\n\tStateRunning                          // In progress\n\tStateCompleted                        // Reached terminal state\n\tStateSuspended                        // Paused for debugging\n\tStateWaiting                          // Every remaining token is parked at an accept\n\tStateTerminated                       // Ended by a terminate before reaching a terminal state\n)\n```\n\n```go\nfunc (s ExecutionState) Ended() bool\n```\nEnded reports an execution over for good: completed, or ended by a terminate.\n\n```go\nfunc (s ExecutionState) String() string\n```\n\n```go\ntype Exploration struct {\n\tBudget   ExploreBudget\n\tRuns     int\n\tOutcomes []ExploredOutcome\n\t// BudgetsHit names the budgets the exploration ran into, `runs` before\n\t// `depth`; none when it is complete.\n\tBudgetsHit []string\n\t// Unenumerated are the constructs whose unordered alternatives the runs took\n\t// in one order without a choice point, so fewer orders were run than the\n\t// library admits; none when the exploration is complete.\n\tUnenumerated []CoverageGap\n\t// Coverage is every state entered and transition taken over all the runs,\n\t// not only the witness of each outcome, with how many runs did so.\n\tCoverage Coverage\n\t// Scope is the distinct reasons the runs' outcomes were observed short of quiescence.\n\tScope []ObservationReason\n\t// contains filtered or unexported fields\n}\n```\nExploration is what exploring a behavior found: its distinct outcomes, in canonical order, and whether every linearization within the budget was run.\n\n```go\nfunc Explore(stop context.Context, policy SchedulePolicy, fresh func() (*Context, error), run func(*Context) (Outcome, error)) (*Exploration, error)\n```\nExplore runs a behavior once per linearization within the policy's budget, one run at a time in plan order. A run that fails after it begins is an outcome; setup failures and a caller that goes away fail the exploration.\n\n```go\nfunc ExploreWith(stop context.Context, policy SchedulePolicy, jobs int, fresh func(job int) (*Context, error), run func(*Context) (Outcome, error)) (*Exploration, error)\n```\nExploreWith explores as Explore does with up to jobs runs going concurrently, fresh building each run's context for the job making it; the result does not depend on jobs.\n\nThe prefixes form a work queue in plan order, the order one job visits them, and the runs budget is a cut in that order. Plan order is by departures first — every prefix departing from the first run at one choice before any departing at two — so a budget of one more run than the first run's choice points varies each of them at least once, then by the position of the choice varied, earliest first. A run is committed once every prefix before it has completed; one started earlier is speculative, and at most jobs of those are discarded in all. The queue never holds more than runs prefixes, so no more than runs jobs are ever put to work.\n\n```go\nfunc (x *Exploration) Complete() bool\n```\nComplete reports whether every linearization the library admits was run: no budget stopped the exploration and no construct was left unenumerated.\n\n```go\nfunc (x *Exploration) FailedLinearizations() int\n```\nFailedLinearizations counts the runs whose outcomes carry runtime errors.\n\n```go\nfunc (x *Exploration) ProbabilitiesBounded() bool\n```\nProbabilitiesBounded reports whether the outcomes' probabilities are lower bounds while weighted probabilities have unexplored linearizations.\n\n```go\nfunc (x *Exploration) Status() string\n```\nStatus renders how the exploration ended: \\`complete (N runs)\\`, or which budget was hit after how many runs and what was left unenumerated.\n\n```go\nfunc (x *Exploration) Weighted() bool\n```\nWeighted reports whether a committed run made a weighted choice.\n\n```go\ntype ExploreBudget struct {\n\tRuns  int\n\tDepth int\n}\n```\nExploreBudget bounds an exploration: how many runs it may make and how many choice points one run may resolve before the rest take their first alternative.\n\n```go\ntype ExploredOutcome struct {\n\tOutcome        Outcome\n\tLinearizations int\n\t// Probability is nil unless the exploration made a weighted choice.\n\tProbability *ProbabilityRange\n\tWitness     []ChoiceTaken\n\t// WitnessRun is the 1-based number of the run the witness is.\n\tWitnessRun int\n}\n```\nExploredOutcome is one distinct outcome an exploration reached: how many linearizations reached it, its model probability range when weighted, and the choices of the first run that did.\n\n```go\ntype ExpressionParser func(origin, text string, scope *symbols.Scope) (*lower.ExprTable, program.ExprID, bool)\n```\nExpressionParser reads text, from origin, as exactly one expression written in scope, lowered; false for anything else. A Model's builder supplies it: the runtime neither parses nor lowers text.\n\n```go\ntype FeatureOwner int\n```\nFeatureOwner tells whose feature a name a check compares resolves to.\n\n```go\nconst (\n\n\t// OwnedByPerformer: `this.\u003cname\u003e`, a feature of the object performing the action.\n\tOwnedByPerformer FeatureOwner\n\t// OwnedByNode: `node.path`, a feature a performance of one of the action's nodes holds.\n\tOwnedByNode\n)\n```\n\n```go\ntype FeatureValue struct {\n\tFeature *EffectiveFeature\n\n\tValue          Value // scalar feature value (multiplicity [1])\n\tValues         Value // collection feature value (Sequence or Set)\n\tMaterialized   bool  // lazy flag: has this feature value been instantiated?\n\tWritten        bool  // a run assigned this value, so no default derives it again\n\tBindingDerived bool  // value came from binding propagation rather than a write\n\t// Assumed marks a value fixed by nothing but the feature's multiplicity: its\n\t// minimum materialized, or contributions short of its maximum.\n\tAssumed bool\n\t// contains filtered or unexported fields\n}\n```\nFeature value holds the runtime value(s) for one feature.\n\n```go\nfunc (s *FeatureValue) HeldValue() Value\n```\nHeldValue is the value the feature value reads as: its collection when the feature is multi-valued, otherwise its scalar.\n\n```go\nfunc (s *FeatureValue) ReadValue(name string) (Value, error)\n```\nReadValue is what the feature value reads as in an expression: what it holds, or the empty sequence when it holds nothing and its multiplicity admits that. A required feature holding nothing is uninitialized.\n\n```go\ntype FeatureValueError struct {\n\tErr error\n\t// Instance holds the feature value that did not materialize, as the feature named Feature.\n\tInstance *Instance\n\tFeature  string\n}\n```\nFeatureValueError marks a feature value that could not be materialized. It reads as the error that kept the feature value from materializing and unwraps to it as well as to ErrFeatureValueMaterialization, so a caller tests either.\n\n```go\nfunc (e *FeatureValueError) Error() string\n```\n\n```go\nfunc (e *FeatureValueError) Unwrap() []error\n```\n\n```go\ntype FiredTransition struct {\n\tTransition program.TransID\n\tSource     program.VertexRef\n\tTarget     program.VertexRef\n\tEntry      EntryRef\n\tOrigin     program.Origin\n}\n```\nFiredTransition is a transition the machine took, by graph-local identity: its id and origin and the vertices it left and reached; an entry transition by Entry instead.\n\n```go\ntype FramePlacement struct {\n\tOrigin          Value   // a vector quantity, or a scalar quantity for a one-dimensional frame\n\tBasisDirections []Value // vector quantities, one per target axis\n}\n```\nFramePlacement is a CoordinateFramePlacement: the target frame's origin as a vector in the source frame, and its basis directions there; none for the source's own orientation.\n\n```go\ntype FramePose struct {\n\tOrigin []float64\n\tBasis  []float64\n}\n```\nFramePose places a target frame in its source: v in the target's axis units lies at Origin + Basis · v in the source's, Basis row-major over n axes.\n\n```go\ntype FrameStep struct {\n\tTranslation *Value    // Translation::translationVector, a vector quantity\n\tAxis        *Value    // Rotation::axisDirection, a vector quantity\n\tAngle       *Quantity // Rotation::angle, an angular measure\n\tIntrinsic   bool      // Rotation::isIntrinsic\n\tObject      int64\n}\n```\nFrameStep is one TranslationOrRotation of a TranslationRotationSequence.\n\n```go\ntype Held struct {\n\t// contains filtered or unexported fields\n}\n```\nHeld is a copy of what a performance holds at one moment: the features it holds, and their values looked up under the names the performance keys them by.\n\n```go\nfunc (h Held) Features() []lower.Attribute\n```\nFeatures are the attributes and parameters the performance holds, the graph's own then the inherited ones it does not redefine, as the run initializes them.\n\n```go\nfunc (h Held) Unbound() []lower.Attribute\n```\nUnbound lists the inputs the performance holds no value for: the features it reads rather than writes back, declared with no default and bound by nothing. One marked Optional may also hold no value at all, which the run reads as the empty sequence, so absence is among the states it ranges over.\n\n```go\nfunc (h Held) Value(name string) (Value, bool)\n```\nValue is the value held under name: its redefinition's when name is redefined.\n\n```go\ntype HeldFeature struct {\n\tFeature   EffectiveFeature\n\tComposite *symbols.Symbol\n\tVariants  []*symbols.Symbol\n}\n```\nHeldFeature is an object-holding feature the model declares on an element, with what else may state assertions its objects carry: the feature's composite type, and the variants of the feature or of that type, each applying only to an object of the variant the feature selects.\n\n```go\ntype HeldImage struct {\n\t// contains filtered or unexported fields\n}\n```\nHeldImage is a closure of held objects by value — objects, lifetimes, executions, messages in flight — that materializes into other contexts under the same identities (see Image).\n\n```go\nfunc (img *HeldImage) Holds(id int64) bool\n```\nHolds reports whether the image holds an object under id.\n\n```go\nfunc (img *HeldImage) Materialize(dst *Context) error\n```\nMaterialize gives dst objects of its own for the image under the same identities, advancing dst's sequence past them and past the identities set aside for connectors not materialized yet; errImageIdentityTaken and errImageClock refuse, leaving dst as it was.\n\n```go\ntype HeldImageError struct {\n\tID   int64\n\tType *symbols.Symbol\n\tWhat string\n\tErr  error\n}\n```\nHeldImageError reports what of an object kept an image from being taken or materialized: the object, and the typed reason.\n\n```go\nfunc (e *HeldImageError) Error() string\n```\nError names what was being done to the object and the reason it could not be.\n\n```go\nfunc (e *HeldImageError) Unwrap() error\n```\nUnwrap exposes the typed reason.\n\n```go\ntype HeldObjectsError struct {\n\tFeature string\n\tErr     error\n}\n```\nHeldObjectsError reports the feature HeldObjects could not read, and why.\n\n```go\nfunc (e *HeldObjectsError) Error() string\n```\n\n```go\nfunc (e *HeldObjectsError) Unwrap() error\n```\n\n```go\ntype HistogramBin struct {\n\tLo, Hi semantics.Value\n\tCount  int\n}\n```\nHistogramBin is one bin of a histogram and how many runs fell in it: the numbers from Lo up to Hi, Hi included in the last bin and in every bin of an integral distribution.\n\n```go\ntype Horizon struct {\n\t// contains filtered or unexported fields\n}\n```\nHorizon is the instant a check runs the clock to: the zero Horizon is none, and one at t=0 dispatches what is due at the start alone.\n\n```go\nfunc HorizonAt(t float64) Horizon\n```\nHorizonAt is the horizon at instant t.\n\n```go\nfunc HorizonInitial() Horizon\n```\nHorizonInitial is the horizon of machines run without a duration: each takes its initial transition only, as a run of a state machine with no \\`-advance\\` does.\n\n```go\nfunc (h Horizon) Bound() (at float64, ok bool)\n```\nbound is the instant the horizon stops the clock at, false for none.\n\n```go\ntype InputBinding struct {\n\tName  string\n\tValue Value\n}\n```\nInputBinding is the value one input parameter of a case was bound to for a run: its argument, or the default its declaration evaluated to.\n\n```go\ntype InputTaken struct {\n\tFeature string\n\t// Value is the value, when the witness was made in memory; ValInvalid for one\n\t// read from a file, whose Written is evaluated where the action's defaults are.\n\tValue Value\n\t// Written is the value as the notation spells it: what a witness file holds.\n\tWritten string\n}\n```\nInputTaken is one input a witness fixes before the run's first move: a feature of the action or its performer and its value, spelt \\`input \\\u003cfeature\u003e = \\\u003cvalue\u003e\\`.\n\n```go\nfunc InputOf(feature string, value Value) InputTaken\n```\nInputOf is the input fixing feature at value, spelt as the value formats.\n\n```go\nfunc (in InputTaken) String() string\n```\nString spells the input as a witness lists it and parseInput reads it back.\n\n```go\ntype Instance struct {\n\tID            int64                    // unique identity\n\tType          *symbols.Symbol          // the def/usage symbol this instantiates\n\tFeatureValues map[string]*FeatureValue // feature name → feature value\n\n\t// Ends are the ends of the connector this object materializes, in declaration\n\t// order, and nil for an object that is no connector. A named end also reads\n\t// through the feature value of that name; the order is what an end with no name of its\n\t// own is identified by.\n\tEnds []ConnectorEnd\n\t// contains filtered or unexported fields\n}\n```\nInstance is a runtime-materialized object (Tier 2).\n\n```go\nfunc (inst *Instance) Behaviors() []*ObjectBehavior\n```\nBehaviors are the behaviors the object runs, in declaration order.\n\n```go\nfunc (inst *Instance) BindFeatureValue(ctx *Context, name string, value Value) error\n```\nBindFeatureValue writes a value to the named feature value of the object as the model determines it rather than as a behavior changes it: the object's initial values, the seeding of a performance occurrence with what its run already holds, a parameter bound at a call, a binding's other end, a message's payload. It answers to the declaration as SetFeatureValue does, but a constant or derived feature is not refused, since that is how such a feature gets its values.\n\n```go\nfunc (inst *Instance) ExhibitedState() (*ObjectBehavior, bool)\n```\nExhibitedState returns the machine the object exhibits, and false when it exhibits none. With several, it returns the first declared that started; when none did, the first declared, its failure recorded on it: a record, not a machine to run.\n\n```go\nfunc (inst *Instance) ExhibitedStates() []*ObjectBehavior\n```\nExhibitedStates returns every machine the object exhibits, in declaration order.\n\n```go\nfunc (inst *Instance) ExhibitedStatesOf(sym *symbols.Symbol) []*ObjectBehavior\n```\nExhibitedStatesOf returns the machines the object exhibits under sym's declaration: the one sym itself binds, or else every one reaching sym through its bindings (the usage it names, or the definition holding its body) or typed by it, since one definition can be the body or the kind of several exhibited usages. Declarations are compared.\n\n```go\nfunc (inst *Instance) GetFeatureValue(ctx *Context, name string) (*FeatureValue, error)\n```\nGetFeatureValue retrieves the feature value for the named feature, materializing it lazily if it's a composite feature that hasn't been accessed yet. A feature value that could not be materialized is marked as such — it unwraps to ErrFeatureValueMaterialization — so a caller can tell it from any other failure to evaluate, whatever the expression it surfaced through.\n\n```go\nfunc (inst *Instance) HeldUnder() *symbols.Symbol\n```\nHeldUnder returns the usage an object's owner holds it as (\\`Car::wheels\\` for \\`car.wheels\\[2]\\`), or nil for an object held by none.\n\n```go\nfunc (inst *Instance) KeptConnectorIDs() []int64\n```\nKeptConnectorIDs returns the identities of the connectors a carry-over set aside for the instance to materialize again, anonymous and named, ascending.\n\n```go\nfunc (inst *Instance) MaterializedConnectors(ctx *Context) []*Instance\n```\nMaterializedConnectors returns the anonymous connectors the instance has already materialized, none when they were never asked for; it materializes nothing.\n\n```go\nfunc (inst *Instance) MemberValue(ctx *Context, name string) (*FeatureValue, error)\n```\nMemberValue reads the member of the object that name denotes, as every surface reads one: a feature value of its shape, else a member the shape leaves out through kernelMemberRead. GetFeatureValue alone probes the shape.\n\n```go\nfunc (inst *Instance) OwnedConnectors(ctx *Context) ([]*Instance, error)\n```\nOwnedConnectors returns the connectors the instance owns that no feature names — an anonymous \\`connect a.p to b.q\\` member — materializing each once, in declaration order. A named connector is reached through its feature value instead.\n\n```go\nfunc (inst *Instance) Owner() (*Instance, string)\n```\nOwner answers the object holding this one and the feature of it that does, or nil and \"\" for an object no other holds.\n\n```go\nfunc (inst *Instance) PerformedActionsOf(sym *symbols.Symbol) []*ObjectBehavior\n```\nPerformedActionsOf returns the actions the object performs under sym's declaration, matched as ExhibitedStatesOf matches machines.\n\n```go\nfunc (inst *Instance) RestoreConnector(ctx *Context, id int64) (*Instance, error)\n```\nRestoreConnector materializes again the connector a carry-over set aside under id, which takes that identity back; nil when the instance kept no such identity. A connector returned along with an error is kept: an older behavior failed answering it.\n\n```go\nfunc (inst *Instance) SetFeatureValue(ctx *Context, name string, value Value) error\n```\nSetFeatureValue writes a value to the named feature value of the object, which is how a behavior the object performs updates the object's own state. The value must conform to the multiplicity governing the feature; a feature the object does not have is reported rather than added. A feature declared \\`constant\\` or \\`derived\\`, or redefining or subsetting one that is, is refused as errReadOnlyFeature and keeps what it held: a constant feature does not change over the lifetime of its featuring occurrence, and a derived one has the values the model determines (KerML 1.0 §8.3.3.3.4, Feature::isConstant and Feature::isDerived).\n\n```go\nfunc (inst *Instance) Types() []*symbols.Symbol\n```\nTypes returns the types an object has: the one it was materialized from, then the classifiers a behavior has since given it.\n\n```go\ntype Invocation struct {\n\tActions []*ActionExecutor\n\tStates  []*StateExecutor\n\t// Names are the names the behaviors' observables are reported under in a joint\n\t// outcome, actions first; the behaviors' own names when absent.\n\tNames []string\n\t// PerformerNames spell, beside Names, the object each behavior performs on as the\n\t// surface named it, \"\" for none; `object #\u003cid\u003e` when absent.\n\tPerformerNames []string\n\tHorizon        Horizon\n}\n```\nInvocation is what one check searches: the behaviors started on one clock, in the order started, and the horizon the clock runs to. The objects the started behaviors materialize bring their own behaviors onto the clock.\n\n```go\nfunc (inv *Invocation) Completed() bool\n```\nCompleted reports whether every started action reached its end.\n\n```go\nfunc (inv *Invocation) Context() *Context\n```\nContext is the context the started behaviors run in, nil for an empty invocation.\n\n```go\nfunc (inv *Invocation) Outcome() Outcome\n```\nOutcome is what the started behaviors came to: one behavior's own outcome, or the joint outcome of several, plus what the performing objects hold (\\`this.\\` for one, \\`\\\u003cobject\u003e.\\` else).\n\n```go\nfunc (inv *Invocation) PerformerAttributes() map[string]Value\n```\nPerformerAttributes are the attributes the behaviors' performers hold, as an outcome reports them: under \\`this.\\` for one performer, under its name for several.\n\n```go\nfunc (inv *Invocation) Performers() []*Instance\n```\nPerformers lists the distinct objects the started behaviors perform on, in start order.\n\n```go\nfunc (inv *Invocation) Release()\n```\nRelease ends every started executor's run.\n\n```go\ntype LogarithmicMapping struct {\n\tBase, Factor, Exponent float64\n\tReference              *Quantity // referenceQuantity; nil when the scale states none\n}\n```\nLogarithmicMapping is a LogarithmicScale's \\`v = factor \\* log\\_base((x / reference) \\*\\* exponent)\\`.\n\n```go\ntype MeasurementRef struct {\n\tUnit Unit\n}\n```\nMeasurementRef is a ScalarMeasurementReference held as a value: the Unit a quantity carries (named product = declarations, term = reduction), by itself.\n\n```go\nfunc (r *MeasurementRef) Declaration() *symbols.Symbol\n```\nDeclaration is the one unit declaration the reference names at the first power (\\`SI::m\\`); nil for a unit composed of several (\\`m/s\\`, \\`m\\*\\*2\\`).\n\n```go\nfunc (r *MeasurementRef) String() string\n```\nString renders the reference as a quantity's unit is written: \\`m\\`, \\`km/h\\`, \\`m\\*\\*2\\`.\n\n```go\ntype MeasurementScale struct {\n\tUnit    Unit\n\tMapping *QuantityValueMapping\n\tModulus float64             // CyclicRatioScale::modulus, in Unit; 0 for another scale\n\tLog     *LogarithmicMapping // what a LogarithmicScale states\n}\n```\nMeasurementScale is what a scale states beyond its one axis: the unit a magnitude on it is in, and the point mapping it onto another reference.\n\n```go\ntype Message struct {\n\t// Serial is the bus's number for the message, unique within a context's run; 0 for none.\n\tSerial     uint64\n\tSignalType string\n\t// Signal is the definition SignalType resolved to when the send was built,\n\t// nil where the message's type is known only as a name. An accept matches it\n\t// by conformance, so a subtype message satisfies a supertype accept and\n\t// same-named definitions of different packages stay apart.\n\tSignal *symbols.Symbol\n\t// Event is the feature the message was sent from (`send shutDown to x`), nil\n\t// where none or unresolved; EventName is its written name, the fallback then.\n\t// EventObject is the occurrence that feature held when sent, or the object\n\t// performing a behavioral feature (`send alert()`), 0 for none: two parts of\n\t// one type hold their own occurrences of the one declared event.\n\tEvent       *symbols.Symbol\n\tEventName   string\n\tEventObject int64\n\tTarget      string\n\tPort        string\n\tObject      int64\n\tPortID      int64\n\tDelivery    DeliveryKind\n\t// TypedByAccept marks a message queued by name alone from outside the model\n\t// (QueuedEvent.Signal) that names no signal definition where its sender\n\t// stands: the accept that takes it, matching it by name, types it by the\n\t// definition the accept's own name denotes in the scope the accept is written\n\t// in, so that its payload binds as a sent occurrence's does.\n\tTypedByAccept bool\n\t// Sender, SenderPerformance and SenderPort are the object, performance and port\n\t// it was sent from (0 for none); SentAt the clock's time; Transfer its Transfer object.\n\tSender            int64\n\tSenderPerformance int64\n\tSenderPort        int64\n\tSentAt            float64\n\tTransfer          int64\n\t// Payload binds features of the message's type by name, as the send's arguments did.\n\tPayload map[string]Value\n\t// Value is the one value a send of an expression carries (`send 7`, `send d`),\n\t// the occurrence `send new T(…)` constructed, or the one an accept built from\n\t// Payload; nil until any.\n\tValue *Value\n\t// contains filtered or unexported fields\n}\n```\nMessage is a signal instance in flight.\n\nSignalType names the message's type: the type the send statement named, or the scalar type of the value it evaluated to. An accept whose parameter is typed consumes only messages of that type, so two sends of different types reach different accepts regardless of the order they were posted in.\n\nTarget names the receiving node of the sending behavior a \\`send m to r\\` addressed; a consumer accepts a message addressed to itself or to no one.\n\nPort names the port the message reached — the peer end a \\`via p\\` send routed to, or the port an addressed send resolved to — and only an accept on that port consumes it, keeping port-routed and addressed traffic separate.\n\nObject identifies the object the message reached, 0 for none, and Delivery what of that destination a consumer must satisfy to take the message.\n\nPortID identifies the port object the message reached, 0 where the run holds none. A binding connector makes a boundary port and an inner port one object, so an accept on either port takes a message that reached the other.\n\n```go\nfunc NamedSignalMessage(name string, to *Instance) Message\n```\nNamedSignalMessage builds the message a send of a signal no declaration types posts: matched by name alone, addressed to the object when there is one.\n\n```go\ntype Model struct {\n\t// contains filtered or unexported fields\n}\n```\nModel is the model-derived part of execution: the semantic model and resolver a run reads, and what is memoized from them — calc shapes, write targets, invocation targets, literal values, effective features, the behaviors a type binds — which the model fixes and no run changes. Every context built over one Model reuses it, so a run pays for none of it again; the run-derived state, what a run creates and a snapshot captures, is the Context's.\n\nThe memo tables fill lazily into plain maps, as the resolver's and the semantic model's do, so a Model is for one goroutine at a time: one per analysis worker.\n\n```go\nfunc NewModel(sem *semantics.Model, resolver *resolve.Resolver) *Model\n```\nNewModel builds the model-derived part of execution over a semantic model and the resolver it resolves names with; either may be nil for a context that evaluates literals alone. The caller installs the checker's argument typing on sem (semantics.Model.SetArgumentTyper) before any call is selected; a run that selects a call without one fails with errNoArgumentTyper. Contexts are built over it with NewContext.\n\n```go\nfunc (m *Model) RegisterScope(scope *symbols.Scope)\n```\nRegisterScope gives the Model a scope tree the caller resolves references in, so a declaration carried over by Adopt is rebound to the symbol that tree declares for it rather than to the index's own.\n\n```go\nfunc (m *Model) RegisterSource(sf *source.SourceFile)\n```\nRegisterSource gives the Model the text of a file it was read from, so an error about a declaration in it reports a line and column.\n\n```go\nfunc (m *Model) Resolver() *resolve.Resolver\n```\nResolver returns the name resolver the Model resolves references with.\n\n```go\nfunc (m *Model) Semantics() *semantics.Model\n```\nSemantics returns the semantic model the Model is derived from.\n\n```go\nfunc (m *Model) SetExpressionParser(parse ExpressionParser)\n```\nSetExpressionParser installs the parser the Model reads witness input values and tool units with; units the previous parser read are forgotten, so every lookup goes through it.\n\n```go\nfunc (m *Model) Sources() []*source.SourceFile\n```\nSources returns the registered files of the model, in name order.\n\n```go\nfunc (m *Model) Text() source.Lookup\n```\nText answers a span in a document from the registered files, falling back to the notation lookup the semantic model reads documentation from.\n\n```go\ntype MonteCarloRun struct {\n\n\t// Case is the qualified name of the case that ran; Subject the object it ran on.\n\tCase    string\n\tSubject *Instance\n\n\t// Number is the run's number in its Monte Carlo, the row it was drawn as; a\n\t// sample names a run by it, whatever earlier runs failed.\n\tNumber int64\n\n\t// Observed is the value the run's `observed` came to, null when the run left it unbound.\n\tObserved Value\n\n\t// Inputs are the values the run bound the case's input parameters to, in\n\t// declaration order. Outputs are every declared output of this iteration\n\t// as the iteration established it — the sample's statistics excluded — with\n\t// the observed feature appended when it declares no output of its own.\n\t// Unread holds the outputs that could not be read, by name.\n\tInputs  []InputBinding\n\tOutputs []CalcOutputValue\n\tUnread  map[string]error\n\n\t// Verdicts are the case's checks over this run: on its own until concludeMonteCarlo\n\t// settles them over the sample, which keeps the checks that are the sample's alone.\n\tVerdicts []AnalysisVerdict\n\t// contains filtered or unexported fields\n}\n```\nMonteCarloRun is one run of a Simulation::MonteCarlo case: its steps performed and \\`observed\\` read, its statistics unbound until concludeMonteCarlo binds the sample's.\n\n```go\nfunc (r *MonteCarloRun) Conclude(stats MonteCarloStatistics, sample []bool) (AnalysisResult, error)\n```\nConclude binds outOfSpec over the settled run, then reports the case's outputs and the verdicts of the sample's checks, judged over the results and all four statistics.\n\n```go\nfunc (r *MonteCarloRun) Context() *Context\n```\nContext is the context the run was made in, which its values are read through.\n\n```go\ntype MonteCarloStatistics struct {\n\t// Runs is the number of runs observed.\n\tRuns int64\n\t// Mean is the arithmetic mean of the observations.\n\tMean float64\n\t// Deviation is their sample standard deviation, which under two runs there is none of.\n\tDeviation float64\n\t// OutOfSpec is the number of runs a check of the runs did not hold in, counted by\n\t// concludeMonteCarlo once the runs' checks are settled; MonteCarloSample leaves it 0.\n\tOutOfSpec int64\n\t// Unit is the unit quantity observations were taken in, which Mean and Deviation\n\t// are expressed in; nil when the observations were bare numbers.\n\tUnit *Unit\n}\n```\nMonteCarloStatistics are the statistics of a sample of runs, as Simulation::MonteCarlo declares them.\n\n```go\nfunc MonteCarloSample(runs []*MonteCarloRun) (MonteCarloStatistics, error)\n```\nMonteCarloSample is the statistics of runs, each of which observed a number or a quantity, the quantities expressed in the first run's unit; one observing none, no number, or a quantity of another dimension refuses the sample, named by its Number.\n\n```go\ntype NamedInput struct {\n\tName  string\n\tValue Value\n}\n```\nNamedInput is one named argument of an action invocation: the parameter name as written and its value, given in the order the invocation wrote them.\n\n```go\ntype NoValueError struct {\n\tFeature string\n\t// Symbol is the feature declaration the read reached, when it is known.\n\tSymbol *symbols.Symbol\n}\n```\nNoValueError reports a feature a condition names that carries no value, naming the feature so a caller can tell which one is uninitialized.\n\n```go\nfunc (e *NoValueError) Error() string\n```\n\n```go\nfunc (e *NoValueError) Unwrap() error\n```\n\n```go\ntype NodeBreakpoint struct {\n\tWithin []NodeRef\n\tNode   NodeRef\n}\n```\nNodeBreakpoint is a breakpoint set by identity: on Node, in the flow of the nested action nodes Within (outermost first, as Token.Within lists them; none for the action's own).\n\n```go\ntype NodeRef struct {\n\tGraph *lower.ActionGraph\n\tID    program.NodeID\n}\n```\nNodeRef names one node of an action graph by the id the graph gives it: what the executor's records hold in place of the node, which Node reads back through the graph.\n\n```go\nfunc (r NodeRef) Node() ast.Node\n```\nNode is the declaration the reference names, nil for none.\n\n```go\nfunc (r NodeRef) Origin() program.Origin\n```\nOrigin is where the node the reference names was written; the zero Origin for none.\n\n```go\ntype ObjectBehavior struct {\n\t// Name is the name the behavior answers to on the object.\n\tName string\n\tKind lower.ClassifierBehaviorKind\n\t// Symbol is the state machine or action holding the body being run, which is\n\t// the binding declaration itself when it states one.\n\tSymbol *symbols.Symbol\n\t// Object is the object performing the behavior.\n\tObject *Instance\n\n\t// State is the machine the object exhibits, nil for a performed action.\n\tState *StateExecutor\n\t// Action is the action the object performs, nil for an exhibited machine.\n\tAction *ActionExecutor\n\t// Err is the error a behavior bound by the object's type failed with, at its\n\t// start or while the creation ran it, recorded rather than failing the creation.\n\tErr error\n\t// contains filtered or unexported fields\n}\n```\nObjectBehavior is a behavior one object runs because its type exhibits or performs it: an execution of its own, bound to that object's identity.\n\n```go\nfunc (b *ObjectBehavior) Describe() string\n```\nDescribe names the behavior and the object running it, for diagnostics.\n\n```go\nfunc (b *ObjectBehavior) Member() *symbols.Symbol\n```\nMember is the declaration binding the behavior to the object's type: the exhibiting or performing usage, which is what addresses this behavior when several run the same body.\n\n```go\ntype ObjectFeature struct {\n\tName    string\n\tFeature *EffectiveFeature\n}\n```\nObjectFeature is a feature of an object under one of its names: the declaration its feature value reads, or its type's when it holds no value under the name.\n\n```go\ntype ObjectNamed struct {\n\tID   int64\n\tPath string\n}\n```\nObjectNamed is an object the moves of a witness name by the number its run gave it, bound to its materialization path, \\`object #2 = Plant::spare#1\\`, so the run replaying the witness finds the object among its own.\n\n```go\nfunc (o ObjectNamed) Number() string\n```\nNumber is how the moves name the object: \\`object #\\\u003cid\u003e\\`.\n\n```go\nfunc (o ObjectNamed) String() string\n```\nString spells the binding as a witness lists it and parseObject reads it back.\n\n```go\ntype ObjectVerdict struct {\n\tKind AssertionKind\n\t// Element is the asserting element: the constraint, requirement or satisfy usage.\n\tElement *symbols.Symbol\n\t// Requirement is the requirement a requirement or satisfaction verdict is\n\t// about, whose verification cases a caller may report beside it.\n\tRequirement *symbols.Symbol\n\t// Text is the assertion as written, so an anonymous one can be named.\n\tText string\n\t// Subject is the object evaluated against and Path the features walked to it\n\t// from the root, a collection element indexed as wheels[2]; empty for the root.\n\tSubject *Instance\n\tPath    []string\n\tStatus  ValidationStatus\n\t// Err is the violation, or what left the assertion undecided; nil when it holds.\n\tErr error\n}\n```\nObjectVerdict is one assertion checked on one object of a validated tree.\n\n```go\ntype Objective struct {\n\t// Name is the objective's name, empty for an anonymous one.\n\tName string\n\n\t// Symbol is the objective usage's symbol.\n\tSymbol *symbols.Symbol\n\n\t// Type is the objective definition it is typed by, nil when untyped.\n\tType *symbols.Symbol\n\n\t// Direction is the way its value is to be improved.\n\tDirection ObjectiveDirection\n\n\t// Value is the expression stating the value to improve, nil when the\n\t// objective states none.\n\tValue ast.Node\n\n\t// ValueID is Value in the model's table, lowered in Scope; 0 when it states none.\n\tValueID program.ExprID\n\n\t// Scope is where Value's names resolve.\n\tScope *symbols.Scope\n\n\t// Eval is the calc redefining the library's `eval` that states Value, nil\n\t// when the value is stated another way or not at all.\n\tEval *symbols.Symbol\n\n\t// StepwiseEval reports an `eval` whose body computes in steps rather than\n\t// stating one expression, so no Value is read from it.\n\tStepwiseEval bool\n\n\t// Evaluates is the calc `eval` is bound to hold (`in calc :\u003e\u003e eval =\n\t// evaluationFunction;`), applied to each alternative the case's subject\n\t// lists; nil when `eval` states an expression or nothing.\n\tEvaluates *symbols.Symbol\n\n\t// Best is the objective's `best` feature, derived by the library from Eval;\n\t// nil when the objective is no trade-study objective.\n\tBest *symbols.Symbol\n\n\t// ReboundBest is a feature giving the library's bound `best` a value of its\n\t// own (`attribute :\u003e\u003e best = expression;`), which validation rejects; or nil.\n\tReboundBest *symbols.Symbol\n\n\t// Conditions are the conditions the objective states itself, its own body's\n\t// and the ones it inherits from the model's own objective definitions: what\n\t// values are feasible, which a solver translates.\n\tConditions []Condition\n\n\t// LibraryConditions are the conditions the objective inherits from the\n\t// trade-study library (`eval(selectedAlternative) == best`): about the\n\t// choice among the listed alternatives, which the analysis run checks and\n\t// no solver translates.\n\tLibraryConditions []Condition\n}\n```\nObjective is one objective an analysis case states: which way its value is to be improved, the expression stating that value, and the conditions it states itself.\n\n```go\nfunc (o Objective) Text() string\n```\nText renders the expression stating the objective's value as written, empty when it states none.\n\n```go\nfunc (o Objective) Written() (source.Span, bool)\n```\nWritten is where the objective's value was written, false for an objective stating none.\n\n```go\ntype ObjectiveDirection int\n```\nObjectiveDirection is the way an objective's value is to be improved, taken from the trade-study objective definition it is typed by.\n\n```go\nconst (\n\n\t// Minimize is an objective specializing TradeStudies::MinimizeObjective.\n\tMinimize ObjectiveDirection\n\t// Maximize is an objective specializing TradeStudies::MaximizeObjective.\n\tMaximize\n)\n```\n\n```go\nfunc (d ObjectiveDirection) String() string\n```\nString names the direction as the model states it.\n\n```go\ntype ObservationReason string\n```\nObservationReason says how far short of quiescence an outcome was observed: its claim holds at that point, and its strength stands.\n\n```go\ntype OccurrenceLife struct {\n\tBegan int64\n\tEnded int64\n\t// Destroyed marks an end by `destroy`, after which the features hold nothing;\n\t// a performance that completed keeps its final values.\n\tDestroyed bool\n}\n```\nOccurrenceLife is the lifetime of an occurrence as the describe API reports it: where in the execution order it began and ended, 0 for \"not yet\".\n\n```go\nfunc (l OccurrenceLife) String() string\n```\nString renders the lifetime for a debugging surface.\n\n```go\ntype OccurrenceRun struct {\n\tOccurrence *Instance\n\tTransfers  []PerformedTransfer\n}\n```\nOccurrenceRun is what performing an occurrence definition as an interaction did: the object the occurrence materialized to, whose parts are the lifelines, and the transfers its messages were realized as, in the order performed.\n\n```go\ntype OperandTypeError struct {\n\tOp      string      // the operator, as written\n\tLeft    string      // description of the left operand's type\n\tRight   string      // description of the right operand's type\n\tLibrary string      // the library function that would have to declare it, if any\n\tSpan    source.Span // span of the operator expression\n}\n```\nOperandTypeError reports an operator applied to operand types it is not defined for, naming the operator and both operands and carrying the span of the expression so a surface holding the source can point at it.\n\n```go\nfunc (e *OperandTypeError) Error() string\n```\n\n```go\nfunc (e *OperandTypeError) Unwrap() error\n```\n\n```go\ntype OperationArguments struct {\n\tPositional []Value\n\tNamed      map[string]Value\n}\n```\nOperationArguments is an invocation's argument list (KerML 8.2.5.8.3): either positional, bound to the operation's \\`in\\` and \\`inout\\` parameters in declaration order, or named. A list giving both is refused.\n\n```go\ntype OptimizationStage struct {\n\tCase       *symbols.Symbol\n\tObjectives []Objective\n\tConditions []Condition\n}\n```\nOptimizationStage is one stage of a lexicographic optimization: a case, the objectives it states and the conditions bounding it — the enclosing case first, then each analysis nested in it, in declaration order.\n\n```go\ntype Outcome struct {\n\tOutputs     map[string]Value\n\tFinalState  string\n\tStateVisits []string\n\t// Terminated is set when the performance was ended short of its own flow: a\n\t// machine's transition to a terminate action, or a terminate of an occurrence\n\t// it belongs to. An action's own `terminate` node completes it instead.\n\tTerminated bool\n\tErr        error\n\t// Scope says how far short of quiescence the run was observed; no part of\n\t// the outcome's identity.\n\tScope []ObservationReason\n\t// contains filtered or unexported fields\n}\n```\nOutcome is what one run came to, in the observables a conformance case compares; a run that failed is an outcome of its own, Err.\n\n```go\nfunc (o Outcome) Context() *Context\n```\nContext is the context of the run that came to this outcome, nil for an outcome built without one.\n\n```go\nfunc (o Outcome) RenderedOutputs() []OutcomeOutput\n```\nRenderedOutputs spells the outputs in name order; an object two outputs hold is spelled once, the second mention being its number in the outcome. A graph is opened to the bounds the wire serializes one to.\n\n```go\nfunc (o Outcome) String() string\n```\nString renders the outcome canonically: two runs agreeing on their observables render alike, so the rendering is the outcome's identity. An object is spelled by its type and what its features hold, never by the id its run gave it.\n\n```go\ntype OutcomeOutput struct {\n\tName string\n\tText string\n}\n```\nOutcomeOutput is one output of an outcome as it renders: its name and its value spelled canonically, an object by its type and what it holds.\n\n```go\ntype Parameter struct {\n\tName      string\n\tIsSubject bool\n\t// contains filtered or unexported fields\n}\n```\nParameter is one input parameter of a calc or case as a tool binding its arguments reads it: its name, whether it is a case's subject, and the declaration a bound value answers to.\n\n```go\nfunc (p Parameter) Admit(ctx *Context, value *Value, what func() string) error\n```\nAdmit checks the value as an argument bound to the parameter is, naming it by what.\n\n```go\nfunc (p Parameter) Owner() *symbols.Symbol\n```\nOwner is the behavior declaring the parameter, in whose scope its values are classified.\n\n```go\nfunc (p Parameter) Type() *symbols.Symbol\n```\nType is the type the parameter declares, nil where it declares none.\n\n```go\ntype PathBounds struct {\n\tDepth int\n\tPaths int\n}\n```\nPathBounds is how far PathsTo searches: paths of Depth steps at most, and Paths paths in all. A zero bound is no bound.\n\n```go\ntype PathStep struct {\n\t// Name is the feature as the holder's feature values key it, which an\n\t// object path addresses it by; Feature is that feature as declared.\n\tName    string\n\tFeature *EffectiveFeature\n\t// Library marks a feature the standard library derives (`subparts`,\n\t// `ownedPorts`), which holds the object a declared feature also holds.\n\tLibrary bool\n\t// Index is the position within a multi-valued feature, from 1; 0 for a\n\t// single-valued one.\n\tIndex  int\n\tObject *Instance\n}\n```\nPathStep is one step of a root-relative object path: a feature of the object before it and, within a multi-valued feature, the position of the value taken, counted from 1 as an object path spells it (\\`wheels\\[2]\\`); 0 for a single-valued feature.\n\n```go\ntype Paths struct {\n\t// Steps are the paths, each the steps from the root to the target, in the\n\t// order Traverse would reach them; empty steps are the root itself.\n\tSteps [][]PathStep\n\t// Truncated reports that a bound cut the search short: more paths reach the\n\t// target than bounds.Paths, or a path cut at bounds.Depth ended at an object\n\t// from which the target is reachable, so a deeper path may.\n\tTruncated bool\n}\n```\nPaths is what PathsTo found.\n\n```go\ntype PerformedTransfer struct {\n\tName      string\n\tFrom, To  *Instance\n\tFromEvent string\n\tToEvent   string\n\tMessage   Message\n\tPerformed *ActionExecutor\n}\n```\nPerformedTransfer is one message realized: posted from the lifeline object holding the event it leaves to the one holding the event it reaches, and the action the receiving event performed on it, nil for none.\n\n```go\ntype ProbabilityRange struct{ Min, Max float64 }\n```\nProbabilityRange is the probability the model's draws give an outcome, least to greatest over schedulers that resolve its scheduling choices.\n\n```go\nfunc (r ProbabilityRange) Exact() bool\n```\nExact reports whether the range is a single probability, within floating-point tolerance.\n\n```go\ntype ProgressReport struct {\n\tStatus ProgressStatus\n\t// Search summarizes the progress search, deduplicated without reporting-only visit history.\n\tSearch             *CheckReport\n\tActivated, Cleared bool\n\t// Root and StartupPicks identify the starting state of a stalled witness.\n\t// Picks are zero-based, with unstated choices taking the first alternative.\n\tRoot          string\n\tStartupPicks  []int\n\tPrefix, Cycle []ProgressStep\n}\n```\nProgressReport reports one request-to-response obligation. A stalled report has a prefix to a pending terminal (empty Cycle) or a repeatable pending walk.\n\n```go\nfunc CheckProgress(stop context.Context, fresh func() (*Context, error), start Starter, budget CheckBudget, pending CheckProperty) (*ProgressReport, error)\n```\nCheckProgress asks whether every schedule leaves the pending region without assuming fairness. Pending becomes true on acceptance, false on response, and may read execution state but not visit history.\n\n```go\ntype ProgressStatus string\n```\nProgressStatus distinguishes a clean finite search, a counterexample, lack of activation, and an incomplete search.\n\n```go\nconst (\n\tProgressHolds        ProgressStatus = \"holds\"\n\tProgressStalled      ProgressStatus = \"stalled\"\n\tProgressVacuous      ProgressStatus = \"vacuous\"\n\tProgressInconclusive ProgressStatus = \"inconclusive\"\n)\n```\n\n```go\ntype ProgressStep = progress.Step\n```\nProgressStep identifies a native explored edge by canonical stable-state digests and move identity.\n\n```go\ntype Quantity = semantics.Quantity\n```\nQuantity is a scalar quantity value, the representation the semantic layer shares with the query engine: a magnitude in a measurement reference.\n\n```go\ntype QuantityValueMapping struct {\n\tMapped    Quantity // the point on the scale, in the scale's unit\n\tReference Quantity // the same point on the reference\n}\n```\nQuantityValueMapping is one point given on the scale and on the reference it is defined against, as \\`quantityValueMapping\\` states it.\n\n```go\ntype QueuedEvent struct {\n\tSignal string\n\tCall   string\n\tArgs   map[string]Value\n\tValue  *Value\n}\n```\nQueuedEvent is one occurrence a driven state performance queues before it runs: a signal by type, carrying arguments or one bare payload, or an operation call carrying arguments.\n\n```go\ntype Reach struct {\n\tObject *Instance\n\tHolder *Instance\n\t// Feature is the holder's feature the object is a value of, and Index the\n\t// position among that feature's values, as PathStep counts them.\n\tFeature *EffectiveFeature\n\tIndex   int\n\t// Steps are the path from the root, the last of which reaches Object.\n\tSteps []PathStep\n}\n```\nReach is how a traversal of an object graph reached one object: the object holding it, the feature of that holder it is a value of, and the steps from the root. The root's Reach holds no Holder and no Steps.\n\n```go\nfunc (r Reach) Depth() int\n```\nDepth is how many steps the reach is from the root.\n\n```go\nfunc (r Reach) Path() string\n```\nPath spells the steps as an object path: the feature names joined by dots, each indexed within a multi-valued feature (\\`powertrain.engine.fuelIn\\`, \\`wheels\\[2].hub\\`); empty for the root.\n\n```go\ntype Reached struct {\n\t// Reaches are the objects reached, the root first, each once in the order\n\t// it was first reached.\n\tReaches []Reach\n\t// Truncated reports that the object bound cut the traversal short.\n\tTruncated bool\n}\n```\nReached is what Traverse reached.\n\n```go\ntype ReplayDisagreement struct {\n\tReason  string\n\tWitness string\n\tTrace   string\n}\n```\nReplayDisagreement reports a replay that left another trace than its witness: how, and the two traces.\n\n```go\nfunc (e *ReplayDisagreement) Error() string\n```\n\n```go\nfunc (e *ReplayDisagreement) Is(target error) bool\n```\nIs makes every ReplayDisagreement match ErrReplayDisagrees.\n\n```go\ntype ReplayError struct {\n\t// Move is the 1-based position of the move in the witness.\n\tMove   int\n\tChoice ChoiceTaken\n\tFaced  string\n}\n```\nReplayError reports a witness move the run could not follow: which move, the move itself, and what the run faced instead.\n\n```go\nfunc (e *ReplayError) Error() string\n```\n\n```go\nfunc (e *ReplayError) Is(target error) bool\n```\nIs makes every ReplayError match ErrReplayRefused.\n\n```go\ntype Replayed struct {\n\tCtx *Context\n\tInv *Invocation\n\t// Err is the error the last move raised, nil when the state is one the run went on from.\n\tErr error\n\t// contains filtered or unexported fields\n}\n```\nReplayed is a witness re-run to the state it claims.\n\n```go\nfunc Replay(\n\tstop context.Context, fresh func() (*Context, error), start Starter, w Witness, props []CheckProperty,\n) (*Replayed, error)\n```\nReplay re-runs the witness: it starts the invocation start begins in the context fresh makes, under the \\`replay\\` policy over the witness (its inputs pinned, its choices followed), and moves it as the check did until its trace equals the witness's — or, for a witness ending in a failure, until a move raises it. A witness naming a property has that property, found among props, evaluated at the state reached: it must be false or fail as the witness says. The run failing to follow a choice, ending, failing otherwise or leaving another trace is a ReplayDisagreement; a caller that goes away mid-run takes the replay with it, its error being stop's.\n\n```go\nfunc ReplayExecution(\n\tstop context.Context, fresh func() (*Context, error), start Starter, w Witness,\n\tvisit func(r *Replayed, moves int) error,\n) (*Replayed, error)\n```\nReplayExecution re-runs the whole schedule as ReplaySchedule does at ScheduleEnd, calling visit at every stable state on the way, settled as a check settles, with the moves made so far. An error visit returns ends the replay with it.\n\n```go\nfunc ReplaySchedule(\n\tstop context.Context, fresh func() (*Context, error), start Starter, w Witness, at int,\n) (*Replayed, error)\n```\nReplaySchedule re-runs the schedule the witness fixes, start beginning the invocation in the context fresh makes under the \\`replay\\` policy with the witness's inputs fixed first, to the stable state after move at (1-based) or, at ScheduleEnd, until the run ends with every choice followed. A run that cannot follow a choice or fix an input, ends or fails before the move, or ends with choices left is a ReplayDisagreement; a failure at the move named, or ending the run, is the Replayed's Err, for the caller to judge against the claim.\n\n```go\nfunc (r *Replayed) Evaluate(p CheckProperty) (bool, error)\n```\nEvaluate asks the property of the replayed run's state under a readiness probe, as the check did.\n\n```go\nfunc (r *Replayed) FinalValue(feature string) (string, error)\n```\nFinalValue spells the feature's value as the run left it, UnsetText for one holding none: \\`this.\\\u003cname\u003e\\` the performing object's, \\`\\\u003cobject\u003e.\\\u003cname\u003e\\` one of several performing objects', a bare name the one behavior's own, \\`\\\u003cbehavior\u003e.\\\u003cname\u003e\\` one of several's, \\`node.path\\` one under a node an action performed, \\`finalState\\` a machine's final configuration. A name nothing answers to is an unknownCheckFeatureError.\n\n```go\ntype RequirementVerifier interface {\n\tVerificationVerdictsIn(scopes []*symbols.Scope, req *symbols.Symbol) []VerificationVerdict\n}\n```\nRequirementVerifier runs the verification cases in scopes verifying a requirement: a Context, or a DeclaredReader's behavior-free one.\n\n```go\ntype RunNote interface {\n\t// Describe renders the note for a diagnostic; String is its trace line.\n\tDescribe() string\n\tString() string\n\t// Diagnostic is the note as an informational finding about the run.\n\tDiagnostic() diag.Diagnostic\n\t// Location is the file and span of the declaration the note is about; file is\n\t// \"\" when the runtime could not name one.\n\tLocation() (file string, span source.Span)\n}\n```\nRunNote is a finding a run records about itself without changing it: a choice point it made, or a guard it read only to report one and could not evaluate.\n\n```go\ntype SatisfactionSubject struct {\n\tObject *Instance\n\tRoot   *Instance\n\tPath   []string\n}\n```\nSatisfactionSubject is one object a type's assertion is about, and where it was reached from: the root object holding it and the features walked down to it, the root itself with no path for an object standing on its own.\n\n```go\ntype SatisfyAssertion struct {\n\t// Symbol is the satisfy usage itself, which is anonymous in the usual\n\t// `assert satisfy r by p;` form.\n\tSymbol *symbols.Symbol\n\n\t// Owner is the element stating the assertion (the enclosing part or\n\t// package), or nil at the root of a document.\n\tOwner *symbols.Symbol\n\n\t// Requirement is the requirement the assertion satisfies: the target of the\n\t// usage's reference subsetting. It is nil when the reference names nothing\n\t// resolvable, and when the assertion declares the requirement itself\n\t// (`satisfy requirement r by p { ... }`), which states its conditions.\n\tRequirement *symbols.Symbol\n\n\t// RequirementRef is the requirement reference as written, so an unresolved\n\t// one can be reported by name.\n\tRequirementRef string\n\n\t// Subject is the feature named by `by`, whose values the requirement is\n\t// evaluated against. It is nil when the assertion names no subject, and\n\t// when the name resolves to nothing. For a feature chain (`config.child`)\n\t// it is the chain's last feature.\n\tSubject *symbols.Symbol\n\n\t// SubjectRef is the `by` operand as written, a chain with its dots.\n\tSubjectRef string\n\n\t// SubjectChain is the `by` operand when it is a feature chain, whose object\n\t// is reached through the objects of the features before its last; nil for a\n\t// plain name.\n\tSubjectChain *ast.FeatureChainExpr\n\n\t// SubjectChainID is SubjectChain in the model's table, lowered in the scope of Symbol.\n\tSubjectChainID program.ExprID\n\n\t// SubjectRoot is the feature a chained `by` operand starts from (`config`),\n\t// and SubjectPath the features walked from its object to the subject's\n\t// (`child`). Both are empty for a plain name.\n\tSubjectRoot *symbols.Symbol\n\tSubjectPath []string\n\n\t// Negated is `assert not satisfy ...`: the assertion holds when the\n\t// requirement is not satisfied.\n\tNegated bool\n}\n```\nSatisfyAssertion is one satisfaction assertion an element states: \\`assert satisfy \\\u003crequirement\u003e by \\\u003csubject\u003e\\` (SysML v2 §8.4.17.3). The assertion is a requirement usage of its own — it reference-subsets the requirement it satisfies and binds that requirement's subject parameter to the feature named by \\`by\\` — so it carries a verdict the requirement alone does not: one about the values that feature actually holds.\n\n```go\nfunc (a *SatisfyAssertion) AssertedRequirement() *symbols.Symbol\n```\nAssertedRequirement is the requirement the assertion is about: the one it references, or its own usage where the assertion declares the requirement (\\`satisfy requirement r by p { ... }\\`). It is nil for a reference naming nothing resolvable.\n\n```go\nfunc (a *SatisfyAssertion) StatingType() *symbols.Symbol\n```\nStatingType is the type whose objects an assertion naming no \\`by\\` subject is about: the definition or usage stating it, each object of which satisfies the requirement (SysML v2 §7.20.1, a satisfy with no satisfying feature binds the subject to the owner). It is nil for an assertion naming its subject and for one stated by a package, which is about no object.\n\n```go\nfunc (a *SatisfyAssertion) Text() string\n```\nText writes the assertion as the notation does, each name quoted when it needs quoting, so an anonymous one can be named in a verdict. A \\`satisfy requirement r by p\\` form declares the requirement rather than referencing one, so it is named by the usage itself.\n\n```go\ntype SchedulePolicy struct {\n\t// contains filtered or unexported fields\n}\n```\nSchedulePolicy names how the executors resolve the choice points of a run. The zero value is the default policy, \\`reverse\\`.\n\n```go\nfunc ExplorePolicy(budget ExploreBudget) (SchedulePolicy, error)\n```\nExplorePolicy is the \\`explore\\` policy under the given budget: at least one run, and a depth of at least zero.\n\n```go\nfunc ParseSchedulePolicy(spelling string) (SchedulePolicy, error)\n```\nParseSchedulePolicy reads \\`declared\\`, \\`reverse\\`, \\`seed:\\\u003cn\u003e\\`, \\`explore\\[:runs=\\\u003cn\u003e,depth=\\\u003cd\u003e]\\` (either option, either order) or \\`replay:\\\u003cfile\u003e\\`, whose file is read here (see ParseChoices); \"\" is the default.\n\n```go\nfunc ReplayOf(w Witness) SchedulePolicy\n```\nReplayOf is the \\`replay\\` policy over a witness held in memory: its inputs are fixed before the first move of the run, its choices followed move for move.\n\n```go\nfunc ReplayPolicy(choices []ChoiceTaken) SchedulePolicy\n```\nReplayPolicy is the \\`replay\\` policy over choices held in memory, fixing no input. Its spelling names no file, so it does not read back; write the witness out to name it.\n\n```go\nfunc (p SchedulePolicy) Exploration() (ExploreBudget, bool)\n```\nExploration returns the budget of an \\`explore\\` policy, and whether the policy is one: such a policy is driven by Explore rather than set on a context.\n\n```go\nfunc (p SchedulePolicy) IsDefault() bool\n```\nIsDefault reports whether the policy is the one runs use unless told otherwise.\n\n```go\nfunc (p SchedulePolicy) Replay() ([]ChoiceTaken, bool)\n```\nReplay returns the choices of a \\`replay\\` policy's witness, and whether the policy is one.\n\n```go\nfunc (p SchedulePolicy) String() string\n```\nString returns the spelling ParseSchedulePolicy reads the policy back from; a replay of a witness held in memory names no file and spells \\`replay\\`.\n\n```go\nfunc (p SchedulePolicy) Witness() (Witness, bool)\n```\nWitness returns the witness a \\`replay\\` policy follows, and whether the policy is one.\n\n```go\ntype SchedulePolicyError struct {\n\tSpelling string\n\tReason   string\n}\n```\nSchedulePolicyError reports a policy spelling that names no policy, with why.\n\n```go\nfunc (e *SchedulePolicyError) Error() string\n```\n\n```go\nfunc (e *SchedulePolicyError) Is(target error) bool\n```\nIs makes every SchedulePolicyError match ErrInvalidSchedulePolicy.\n\n```go\ntype Sequence struct {\n\t// contains filtered or unexported fields\n}\n```\nSequence is an ordered collection (slice-backed). One read empty from a quantity-typed declaration remembers the unit its elements would measure in. One a lower bound filled may end in required members not yet made (required.go).\n\n```go\nfunc NewSequence() *Sequence\n```\nNewSequence creates an empty Sequence.\n\n```go\nfunc (s *Sequence) Append(val Value)\n```\nAppend adds a value to the end of the sequence.\n\n```go\nfunc (s *Sequence) At(index int) (Value, error)\n```\nAt returns the element at the given index (0-based).\n\n```go\nfunc (s *Sequence) Elements() []Value\n```\nElements returns the elements in order (for iteration); the members of a required tail are named by their reserved identities, made or not.\n\n```go\nfunc (s *Sequence) Size() int\n```\nSize returns the number of elements.\n\n```go\ntype Set struct {\n\t// contains filtered or unexported fields\n}\n```\nSet is a unique collection backed by hash buckets and exact comparisons. A set has no inherent order, but enumerating one has to answer in some order, and the one it answers in is the canonical order (see canonicalLess): equal sets enumerate alike, whatever order their elements were added in.\n\n```go\nfunc NewSet() *Set\n```\nNewSet creates an empty Set whose membership needs no context.\n\n```go\nfunc NewSetIn(ctx *Context) *Set\n```\nNewSetIn creates an empty Set judging membership in ctx: a point on a scale is the member its magnitude on the reference is. A nil ctx judges with no context.\n\n```go\nfunc (s *Set) Add(val Value)\n```\nAdd inserts a value into the set (deduplicates by exact value equality).\n\n```go\nfunc (s *Set) Contains(val Value) bool\n```\nContains checks if the value is in the set.\n\n```go\nfunc (s *Set) Elements() []Value\n```\nElements returns all elements in canonical order.\n\n```go\nfunc (s *Set) Equal(other *Set) bool\n```\nEqual holds when the sets have the same members, in whatever order.\n\n```go\nfunc (s *Set) Size() int\n```\nSize returns the number of unique elements.\n\n```go\ntype SetupError struct{ Err error }\n```\nSetupError is a run's failure to begin: no executor could be made or initialized.\n\n```go\nfunc (e *SetupError) Error() string\n```\n\n```go\nfunc (e *SetupError) Unwrap() error\n```\n\n```go\ntype Shapes struct {\n\t// contains filtered or unexported fields\n}\n```\nShapes records the resolved shape of every type a set of objects was materialized against, taken while that resolution is still the current one. It is what a later context compares its own resolution against to decide whether those objects still mean the same thing.\n\n```go\ntype Snapshot struct {\n\t// contains filtered or unexported fields\n}\n```\nSnapshot is the run-derived state of a Context at one point between steps: a mark in its journal, which Restore brings the run back to as often as asked until Release. The Model the context runs over is not part of it, nor are the breakpoints set on its executors: those are the debugger's, not the run's, and stay as set across a restore (a HeldImage, a copy, carries them). Every object the run had made keeps its identity across a restore; what it made after the mark is abandoned, and the identities it took are handed out again.\n\n```go\nfunc (s *Snapshot) Release()\n```\nRelease ends the snapshot: it is no longer restorable, and the journal keeps nothing for it. Releasing twice does nothing.\n\n```go\nfunc (s *Snapshot) Restore()\n```\nRestore brings the run back to the snapshot: what was written since is undone, what was made since is abandoned, and every executor captured stands where it stood. Snapshots taken since are released. The snapshot stays live to be restored again. It panics on a released snapshot.\n\n```go\ntype Spread struct {\n\tWeight, Value float64\n\tAbout         bool\n}\n```\nSpread is one term of a pooled sum of squares: Weight times the square of Value, or of Value's distance from the pool's mean when About it.\n\n```go\ntype Starter func(*Context) (*Invocation, error)\n```\nStarter builds and starts the behaviors a check runs, in the context given; a replay starts the same invocation the same way.\n\n```go\ntype StateExecutor struct {\n\t// contains filtered or unexported fields\n}\n```\nStateExecutor executes state machines using event-driven semantics.\n\n```go\nfunc (e *StateExecutor) AcceptsMessage(m Message) (accepted bool, err error)\n```\nAcceptsMessage reports whether the machine would take a message in flight: it reaches this machine and triggers a transition out of an active state, or lets a do behavior parked at an accept go on. Whether a transition fires is decided by its guard; see Decide. Resolving the port a trigger accepts \\`via\\` may fail; a port it materializes on the way is discarded, as everything the preview builds.\n\n```go\nfunc (e *StateExecutor) ActiveLeaves() []*ast.StateNode\n```\nActiveLeaves returns the innermost active states, one per active region, in region order; the composite states enclosing them are active too.\n\n```go\nfunc (e *StateExecutor) ActiveStates() []*ast.StateNode\n```\nActiveStates returns the machine's active state configuration: the single active state, or one state per orthogonal region, in declaration order.\n\n```go\nfunc (e *StateExecutor) Call(operation string, args map[string]Value) (map[string]Value, error)\n```\nCall queues the call event, runs the machine through the run-to-completion step dispatching it and releases the caller with the outputs the behaviors that step fired returned, by name (PSSM 8.5.9): the operation's out and inout parameters when the machine's owner declares it, an inout unwritten by the step as the caller passed it, every output otherwise. Events that step queued and timers it armed stay for the machine's later runs; the clock does not move.\n\n```go\nfunc (e *StateExecutor) ClearBreakpoints()\n```\nClearBreakpoints removes every breakpoint; a pause already reached stands.\n\n```go\nfunc (e *StateExecutor) CompletionDue() bool\n```\nCompletionDue reports a machine paused on its completion vertex by a breakpoint: entering it completed the machine, which the next step finishes.\n\n```go\nfunc (e *StateExecutor) CurrentState() ast.Node\n```\nCurrentState returns the current active state node.\n\n```go\nfunc (e *StateExecutor) CurrentTime() float64\n```\nCurrentTime returns the current instant of the clock this machine shares with every executor of its context, in seconds.\n\n```go\nfunc (e *StateExecutor) Decide(m Message) (decision Decision, err error)\n```\nDecide decides a message as the step dispatching it would — the payload bound, the guards evaluated against the data as it stands — without taking it. The machine, its data, its budget and the message are left as they were found: a value a guard derives on the way is derived again when dispatch reads it, and an object materialized on the way — to bind the payload, or by a guard reaching an occurrence not yet built — starts its behaviors as under dispatch, so the guard reads what they make of it, then is discarded along with them and anything they sent. So is a port materialized to tell whether the message reaches the machine at all. A payload or guard error is returned. Among several enabled transitions it names the one this machine's own run would fire, its scheduler left in place. A do behavior parked at an accept the message would let go on is named too.\n\n```go\nfunc (e *StateExecutor) DecideTransitions(m Message) (decision Decision, transitions []*lower.Transition, err error)\n```\nDecideTransitions is Decide reporting alongside the decision the transitions its Fires describe, in the same order.\n\n```go\nfunc (e *StateExecutor) EnclosingStates(state *ast.StateNode) []*ast.StateNode\n```\nEnclosingStates returns the states written around state, outermost first; the owners lowering synthesizes for regions are not among them.\n\n```go\nfunc (e *StateExecutor) Enqueue(event QueuedEvent) error\n```\nEnqueue queues one event on the executor as a case declares it.\n\n```go\nfunc (e *StateExecutor) EventQueue() *EventQueue\n```\nEventQueue returns the event queue (not copied - read-only access).\n\n```go\nfunc (e *StateExecutor) FiredCount() int\n```\nFiredCount counts the transitions taken so far, released ones included: a mark to read what a later step fired from.\n\n```go\nfunc (e *StateExecutor) FiredNodes(f FiredTransition) (decl, source, target, owner ast.Node)\n```\nFiredNodes resolves a fired transition to the declarations the graph keeps for it: its own, the vertices it left and reached, and an entry transition's body (nil for the machine's).\n\n```go\nfunc (e *StateExecutor) FiredSince(mark int) []FiredTransition\n```\nFiredSince returns the kept transitions taken since mark, a FiredCount read earlier, and releases those before it: the machine keeps only from the last mark.\n\n```go\nfunc (e *StateExecutor) FiredTransitions() []FiredTransition\n```\nFiredTransitions returns the transitions kept, in firing order: compound transitions by segment, fork and join branches, and entry transitions.\n\n```go\nfunc (e *StateExecutor) Graph() *lower.StateGraph\n```\nGraph is the lowered state graph the executor runs, which a debugger reads to place the active configuration and the transitions it fired in a rendering.\n\n```go\nfunc (e *StateExecutor) HasDueEvent() bool\n```\nHasDueEvent reports whether an event due at the current instant is queued, which a run holding time where it is dispatches.\n\n```go\nfunc (e *StateExecutor) HasPendingDoWork() bool\n```\nHasPendingDoWork reports whether some active state's do behavior still has an action to run. Such work is due now, unlike a queued event's timestamp.\n\n```go\nfunc (e *StateExecutor) HasPendingSignal() bool\n```\nHasPendingSignal reports whether a signal this machine reacts to is in flight: one its configuration accepts, or a do behavior under way is parked at an accept for. Such a signal is due now, unlike a queued event's timestamp: the next step delivers and dispatches it.\n\n```go\nfunc (e *StateExecutor) HasPendingWork() bool\n```\nHasPendingWork reports whether stepping the machine can still make progress: an event is queued, a signal this machine accepts is in flight, or a state's do behavior has actions left to run.\n\n```go\nfunc (e *StateExecutor) HoldsEntry() bool\n```\nHoldsEntry reports whether an entry cascade is waiting for its next step.\n\n```go\nfunc (e *StateExecutor) KeepFired(keep bool)\n```\nKeepFired has the machine keep its firings until FiredSince releases them, as a debugger reads them; off (the default), a dispatch keeps only its own.\n\n```go\nfunc (e *StateExecutor) LastDispatch() (Dispatch, bool)\n```\nLastDispatch returns what became of the event the last ProcessNextEvent dispatched, false when it dispatched none.\n\n```go\nfunc (e *StateExecutor) LastEventAt() float64\n```\nLastEventAt returns the instant the machine last dispatched an event at, zero before it dispatched any.\n\n```go\nfunc (e *StateExecutor) NextWait() (float64, bool)\n```\nNextWait returns the instant the machine's earliest wait — a timer, or a do behavior paused on the clock — comes due at, false when none is set for later than the clock's instant.\n\n```go\nfunc (e *StateExecutor) NoteCount() int\n```\nNoteCount is how many notes the executor's run has made so far.\n\n```go\nfunc (e *StateExecutor) Notes() []RunNote\n```\nNotes returns what the executor's run noted so far, in order; see Context.Notes.\n\n```go\nfunc (e *StateExecutor) NotesSince(mark int) []RunNote\n```\nNotesSince returns what the executor's run noted since mark, a NoteCount read earlier.\n\n```go\nfunc (e *StateExecutor) Outcome() Outcome\n```\nOutcome is the outcome of the performance so far: the configuration the machine rests in, the states it entered and the values it holds.\n\n```go\nfunc (e *StateExecutor) OutgoingTransitions() []*lower.Transition\n```\nOutgoingTransitions lists the transitions dispatch could select now: those out of each active leaf and then of each state enclosing it, innermost first as dispatch tries them, each in declaration order and a shared enclosing state's once.\n\n```go\nfunc (e *StateExecutor) PausedAt() ast.Node\n```\nPausedAt is the breakpoint state or pseudostate the last run paused at, nil when none did.\n\n```go\nfunc (e *StateExecutor) Performer() *Instance\n```\nPerformer is the object this machine is performed by, nil for none.\n\n```go\nfunc (e *StateExecutor) PollChangeEvents() (dispatched bool, err error)\n```\nPollChangeEvents re-tests the change conditions the active configuration watches and takes the transitions they enable, reporting whether a rise was dispatched: the step RunToCompletion takes, for a driver that steps the machine.\n\n```go\nfunc (e *StateExecutor) ProcessNextEvent() (err error)\n```\nProcessNextEvent processes the next event from the queue (for REPL stepping). It is the same step RunToCompletion repeats: every active state's do behavior advances by one action, then the next event is dispatched. Advancing the do behaviors is progress in itself, so a step that ran one and found no event to dispatch succeeds — the completion transition it enables is queued next. With nothing due but a timer running, the shared clock advances to the earliest wait (running whatever else is due there) until this machine's next event is due.\n\n```go\nfunc (e *StateExecutor) RegionOf(state *ast.StateNode) *ast.StateRegion\n```\nRegionOf returns the innermost orthogonal region a state stands in, or nil when the state is outside every region.\n\n```go\nfunc (e *StateExecutor) Release()\n```\nRelease withdraws a machine its driver is done with from the clock, ending the do behaviors paused on it; safe to call more than once.\n\n```go\nfunc (e *StateExecutor) Resume() bool\n```\nResume returns a machine suspended at quiescence to running, so a driver that makes work available — advancing time, or delivering an event — can step it again. A completed or failed machine is left as it is; one paused on its completion vertex completes as the next step.\n\n```go\nfunc (e *StateExecutor) RunDoRound() (ran int, err error)\n```\nRunDoRound advances every active state's do behavior by one action, without dispatching any event, and reports how many actions ran.\n\n```go\nfunc (e *StateExecutor) RunToCompletion() error\n```\nRunToCompletion processes queued events until the machine completes or has no event or running do behavior left, at which point it suspends. A state's do behavior runs while the state is active: each run-to-completion step advances every active state's do behavior by one action and then dispatches one event, so concurrently active states interleave instead of one running to the end at entry, and leaving a state abandons the rest of its do behavior.\n\nChange conditions are re-tested per micro-step — after the do round, before the next queued event, and again at quiescence — a tool-defined cadence, since KerML has no clock (docs/project/spec-compliance.md).\n\nThe run is bounded by the context's event and do action budgets (OPENSYSML\\_MAX\\_EVENTS, OPENSYSML\\_MAX\\_DO\\_STEPS), so a cyclic machine reports a typed error instead of spinning forever. A poll that fires nothing costs no budget; a change transition taken counts as one step, like a dispatched event.\n\n```go\nfunc (e *StateExecutor) RunToQuiescence() error\n```\nRunToQuiescence runs the machine as RunToCompletion does, but leaves a timer set for later waiting on the clock rather than advancing to it: the configuration an object settles into is the one reached at the time it was materialized, and a timer it is waiting on is driven by advancing the clock.\n\n```go\nfunc (e *StateExecutor) SendSignal(signalType string, args map[string]Value)\n```\nSendSignal injects a signal event into the state machine. This is the primary API for driving state machines with external signals. The signal is enqueued and will be processed on the next ProcessNextEvent call.\n\n```go\nfunc (e *StateExecutor) SetBreakpointAt(vertex ast.Node)\n```\nSetBreakpointAt pauses a run once the dispatch entering the state, or passing through the pseudostate, completes, even one leaving the state again; what is still due then waits until the machine resumes. Other nodes are ignored.\n\n```go\nfunc (e *StateExecutor) SetTrace(trace *TraceRecorder)\n```\nSetTrace sets the trace recorder for this executor and the context it evaluates in.\n\n```go\nfunc (e *StateExecutor) State() ExecutionState\n```\nState returns current execution state.\n\n```go\nfunc (e *StateExecutor) StateData() map[string]Value\n```\nStateData returns a copy of state machine local data, together with the attributes each state owns under that state's path (\\`nested.hits\\`), which two usages of one state definition hold separately.\n\n```go\nfunc (e *StateExecutor) StateDataWithError() (map[string]Value, error)\n```\nStateDataWithError returns state data after deriving current tracking cells. A value whose inactive-state reference cannot be read is omitted and reported.\n\n```go\nfunc (e *StateExecutor) StateMachineSymbol() *symbols.Symbol\n```\nStateMachineSymbol returns the state machine being executed.\n\n```go\nfunc (e *StateExecutor) StatePath(state *ast.StateNode) string\n```\nStatePath is state's name qualified by the states written around it (\\`on.run\\`).\n\n```go\nfunc (e *StateExecutor) StateStack() []*ast.StateNode\n```\nStateStack returns a copy of the state stack (active configuration).\n\n```go\nfunc (e *StateExecutor) Suspend() bool\n```\nSuspend parks a running machine back at quiescence, for a driver that resumed it, found nothing to do and must not report it as running.\n\n```go\nfunc (e *StateExecutor) SuspendReason() string\n```\nSuspendReason says why a machine that cannot progress cannot: the change conditions it waits on, or that nothing is left that could fire.\n\n```go\nfunc (e *StateExecutor) TakesMessage(m Message) (takes bool, err error)\n```\nTakesMessage previews whether delivery would let this machine take the message: it reacts to it and does not yield it to a sibling machine that would fire.\n\n```go\nfunc (e *StateExecutor) TriggeredBy(m Message) (triggered bool, err error)\n```\nTriggeredBy previews whether a transition out of an active or enclosing state is triggered by the message, whatever its guard; do behaviors aside.\n\n```go\nfunc (e *StateExecutor) WatchesChangeCondition() bool\n```\nWatchesChangeCondition reports whether the active configuration watches a change condition, which data written outside the machine can make true.\n\n```go\nfunc (e *StateExecutor) WriteAttribute(name string, value Value) error\n```\nWriteAttribute assigns an attribute the machine declares from outside it, between its steps, with the checks an assignment in its behavior gets.\n\n```go\ntype TakingAccept struct {\n\tParam  string // the parameter the accept binds, \"\" where it binds none\n\tNode   string // the accept node's own name, \"\" for an anonymous one\n\tWithin string // the dotted path of the nested performance parked there, \"\" for the action's own flow\n}\n```\nTakingAccept is the accept a message in flight would let a parked token go on from, and the performance it is parked in.\n\n```go\nfunc (a TakingAccept) String() string\n```\nString names the accept as a report reads it: \\`accept g\\`, \\`accept g of inner\\`.\n\n```go\ntype TensorQuantity struct {\n\tDimensions []int64\n\tNum        []semantics.Value\n\tUnits      []Unit\n\t// IsBound is `isBound` when BoundKnown; a calculation the library gives no body\n\t// leaves its result's boundness unstated.\n\tIsBound    bool\n\tBoundKnown bool\n\t// MRef is the TensorMeasurementReference object the tensor was built over, whose\n\t// members `mRef` keeps answering; 0 for one known by its components only.\n\tMRef int64\n}\n```\nTensorQuantity is a Quantities::TensorQuantityValue of order two or more: row-major \\`num\\` over \\`dimensions\\`, each in its component's unit. Orders 0 and 1 are Quantity and VectorQuantity.\n\n```go\ntype Token struct {\n\tID       int64   // Unique token ID\n\tLocation NodeRef // Current node position, by id in its flow\n\n\t// Via is the succession the token travelled to reach Location; the zero edge for a\n\t// token no succession delivered (a flow's first, or the one a synchronized node performs with).\n\tVia lower.ActionEdge\n\n\t// Wait records that this token is parked at an accept node: the accept\n\t// found no message it could consume, so the action is suspended there\n\t// until one arrives. It is nil for every token that is free to advance.\n\tWait *AcceptWait\n\t// contains filtered or unexported fields\n}\n```\nToken represents a control token in action execution. It carries no values of its own: the action's features are one space every token shares (see ActionExecutor.Data).\n\n```go\nfunc (t Token) Node() ast.Node\n```\nNode is the declaration the token stands at: its node, or the action itself for the token of a state-space run, which stands at no node of the flow.\n\n```go\nfunc (t Token) Within() []NodeRef\n```\nWithin lists the nested action nodes whose own flows the token runs in, outermost first; empty for a token in the action's own flow.\n\n```go\ntype ToolAnswer struct {\n\tOutputs  map[string]Value\n\tDiverged bool\n}\n```\nToolAnswer is what one invocation established: the values bound to the call's outputs by parameter name, and whether an earlier invocation with equal inputs answered differently.\n\n```go\ntype ToolCall struct {\n\t// Action is the annotated action or calc the tool computes.\n\tAction   *symbols.Symbol\n\tToolName string\n\tURI      string\n\tInputs   []ToolInput\n\tOutputs  []ToolOutput\n\t// contains filtered or unexported fields\n}\n```\nToolCall is one performance or calculation of an action or calc annotated ToolExecution, as the external tool sees it: the tool and URI the metadata names, the inputs read from the run keyed by their ToolVariable names, and the outputs the tool is to answer.\n\n```go\nfunc (c *ToolCall) Bind(outputs map[string]ToolValue) (map[string]Value, error)\n```\nBind reads the tool's outputs, keyed by ToolVariable name, as the values of the call's output parameters: each quantity converted to its parameter's declared unit. An output missing, unknown, or not readable as its parameter's value is a ToolError.\n\n```go\nfunc (c *ToolCall) Context() *Context\n```\nContext is the context the call's performance runs in, nil for a call built outside one.\n\n```go\nfunc (c *ToolCall) ConvertInput(in ToolInput, unit string) (semantics.Value, error)\n```\nConvertInput expresses an input's number in the unit spelled: from is the unit the value was sent in, to the unit the tool answers in. The units must share a dimension, and the call must run under a context to read unit expressions.\n\n```go\ntype ToolDivergence struct {\n\tTool   string\n\tAction string\n\tFile   string\n\tSpan   source.Span\n}\n```\nToolDivergence is a tool answering two performances or calculations with equal inputs differently: the outcome table over it is not reproducible, and the run says so without changing.\n\n```go\nfunc (d ToolDivergence) Describe() string\n```\nDescribe renders the divergence for a diagnostic.\n\n```go\nfunc (d ToolDivergence) Diagnostic() diag.Diagnostic\n```\nDiagnostic is the divergence as a finding about the run, a warning since the results resting on the tool are not reproducible.\n\n```go\nfunc (d ToolDivergence) Location() (string, source.Span)\n```\nLocation is the annotated action's or calc's declaration.\n\n```go\nfunc (d ToolDivergence) String() string\n```\nString is the trace line the divergence is recorded as.\n\n```go\ntype ToolError struct {\n\tTool   string\n\tKind   ToolErrorKind\n\tDetail string\n}\n```\nToolError reports one tool invocation's failure: the tool, what failed, and the detail.\n\n```go\nfunc (e *ToolError) Error() string\n```\nError names the tool, the kind and the detail.\n\n```go\nfunc (e *ToolError) Is(target error) bool\n```\nIs matches ErrTool.\n\n```go\ntype ToolErrorKind int\n```\nToolErrorKind is what failed in one tool invocation.\n\n```go\nconst (\n\t// ToolProcessFailed is a process that could not be started or exited non-zero.\n\tToolProcessFailed ToolErrorKind = iota\n\t// ToolMalformed is a reply that is not one JSON object of the protocol, or a value in it\n\t// the receiving parameter cannot read.\n\tToolMalformed\n\t// ToolMissingOutput is an `out` parameter the reply gave no value for.\n\tToolMissingOutput\n\t// ToolUnknownOutput is a reply value no ToolVariable of the action receives.\n\tToolUnknownOutput\n\t// ToolTimeout is a process that outlived OPENSYSML_TOOL_TIMEOUT.\n\tToolTimeout\n\t// ToolRefused is a reply carrying the tool's own error message.\n\tToolRefused\n\t// ToolUnsentInput is an input the protocol carries no value of.\n\tToolUnsentInput\n)\n```\n\n```go\nfunc (k ToolErrorKind) String() string\n```\nString names the kind as the error spells it.\n\n```go\ntype ToolInput struct {\n\tVariable  string\n\tParameter string\n\tValue     ToolValue\n}\n```\nToolInput is one \\`in\\` or \\`inout\\` parameter's value, under its ToolVariable name.\n\n```go\ntype ToolNotRegisteredError struct {\n\tTool string\n}\n```\nToolNotRegisteredError reports the tool a performance named and nothing answers to.\n\n```go\nfunc (e *ToolNotRegisteredError) Error() string\n```\nError is the refusal, naming the environment variable that registers tools.\n\n```go\nfunc (e *ToolNotRegisteredError) Is(target error) bool\n```\nIs matches errToolNotRegistered.\n\n```go\ntype ToolOutput struct {\n\tVariable  string\n\tParameter string\n\t// Declared is the parameter's declaration, whose unit the tool's answer is converted to.\n\tDeclared *symbols.Symbol\n}\n```\nToolOutput is one \\`out\\` or \\`inout\\` parameter the tool answers, under its ToolVariable name.\n\n```go\ntype ToolRunner interface {\n\tRunTool(call *ToolCall) (ToolAnswer, error)\n}\n```\nToolRunner runs the tool a ToolExecution names for one performance or calculation, binding the tool's outputs through ToolCall.Bind. A context with no runner attached refuses every tool-computed action or calc as not registered.\n\n```go\ntype ToolValue struct {\n\tValue semantics.Value\n\tText  string\n\tUnit  string\n\tItems []ToolValue\n}\n```\nToolValue is one value as the tool protocol carries it: a number or truth in Value, or a string in Text when Value is invalid, and for a quantity the unit expression it is measured in. A non-nil Items makes the value a sequence: each item is a scalar (its own Value/Text, Unit empty — the sequence's Unit is shared by every item); an empty sequence is a non-nil empty slice. Readers always allocate Items non-nil.\n\n```go\nfunc ToolValueOf(held Value) (ToolValue, bool)\n```\nToolValueOf is a value as the tool protocol carries it; false for one it does not carry. A sequence carries its elements in Items; a unit every element shares is hoisted to the sequence's Unit.\n\n```go\ntype TraceKind int\n```\nTraceKind classifies a trace record.\n\n```go\nconst (\n\t// TraceLine is a record the trace prints as a line and a query does not read\n\t// past its text: steps, evaluations, calculations, object lifecycle.\n\tTraceLine TraceKind = iota\n\t// TraceAccept is an event a behavior took off its queue: a signal or an\n\t// operation call. The trace prints no line for it.\n\tTraceAccept\n\t// TraceSend is a message posted onto the bus. The trace prints no line for it.\n\tTraceSend\n\t// TraceTransition is a transition fired.\n\tTraceTransition\n\t// TraceEntry is a state entered.\n\tTraceEntry\n\t// TraceExit is a state exited.\n\tTraceExit\n\t// TraceDo is one step of a state's do behavior.\n\tTraceDo\n\t// TraceChoice is a choice point the run drew.\n\tTraceChoice\n\t// TraceGuard is a guard the run read to report a choice and could not evaluate.\n\tTraceGuard\n\t// TraceTerminate is a state machine's performance ending without exiting its states:\n\t// a terminate action, or the end of the occurrence performing it.\n\tTraceTerminate\n\t// TraceStep is an action token arriving at a node: over the succession it\n\t// followed, or where its flow starts. The trace prints no line for it.\n\tTraceStep\n\t// TraceWait is an action token parking at an accept node until the message or\n\t// trigger it awaits arrives. The trace prints no line for it.\n\tTraceWait\n\t// TraceAssign is a value a body statement assigned to a feature; the statement's\n\t// own lines show the evaluation, so the trace prints no line for it.\n\tTraceAssign\n\t// TraceDecide is a decision node resolved: its branches and the one taken.\n\t// The trace prints no line for it.\n\tTraceDecide\n\t// TraceComplete is an action's performance completing. The trace prints no line for it.\n\tTraceComplete\n)\n```\n\n```go\nfunc (k TraceKind) String() string\n```\nString names the kind as a query reads it.\n\n```go\ntype TraceOrigin struct {\n\tAt       float64\n\tObject   *Instance\n\tBehavior *symbols.Symbol\n}\n```\nTraceOrigin is where a record was made: the clock's instant, the object whose behavior made it and that behavior, each nil where the run has none.\n\n```go\ntype TraceRecord struct {\n\tKind   TraceKind\n\tOrigin TraceOrigin\n\t// State is the state entered, exited or stepped; From and To are a fired\n\t// transition's endpoints.\n\tState, From, To string\n\t// Path qualifies a state by its written enclosing states; Region qualifies\n\t// the innermost orthogonal region, and is empty outside every region.\n\tPath, Region string\n\t// Source is where the state an entry or exit names was declared; zero when unknown.\n\tSource symbols.Origin\n\t// Event is the trigger a transition fired on, or the signal or operation an\n\t// accept or send carries; Payload is the message's payload.\n\tEvent   string\n\tPayload map[string]Value\n\t// Message is the Serial of the message a send posted or an accept took; 0 for none.\n\tMessage uint64\n\t// Target is the object a send was addressed to, nil for a broadcast or a\n\t// destination named only as text (kept in To).\n\tTarget *Instance\n\t// Action reports an entry or exit behavior ran with the entry or exit.\n\tAction bool\n\t// Note is a TraceChoice's or TraceGuard's note.\n\tNote RunNote\n\t// Token is the action token a step, wait, assign, decide or action accept record\n\t// is about and Step the executor step that made it; 0 for a record of neither.\n\tToken int64\n\tStep  int\n\t// Feature is the feature a TraceAssign wrote and Value what it holds since.\n\tFeature string\n\tValue   Value\n\t// Alternatives are a TraceDecide's branches, as its choice line would name them;\n\t// the one taken is in To and the decision node in State.\n\tAlternatives []string\n\t// contains filtered or unexported fields\n}\n```\nTraceRecord is one entry of a run's trace. The printed line is derived from the record, so what a query reads and what \\`-trace\\` prints cannot drift.\n\n```go\nfunc (r TraceRecord) Line() (line string, printed bool)\n```\nLine is the line the trace prints for the record; printed is false for a record the trace keeps without printing.\n\n```go\nfunc (r TraceRecord) Machine() string\n```\nMachine names the behavior a record came from as its object exhibits it, or as declared when it is anonymous or the record has no object.\n\n```go\nfunc (r TraceRecord) PayloadTexts() []string\n```\nPayloadTexts renders a message payload as \\`name = value\\` entries in name order.\n\n```go\nfunc (r TraceRecord) Text() string\n```\nText is what a query reads as the record's text: its printed line, or for an accept or send its kind and event.\n\n```go\ntype TraceRecorder struct {\n\t// contains filtered or unexported fields\n}\n```\nTraceRecorder keeps a run's trace as typed records, in the order they were made, and prints them as the deterministic lines the golden trace tests read.\n\nEvaluation entries are recorded in post-order: the sub-expressions of an expression appear before it, indented one level deeper, so sibling evaluation order and nesting are both readable off the trace. A constant sub-expression is answered by the semantic constant folder without evaluating its operands, so it appears with no children.\n\nClear marks records printed rather than dropping them: a query reads the whole run, or the most recent limit records of one bounded by NewEventRecorder.\n\n```go\nfunc NewEventRecorder(limit int) *TraceRecorder\n```\nNewEventRecorder creates a recorder nothing prints, keeping the most recent limit records (all when 0).\n\n```go\nfunc NewTraceRecorder() *TraceRecorder\n```\nNewTraceRecorder creates a new trace recorder.\n\n```go\nfunc (tr *TraceRecorder) Clear()\n```\nClear marks every record printed, so Entries starts over, and resets nesting depth.\n\n```go\nfunc (tr *TraceRecorder) Dropped() (count int, upTo float64)\n```\nDropped reports how many records the limit discarded and the instant of the last of them.\n\n```go\nfunc (tr *TraceRecorder) Entries() []string\n```\nEntries returns the lines of the records made since the last Clear, in order.\n\n```go\nfunc (tr *TraceRecorder) RecordAccept(origin TraceOrigin, serial uint64, event string, payload map[string]Value)\n```\nRecordAccept records an event a behavior took off its queue: the signal or operation it names, with the payload it carries.\n\n```go\nfunc (tr *TraceRecorder) RecordNote(origin TraceOrigin, n RunNote)\n```\nRecordNote records a run's note where it was made: before the step line of the action step it belongs to, or before the transition it decided.\n\n```go\nfunc (tr *TraceRecorder) RecordSend(origin TraceOrigin, msg Message, target *Instance)\n```\nRecordSend records a message posted onto the bus by the object at origin, or from outside the run where it has none.\n\n```go\nfunc (tr *TraceRecorder) RecordStateEntry(origin TraceOrigin, state, path, region string, hasEntryAction bool)\n```\nRecordStateEntry records entering a state with optional entry action execution.\n\n```go\nfunc (tr *TraceRecorder) RecordStateExit(origin TraceOrigin, state, path, region string, hasExitAction bool)\n```\nRecordStateExit records exiting a state with optional exit action execution.\n\n```go\nfunc (tr *TraceRecorder) RecordStateTransition(origin TraceOrigin, fromState, toState, event string)\n```\nRecordStateTransition records a transition fired, with the trigger it fired on.\n\n```go\nfunc (tr *TraceRecorder) Records() []TraceRecord\n```\nRecords returns the records kept in order, printed ones included. The slice is read-only.\n\n```go\nfunc (tr *TraceRecorder) SetQueryOnly(queryOnly bool)\n```\nSetQueryOnly stops the recorder keeping the lines a trace prints, or has it keep them again; the records it holds stay either way.\n\n```go\nfunc (tr *TraceRecorder) String() string\n```\nString returns the trace as a single string (newline-separated entries).\n\n```go\ntype Traversal struct {\n\tToken  int64\n\tEdge   lower.ActionEdge\n\tWithin []NodeRef\n}\n```\nTraversal is one succession a token took: which token, the edge, and the nested action nodes whose own flows it was running in (see Token.Within).\n\n```go\ntype TraversalBounds struct {\n\tDepth   int\n\tObjects int\n}\n```\nTraversalBounds is how far a traversal of an object graph goes: objects Depth steps from the root at most, and Objects objects in all. A zero bound is no bound.\n\n```go\ntype UndecidedError struct {\n\tKind     string\n\tElement  string\n\tFeature  string\n\tBehavior string\n\tCause    error\n}\n```\nUndecidedError is a verdict withheld under ErrVerdictUndecided: which check, which feature it read, and which failed behavior may write that feature.\n\n```go\nfunc (e *UndecidedError) Error() string\n```\nError names the check, the feature and the behavior whose failure withholds the verdict.\n\n```go\nfunc (e *UndecidedError) Is(target error) bool\n```\nIs matches ErrVerdictUndecided.\n\n```go\ntype Undetermined struct {\n\t// contains filtered or unexported fields\n}\n```\nUndetermined is the payload of a ValUndetermined value: what the model does fix about a result it leaves open — the count its values conform to, the values it certainly holds.\n\n```go\nfunc (u *Undetermined) Count() semantics.Range\n```\nCount is the multiplicity the undetermined values conform to.\n\n```go\nfunc (u *Undetermined) Feature() *symbols.Symbol\n```\nFeature is the feature the result is the read of, nil for a computed result.\n\n```go\nfunc (u *Undetermined) Reason() string\n```\nReason names why the result is undetermined, phrased for a diagnostic.\n\n```go\nfunc (u *Undetermined) Unset() *symbols.Symbol\n```\nUnset is the feature nothing gives a value to that the result is open for — read directly or through the operations computing from it — nil where the count alone is open.\n\n```go\nfunc (u *Undetermined) Unsets() []*symbols.Symbol\n```\nUnsets lists every feature with no value the result is open for, in the order the evaluation met them; empty when it is open only for a count the model leaves open.\n\n```go\ntype UnevaluableGuard struct {\n\t// Step is the action step the guard was read in, 0 for a state machine.\n\tStep int\n\t// Where names the decision node or the state and event, as a ChoicePoint does.\n\tWhere string\n\t// Alternative is the branch or transition by declaration position, as a\n\t// ChoicePoint lists it.\n\tAlternative string\n\t// Reason is the evaluation error.\n\tReason string\n\tFile   string\n\tSpan   source.Span\n}\n```\nUnevaluableGuard is a guard an executor read only to report a choice, once a branch or transition already held, and could not evaluate. A guard with no result is not true, so its succession is not selected; the run is unchanged.\n\n```go\nfunc (g UnevaluableGuard) Describe() string\n```\nDescribe renders the guard for a diagnostic: where it was read, which alternative it guards and why it has no result.\n\n```go\nfunc (g UnevaluableGuard) Diagnostic() diag.Diagnostic\n```\nDiagnostic is the guard as a finding about the run: informational, since the library selects no succession whose guard is not true and defines no failure.\n\n```go\nfunc (g UnevaluableGuard) Location() (string, source.Span)\n```\nLocation is where the guard was declared.\n\n```go\nfunc (g UnevaluableGuard) String() string\n```\nString is the trace line the guard is recorded as.\n\n```go\ntype Unit = semantics.Unit\n```\nUnit is a measurement reference as a quantity carries it.\n\n```go\ntype UnresolvedActionError struct {\n\tName   string // the name as written\n\tDetail string // why the name resolves to nothing, when there is more to say\n}\n```\nUnresolvedActionError reports a perform, include or action reference naming no behavior the runtime can find. It is a kind of ErrUnresolvedReference.\n\n```go\nfunc (e *UnresolvedActionError) Error() string\n```\n\n```go\nfunc (e *UnresolvedActionError) Unwrap() error\n```\n\n```go\ntype ValidationReport struct {\n\tRoot     *Instance\n\tVerdicts []ObjectVerdict\n\t// Bounded is true when the walk left nesting unreached — deeper than it\n\t// descends, or past its budget — so the unreached objects are unvalidated.\n\tBounded bool\n\t// Unread are the feature values that could not be read, whose objects went unvalidated.\n\tUnread []error\n}\n```\nValidationReport is what validating an object and the objects it holds found.\n\n```go\nfunc (r ValidationReport) Complete() bool\n```\nComplete reports whether the walk reached every object the root holds.\n\n```go\nfunc (r ValidationReport) Count(status ValidationStatus) int\n```\nCount is how many verdicts have status.\n\n```go\nfunc (r ValidationReport) Status() ValidationStatus\n```\nStatus is the status the report is judged by: one violation makes the object invalid whatever else is undecided, and one undecided assertion leaves it unshown.\n\n```go\nfunc (r ValidationReport) Valid() bool\n```\nValid reports whether the object is shown valid: it states at least one assertion, every assertion holds and every held object was reached.\n\n```go\ntype ValidationStatus int\n```\nValidationStatus is what checking one assertion on one object decided.\n\n```go\nconst (\n\t// ValidationHolds is the assertion evaluating to true on the object.\n\tValidationHolds ValidationStatus = iota\n\t// ValidationViolated is the model answering the assertion false.\n\tValidationViolated\n\t// ValidationUndecided is an assertion that could not be evaluated.\n\tValidationUndecided\n)\n```\n\n```go\nfunc (s ValidationStatus) String() string\n```\nString names the status for a report a machine reads.\n\n```go\ntype Value struct {\n\tKind     ValueKind\n\tConst    semantics.Value // ValConst: reuse static evaluator\n\tInstance int64           // ValInstance: instance ID; ValVariant: materialized object, 0 for none\n\t// contains filtered or unexported fields\n}\n```\nValue is a runtime-evaluable value. The scalar payload stays inline because arithmetic copies values through every evaluator frame; the rarer payloads share one slot so the struct stays at 64 bytes.\n\n```go\nfunc ConstValue(c semantics.Value) Value\n```\nConstValue wraps a numeric constant as a runtime value.\n\n```go\nfunc DeclaredMeasurementRef(sem *semantics.Model, sym *symbols.Symbol, text string, term semantics.UnitTerm) Value\n```\nDeclaredMeasurementRef is the reference a unit declaration names, reducing to term, spelt as text (\\`SI::km\\`) or, given none, by its symbol (\\`km\\`).\n\n```go\nfunc EnumeratedValue(sym *symbols.Symbol, scalar Value) Value\n```\nEnumeratedValue is scalar as the value of the enumeration literal sym: what \\`high = 3\\` evaluates to, rebuilt from a wire form that carries both.\n\n```go\nfunc NewArrayValue(dimensions []int64, elements []Value) Value\n```\nNewArrayValue wraps an array over its row-major elements; arrayOf checks the invariant \\`flattenedSize == size(elements)\\`.\n\n```go\nfunc NewComplex(z complex128) Value\n```\nNewComplex is the value of one complex number. One with a zero imaginary part is the Real its real part is, as 4 / 2 is the Integer 2: equal to it, and classified as it is.\n\n```go\nfunc NewCoordinateFrameValue(frame *CoordinateFrame) Value\n```\nNewCoordinateFrameValue wraps a frame as a value.\n\n```go\nfunc NewCoordinateTransformationValue(t *CoordinateTransformation) Value\n```\nNewCoordinateTransformationValue wraps a transformation as a value.\n\n```go\nfunc NewEnumLiteral(sym *symbols.Symbol) Value\n```\nNewEnumLiteral is the value an enumeration literal that declares no value of its own evaluates to: the identity of that literal.\n\n```go\nfunc NewMeasurementRefValue(unit Unit) Value\n```\nNewMeasurementRefValue wraps a unit as a measurement reference value.\n\n```go\nfunc NewMetaobject(element, metaclass *symbols.Symbol) Value\n```\nNewMetaobject is the value \\`x meta T\\` yields for the element x names: that element as an instance of metaclass, the reflective metaclass of its declaration.\n\n```go\nfunc NewQuantityValue(q *Quantity) Value\n```\nNewQuantityValue wraps a magnitude expressed in a measurement unit.\n\n```go\nfunc NewSequenceValue(seq *Sequence) Value\n```\nNewSequenceValue wraps an ordered collection. A nil sequence is the empty one.\n\n```go\nfunc NewSetValue(set *Set) Value\n```\nNewSetValue wraps a unique collection. A nil set is the empty one.\n\n```go\nfunc NewStringValue(s string) Value\n```\nNewStringValue is the value of a string.\n\n```go\nfunc NewTensorQuantityValue(dimensions []int64, num []semantics.Value, units []Unit) Value\n```\nNewTensorQuantityValue wraps a tensor quantity; num and units hold one entry per component, flattenedSize of dimensions in all.\n\n```go\nfunc NewUndeterminedValue(reason string, count semantics.Range) Value\n```\nNewUndeterminedValue is an undetermined result of count values, for reason.\n\n```go\nfunc NewVectorQuantityValue(num []semantics.Value, units []Unit) Value\n```\nNewVectorQuantityValue wraps a vector quantity; num and units are the same length.\n\n```go\nfunc NewVectorValue(elements []semantics.Value) Value\n```\nNewVectorValue wraps the vector of the given numeric components.\n\n```go\nfunc QuantityHeldAs(sem *semantics.Model, v Value, kind *symbols.Symbol) (Value, error)\n```\nQuantityHeldAs is the quantity v held as the quantity value type kind, as a feature typed by kind holds it; refused where kind is no such type or fixes another dimension than v's unit.\n\n```go\nfunc (v Value) Array() *Array\n```\nArray is the payload of a ValArray; nil for every other kind.\n\n```go\nfunc (v Value) Complex() complex128\n```\nComplex is the number a ValComplex is; 0 for every other kind.\n\n```go\nfunc (v Value) CoordinateFrame() *CoordinateFrame\n```\nCoordinateFrame is the payload of a ValCoordinateFrame; nil for every other kind.\n\n```go\nfunc (v Value) CoordinateTransformation() *CoordinateTransformation\n```\nCoordinateTransformation is the payload of a ValCoordinateTransformation; nil for every other kind.\n\n```go\nfunc (v Value) EnumerationLiteral() *symbols.Symbol\n```\nEnumerationLiteral is the literal a value is: a ValEnumLiteral itself, or the literal a scalar was evaluated from. Nil for a value that is no literal.\n\n```go\nfunc (v Value) Function() *symbols.Symbol\n```\nFunction is the calc a ValFunction is a value of — the definition or usage it was read from; nil for every other kind.\n\n```go\nfunc (v Value) FunctionClosesOverBody() bool\n```\nFunctionClosesOverBody reports a ValFunction closing over the bindings of the behavior body its calc is declared in, which nothing outside that run can rebuild.\n\n```go\nfunc (v Value) FunctionName() string\n```\nFunctionName is the qualified name of the calc a ValFunction is a value of, as the wire and diagnostics spell it.\n\n```go\nfunc (v Value) FunctionSelf() *Instance\n```\nFunctionSelf is the object a ValFunction's feature names resolve against, nil for a function closing over none.\n\n```go\nfunc (v Value) Literal() *symbols.Symbol\n```\nLiteral is the enumeration literal a ValEnumLiteral is: a literal is its own identity, so two values are the same literal exactly when they name the same declaration. Nil for every other kind.\n\n```go\nfunc (v Value) LiteralText() string\n```\nLiteralText renders an enumeration literal as it is written, qualified by the enumeration it is a literal of: \\`Color::red\\`.\n\n```go\nfunc (v Value) MeasurementRef() *MeasurementRef\n```\nMeasurementRef is the payload of a ValMeasurementRef; nil for every other kind.\n\n```go\nfunc (v Value) MetaobjectClass() *symbols.Symbol\n```\nMetaobjectClass is the reflective metaclass a ValMetaobject is an instance of; nil for every other kind.\n\n```go\nfunc (v Value) MetaobjectElement() *symbols.Symbol\n```\nMetaobjectElement is the element a ValMetaobject denotes; nil for every other kind.\n\n```go\nfunc (v Value) Object() (int64, bool)\n```\nObject returns the object a value denotes: an instance, or the object a selected variant materialized.\n\n```go\nfunc (v Value) Quantity() *Quantity\n```\nQuantity is the payload of a ValQuantity; nil for every other kind.\n\n```go\nfunc (v Value) QuantityKind() *symbols.Symbol\n```\nQuantityKind is the quantity value type a quantity was held as; nil for one that was held as none and for every other value.\n\n```go\nfunc (v Value) Scalar() Value\n```\nScalar is v shorn of any enumeration literal identity: the bare scalar a scalar-valued literal equals, or v itself for any other value.\n\n```go\nfunc (v Value) Sequence() *Sequence\n```\nSequence is the collection of a ValSequence; nil for every other kind.\n\n```go\nfunc (v Value) Set() *Set\n```\nSet is the collection of a ValSet; nil for every other kind.\n\n```go\nfunc (v Value) Sole() Value\n```\nSole is the one value a one-element sequence or set holds, or v itself for any other value: what a consumer taking one value reads from a held result.\n\n```go\nfunc (v Value) Str() string\n```\n\n```go\nfunc (v Value) TensorQuantity() *TensorQuantity\n```\nTensorQuantity is the payload of a ValTensorQuantity; nil for every other kind.\n\n```go\nfunc (v Value) Undetermined() *Undetermined\n```\nUndetermined returns the payload of a ValUndetermined value, nil for any other.\n\n```go\nfunc (v Value) Variant() *symbols.Symbol\n```\nVariant is the variant a ValVariant was bound to; nil for every other kind.\n\n```go\nfunc (v Value) Vector() *Vector\n```\nVector is the payload of a ValVector; nil for every other kind.\n\n```go\nfunc (v Value) VectorQuantity() *VectorQuantity\n```\nVectorQuantity is the payload of a ValVectorQuantity; nil for every other kind.\n\n```go\ntype ValueKind int\n```\nValueKind distinguishes runtime value types.\n\n```go\nconst (\n\tValInvalid ValueKind = iota\n\tValConst             // wraps semantics.Value (int/real/bool/infinity)\n\tValNull\n\tValString\n\tValInstance\n\tValSequence\n\tValSet\n\n\tValQuantity                 // a magnitude and the measurement unit it is expressed in\n\tValVariant                  // the variant selected for a variation, and the object it materializes\n\tValEnumLiteral              // one literal of an enumeration definition, identified by itself\n\tValComplex                  // one complex number, its real and imaginary parts together\n\tValArray                    // a Collections::Array: its dimensions and its row-major elements\n\tValVector                   // a NumericalVectorValue: the numbers of its one dimension\n\tValVectorQuantity           // a VectorQuantityValue: a vector with a measurement unit per axis\n\tValMeasurementRef           // a ScalarMeasurementReference: a unit by declaration and reduction\n\tValTensorQuantity           // a TensorQuantityValue: an array of numbers with a measurement unit per component\n\tValCoordinateFrame          // a VectorMeasurementReference: a frame's axes, or a measurement scale's one\n\tValCoordinateTransformation // a CoordinateTransformation: a placement of one frame in another\n\tValFunction                 // a calc as a value: its lowered shape closed over the environment it was read in\n\tValMetaobject               // an element of the model as an instance of its reflective metaclass (`x meta T`)\n\tValUndetermined             // a model-level result the model does not determine; see Undetermined\n\n)\n```\n\n```go\nfunc (k ValueKind) String() string\n```\nString names the kind, so diagnostics quoting it read as more than an index.\n\n```go\ntype Vector struct {\n\tElements []semantics.Value\n\t// Object is the NumericalVectorValue object the value was read from, which keeps\n\t// answering the members a specialization adds; 0 for a vector made by value.\n\tObject int64\n}\n```\nVector is a VectorValues::NumericalVectorValue: the numbers of an Array of one dimension, its \\`dimension\\`.\n\n```go\nfunc (v *Vector) Dimension() int\n```\nDimension is the number of components.\n\n```go\ntype VectorQuantity struct {\n\tNum   []semantics.Value\n\tUnits []Unit\n\t// Frame is the coordinate frame the vector was written over (`(1, 2, 3) [datum]`),\n\t// whose axes Units are; nil for one written over a scalar unit.\n\tFrame *CoordinateFrame\n}\n```\nVectorQuantity is a Quantities::VectorQuantityValue: the numbers \\`num\\` and the unit each axis of its measurement reference (\\`mRef.mRefs\\`) is expressed in.\n\n```go\ntype VerdictKind string\n```\nVerdictKind is the verdict a run of a verification case's body produced, one literal of the library's VerdictKind enumeration.\n\n```go\nconst (\n\t// VerdictPass is a body whose verdict value is VerdictKind::pass.\n\tVerdictPass VerdictKind = \"pass\"\n\t// VerdictFail is a body whose verdict value is VerdictKind::fail.\n\tVerdictFail VerdictKind = \"fail\"\n\t// VerdictInconclusive is a body that ran and produced no verdict value, or\n\t// one a definition owns with no object of the definition to run on.\n\tVerdictInconclusive VerdictKind = \"inconclusive\"\n)\n```\n\n```go\ntype VerdictStatus int\n```\nVerdictStatus is what a check of a case decided.\n\n```go\nconst (\n\t// VerdictSatisfied is a check whose required conditions all held.\n\tVerdictSatisfied VerdictStatus = iota\n\t// VerdictNotSatisfied is a check with a required condition that did not hold.\n\tVerdictNotSatisfied\n\t// VerdictUndecided is a check that could not be evaluated.\n\tVerdictUndecided\n)\n```\n\n```go\nfunc (s VerdictStatus) String() string\n```\nString names the status as a report words it.\n\n```go\ntype VerificationResult struct {\n\t// Verdict is the body's verdict.\n\tVerdict VerificationVerdict\n\n\t// Run is the case's outputs and the verdict of each objective and\n\t// assertion; zero when the body could not run.\n\tRun AnalysisResult\n\n\t// Subcases are the verdicts of the verification cases this case performs as\n\t// steps. The library states no roll-up of a subcase's verdict into its\n\t// parent's (VerificationCases::VerificationCase::subVerificationCases), so\n\t// each is reported on its own.\n\tSubcases []VerificationVerdict\n}\n```\nVerificationResult is what one run of a verification case produced: the verdict of its body, what the run reported as an analysis case's run does, and the verdict of each verification subcase its body performs.\n\n```go\nfunc (r VerificationResult) Verdicts() []VerificationVerdict\n```\nVerdicts lists the run's verdicts as a report prints them: the body's, then each subcase's.\n\n```go\ntype VerificationRuns struct {\n\t// contains filtered or unexported fields\n}\n```\nVerificationRuns records the runs a report has made, so a case verifying a requirement several checks are about runs once per object it is a feature of.\n\n```go\ntype VerificationVerdict struct {\n\t// Case is the qualified name of the verification case that ran.\n\tCase string\n\n\t// Symbol declares the verification case.\n\tSymbol *symbols.Symbol\n\n\t// Kind is the VerdictKind literal the body produced.\n\tKind VerdictKind\n\n\t// Detail is the message of an error verdict, or why an inconclusive one\n\t// decided nothing; empty for pass and fail.\n\tDetail string\n\n\t// Err is the failure an error verdict reports, so a caller can tell a\n\t// resource bound from a fault of the model; nil for every other verdict.\n\tErr error\n\n\t// Subcase marks the verdict of a case performed by another, which the\n\t// library states no roll-up for and which is therefore reported on its own.\n\tSubcase bool\n\n\t// Subject is the object the case ran as a feature of: an object of the type\n\t// owning it; nil for a package-level case or a run on no object.\n\tSubject *Instance\n}\n```\nVerificationVerdict is the verdict one run of a verification case's body produced. It is reported beside the requirement-satisfaction verdicts of the same case, which it does not replace: the SysML v2 specification leaves the evaluation of a verdict unspecified, so this verdict is what running the body and the library's own PassIf calculation answer.\n\n```go\ntype Violation struct {\n\tKind ViolationKind\n\t// Name is the property violated, empty for a deadlock or a failure.\n\tName string\n\t// Err is the deadlock or the failure as the executor reported it, nil for a property.\n\tErr error\n\t// Depth is how many moves the witness makes.\n\tDepth   int\n\tWitness Witness\n\t// Mass is the probability of the schedules reaching this violation: the sum\n\t// of their path masses, each the product of its picks' shares — a weighted\n\t// choice's stated share, an unweighted one's uniform share. It is a lower\n\t// bound while the report's MassBounded holds.\n\tMass float64\n}\n```\nViolation is one violation a schedule reached, with the schedule as its witness.\n\n```go\nfunc (v Violation) String() string\n```\nString renders the violation for a report.\n\n```go\ntype ViolationError struct {\n\tKind      string // \"constraint\" or \"requirement\"\n\tElement   string // name of the element stating the condition\n\tWhat      string // \"assertion\" or \"require condition\"\n\tCondition string // the condition, rendered\n}\n```\nViolationError reports a condition that evaluated to false, naming the condition so a verdict says which one failed. It unwraps to ErrViolated, since it is a verdict about the model rather than a failure to evaluate.\n\n```go\nfunc (e *ViolationError) Error() string\n```\n\n```go\nfunc (e *ViolationError) Unwrap() error\n```\n\n```go\ntype ViolationKind int\n```\nViolationKind classifies what a schedule reached.\n\n```go\nconst (\n\t// ViolationProperty is a property evaluating false at a reached state.\n\tViolationProperty ViolationKind = iota\n\n\t// ViolationFailure is a typed runtime error a move raised.\n\tViolationFailure\n)\n```\n\n```go\nfunc (k ViolationKind) String() string\n```\n\n```go\ntype Witness struct {\n\tObjects []ObjectNamed\n\tInputs  []InputTaken\n\t// DrawPolicy is the policy the draws were resolved under; the line is written\n\t// only for a fixed policy, so a random run's witness reads as before.\n\tDrawPolicy DrawPolicy\n\t// ClockStep is the step, in seconds, the run's clock ticked by; the line is\n\t// written only for a stepped clock, so a continuous run's witness reads as before.\n\tClockStep float64\n\tDraws     []DrawTaken\n\tChoices   []ChoiceTaken\n\tTrace     string\n\t// Property names the property false at the state the schedule reaches, or\n\t// whose evaluation there fails as Fails says; empty for a state or a run's failure.\n\tProperty string\n\t// Fails is the deadlock or failure the schedule ends in, as the executor\n\t// spells it — or the property's evaluation raised; empty for a state the run goes on from.\n\tFails string\n}\n```\nWitness is one schedule as a witness file holds it: the objects its moves name bound to their paths, the inputs the run fixes before its first move, the values its random draws took, the choices that fix the schedule as a replay follows them, and the trace the run leaves, as the trace recorder writes it.\n\n```go\nfunc ParseWitness(text string) (Witness, error)\n```\nParseWitness reads a witness as Witness.String writes it: the header of input and choice lines, after the blank line ending it the trace, exact, and after a blank line ending that the claims closing it, if any.\n\n```go\nfunc (w Witness) String() string\n```\nString renders the witness as a file holds it: its objects one per line, its inputs one per line, \\`draws by \\\u003cpolicy\u003e\\` for a fixed draw policy, \\`clock steps by \\\u003cseconds\u003e\\` for a stepped clock, its draws one per line, its choices one per line — or \\`no choice points\\` — a blank line, the trace, and after a blank line the claims closing it: \\`property: \\\u003cname\u003e\\` for a property's, \\`fails: \\\u003cthe failure\u003e\\` for a schedule ending in a failure, last.\n\n```go\ntype WitnessInputError struct {\n\tFeature string\n\tReason  string\n}\n```\nWitnessInputError reports a witness input the run could not fix before its first move: the feature named, and why.\n\n```go\nfunc (e *WitnessInputError) Error() string\n```\n\n```go\nfunc (e *WitnessInputError) Is(target error) bool\n```\nIs makes every WitnessInputError match ErrWitnessInput.\n\n","path":"github.com/Open-MBEE/OpenSysML/internal/exec/runtime","name":"runtime","synopsis":"Package runtime provides the SysML v2 execution runtime: expression evaluation, instance materialization, and KerML operator library.","isRedistributable":true}
