Open format
CEXF guide: rationale
Downloads (Markdown, JSON Schema, test vectors, zip): see the overview.
Rationale
Each passage below gives the reasons behind a rule of the specification. The specification keeps the rule and points here for the reasons. The headings give the numbering R plus the section of the specification they belong to.
R0 Why this format exists
The data someone enters into an astrology program is theirs. Names, birth details, notes: often not even their own data, but a client's. That information shouldn't be locked inside one program's database, readable only for as long as that particular program keeps running on that particular machine.
This format exists so that data can move: to another installation of the same program, to a different program entirely, or into a file you can still open and read yourself in ten years, whether or not the program that wrote it still exists.
That purpose isn't a footnote. It runs through several of the design choices below:
- Readable JSON, not a binary format (§1): you should be able to open the file and make sense of it yourself, without the program that wrote it.
- A published specification under a permissive license (see "License" below): an unpublished or restrictively licensed format can only be read by its own creator. That isn't an escape route; it's a second lock.
- No calculated positions in the file (§11): those belong to a program's calculation step, not to your data. Carrying them would tie the file to one program's astronomical engine instead of to the birth facts themselves.
R1 Why an empty string is never a value, and why null is not a patch operation (§1)
An empty string against an omitted key. Without a rule, writer
A could send "country": "" where writer B omits the same key, for exactly the same
intent ("no country known"), and a reader that checks text length ("is a country filled in?")
would get inconsistent behaviour between two files that are substantively identical. Hence:
Why there is a floor. This also rules out a related risk: without a floor, an empty string would technically satisfy a rule such as "a note needs a title or a text" (§7b), while the whole point of such a rule is that there is meaningful content there.
Why null is not a patch operation. If a CEXF diff/synchronisation
companion format ever come along, that is the right, separate place to introduce that
convention, not this base specification, which only describes complete, self-contained
documents.
R3.1 Why protected records a lock and never carries it (§3.1)
Some programs let a user put a four-digit code on a folder so its contents stay hidden. That raises a question this format has to answer, because both obvious answers are wrong.
Carrying the secret is wrong. A writer must not put a passphrase, a hash, a salt, or any
other derivative of the secret into a .cexf file, in any field, including extensions. The
arithmetic is unforgiving: a four-digit code has ten thousand possibilities, and against a hash
you hold, you can try all of them offline. A file format built to be emailed
around would then be carrying the code in everything but name, and the user who set that code
would have no way of knowing.
Dropping it silently is also wrong. Someone who deliberately locks a folder and then exports it should not discover, or fail to discover, that the lock quietly evaporated in transit. Silence here is the same failure the specification refuses elsewhere: input that looks fine and behaves differently than the user believes.
So the format records the fact and nothing else. protected: true says a lock existed. What a
reader does with that is its own business, and there is a spectrum of reasonable answers:
report it and move on, or ask the user for a fresh code during the import. The reference
implementation (Appendix A) takes the second route, with an extra step in its import wizard
listing every protected folder and a field for a new code, which may be left empty. What a reader must not do is treat the flag
as a reason to invent a code, or to refuse the folder.
Note that this makes protected an unusual field: it never round-trips a value. Export a
protected folder, import it, export it again, and whether the flag survives depends entirely on
whether the receiving side re-established a lock. That is not an inconsistency in the format.
It is what happens when the thing being described deliberately stays behind.
R4.1 Why subject and not person (§4.1)
Celestium hangs everything off a person today, but a chart can just as well belong to an
event, a country, or an organisation: Celestium already has a chart type for exactly that
purpose (the mundane chart, see §6.2). Adding a field to a version-numbered format is cheap
later; renaming the core entity after publication breaks every third party who has already
implemented it. That is why the core entity is called subject here from the start.
Current state: Celestium (the main application) today knows no
subject kind other than a person; there is no place in its data model that could hold anything
else. Celestium Exchange therefore writes kind: "person", with one exception: a horary chart whose
querent has no birth data is written as a subject with kind: "horary" (§4.4, Appendix A).
For every other subject there is nothing else to write. The other way around, on reading: if Celestium Exchange encounters a kind
other than "person", that information is lost on import into Celestium (the same kind of
limit as with houseSystem, §7c). This is reported, see §10. This format deliberately gets
ahead of that, so that a future Celestium extension (or an entirely different program) doesn't
need a version break to catch up.
R4.2 The name fields of a subject (§4.2)
The full descriptions of givenName, namePrefix and familyName. The rules are in §4.2 of the specification.
| Field | Type | Required | Meaning |
|---|---|---|---|
givenName |
string | no | Given name. Only meaningful when kind: "person". Absent here means "not filled in" in the broad sense: that covers both unknown (the given name hasn't been passed down) and not applicable (a mononym, as with some historical figures who carried only one name). This format deliberately doesn't distinguish those two: both cases produce the same display (displayName remains the only guaranteed-meaningful name), and a reader that needs the difference must get it from notes/context. |
namePrefix |
string | no | Name prefix / infix, e.g. "van der", "de": the Dutch surname particle. Only meaningful when kind: "person". Absent means "no prefix"; there is no unknown/not-applicable distinction here as with givenName/familyName, because a missing prefix is, for most names, the correct, complete truth. |
familyName |
string | no | Family name. Only meaningful when kind: "person". Same absence meaning as givenName above: deliberately not distinguishing unknown from not-applicable. |
R4.4 Combinations of kind and type (§4.4)
The two combine freely, and that's precisely their strength. Not every combination is equally common, but none is invalid:
subject.kind |
chart.type |
Why this is a sensible combination |
|---|---|---|
person |
horary |
A horary question belongs to the person asking, not to the question itself: the subject is the querent, and nothing more is said about that person. A person can have several horary charts. |
horary |
(none, sequence 0) | A standalone horary question: the primary chart is the question chart, and the querent is not recorded. |
country |
mundane |
The common case: a political chart for a country. |
country |
ingress |
No contradiction: exactly what mundane astrologers do with, for example, the annual spring ingress for a country. |
organization |
(none, sequence 0) | An organisation's birth chart (primary chart) is its founding chart. |
R4.5 Why an order is recommended, and why there is no index (§4.5)
A reader that reads a file in parts knows the folders before the people, and the primary chart
before the derived charts. So a writer should write folders first, each folder after its parent,
and sequence 0 first. It is a recommendation, because a reader has to accept any order anyway.
The format has no index. References in parents (RF4) and the order of the notices (§10.2) are
settled at the end whatever the order, the root is closed (F4), and an index that did not match the
content would need error rules of its own. Subjects are not ordered among themselves, and parents
is not used, because references between subjects can form a cycle.
R6.1 Why its own keys (§6.1)
The names that a program uses internally do not belong in a public format. The keys below are English words that name the technique, so that a reader in any language can tell what a chart is.
Design principle: when a variant earns its own key, and when a parameter is enough. A
variant that changes the calculation itself, a different formula or a different outcome for the
same input, deserves, in principle, its own type key, not a parameters value: a reader
that doesn't recognise such a parameter, or ignores it, must never produce a chart that looks
valid but is astronomically something other than what the writer intended. That principle
alone isn't enough to settle every case, though, because almost any piece of data that feeds a
calculation "changes the outcome" in a trivial sense (age does exactly that too). The line
this format draws: a variant gets its own key instead of a parameter when there is no
internationally unambiguous, universally documented meaning for the value a reader can safely
fall back on. The calculation parameters of §6.4 are the deliberate exception, and they have
no default: a chart that does not carry one says nothing about the choice, and a reader that
cannot calculate a registered value uses its own choice and reports it. R6.4 gives the reasons.
Two concrete applications of that line, worked out in R6.3 and R6.4:
- The month length in
sidereal-minor-progression(see R6.3) got its own key, alongside the internationally commonminor-progression, rather than a "which-month-length" parameter on one shared key. Research into the international literature (including Skyscript) showed that even a careful builder who reads the specification can get this wrong: sources use both the synodic and the sidereal month for "minor progression," sometimes even interchangeably as synonyms. There is no unambiguous default to fall back on, so no parameter, just a separate key per month length. - The
directionparameter (see §6.4) stayed a parameter, even though it changes the calculation just as much (forward versus backward): every source examined that describes any of these five direction/progression techniques treats the conversive (backward) variant in the same breath as the ordinary one. "Converse directions," "converse progressions," and "converse solar arc directions" are each established, unambiguous terms of art, never carrying a competing meaning. A builder who has already correctly implemented one of these five techniques has almost inevitably also run into the conversive case while reading a basic source. That's a materially different risk from the month-length case above, where sources disagree among themselves, and it justifies why this one case, despite sharing the "changes the calculation" trait, may stay a parameter instead of being split into ten keys (five techniques × two directions). For that same reason,directionis required (see §6.4 and §10): a parameter may lack an implicit default only as long as a reader that doesn't recognise or support the value rejects the chart rather than silently guessing.
Future decisions of the same kind can be tested against these two yardsticks: is there an internationally unambiguous meaning for the value, and can a reader safely reject an unrecognised value instead of guessing? That beats deciding afresh by feel each time.
R6.3 Keys with no Celestium counterpart, and why they are already here (§6.3)
relocation: costs nothing new in the data model: a source reference plus its own place, both mechanisms that already exist (parentswith rolesource, see §8;locationis already universal, see §7a).planet-return: a first-class feature for arbitrary planets, asteroids and points, not just Sun and Moon. None of the programs examined stores "which return number" as a separate piece of data; they work with a search window and a point, and the moment found becomes the chart itself. For round-trip fidelity, exactly as withsolar-returnandlunar-return, the exact moment found plus the place used plus which body is therefore enough. A return is often cast for the current place of residence and not the birthplace, but every chart carries its ownlocation(§7a), so nothing new is needed.group-composite: a key of its own alongsidecomposite, not a reuse ofcompositewith more parents, because three or more parties do not reduce to the ordinary two-party midpoint method. That difference deserves its own, visible key rather than an implicit parent-count signal; see §8 for the cardinality rules and what a reader does when it finds more parents than it can handle.electional: its own, recognisable category (no program examined treats "electional" and "horary" as the same type), but identical tohoraryon the data model: a chosen moment plus place plus an optional purpose. It therefore costs no new field, only a key; see thequestionparameter in §6.4, which forelectionalcarries the purpose of the election rather than a horary question.minor-progression: the internationally common name for the technique "1 lunar month = 1 year of life", but the term is not unambiguous: some sources use the synodic month (29.53059 days), others the sidereal month (27.32166 days), and a few use "minor progression" and "quaternary progression" as synonyms for differing month lengths. Celestium calculates only the sidereal variant (Dutch "min-één-systeem"), which therefore gets its own key,sidereal-minor-progression: no internationally unambiguous default exists to fall back on, the line drawn by the design principle in R6.1.minor-progressionitself (the synodic variant) is in the table anyway, without a Celestium counterpart, so that a future source that supplies the synodic variant needs no version break. The namequaternary-progressionfor the sidereal variant was rejected: the term is itself contested and would push the ambiguity up one level.life-event: a dated event in a subject's life is the raw material of rectification and of event-based work. It costs no new field: a moment, a place and a label. It carries noparents, because its relation to the subject is the implied one (§8).profection: annual profection is a classical technique that needs only the primary chart and a whole number of years. It uses the keyagewith its own form (§6.4), and nodirection, because a profection always advances.
More on why these keys are already here.
relocation, planet-return, group-composite, electional, minor-progression,
life-event and profection are concepts Celestium (the main application) does not know today:
no counterpart in its calculations or its interface. Celestium Exchange therefore never writes these keys (there is
nothing Celestium-native to translate them to), but it must still handle them cleanly on the
reading side (§10): a reader must never assume that "no counterpart in the application" is the
same thing as "an invalid key." The first four are here because a separate investigation into
chart types in other astrology programs (Solar Fire, Astrolog, Janus, Kepler/Sirius,
Planetdance), based on their public documentation as of 2026, found them confirmed again and
again; minor-progression, life-event and profection are here for the reasons
given above. Adding a new chart type to a version-numbered format is cheap later (additive),
while a missing generic slot for chart-type-specific data is not (that requires a format
break). Hence: lock it in now, with the confirmed need as the justification.
R6.4 Parameters per chart type: why an open dictionary (§6.4)
Why an open dictionary and not a separate field per chart type. Adding a new chart type to
a version-numbered format is cheap in itself: additive, no version break. But if there's no
generic slot for the reconstruction data that goes with it, every new kind still forces an
envelope change (a new, specific field on Chart). With parameters, a future version can add
a new kind without bumping version: new keys in an open dictionary are backward compatible by
definition (see §10, "Versioning"). That's exactly what R6.3 above already relied on for four
kinds.
Why not just put everything in parameters. time, location, label, notes, and
parents remain their own fields on Chart, even though they are conceptually "extra data on
one chart":
timeandlocationare universal: every chart, of every kind, needs a moment and a place in exactly the same way. That's not a chart-type-specific parameter but the core of what a chart is.parentsis structural: a reference to another chart (subject+sequence+role), not a scalar value. That doesn't fit sensibly into a string-to-string mapping, and it's also a different kind of thing from a reconstruction parameter. It's a relationship between charts, not a setting on one chart.extensions(§9) carries vendor extensions, not an astronomical reconstruction datum, and in principle applies to every chart type. It isn't tied to one specific kind the way the keys inparametersare.
What does live in parameters, and why not as a separate field. A program can keep the
harmonic number of a harmonic chart and the direction age of a direction chart in one and the
same number, and use its sign for a third meaning (the direction; see the direction row of
§6.4). And the cardinal point of an ingress may be stored nowhere, only implicit in the
calculated moment. Overloading one value with multiple meanings is exactly the pattern this
format doesn't repeat: every key of §6.4 carries precisely one meaning, for precisely the chart
type(s) it belongs to.
The precision requirement on age, and why a floor is needed. The age of a direction is
not a value typed by a user but the result of date arithmetic (the same kind of calculation as
the localTime fraction in §7.2), for example 38.374536129724326. Formatting it with a fixed
number of decimal places (say 12) would produce 38.374536129724: fifteen significant digits
become thirteen, a real loss of precision, not a rounding artefact. It would happen
silently: nothing in the file or the accompanying text would say anything was lost.
The specification therefore pins down two things at once:
- Enough digits to read back without loss. A writer uses the shortest string that, read
back as a 64-bit IEEE-754 floating-point number (
double), yields exactly the same value. In .NET that's the bareToString(CultureInfo.InvariantCulture)with no format string, which since .NET Core 3.0 automatically picks the shortest round-tripping string. That is the failure described above: a fixed number of decimal places can irrecoverably truncate a value that has more significant digits than that. - A floor of 6 digits after the decimal point, always, even when the value happens to be a
whole number (
"36.000000", not"36") or only needs a couple of decimals to round-trip ("34.500000", not"34.5"). Without this floor, a writer that ignores the rule above or implements it half-heartedly (for instance: rounding to two decimals "because that looks accurate enough") would be structurally indistinguishable from a writer that gets it right; both produce a number that looks valid. The floor turns the obviously lazy case ("34.50") into a schema rejection instead of a silent degradation that only comes to light when someone happens to spot-check it against the source.
Why 6 digits, and not more or fewer: the astrological arc error. For solar-arc, age
directly sets the arc: every point advances by the distance the Sun travels in age days, which
is at most about 1.02 degrees a day (the fastest daily motion of the Sun). An error of 1×10⁻⁶
years on age, the level the 6-decimal floor targets, therefore produces an arc error of at
most about 1.02 × 10⁻⁶° ≈ 0.0037 arcseconds. The other direction and progression kinds in this
table convert age into a time offset at a rate of their own (§6.4), so the same error has an
effect of the same small order there. A fraction of an arcsecond is far below the smallest angle
any ephemeris, chart wheel, or aspect calculation ever makes visible (positions are typically
rounded to the arcminute, orbs to tenths of a degree). Six decimals is thus more than sufficient
for any practical astrological purpose; the requirement isn't arbitrarily strict. What's needed
beyond that, for a bit-exact round trip of the underlying 64-bit value (up to 17 significant
digits, as in the 38.374536129724326 example above), doesn't follow from astrological meaning
but from data integrity: that same value must be identical after a round trip, even though the
15th decimal would astrologically never make a visible difference.
Why the month length in tertiary-progression and sidereal-minor-progression isn't a
parameter, but is fixed in the key. Both techniques need a fixed month length to reconstruct:
tertiary-progression always uses the synodic month (29.53059 days, in the formula
365.2422 / 29.53059 ≈ 12.3683 ephemeris days per year of age), sidereal-minor-progression
always uses the sidereal lunar orbit (27.32166 days per year of age). This could also have been
a parameters key (e.g. "lunar-month": "synodic"), but that would not satisfy the requirement
from the design principle in R6.1: the international term "minor progression" is used for
both month lengths, so a reader that doesn't recognise or ignores such a parameter could
produce a chart calculated with the wrong month length without ever noticing. Hence two
separate keys (minor-progression/sidereal-minor-progression, see R6.3) instead of one key
with a parameter. tertiary-progression got no second, sidereal variant alongside it for the
same reason: international research found no established term for a sidereal tertiary
progression, so that combination doesn't exist in this version. Should it ever turn out
to be needed, a new, additive key will be added (see §10, "Versioning"), not a parameter on the
existing one.
harmonic does not cover Vedic vargas. Checked against Brihat Parashara Hora
Shastra, chapter 6, "The Sixteen Divisions of a Sign" (R. Santhanam's English translation) and
against the independent, open-source PyJHora implementation ("Traditional Parasara" method):
only D9/Navamsa is mathematically identical to a 9th harmonic (longitude × 9
mod 360°). Its assignment rule (movable signs start the count from themselves, fixed signs
from the 9th sign, dual signs from the 5th) reduces, for every sign, to exactly that
multiplication, across all twelve signs and not just at the sign cusps. D3, D7, D10, D12, D30, and D60 do not share that property: each restarts its
per-sign count differently (by parity for D10/D7, always from the source sign for D12/D60, by
trine group for D3), which coincides with a plain harmonic only for a source degree in Aries
and diverges everywhere else. D12 is the sharpest example: Taurus 5° gives Cancer 0° under the
classical rule (per both the source text and PyJHora), but
Gemini 0° under a plain 12th harmonic. D30/Trimsamsa goes further still: its classical division
isn't even equal-width (five unequal degree ranges per sign, assigned to fixed planetary
rulers), so no harmonic multiplication could reproduce it at any factor. Vedic support is
deliberately out of scope for this version. Should it ever be built, it deserves its own
mechanism (type: "varga" with a number and a required ayanamsa reference, not an extension of
harmonic), so no one assumes the existing number parameter already covers vargas.
On the policy for an unrecognised parameters key (§6.4):
- This behaviour follows for free from the chosen data structure:
parametersis a flat string-to-string mapping. A mapping preserves and round-trips every key inside it, known or unknown, with nothing needing to be built for that, unlike a typed model per chart kind, where an unknown field would need a dedicated catch-all construct.
Why calculation parameters, and why they have no default. Two charts cast from the same
moment, place and age can still differ, because the technique has variants that programs offer
side by side: how age becomes an arc, whether aspects are measured along the ecliptic or in the
mundane frame, whether latitude counts, how the angles of a progressed chart follow, how the
houses of a composite follow. A file that leaves the choice out leaves the reader to guess. The
format therefore has a parameter for each choice that a program really offers, and a register of
names.
A default would be a statement: a file without the parameter would claim a particular technique, also when the writer did not know. The names of the classical methods also mean different things in different programs (R6.4a). So an absent parameter says "not recorded", the reader uses its own choice and says so (row CH5), and a writer that knows the value writes it.
Why the scope stops where it does. CEXF carries the input of a calculation and the technique
that was chosen. It does not carry the whole calculation rule. How a program applies a technique in
detail, down to its rounding and its ephemeris, is the program's own, the same way the ephemeris
is. The definitions in §6.4 are exact only where a name alone would let two programs draw two
charts: the three rotation methods, the time keys, the angles of a progressed chart, the houses of
a composite, and the midpoint of a set of longitudes. The classical methods have a name and no
formula, because they measure an arc between two points and not the positions of a chart. Other variants (a day type, a weighting, a way to place
a Davison chart, the Arabic parts) can join the register later, because new values and new keys
in parameters need no new version (§10.5).
Why the midpoint of 180 degrees has a rule. The midpoint of two longitudes is the one on the shorter arc. At exactly 180 degrees there are two equally short arcs, and a program that takes the first parent's longitude plus 90 gives another composite when the parents are swapped. A composite must not depend on the order in which two people are listed, so the format fixes the point: (min(lambda1, lambda2) + 90) mod 360.
R6.4a Worked example: primary-direction methods (§6.4)
This example shows what the calculation parameters of a primary direction name, with one point calculated by hand. It is an illustration, not a test: the numbers are for a made-up chart.
Why every method has a key of its own. "Placidus" and "Regiomontanus" are names of house systems, and programs also use them for direction methods, each with its own meaning. In one program the Placidus direction scales the arc by the semi-arc of every point. In another the same name stands for the classical way of bringing a promissor to a significator. If CEXF registered the shared name, a reader could draw another chart than the writer meant, and neither would notice. So CEXF registers what is calculated: three keys with an exact definition, and five for the classical methods. A key names one technique and has one meaning in every file.
The three methods of the reference implementation. Each one turns a point by the signed arc s
of the time key and keeps its declination. In the formulas phi is the latitude of the place of the
subject's sequence 0 chart, delta the declination of the point, RA its right ascension, RAMC the
right ascension of the Midheaven of that chart. The arguments of arcsin and arccos are limited to
[-1, 1], and angles are in degrees.
ra-rotation(Celestium's "Ptolemaic" method): every point moves by the same arc along the equator. RA' = RA + s.semi-arc-scaled-rotation(Celestium's "Placidus" method): the arc is scaled by the semi-arc of the point, so a point with a long semi-arc moves further than one with a short semi-arc. RA' = RA + s x S / 90, where S = arccos(-tan(phi) x tan(delta)), the diurnal semi-arc, when the meridian distance |RA - RAMC| (the shorter way round) is at most that value, and S = 180 - arccos(-tan(phi) x tan(delta)), the nocturnal semi-arc, otherwise. A point with |tan(phi) x tan(delta)| >= 1 is circumpolar: it has no semi-arc, and it moves as inra-rotation, RA' = RA + s.position-circle-rotation(Celestium's "Regiomontanus" method): the position circle of the point passes through the north and south points of the horizon, and the point moves along that circle. Let k = tan(phi) x tan(delta) and a = RA - RAMC. The circle meets the equator at RAMC + t, with t = atan2(sin a, cos a + k). That intersection moves by the signed arc: t' = t + s, and RA' = RAMC + t' + arcsin(k x sin t'). With s = 0 every point stays where it is, and at phi = 0 the method isra-rotation. A point with |k| >= 1 is circumpolar: no such circle passes through it, and it moves as inra-rotation, RA' = RA + s.
In all three, the ecliptic longitude of the result follows from RA', delta and the true obliquity of the moment of the radix: lambda' = atan2(sin(RA') x cos(eps) + tan(delta) x sin(eps), cos(RA')).
The classical methods. placidian-semi-arc, placidian-under-the-pole, regiomontanus,
campanus and topocentric are the promissor-to-significator methods of the literature: a
promissor is brought to the place of a significator, and the arc between them is the arc of the
direction. They define arcs between pairs of points, not the positions of a chart, so this
version defines no formula for them. They are registered so that a program that calculates them
can say so in a file. A reader that does not calculate them uses its own method and reports it
(row CH17).
The angles and the cusps. With a rotation method the Ascendant and the Midheaven are not
turned like planets. The Midheaven of the sequence 0 chart is moved as a point, which gives
RAMC', and the houses are cast again for RAMC'. In a quadrant house system cusp 1 is then the
Ascendant and cusp 10 the Midheaven, and the Vertex and the East Point come from the same calculation. Turning the
Ascendant and the Midheaven on their own would leave the cusps and the angles disagreeing: cusp 1
would not be the Ascendant. The direction also uses the place of the sequence 0 chart, not that
of the direction chart: the technique moves the sky of the birth, so the latitude and the RAMC of
the birth are the ones that count. angles decides how the Midheaven of the directed chart follows: method-mc
moves it with the method of the chart like any other point, ramc-arc adds the arc to the RAMC whichever method
moves the points (Ptolemy, Tetrabiblos III.10, paragraph 134; Morin, Astrologia Gallica XXII.IX p. 546).
Where method-mc can make the cusps jump. method-mc moves the point of the Midheaven on the
ecliptic (ecliptic latitude 0) with the method of the chart. Celestium does this by default. Near
the polar circle the result can jump. The point has a declination delta, and a method with a
position circle or a semi-arc has a semi-arc only while |tan(phi) x tan(delta)| < 1. Beyond that the
point is circumpolar and moves as in ra-rotation. The cusps follow RAMC', so they jump with it.
Example, with position-circle-rotation, the Midheaven at 72.3 degrees of ecliptic longitude
(delta = 22.27 degrees), eps = 23.44 degrees and an arc s of 30 degrees: at latitude 66.5, RAMC' =
RAMC + 58.1 degrees, and at latitude 67.8, where the point is circumpolar, RAMC' = RAMC + 30
degrees. ramc-arc gives RAMC + 30 degrees at every latitude and has no jump.
The points that depend on the Ascendant. The Part of Fortune and the other points that are calculated from the Ascendant are not turned like bodies. A reader calculates them again from the directed Ascendant and the directed positions of the bodies they use, as Celestium does.
Why latitude has this reading with a rotation method. Every point is moved, so every point
is a promissor. A significator is a point of the sequence 0 chart that the moved chart is read
against, and its latitude never enters the moved chart. promissor and both therefore mean the
same thing here, and none and significator too. That keeps the files that Celestium already
writes (latitude: promissor) at the meaning they were written with.
One point, by hand. A made-up chart: the Sun at 52.0000 degrees of ecliptic longitude
(22 degrees of Taurus), place at latitude phi = 52.0 degrees, RAMC = 20.0 degrees. Take a true
obliquity of eps = 23.44 degrees, fixed here as an illustration; a program uses the true
obliquity of the moment of birth. The direction is at age 36.2 with key naibod.
- The arc. The Naibod rate is 0 degrees 59 minutes 8.33 seconds per year, 59/60 + 8.33/3600 = 0.9856472 degrees. arc = 36.2 x 0.9856472 = 35.6804 degrees (35 degrees 40 minutes 50 seconds).
- The point. From the longitude and eps: RA = 49.5837 degrees and delta = 18.2680 degrees.
ra-rotation: RA' = 49.5837 + 35.6804 = 85.2641 degrees. With delta unchanged, the longitude is lambda' = 85.4854 degrees.semi-arc-scaled-rotation: S_d = arccos(-tan(52.0) x tan(18.2680)) = 114.9929 degrees. The meridian distance is |49.5837 - 20.0| = 29.5837 degrees, which is at most S_d, so the diurnal semi-arc applies and the arc is scaled by 114.9929 / 90 = 1.27770. RA' = 49.5837 + 35.6804 x 1.27770 = 95.1725 degrees, and the longitude is lambda' = 94.9306 degrees.
The same point, the same arc, and two methods that end 9.4 degrees apart in longitude. That is why a file names the method. The chart of this example, as the file would carry it:
{
"sequence": 1,
"type": "primary-direction",
"time": {
"utc": "2026-06-01T12:00:00Z",
"timeZone": "Europe/Amsterdam",
"localTime": "2026-06-01T14:00:00",
"utcOffset": "+02:00"
},
"location": { "latitude": 52.0, "longitude": 5.0 },
"parameters": {
"age": "36.200000",
"direction": "direct",
"key": "naibod",
"method": "ra-rotation",
"aspects": "zodiacal",
"latitude": "promissor",
"angles": "method-mc"
}
}
What a reader does. A reader that does not calculate a registered value, for instance
method campanus, uses its own method for that parameter and reports it once for the chart
(row CH17). A reader that finds a value outside the register, such as method kepler, or no
value at all, treats the parameter as not recorded: it uses its own choice, reports that once for
the chart (row CH5). Both accept the chart. The difference is the notice: a value outside the
register says that the writer meant something this version does not name, and a registered value
that the reader cannot calculate says that the reader lacks the technique.
R6.4b Why houses on a solar arc is a parameter with two values (§6.4)
A solar arc moves every body and point of the sequence 0 chart by the same arc, but a chart also
has an Ascendant, a Midheaven and twelve cusps, and programs differ in how those follow. One way
shifts them by the arc in ecliptic longitude (arc-shifted). The other moves only the Midheaven
by the arc and then casts the houses again at the RAMC of that Midheaven, at the birth latitude
(from-directed-mc). The two generally give different Ascendants and cusps for the same arc, so
the file records which one the writer used. There is no default, for the same reason as with the
other calculation parameters: a reader that fills in a value for a writer that left it out shows a
chart that nobody asked for. Celestium keeps the choice as one global setting, "Huizen bij
zonneboog" (houses in solar arc), and not per chart (Appendix A).
On a sidereal chart the ayanamsa of from-directed-mc is that of the moment of the sequence 0
chart, not that of the moment t_p for which the houses are calculated. The planets of a solar arc
chart are the radix plus the arc, so they stand in the zodiac of the radix. A Midheaven that is
MC_0 plus the same arc must stand in that zodiac too, and then the Midheaven agrees exactly with the
planets that carry the arc.
R6.4c Why a round-tripping reader keeps an unrecognised parameters key (§6.4)
A reader that also writes must leave every key of parameters that it does not recognise unchanged (§6.4). That way a later Celestium version (or an entirely different program) can introduce a new parameter key for a new chart kind without an older helper tool, which happens to pass the same file along, silently dropping that key.
R7.1 Why UTC and a time zone are not enough (§7.1)
The IANA time zone database (tzdb) says of itself, in its theory documentation
(data.iana.org/time-zones/tzdb/theory.html), that "many, perhaps most, of the tz database's
pre-1970 and future timestamps are either wrong or misleading". Its naming policy gives one name
to the regions whose clocks have agreed since 1970, and the less reliable earlier history goes into
a separate file (backzone) that "does not necessarily follow database guidelines." For astrology this is not an edge case but the bulk of
the workload: nearly every birth date lies before 1970. Ask a newer tzdb release in five years
what the offset in Rotterdam was in 1943, and the answer can come out differently, after which
a recalculated local time shifts even though the birth certificate hasn't changed. Zone IDs
also get renamed (Europe/Kiev → Europe/Kyiv, Asia/Calcutta → Asia/Kolkata).
R7.2 Why the fraction of a second, and why one to seven digits (§7.2)
More on the fraction of a second, and on the form localTime and utc take in Celestium and in
its importers.
AAF and Quick*Chart, the two other formats supported by Celestium's importer, also carry local time plus an offset, not UTC alone.
Celestium itself keeps local time with its offset, not pure UTC. The data for localTime and utcOffset is thus
already available to Celestium Exchange when it writes; utc is that same instant
converted to UTC, not a separate calculation.
Why localTime can still carry a fraction, even though that isn't human-entered
precision. A derived chart (for example, a secondary-progression, "1 day = 1 year") can have a moment of
2026-04-12 20:51:43.3274585+02:00. The fraction is not precision typed by a user but a
byproduct of the date arithmetic that derives the moment. Without a fractional component on
localTime, a writer would have to silently round that value to whole seconds, while utc
(which already carries the instant as such, not as text formatted by the writer itself) would
retain the full precision, with the result that localTime and utc would no longer express
the same instant. Hence the optional fraction: a writer omits it whenever the value happens to
be a whole second (by far the ordinary case, and exactly what the example above shows), and
fills it in when it isn't.
Why utc carries the same 1-7-digit limit as localTime, and no more. Leaving utc
unlimited while localTime is fixed at 1-7 fractional digits would be inconsistent between two
fields that together make the identity in §7.3 hold: if a writer writes nine digits on utc and seven
on localTime (the maximum that field allows), the two text fields can describe the same
instant and still not textually match the way §7.3 expects. Hence the same limit on both
fields:
- 1-7, not unlimited. Seven fractional digits is exactly the tick resolution of .NET's
DateTime/DateTimeOffset(100 nanoseconds), the same limitlocalTimealready carries, for identically the same reason (see above). A source with a finer clock (nanosecond precision, say) has no field in this format to carry that difference anyway; a writer in that case rounds to 7 digits before formatting bothutcandlocalTime, so the two stay in step. - 1-7, not fewer. Exactly as with
localTime: the fraction is optional because a manually entered birth time is always whole seconds, but a calculated moment on a derived chart can have a non-trivial fraction that would otherwise silently disappear.
R7.2a Why the four time fields are redundant (§7.2)
Yes, this is redundant. localTime can in principle be derived from utc + timeZone, and
utcOffset from localTime − utc. That is the intent. It makes the file
self-checking, it survives future tzdb revisions, and a reader without its own time zone
database can still show the local time correctly. These four fields carry the local time and the whole offset. The summer-time part of that
offset has its own optional member, dstOffset (§7.11), because the offset alone does not say
how much of it is summer time.
R7.3 Arithmetic consistency: why the check is required (§7.3)
The check is a requirement rather than a recommendation, and the reason is worth stating. A chart that fails the identity carries two moments that disagree, and the specification deliberately gives no rule for which of the two wins. A reader that skips the check has to pick one anyway, silently, and two programs reading the same file will then show two different birth times with nothing to signal it. Requiring the check costs a subtraction and a comparison, and it closes the only place in this format where well-formed input could lead to quietly divergent behaviour.
R7.4a Why utcOffset exists next to timeZone (§7.4)
A zone ID that a reader does not recognise is harmless (§7.4, "Unknown or renamed zone ID"). This is, right away, the best illustration of why field
4 (utcOffset) exists: without that field, an unknown zone ID would force a reader to either
guess, or be unable to show a local time at all any more.
Why a silent correction is the worst outcome. A silent correction to a recorded birth time is the worst conceivable behaviour: the user then sees a different time than what was ever entered, with no prompting whatsoever.
R7.5 Why a reader keeps the supplied moment of an unknown time (§7.5)
When a .cexf file from another program comes in with unknown: true and a localTime that is not 12:00, a reader has to choose between keeping the supplied moment and replacing it with its own convention. That's not a trivial choice: the two produce a different Ascendant and different houses, by up to twelve hours apart.
Why a reader keeps the supplied moment. That's what the sender saw and calculated; the flag already says the sub-day details are uncertain (see above), so there's no reason to also change the number itself to another, equally arbitrary convention.
R7a Why there is no precision requirement on latitude and longitude (§7a)
No precision requirement on latitude/longitude, deliberately, not a gap. Unlike age
(§6.4) and utc/localTime (§7.2), it was checked whether the same kind of floor is needed
here, and the answer is no, for three reasons that age doesn't share:
latitude/longitudeare a JSONnumber, not a string.ageis a string in an open string-to-string mapping (§6.4) precisely because there was no other mechanism to carry a number; the precision therefore depended entirely on how the writer formatted that text itself, and that formatting is exactly what can go wrong (see the fixed-number-of-decimals example above). A JSON number doesn't have that problem: the reference writer passes latitude and longitude straight through as adoubletoSystem.Text.Json, which since .NET Core 3.0 already picks the shortest round-tripping text representation itself. There is no separate, hand-written formatting step that can go wrong.- No textual identity to guard.
utc/localTime/utcOffsetmust agree with each other (§7.3, to within a difference strictly below one second), hence why both time fields carry the same limit on fractional digits. Coordinates stand on their own: there's no second field thatlatitude/longitudemust arithmetically agree with, so no risk of an inconsistency arising purely from a difference in digit count. - Coordinates are inherently an approximation;
agedrives an exact calculation. A birthplace typically comes from a place-name lookup (GeoNames and the like), not from a point measured to sub-millimetre accuracy: the source data itself is already rounded, well before this format does anything with it. A fraction of an arcsecond of difference in latitude/longitude (the fourth or fifth decimal) shifts house cusps by a negligible fraction of an arcminute.age, by contrast, is a direct input to a deterministic calculation (§6.4): every stored decimal comes back out in the result, with no natural rounding in between.
In short: the absence of a precision requirement here is a deliberate choice. Coordinates
follow the ordinary round-trip guarantee of the JSON number type, with nothing this format
needs to add to that, and no silent gap of the kind age would otherwise have.
R7a.1 Why every chart carries its own place (§7a)
Every chart carries its own place, never derived from the subject. That's deliberate: Celestium stores its own latitude/longitude per chart (including per derived chart), precisely because a return chart is often cast for the current place of residence, not the birthplace.
R7b Why bbcode-basic has two escape rules (§7b)
The two rules of the grammar that concern a backslash and a [ protect different things. Without the first rule, a literal backslash before a real tag, or a literal pair of backslashes,
would read back as something else; without the second, a note that explains the markup (for example by writing
[b]) would be read back as real bold.
R7c Why these settings are fields of the chart (§7c)
Zodiac system, ayanamsa and house system sit on the chart itself and not in parameters: they apply, in principle, to every chart type, exactly the same tradeoff as with extensions (§9): a chart-type-specific parameters key is for something that belongs to only one or a few kinds; this belongs to every chart.
R7c.1 Why the three fields are registers, not fences (§7c.1)
The reason is not open-mindedness for its own sake. It is that these sets demonstrably grow, and a published schema that froze today's list would start rejecting legitimate files the moment an ephemeris library added an entry.
That is not hypothetical. The registers below follow the Swiss Ephemeris naming, since that is
a widely used engine. Swiss Ephemeris currently defines 47 predefined
ayanamsas (SE_NSIDM_PREDEF); an older release knows 43. Four
arrived later: LAHIRI_1940, LAHIRI_VP285, KRISHNAMURTI_VP291 and LAHIRI_ICRC. The
same happened to house systems: J is Savard-A in the current release, where the older one
still treated that letter as unrecognised. Had the specification closed its lists against an
engine as it stood at one moment, it would today be refusing five values that exist and are in
use.
R7c.2 ayanamsa and houseSystem: why these fields exist, and what Celestium does with them (§7c.2)
zodiacSystem/ayanamsa: why there's a real data loss without these fields. Celestium
stores a zodiac system and an ayanamsa per chart. Without a CEXF field for it, a sidereal chart with a
Lahiri ayanamsa would come out tropical after a .cexf round trip: not a minor detail but a
different calculation (every planetary position shifts by the ayanamsa angle). ayanamsa
is separate from zodiacSystem because Celestium always stores an ayanamsa, even for a
tropical chart; there it just means nothing. A reader that finds ayanamsa without
zodiacSystem: "sidereal" (or with that field absent, hence implicitly tropical) ignores
it: the combination is meaningless, not an error to crash on or report.
houseSystem: what the field exists for, in three facts. Three separate
claims, not one vague "Celestium doesn't use this":
- Celestium has no house system per chart. The house system there is not a property of one chart but a single global application setting, switchable at any moment (there is even a two-wheel display that shows two house systems side by side for the same chart). A screen can offer its own choice for as long as that screen is open. That choice is a view, not a property of the chart, and it is never written to a file.
- Celestium therefore also doesn't take it over on import, for exactly the same reason: a per-chart value would improperly overwrite the global setting (which applies to all charts at once). Celestium draws the chart with the global setting.
- Celestium Exchange does write it, but only when exporting to a different program: the global setting at the moment of export, unless the user picks another system for a chart in the export dialog. That choice is made for the one export and stored nowhere. Never when exporting to another Celestium installation (see below).
The field therefore exists not for Celestium itself, but for programs that lack the freedom described in point 1. A program that fixes the house system per chart the moment it saves it makes a real choice, not a derived value: Placidus and Koch produce different house cusps for identical birth data. Without this field, such a user would lose that choice on the first exchange. A writer reading from such a program can carry it along; Celestium's own writer never fills it in when writing for another Celestium installation. The recipient has its own global setting anyway, and leaving it blank is then the accurate representation (point 3 above). When it deliberately writes for a different program (a writer's choice, not a separate format field; see below), it does fill it in on every chart, if need be with its own current setting, because a blank field would there look invalid or different from what was intended.
What a reader does that cannot preserve this field per chart: report it, import the chart
anyway. A reader that writes into Celestium can structurally read and validate
houseSystem, but has no house system per chart to put it in (point 2 above). That is the
same kind of structural limit that the precision requirement in §10 ("Precision loss on
reading: round and report, never truncate") describes for a value that exceeds a reader's
storage capacity, applied here to an entire field rather than to precision: the chart imports and is drawn with the user's global setting. The notice is one per chart and names
everything that Celestium could not take over from that chart (Appendix A).
A houseSystem that equals the global setting is not named, because nothing differs. Silently
discarding it is not acceptable here, just as nowhere else in this format: the user must be able
to know that part of the file required an assumption on their part.
Absence carries meaning: a reader must never invent a value for it. A missing houseSystem
means "no opinion, the reader decides," and that is different from a filled-in value. If a
writer exporting to another Celestium installation were to always fill in "placidus" anyway,
just because that happened to be the sender's global setting, then the recipient, the moment
Celestium ever learns a per-chart house system, would end up locking every imported chart to
Placidus, even though it wanted to keep following its own global preference. Precisely for that
reason, Celestium's own writer never fills in this field automatically for that audience (see
below), and precisely for that same reason a reader that finds the field empty must never fill
in a value itself when writing it back: emptiness here is an explicit statement ("follow your
own preference"), not a missing piece of data that invites a guess.
The writer's choice is not a format field. A writer that knows who it's writing for (another
Celestium installation, or a different program) may let that difference inform what it fills in
for houseSystem, but that is a decision the writer makes at the moment of writing, not a
property of the file itself. There is therefore deliberately no key in the root object that
records "this file is for Celestium" versus "for a different program": a reader doesn't
distinguish the two anyway, and doesn't need to. A filled-in houseSystem is valid,
regardless of who ever wrote the file. See §14 for the full treatment of this writer's choice.
Note markup is not an example of this. Flattening markup is not a writer's choice of the
same kind as houseSystem: markup ([b]…[/b] and so on, see §7b) always travels along
unchanged, with its own format field on every note. A writer may not decide, on behalf of an unknown
recipient, that markup "won't come through anyway." The difference from houseSystem is
precisely that an empty houseSystem is a valid, meaningful value ("recipient decides for
itself"), whereas discarded markup information never comes back. See §7b for the full grammar
and §10 for the resulting requirement on a reader that doesn't display this text format.
R7c.6 Why lunarNode and blackMoon are informative fields of a chart (§7c.6)
Two programs that agree on the moment, the place, the zodiac and the house system can still give a different longitude for the lunar node and for the Black Moon, because each calculates them in one of several ways: the mean or the true (osculating) node, and for the Black Moon the mean, the osculating or the interpolated apogee (the Glossary lists them with their numbers in Swiss Ephemeris). Without a record of the variant a reader has to guess, and neither guess is wrong.
The fields are informative and not defining for the same reason as houseSystem: the positions are
not in the file (§11), so the variant describes how the writer's chart was drawn and changes no
moment, no place and no reference. A reader that keeps only one global setting draws the chart with
that setting. It reports a deviation only when the file names another variant, because a value that
equals the setting loses nothing. A reader that keeps the variant per chart takes it over exactly.
Neither case justifies a failed import, so an unknown value is row CH20 and a damaged one is row E5.
The register names the calculation and ties each value to one identity, because the names in use
for these points differ between programs: "Lilith" can mean the mean apogee, the osculating apogee
or an asteroid, depending on the program. The register is open, so that a further
variant can be added later without a version break (§10.5). lilith is not a key and never will
be.
R8.1 Why role exists, and why in the same list (§8)
Why role exists, and why in the same list. parents carries parent charts, but a
relocation chart also needs a reference to another chart in a fundamentally different
relationship (same utc, a different place, no combining of positions). One unmarked field
would be ambiguous: a reader could not tell a relocation source chart apart from a composite
parent. role resolves that explicitly, and the list stays one mechanism instead of two near-identical fields (parents plus a separate
sourceChart) that would still have needed separate documentation and validation.
R8.2 Why synastry is in the two-parent row (§8)
Why synastry is in the two-parent row, alongside composite and Davison. In Celestium, a
synastry chart keeps a link back to its base chart in the same way composite and Davison charts
keep links to their two source charts. Without synastry in this table, a synastry would lose its
link to its two source charts after a .cexf round trip: a navigation feature would then break,
not merely "less metadata." Other derived chart types (solar return, harmonic, horary, transit,
mundane, the prenatal kinds) also keep a link to the same person's own natal chart inside
Celestium, but that is an internal detail: no screen reads it back for those types, and it is
therefore not a CEXF parent link. For those types the primary chart of the same subject is
implied, as the next paragraph says.
R9.1 Why a generic mechanism, and not a vendor-specific field (§9.1)
A dedicated field on the chart, say rulerOverrides, named after a Celestium feature (the
Heersers/Rulers module) and holding opaque Celestium-internal JSON, would be the wrong way
around for a format that explicitly aims to be universal, not "Celestium's format with some
extras for others," but a format that could just as well be used by an entirely different
vendor: every implementer reading the field list would have to wonder what a rulerOverrides
is and why that name is there, and no other vendor would have a comparable slot for their
own data. A single vendor's name at the core of the schema is
also a bad omen: the next vendor with its own per-chart setting would have to ask for its own
field the same way, and this format would keep growing with vendor-specific fields sitting side
by side.
Instead: one generic field, extensions, in which every vendor can put something under its own
key. Celestium's own ruler overrides are one instance of this mechanism, not an exception
baked into the schema.
R9.2 Why a namespace follows the reverse-domain convention (§9.2)
Every key of extensions should carry a per-vendor namespace, preferably in the reverse-domain form (§9.2). This convention is not enforceable by a schema (there's no way to validate domain ownership in JSON Schema), but it is customary enough to prevent, in practice, collisions between two vendors who happen to pick the same short name, exactly the problem a bare rulerOverrides would not solve the moment a second vendor also wanted to add a "ruler overrides"-like concept.
R9.3 Where the preservation promise is achievable, and Celestium Exchange's own limit (§9.3)
Where this promise is unconditionally achievable, and how. For a reader/writer pair that
never leaves the .cexf document model at all, deserialising a whole document and serialising
it back out, this is achievable byte-for-byte: the reader keeps the original text of an
extension value, and the writer emits that text unchanged. The one thing that must be gotten
right to actually deliver on this: the default behaviour of a JSON library for a generic JSON
value does not preserve original formatting when writing. It replays the value's structure
through the destination writer, which re-applies that writer's own settings (indentation) and
nesting depth. That changes whitespace, not meaning, but "changes whitespace" is still a broken
promise for a format that says "unchanged." An implementation therefore writes every such value
as raw text, which emits the original bytes verbatim. With that in place, a pure .cexf-to-.cexf round trip (or a conversion between two
exchange formats with no data model of its own in between) preserves an unrecognised extension's
value byte-for-byte, nested content included.
Celestium Exchange's own limit here. That achievability is about the document model, not
about every path Celestium Exchange offers today. When the target is Celestium itself,
it is more nuanced: it is not a serialisation-fidelity limitation, per the
paragraph above, but a limit of Celestium's own data model, which has no place to keep
arbitrary vendor data. An unrecognised extension is therefore lost, exactly like an
unrecognised parameters key (§6.4), when Celestium Exchange imports a chart into
Celestium. A program that passes a .cexf file on, with no data model of its own in between,
has no such limit, and the preservation duty applies to it in full.
R9.3a Why the preservation rule is the point of extensions (§9.3)
A reader that writes a file back out preserves every key of extensions that it does not recognise, including its value. Without this rule, the entire mechanism is
worthless: every pass through a second program would then lose the first program's extension
data, and in practice nothing would be gained over a closed, per-program field.
R9.5.1 Why the "ignore what you do not recognise" rule is not safe everywhere (§9.5)
Why §9.3's unconditional "ignore what you don't recognise" rule isn't safe everywhere. That
rule is excellent for the overwhelming majority of conceivable extensions: ignoring one costs at
most a cosmetic detail there (Celestium's own rulerOverrides, for instance: a reader that
doesn't know the rulers module misses a UI preference, not an astronomical datum). But that same
blanket rule turns dangerous the moment a future extension would want to say something like
"the positions on this chart are provisional, apply correction X before trusting them," an
extension that doesn't add something, but changes the meaning of the existing data. A reader
that doesn't recognise such a key and, per the current §9.3 rule, ignores it, then
shows a chart that looks valid but isn't, silently, with no warning. That is the
scenario this entire format already rules out everywhere else.
Why this must be decided now, not at the first such extension. §9.3 is an unconditional
promise ("never fall over," with no exception). A reader that builds correctly
to the letter of the specification today must never later be surprised that a subsequent
version introduces an exception category after all ("except for these keys, which you must
not ignore"); that would retroactively make its already-conformant implementation unsafe. The
room for such an exception must therefore be reserved from the start, even though no
concrete meaning-changing extension exists today: exactly the same tradeoff as with subject
instead of person (§4.1). It's about reserving the space, not the content.
R9.5.2 Why a separate field, and not a marker in the key name (§9.5)
Why a separate field, and not an agreed marker in the key name within extensions itself
(the alternative). A marker in the key name (say, a reserved prefix or
suffix) would force a reader to keep textually checking every key in extensions, even
keys it doesn't use anyway, for that marker, forever, instead of looking up the keys it
knows (as Celestium Exchange already does today for nl.celestium.rulerOverrides). A separate
field is structurally visible: a reader can tell, from the mere presence of the
modifierExtensions key, that extra caution is needed here, without having to understand the
extension itself. That is also why FHIR (hl7.org/fhir), where this pattern comes from, carries
modifierExtension as its own, separate array instead of a flag within an ordinary extension:
"A system SHALL NOT modify a resource or element if the resource... has child 'modifier'
extensions it doesn't understand," while ordinary extensions are explicitly allowed to be
ignored by whoever doesn't recognise them. CEXF adopts the underlying principle here, not FHIR's
full mechanism built for a clinical-data format. One flat key-to-JSON-value field is enough at CEXF's
scale.
R9.5.3 Why modifierExtensions exists while nobody uses it (§9.5)
No meaning-changing extension exists today, and that isn't a shortcoming. No party, including Celestium Exchange, populates this field at this time. It exists solely so that a future, meaning-changing extension doesn't run into an already-closed door (§9.3's unconditional promise), and so that every reader building against the specification from now on already has the refusal duty built in, long before the first such extension actually appears.
R10.1 Why an invalid informative member keeps its record (§10, row E5)
Under a stricter rule, one empty familyName would cost the whole subject with all its charts.
That is out of proportion. The error sits in a description, and the data that decide the
chart (the moment, the place, the type, the zodiac) are intact. A reader that discards the record
destroys data that the user can no longer find in the file, in return for a field that carries no
calculation. A reader that keeps the record and reports the member loses the description and
nothing else, and the user can repair the description by hand.
The rule therefore works per member and not per record. A member is informative when no
calculation, no identity and no reference depends on it: a name, a note, a label, the name of the
time zone, the source of the data, a variant of the nodes. The same fault in a defining member
still costs a record: TV-58 (a blank label of a derived chart) keeps the chart and TV-250 (a
blank label of a life-event, which defines it) does not; TV-59 (a blank timeZone) keeps the
chart and TV-246 (a blank zodiacSystem) does not.
Three details follow from the rule. A subject or folder whose name is blank gets a name from the reader, because a record without a name cannot be shown, and the reader writes that name back and never the blank text, so that the next program is not handed a file its own validator rejects. A source that has lost all its members goes as a whole, because an object with none of them records nothing (TV-103). A note that has lost both its title and its text is a note that conveys nothing, and row NO1 takes it (TV-27).
Further details follow from the same rule.
- A third kind of member. A calculation parameter (row CH5) is not a description: it changes the chart that the reader calculates. Nor does it make the record unusable: the reader has a choice of its own for it. So it has a row of its own, which names the choice that the reader used.
- An invalid informative member is absent for every other row. If a
kindof""still fired SU3, one fault would owe two notices, and a reader that reads the member as absent would owe a notice for a value it never used. Only the E5 notice remains, and it comes last in the record. - A key of
extensionsormodifierExtensionswhose value isnull. The key conveys nothing, and every other key of the map is a value that the preservation promise of §9.3 still covers. So only that key falls away, and its own pointer says so. AmodifierExtensionsthat has no key left is empty and refuses nothing (row CH2). - The order of the notices of one record is fixed, so that two readers give the same list for the same document (§10.2, step 5c).
- The replacement of a required informative member. A reader that writes the file back must
put something valid there. The format does not choose a name for it: any value that passes the
schema and changes no behaviour will do, because the moment is
utc. - A key that the chart type does not use. A reader that ignores a key has not read its value, so
only the JSON type is checked: every value in
parametersis a text, and a number is a fault of the writer that is reported (E5). - The depth limit. 64 levels is the floor that every reader reads. A higher limit conforms.
R10.1a What readerOutcome in the test vectors tracks (§10.1)
What readerOutcome in the test vectors tracks. readerOutcome is derived from the outcome
class of the vector's row: accept for class accept, reject for every other class. It
tracks whether the record is used, never whether it is kept. That is why TV-29 (unrecognised
type, set aside) is accept and TV-38 (unrecognised modifierExtensions, refused) is
reject, even though both are written back unchanged. Reading reject as "the data is gone" is
the mistake to avoid. The vector fields outcomeClass and target carry the class and the
target named in the rows below.
R10.4 Why a reader rounds and reports instead of truncating (§10.4)
A reader that cannot hold a precision rounds and reports (§10.4); it never truncates silently. That silence is the mistake the precision requirement on age
guards against: a writer rounding a value with fifteen significant digits down to thirteen
without anything, in the file, in a log, anywhere, stating that something was lost.
R10.5 Versioning: the closed root object, and why four chart types already sit in version 1 (§10.5)
Why the root object is closed. cexf-schema.json closes the root object, so an unrecognised top-level key is a validation error. That strictness is deliberate and worth keeping, because it is what catches a writer that emits subjcts instead of subjects, which is otherwise a silent data loss for every reader that follows the "ignore what you don't know" rule.
Why a reader validates only against a version it knows. A file from a newer version is expected to fail the schema of this version, while row F3 tells a reader to read it anyway. The two rules look like they contradict each other, and they do not. A reader that skips this distinction and validates everything against its own schema will refuse exactly the files the version rule was written to keep readable.
Why four chart types already sit in version 1. That is why relocation, planet-return, group-composite, and electional (§6.3) already sit in version 1 instead of waiting for a future version break: they fit within parameters, parents with a role, and new type keys. None of the four touches the envelope itself. Future extensions in the same spirit (for example, generic ingresses into an arbitrary sign, or non-prenatal lunation/eclipse charts) are expected to fit the same way.
R11 Why positions and houses are not carried (§11)
This format carries no calculated planetary positions or house cusps. In Celestium, when a composite chart is opened, Celestium recalculates the positions fresh from the two parent natal charts, and does not use any previously stored positions for that. Positions are thus everywhere a cache, not a source datum, and a non-trivial amount of data per chart. Everything needed to recalculate a chart (moment, place, and for some kinds a small number of parameters, §6.4) is already in this format; the resulting positions belong not in an interchange file but in the calculation step that follows it.
R14 Why there is a choice to make when exporting (§14)
In Celestium, the house system is a single setting for the whole application, and you switch it at any moment. That's by design. You view the same chart briefly in Placidus and then in Whole Sign, with nothing about the chart itself changing. There's even a display with two wheels side by side, in which you compare two house systems at once.
Most other programs work the other way around. There, the house system belongs to the chart and is fixed the moment you save it. The moment you export, you therefore freeze something that was fluid for you. Which setting ends up in the file is a real choice, and no one but the user can make it.
As long as it stays limited to this one field, the question is small. But more hangs on where the file is going, and that's why exporting starts with that question instead of with a series of separate checkboxes the user has to understand one by one.
Why this isn't a field in the file
Nowhere in a .cexf file does it say what purpose it was written for. That's deliberate.
A reader doesn't need the distinction. Plain text is plain text, and a filled-in houseSystem is a valid value. Were it recorded there, a writer's choice would suddenly become
something a reader has to account for. That immediately raises the question of what a reader
should do if the flag doesn't match the content. That's the kind of baggage a format ends up
stuck with years later.
If you want to record it for support purposes, that can go in the existing generator key.
That's free text by definition, and no one is allowed to base behaviour on it.
The ordinary way is a single choice for the whole export, defaulting to the user's global setting. That's correct in the vast majority of cases, because that's how the charts look in Celestium too. So no dialog box, but a visible and adjustable field on the export screen. Someone with no opinion about it walks past it without a second thought. Someone exporting for a colleague who works with Regiomontanus sees immediately what's going to happen and changes it right there.
Beyond that, it must also be settable per chart. That's not invented completeness. A horary question is traditionally cast in Regiomontanus, while that same person's natal chart sits in Placidus. Anyone sending both in one file, allowed to specify only one system, hands the recipient a wrongly drawn horary chart. In Celestium this goes unnoticed, because you switch with a single click there. In the other program, it's wrong.
Keep "one value for everything" the easy case in this. Anyone who wants nothing special specifies nothing per chart.