The Twin
The deterministic twin thesis — syzygy as celestial alignment.
The word syzygy comes from the Greek suzugia — a yoking together, a conjunction. In astronomy, it names the moment when three celestial bodies fall into a straight line: Sun, Earth, Moon at every eclipse. In this project, it names something more specific: the alignment of computation and meaning, where the ephemeris and the interpretation share a single axis of certainty.
A syzygy is not a coincidence. It is a computable event. The positions are known, the geometry is exact, the alignment either holds or it does not. There is no probabilistic hedge, no shuffled deck, no stochastic generation. The ephemeris reads from the sky as it was, is, or will be — and the reading follows from the data with the inevitability of a trine closing into exact aspect.
Two runtimes share a single contract. Syzygy computes from certainty. TarotScript shuffles from probability. They are twins — not identical, but born from the same architecture, speaking the same core language, separated by a single epistemic distinction.
Syzygy is deterministic. The same source, the same moment, the same location produces the same chart, the same aspects, the same narrative. Always. The ephemeris does not guess. It computes planetary positions from orbital mechanics (astronomy-engine, Epoch J2000.0), derives house cusps from spherical trigonometry, calculates aspects from angular separation, and resolves dignities from the traditional rulership tables. Every output is reproducible.
TarotScript is stochastic. The same source, the same prompt, the same spread can produce a different reading every time. The deck shuffles. The cards fall where probability places them. The interpretation responds to the draw, not to a fixed sky. This is not a flaw — it is the point. Tarot reads from uncertainty by design.
The twin thesis: divination has two modes. One reads the sky (fixed, computed, repeatable). The other reads the shuffle (random, drawn, unrepeatable). Both are valid. Both deserve a language. Both share a runtime — the same lexer, parser, and interpreter core — because the contract between author and engine should be identical regardless of whether the source of truth is an ephemeris or a deck.
The technical thesis is simple: an astrological programming language should be as precise as the astronomy it depends on. Syzygy enforces this at every layer.
Sub-arcsecond ephemeris. Planetary positions are computed via astronomy-engine's full VSOP87/ELP2000 implementation. Solar return moments are found by binary search converging to sub-arcsecond precision on the natal Sun longitude. Secondary progressions use the exact day-for-a-year ratio against the birth moment.
Zero hallucination narrative. The narrative engine contains no generative model. Every interpretation is a hand-written lookup: 144 body-in-sign entries, 84 body-in-house entries, 30 aspect pair themes, 5 dignity levels, 8 moon phase narratives. The engine reads from a table, not from a prompt. The output is deterministic.
527 tests, strict TypeScript. The full pipeline — lexer, parser, interpreter, ephemeris, houses, aspects, dignities, narrative, standard library — is covered by 527 tests across 14 test files. TypeScript strict mode is enforced. No any escapes. No @ts-ignore. No as unknown as chains. The type system mirrors the dignity system: everything in its proper sign.