This document maps Loop runtime behavior to Observe/Orient/Decide/Act.
Inputs gathered:
- User intent
- Session context
- File/tool outputs
- Prior memory and trace data (when relevant)
Key modules:
contextmemory(read paths)adapters::claude_code::adapter(request-context ingestion + memory lookup)
Analysis performed:
- Complexity signal extraction
- Domain/workflow inference
- Constraint and budget awareness
Key modules:
complexityadapters::claude_code::hooks(prompt analysis and signal propagation)spec_agent::parser(for NL formalization flows)
Decision points:
- Activate or bypass recursive orchestration
- Select model/routing path
- Select formalization depth and verification posture
- Select fallback behavior under failure/limits
Key modules:
orchestratorllm::routeradapters::claude_code::adapter(activate/skip + mode selection bridge)signatureand fallback extraction paths
Actions executed:
- Run REPL/module operations
- Perform LLM calls
- Emit trajectory events
- Persist memory/traces
- Run verification and governance checks
Key modules:
repladapters::claude_code::adapter(execution + metadata shaping)modulereasoningdpgovernance wrapper (./scripts/dp)
A healthy execution path produces:
- Traceable decisions.
- Deterministic command evidence for gates.
- Recoverable diagnostics when failures occur.
- Scenario-level adapter efficacy evidence (
VG-CLAUDE-ADAPTER-E2E-001), not just plumbing tests.
If one of these is missing, the system may still run, but operating it safely becomes mostly archaeology.
For a full request lifecycle trace, read runtime-walkthrough.md.