Skip to main content

Module decision_loop

Module decision_loop 

Source
Expand description

Deterministic orchestration across reasoning, planning, verification, adaptation, and experience.

§Runtime scope

  • Build: default via scanning.
  • Execution: Surface B (deterministic decision runtime).
  • Default termivar scan: yes, through StandardWebDecisionRuntime.
  • Support: implemented and tested.

See docs/internals/runtime-map.md.

The decision loop is a state machine, not an executor. It mutates only the knowledge, adaptive ledger, and experience records supplied by the host. Network traffic, plugin execution, delays, and cancellation remain runner responsibilities represented by explicit DecisionLoopCommand values.

Structs§

DecisionLoop
Deterministic coordinator for one evidence-to-command cycle.
DecisionLoopConfig
Stable configuration shared by all turns in one decision loop.
DecisionOutcomeReport
Audit record produced by a passive or active verification turn.
DecisionPlanningReport
Audit record produced by a reasoning and planning turn.
DecisionReasoningCommitReceipt
Reasoning applications committed before a later planning-stage failure.
DecisionSession
Target-scoped counters and adaptive ledger for deterministic replay.
DecisionSessionSummary
Lightweight audit summary captured around one outcome commit.
DecisionSessionTransition
Before/after session summary produced by successful outcome processing.

Enums§

DecisionActionOrigin
Why an action execution was emitted.
DecisionLoopCommand
Side-effect-free command consumed by a runner or scheduler.
DecisionLoopError
Validation and transition failures raised by the decision loop.
DecisionLoopState
Replayable state of one target-scoped decision session.
DecisionStopReason
Stable terminal reason for a decision session.