← Back to Documentation

The OODA Loop

Sytra operates on a continuous feedback loop—Observe, Orient, Decide, Act—ensuring rigorous verification at each step.

OBSERVE

Sytra reads your project directory, scans .dta and .do files, and understands your existing code structure and variable names.

ORIENT

It interprets your natural language prompt, mapping it to the specific statistical operations and data transformations required.

DECIDE

Sytra plans the execution strategy—which commands to run, in what order, and how to handle potential errors.

ACT

It generates syntactically correct code, executes it in your local Stata/R, reads the output, and self-corrects if errors occur.

Why This Matters

Generic LLMs generate code and hope it works. Sytra verifies. When a regression fails due to multicollinearity or a missing variable, Sytra sees the actual Stata error message, understands the problem, and fixes it automatically.

This feedback loop means you get working code, not plausible-looking code. The coefficients you see are real numbers from your actual data—not hallucinations.