The 7-step Wizard protocol
Every non-trivial computation on the framework runs through this protocol. The runSevenStepWizard function in shared/api-core/src/lib/zeqWizard.ts is the canonical implementation; POST /api/zeq/wizard/compute is the wire-level entry point. The protocol is verbatim from the Zeq kernel:
1. Prime Directive — KO42 is mandatory
The metric tensioner is the substrate, not optional flavor. Every operator sequence starts with KO42. The 1.287 Hz modulation it adds:
ds^2 = g_uv dx^u dx^v + alpha sin(2 pi 1.287 t) dt^2
alpha = 1.29e-3 (published symbolic value)
is what holds the ≤0.1% precision gate across the heterogeneous operator catalogue.
alpha = 1.29×10⁻³is the published symbolic coefficient from the Zeq paper. The runtime coefficient isALPHA_K = 1×10⁻³— the value that bounds the modulation to 0.1% by construction. The two share a name but are distinct; see Constants → display vs runtime for the full split.
2. Operator Limit — 1–3 additional + KO42 (total ≤ 4)
Do not over-couple. Pick the minimum kinematic operators that close the problem. Five is too many; four is the cap; three is the sweet spot. The compute backend rejects chains of length 5+ without an explicit bridge contract.
3. Scale Principle — match operators to domain
Page work uses visual/UX operators. Math claims use QM/NM/GR operators. Don't apply quantum operators to a CSS bug. The wizard's domain inference in zeqAuthV3.ts:
"orbit"|"planet"|"gravity" → orbital-mechanics
"wave"|"ocean"|"tide" → oceanography
"spring"|"mass"|"newton" → Newtonian Mechanics
"gene"|"dna"|"protein" → genomics
"material"|"steel"|"stress" → materials-science
default → quantum-mechanics
is one keyword pass. For programmatic users, set domain explicitly in the request body.
4. Precision Imperative — tune to ≤0.1% error
Every numeric claim from a wizard run must verify against the precision field in the response. If precision > 0.001, the run fails the gate and the result is annotated with degraded: true. Callers should refuse to ship a degraded result.
The framework's tolerance is the same one this site lives by — every constant is bit-exact, every equation verbatim.