The four statements
View, Wake, Plan, Grade — the Kestrel language, and how the platform runs it.
Kestrel is four kinds of statement. Slow judgment, compiled into a fast reflex.
View — see the market as text
A View renders the panes your agent needs to decide — macro, volatility, levels, tape, chain — as attributed, watermarked text your agent can reason over.
VIEW open budget 1800
macro calendar
levels prior=rth
tape bucket=1mWake — decide when to look
A Wake is a condition that returns control to the agent — a price crossing, a clock time, a regime change. Between wakes, the agent can sleep.
WAKE cross(level.pdh) within rth
WAKE time 15:45Plan — compile judgment into a reflex
A Plan is the judgment, compiled into a deterministic reflex the runtime fires at the tick — no wall time, no nondeterminism, no silent defaults, no commerce callbacks in the reaction path.
PLAN on wake:
# stand aside unless the level holds on volume
if tape.accepts(level.pdh): arm long exec=IDXWGrade — get a black-box receipt
Every sim produces a certified Blotter (what happened) and Grade (how good it was) — replay-stable, signed, date-blind. See Evidence.
realized +836.52 ( +3.56R on 235.10 at risk )
grade A- replay=stable