Celestium

Open format

CEXF: Celestium EXchange Format

Downloads (Markdown, JSON Schema, test vectors, zip): see the overview.

Version of this document: describes format version 1. Status: normative. This document is the specification of format version 1. Celestium Exchange (Celestium-Exchange.exe) is the reference implementation; the naming note below says what that program is and how it relates to the main Celestium application.

Introduction

CEXF is an open file format for astrology data. A .cexf file holds subjects (people, events, countries and organisations), their charts and their notes, as JSON. This document is the specification of version 1, and its rules are normative. It is written so that someone without access to the Celestium source code can implement the format: every field with its meaning, whether it is required, its range and an example, and explicit rules for what a reader does when something does not check out.

Four files go with this document, all under https://celestium.nl/cexf/v1/:

  • CEXF-AT-A-GLANCE.md, informative: one page with the data model, the main fields, a minimal file and what a reader and a writer minimally do;
  • CEXF-GUIDE.md, informative: a quick start, the rationale behind the rules, the worked examples, a full example file, the explanation of the test vectors, the Glossary and Appendices A to D;
  • cexf-schema.json, a JSON Schema that checks structure;
  • cexf-test-vectors.json, documents that are demonstrably valid or demonstrably wrong, to hold a reader or writer up against.

A short introduction explains why the format exists, what a file contains, and the design choices that tend to raise questions. It exists in Dutch at celestium.nl/cexf/ and in English at celestium.nl/en/cexf/. The introductions are not the specification: they carry no field rules, ranges, patterns or error handling, and they point back into this document's sections. If an introduction and this document ever disagree, this English document governs.

If you are new to the format, read CEXF-AT-A-GLANCE.md first, then the Quick start in the guide.

The table points to what the guide and this document hold elsewhere. It is informative and adds no rule.

Subject Where
Minimum support CEXF-GUIDE.md, "Minimum support"
How to read this document CEXF-GUIDE.md, "How to read the specification"
Why this format exists CEXF-GUIDE.md §R0
The smallest valid file: one subject, one chart, nothing but what is required The Quick start in CEXF-GUIDE.md and CEXF-AT-A-GLANCE.md
Plain-language explanations of the astrological terms CEXF-GUIDE.md, "Glossary". The normative definitions are in Terms
The full example file §12
The test vectors §12a
Notes on the reference implementation Appendix A
Notes for implementers, by language Appendix B
Names of ayanamsas in other programs Appendix C
Mappings to other formats Appendix D

Schema, names and location

A machine-checkable JSON Schema sits alongside this document, in cexf-schema.json. The schema checks structure (required fields, types, ranges, patterns); the rules no schema can express (arithmetic consistency, cross-references, what to do with an unrecognised value) are written here in prose and are normative: where the schema and this document disagree, this document wins.

The $id of cexf-schema.json (https://celestium.nl/cexf/v1/cexf-schema.json) is stable: it never moves, and a new version of the format gets a new path while the old one keeps working.

Two programs are both called "Celestium" here, and they are not the same thing. Celestium is the main application: it has no concept of a house system per chart, no subject kinds other than person, and doesn't use this format directly. Celestium Exchange (Celestium-Exchange.exe) is the separate exchange program and the reference implementation of this format: that program reads and writes .cexf files, and therefore does know concepts like houseSystem and kind, even though it can sometimes not carry them through into Celestium's own data model (see, for example, §7c). Everywhere else in this document, "Celestium" means the main application and "Celestium Exchange" specifically means the exchange program; wherever that distinction matters, it is spelled out explicitly.

License. See the dedicated "License" section immediately below. This declaration is the full, normative one; the other documents point back to it.

Canonical location. This format is published on a public website about Celestium. The specification, the schema and the test vectors of version 1 live under https://celestium.nl/cexf/v1/ (CEXF-SPECIFICATION.md, CEXF-AT-A-GLANCE.md, CEXF-GUIDE.md, cexf-schema.json, cexf-test-vectors.json). The Dutch introduction is at https://celestium.nl/cexf/ and the English introduction at https://celestium.nl/en/cexf/. The URLs under /cexf/v1/ never move. A new version of the format gets a new path. Anyone who comes across this file loose somewhere (copied into another project, forwarded as an attachment) can find the original there, along with any newer versions.

Feedback and versioning policy. See the "Feedback" section at the end of this document for the contact address/form on that website where a gap or an extension proposal can be reported, and for how version numbering relates to additive changes versus changes that alter meaning (§10).


License

Implementing this format (writing software that reads or writes .cexf files) requires no permission and no payment from the rights holder. Copyright protects the wording of this document, not the format it describes.

© 2026 Timothy van der Ham. Rights holder: Timothy van der Ham.

The specification, the overview, the guide and the introductions. This specification document, its overview CEXF-AT-A-GLANCE.md, its guide CEXF-GUIDE.md, and the introductions to it at https://celestium.nl/cexf/ (Dutch) and https://celestium.nl/en/cexf/ (English), are made available under Creative Commons Attribution 4.0 International (CC BY 4.0): SPDX-License-Identifier: CC-BY-4.0. You may share and adapt them for any purpose, including commercially, provided you give appropriate credit, link to the license and indicate whether you changed anything. A suitable credit names the document you use, with its title and its URL. For this document it reads: "CEXF: Celestium EXchange Format, © 2026 Timothy van der Ham, https://celestium.nl/cexf/v1/CEXF-SPECIFICATION.md, licensed under CC BY 4.0." The overview, the guide and each introduction give the credit for themselves. A specification document is read, not copied wholesale into other projects, so an attribution requirement costs little here and gives the rights holder reasonable recognition.

Code examples and JSON fragments in the text. The code examples and the JSON fragments and example files printed in these documents are made available under Creative Commons CC0 1.0 Universal: SPDX-License-Identifier: CC0-1.0. They exist to be copied.

The schema and the test vectors. cexf-schema.json and cexf-test-vectors.json (see §12a) are likewise made available under CC0 1.0 Universal: SPDX-License-Identifier: CC0-1.0. Schema and test-vector files are typically copied verbatim into other projects' repositories; a per-file attribution requirement there would be pure friction with no compensating benefit, so CC0 removes it entirely.

What this license does not cover. It covers only the texts and files named above. It does not cover the Celestium or Celestium Exchange source code. No rights are granted here to either program's source code, which remains all rights reserved. Nor does it reach into any .cexf file you create: a .cexf file you produce, including one carrying your own or a client's birth data, is not covered by this license in any direction, and this declaration makes no claim of any kind on such a file.

Names. Product names in these documents (other astrology programs, libraries, standards bodies) are trademarks of their owners and are used only to say what they are. "CEXF" and "Celestium" are names of the rights holder's format and programs. They are not licensed: the license gives no right to use either name for a product of your own or to suggest that the rights holder endorses it. Saying that your software reads or writes CEXF is fine.

People in the examples. All persons in the examples and in the test vectors are fictitious. Any likeness to a real person is accidental.


Conformance and conventions

This section is normative. It defines the words the rules use, and it says what a conformant writer and a conformant reader must do.

Key words

The words must, must not, should, should not and may, and the words required, recommended and optional, are to be read as in BCP 14 (RFC 2119 and RFC 8174), with one deliberate difference: BCP 14 gives them force only in capitals, and here they are normative in every spelling, in capitals or not. They carry requirements only in this section, in the numbered sections, in the tables of these sections and in §10. The introduction, the table of related documents, the examples, the pointers to the guide, the Glossary, the appendices and the descriptions in §12a are informative: they explain a rule, they do not add one. An example is never a rule, and a value that appears only in an example is not a registered value.

Documents

A .cexf document is a JSON text under RFC 8259, encoded as UTF-8. A writer must not emit a byte order mark; a reader ignores one leading byte order mark. A writer must emit documents that meet the I-JSON profile (RFC 7493) in these respects: no two members with the same name in one object, no unpaired surrogate in a string, and every integer (version, id, sequence, subject) within the range from -(2^53)+1 to (2^53)-1. A reader must be able to read integers within that range exactly. An integer outside that range is a value of the wrong type (§10, row E1, or row E5 for an informative member), with one exception: version may have any size, and a version beyond the range is higher than the version the reader knows (row F3). Nesting depth: the root object is level 1, and every object or array that is a value inside a container is one level deeper than that container. Strings, numbers, booleans and null add no level. A reader must be able to read a document that nests at least 64 levels deep; a document that nests deeper than the reader accepts gives row F1, as an implementation limit. The limit is the reader's own choice, from 64 upward: every limit of 64 or more conforms. A string may contain the escape of a lone surrogate: that is valid JSON text, the file stays, and a reader whose string type cannot hold a lone surrogate replaces it by U+FFFD and reports that (§10, "Reader-specific limits"). A round-tripping reader that kept a lone surrogate writes it back as the same \u escape (kept); a reader that replaced it writes U+FFFD. Document order is the order in which elements appear in the JSON text; it is the order of elements in an array.

What a writer must do

A conformant writer produces only conformant documents: the document validates against cexf-schema.json and satisfies every rule in this specification that the schema cannot express (the identity in §7.3, unique ids and sequences, references that resolve, the rules for time per chart type in §7). A writer must not write null for a field that does not explicitly allow it, must not write an empty string, and must write a derived chart's required parameters. It must also write each calculation parameter of §6.4 whose value it knows. A writer should follow the recommended order of §4.5. A writer that writes a value that is not registered uses it only when no registered value fits, and then expects readers not to recognise it.

What a reader must do

A conformant reader applies §10 to every document: for every situation named there it produces the outcome class, the target and the notice that the row gives, and the write-back that the row gives if the reader also writes. A reader never crashes on input, whatever the input is. A reader may be partial in what it uses (for example a reader that shows charts but calculates nothing), but it never claims a record is used that it did not use, and it never changes a value without a notice.

A round-tripping reader is a reader that also writes: it reads a document and writes a document from what it read (an importer that exports again, a converter, a tool that passes a file along). It must satisfy the write-back column of §10. A reader that only displays or calculates has no write-back duty.

A round-tripping reader is also a writer, but what the write-back column of §10 says is kept is exempt from the writer requirements above that the document validates and that references resolve: it is written back as it was read, also when it breaks the schema or points nowhere. In particular, row F3 keeps version as it was read, also when it is higher than the version the writer knows.

A reader that calculates nothing does not apply rows CH5 and CH13, and applies every other row, CH19 included. Of row CH17 it has only the cases that apply to every reader (the row names them).

Terms

  • Record. A folder entry, a subject, a chart, a note, or one entry of parents (a reference). The target of an outcome is the record it applies to, or the file.
  • Outcome class. The result of applying a §10 row, one of four values:
    • accept: the record is taken up in the reader's model, possibly with a notice, a fallback value, or as set aside (§10.1).
    • skip-record: the record is not used and the rest of the document is read as normal. The target is a folder, a subject, a note, a reference, or a chart that is refused (kept for write-back). The row says whether the record is kept or dropped on write-back.
    • discard-chart: a chart is not used and is not written back. A chart that is not used and not kept is always this class; for every other record the class is skip-record.
    • refuse-file: the whole file is refused and nothing is read from it.
  • Notice. A message to the user, produced while reading one document, that states which row applied (its identifier), which record it concerned (the kind of record and its id, its sequence or its name), and, when a value caused it, the field name and the value found, shortened to 100 Unicode code points. A notice does not stop the reading. It is available to the user during or after the reading, in the user's language; a reader without a user interface returns it with the result. "One notice per record" means one notice for each record that the row concerns. "One per file" means one notice for the whole file, naming how many records it concerns.
  • Kept, dropped. For a round-tripping reader: kept means the JSON value of the record is written back with the same members and the same values (member order and whitespace may differ; the text of a number does not change); dropped means it is not written back. The value of an unrecognised key of extensions or modifierExtensions is the exception to the whitespace rule: a reader that writes a .cexf document writes its original text, whitespace included (§9.3). A reader that does not store a member of a record that is kept (Reader-specific limits) writes the record back without that member: for that member alone the write-back is dropped.
  • Registered, recognised, unrecognised. A value is registered when this specification lists it: a type key of §6.2, a value in a register of §5.2, §6.4, §7.9, §7c.2, §7c.3 or §7c.6, a kind of §4.2, a role of §8, a format of §7b. A reader recognises every registered value, and it may recognise further values that it knows from a later version of a register. Every other value is unrecognised for that reader. The rows of §10 speak of recognition: they apply to a value the reader does not recognise. The test vectors assume a reader that recognises exactly the registered values.
  • Fully recognised. A key of modifierExtensions is fully recognised by a reader when the reader knows everything the key prescribes and applies all of it. A reader that knows the name of the key but not all of what it prescribes does not fully recognise it.
  • Blank string. A string that is empty or consists only of the 25 code points that have the Unicode White_Space property: U+0009 to U+000D, U+0020, U+0085, U+00A0, U+1680, U+2000 to U+200A, U+2028, U+2029, U+202F, U+205F and U+3000. No other code point counts as white space, also not U+200B, U+FEFF or U+180E.
  • Present, absent. A member is present when the key appears in the object, whatever its value; it is absent otherwise. null is a value, and it is allowed only where a field says so: the parentId of a folder and the folderId of a subject. A null anywhere else is row E1, or row E5 where the member is informative, or row E4 where the member is one that this version does not define (at a higher version, F3). A null as the value of an unknown key of parameters is row E5, not row E4: a key of parameters is not such a member. A null as the value of a key in extensions or modifierExtensions is row E5 as well, and only that key is not recorded.
  • Informative member, defining member. An informative member is one of the members listed in the table "Informative members" in §10.3. Its value never decides which records a reader uses or what it calculates: an invalid informative member is not recorded, and the record that carries it stays. Every other member, except a calculation parameter, is a defining member (an id, a reference, the moment, the place, the chart type and the parameters that define it, the zodiac system, the ayanamsa, the frame, the elements of parents). modifierExtensions is a defining member, except for a key whose value is null: that key is informative (row E5). An invalid defining member costs a record, by the rows E1, E2, E3, CH3, CH4 and CH8 (RF5 for an element of parents).
  • Calculation parameter. One of the keys key, method, aspects, latitude, angles, houses and houseAnchor of parameters (§6.4), on a chart type that uses it. It is neither a defining nor an informative member: it says which variant of a technique the chart was calculated with, and does not decide whether the chart is read. Its faults are row CH5 (§10.3).
  • Integer. A JSON number whose value, after the number text has been converted to the nearest binary64 value (Terms, "Comparison of numbers"), is finite and whole, as in JSON Schema: 1.0 and 3.6e3 are integers, 1.5 is not, 1.0000000000000001 converts to 1 and is the integer 1, and 1e400 converts to infinity and is not an integer. A number with a fractional part where an integer belongs has a type the schema does not allow (§10, row E1, or row E5 for an informative member). An integer that is read exactly is within the range from -(2^53)+1 to (2^53)-1; that bound applies to integer fields only, and version is the exception (see "Documents").
  • Comparison of strings. Every comparison of strings in this format (register values, keys, format, role, kind, zone IDs, body) is made on exact Unicode code points: no case-folding and no Unicode normalisation. The one exception is the four tag names of bbcode-basic, which match in upper or lower case (§7b).
  • Comparison of numbers. One number model holds for the whole specification. Every check on a number, a check of a range or a limit and the check whether it is an integer as well, uses the value after the number text has been converted to the nearest IEEE 754 binary64 value (I-JSON, RFC 7493): 90.0000000000000001 is read as 90. A validator that calculates with decimal numbers converts the number to the nearest binary64 value first. A number that converts to infinity (1e400) lies outside every range: row E2 for a field with a range, row E1 for an integer field, row F2 for version. An informative number that converts to infinity in binary64 is not recorded (row E5) and the record stays. A number inside the value of a key of extensions or modifierExtensions is the vendor's content: it is not checked, also when it converts to infinity, and no row fires for the number itself.
  • Rounding. Where this specification says to round, it rounds to the nearest value, and a tie rounds away from zero.
  • Known version. The highest version that the reader implements. This document describes version 1.
  • Chart as written. The charts of a subject as they appear in the document, before any chart has been discarded.
  • Register. A list of values to which this specification gives a name. A register is open: a value that is not in it is structurally valid and is handled by the row of §10 that names the field. It is never read as the value of a nearby entry. The open registers are the subject kind (§4.2), the chart type (§6.2), the keys of parameters and the values of body and of the calculation parameters (§6.4), source.kind (§5.2), time.standard (§7.9), zodiacSystem, ayanamsa and houseSystem (§7c.2), frame (§7c.3), lunarNode and blackMoon (§7c.6), the role of a reference (§8) and the format of a note (§7b). A kind or a format that is not registered is handled by the row that names it (SU3, NO3), a lunarNode or blackMoon by row CH20. The role stays fixed per chart type: each type takes one of the two registered roles (rows RF1 and RF2), so an unregistered role is always row RF1.
  • Closed list. A list of values outside which a value is invalid: sex, source.rating, time.sourceCalendar, customAyanamsa.model, parameters.direction and parameters.point. §10 gives the row that applies to each.

Time

All dates and times in this format are dates of the proleptic Gregorian calendar and the 24-hour clock of ISO 8601, also before 15 October 1582. A source that uses the Julian calendar for an early date converts the date before writing. Years before 1 AD are written with a minus sign (§7.10). See §7.


1. Basic principles

  1. JSON, UTF-8, a version number inside the file. A single root object with a format key and a version key (see §2). A reader that encounters a higher version than it knows must be able to recognise that fact and still read as much as it can. See §10, "Versioning."
  2. Its own stable, English keys, not the internal names of any program. The keys are in the spirit of solar-return, solar-arc, secondary-progression; see §6.2. Which chart types Celestium has is in Appendix A.
  3. Every key in the file itself is English, even though the source code of the reference implementation (Celestium Exchange) is Dutch-language. Free-text values (names, notes, labels) may be in any language: they are user data, not format keys.
  4. Time: four fields, not three. See §7. This is the most important departure from an "obvious" design and deserves its own section.
  5. The core entity is called subject, not person. See §4.1.
  6. Positions and houses are not carried. See §11.
  7. A reader must never crash on an unrecognised value, a missing optional field, or a chart that fails to resolve. Exactly what "never crash" means in each situation is spelled out in §10, "Error handling."
  8. Field disposition: required, optional-with-a-documented-absence-meaning, or an explicitly allowed null value, never an implicit guess. Worked out immediately below, because this principle applies to every field in the rest of this document.

Field disposition, worked out. Every field in this format is exactly one of three things:

  1. Required. Must be present with a non-null value that satisfies the type.
  2. Optional, with a documented meaning for absence. This specification text, not merely a description in the schema (which isn't normative for many validators), states what "this key is missing" means, and it is always one of: a default value (e.g. altitude → 0), "no opinion/unknown" with no implicit default (e.g. houseSystem), or "not applicable in this context" (e.g. ayanamsa without zodiacSystem: "sidereal").
  3. null is, by default, not allowed on an optional field. A writer omits the key rather than writing null. null is only allowed where this specification explicitly says so, per field, with its own meaning spelled out in so many words. That meaning may coincide with the absence meaning (as is already the case for Folder.parentId/Subject.folderId, where absent and null both mean "at the root") or may deliberately differ from it.

A default value is a statement, not an absence of opinion. Where this specification gives an absent field a default value, a document without that field states that value. The fields concerned are kind (person), altitude (0), unknown (false), zodiacSystem (tropical), ayanamsa (lahiri, on a sidereal chart), frame (geocentric), time.standard (zone), time.sourceCalendar (gregorian) and the format of a note (plain). A writer cannot use omission on these fields to say that its source does not record the value: a document that omits zodiacSystem says "tropical". A writer whose source does not record such a setting either writes the value it has reason to believe, or omits the field and so states the default. Both are conformant, and a reader applies the default in the second case without a notice. The fields that mean "no opinion" or "not recorded" when absent are all the others: houseSystem, sex, source, time.dstOffset, the calculation parameters of §6.4, location.countryCode, location.region, the createdAt of a note, and time and location on a chart of a kind that allows them to be absent (§5). A reader never fills one of these in.

This is a static interchange file, not a patch/diff protocol: the convention from RFC 7396 (JSON Merge Patch), where null means "delete this field" and absence means "leave unchanged," does not apply here and must not be assumed by anyone.

The same discipline applies to an empty string versus an omitted key. The rule: every string field in this format, required or optional, is either absent from the document entirely, or carries at least one character. An empty string is never a valid value in this format: every string field in the schema is constrained against emptiness, by minLength: 1 or by a pattern that cannot match an empty string. The single exception is a value inside parameters under a key this version does not define, which stays unconstrained because that map must accept keys and values this version has never heard of. Rows E3, E5, CH5 and CH7 settle a blank value inside parameters. A writer that means "no value" omits the key (for an optional field) rather than putting an empty string there; for a required field where no meaningful value exists, the subject/chart isn't complete enough for that field to be included at all. Rationale: see CEXF-GUIDE.md §R1 (informative).

Personal data. A .cexf file carries personal data: names, birth data and notes, often of people other than the user. Three kinds of content can reveal more than the writer means to give away: the free text of notes (on a subject and on a chart), the tags, relations and other identifiers that a vendor puts in extensions on a subject, and the names of life events (the label of a life-event chart). Such content can contain special categories of personal data in the sense of Article 9 of the GDPR, for example data about health, sexual life or religion. The format does not filter this content and cannot. What goes into a file, and where the file goes, is the responsibility of the person and the program that write and pass it on. For this reason the format defines no closed vocabulary of values for event types, tags or any other field in which a health condition, a diagnosis or a similar category could be named, and no register of that kind will be added.


2. Root object

Field Type Required Meaning
format string yes Always literally "cexf". Self-identification for a generic JSON reader.
version integer yes Format version. Current value: 1. See §10, "Versioning."
generatedAt string, UTC timestamp no Informational: when this file was written, in the form YYYY-MM-DDTHH:MM:SS, optionally followed by a period and 1 to 7 fractional digits, ending in Z or +00:00, with a year from 1 to 9999 without a sign (§7.10). A value outside this pattern, or one that matches it and is not a date and time of the proleptic Gregorian calendar (the pattern checks the form, the calendar must also be right), is row F4. Absent means "not recorded by the writer"; no behaviour depends on this (see below).
generator string no Informational: name/version of the writing program, e.g. "Celestium Exchange 1.7.0". Absent means "not recorded by the writer," same as generatedAt.
folders array of Folder no If absent, an empty list is assumed: the source has no concept of folders.
subjects array of Subject yes May be empty.
{ "format": "cexf", "version": 1, "folders": [], "subjects": [] }

That's the skeleton with both arrays empty, which is itself schema-valid; §3 shows a filled-in folders entry, and §12 shows both arrays filled with a full worked example. The remaining two root fields, shown here with realistic values:

{
  "format": "cexf",
  "version": 1,
  "generatedAt": "2026-07-26T10:00:00Z",
  "generator": "Celestium Exchange 1.7.0",
  "folders": [],
  "subjects": []
}

generatedAt/generator exist purely for diagnostics ("which version produced this file, and when"): a reader must never base any behaviour on them beyond display/logging.

File extension and media type. The recommended file extension is .cexf. For anyone serving this format over HTTP, the recommended Content-Type is application/vnd.celestium.cexf+json: a vnd. tree name (unofficial, vendor-specific) with the +json structured-syntax suffix from RFC 6839, so that any generic JSON client can at least parse the file as JSON even without recognising the specific type. This is a recommendation, not a formal IANA registration. The latter is deliberately out of scope for this version, but costs a future registration nothing to have this as its starting point.


3. Folder

A folder is optional: plenty of sources have no concept of a folder structure at all (AAF and Quick*Chart in Celestium's own importer, for instance, each deliver a flat list).

Field Type Required Meaning
id integer yes Unique within this file, not a database id. A purely local key that Subject.folderId points at.
name string yes Display name. It is informative (§10, row E5): a folder whose name is absent, blank or not a text stays, and the reader gives it a name of its own.
parentId integer or null no Reference to another Folder.id. If absent (or null), the folder sits at the root. A value that is neither an integer nor null is not recorded (row E5): the folder sits at the root.
protected boolean no The folder was access-protected at the source. Absent means the same as false. A value that is not a boolean is not recorded (row E5). See below: this field carries no secret.
{ "id": 1, "name": "Clients" }

Celestium itself caps folder nesting at two levels, but that is a choice made by Celestium's UI, not a requirement of this format. A reader may accept arbitrary nesting depth; a writer never needs to nest deeper than its own model allows.

3.1 protected: a lock is recorded, never carried

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. protected: true records that a lock existed and nothing else. What a reader does with the flag is its own business, but it must not treat the flag as a reason to invent a code, or to refuse the folder. The field never round-trips a value: whether the flag survives an export, an import and a second export depends on whether the receiving side set a new lock.

Rationale: see CEXF-GUIDE.md §R3.1 (informative).


4. Subject

4.1 Why subject and not person

Rationale: see CEXF-GUIDE.md §R4.1 (informative).

4.2 Fields

Field Type Required Meaning
id integer yes Unique within this file, not a database id. The key that ChartReference points at.
kind string no One of person, event, country, organization, horary. If absent, person is assumed. A blank value, or one that is not a text, is not recorded (row E5) and the subject is read as a person. See §4.3 and §4.4.
displayName string yes The one name that carries meaning for every kind. On a subject with kind: "horary" it names the chart and does not record who asked (§4.4). It is informative (§10, row E5): a subject without a usable displayName (absent, blank or not a text) stays, and the reader chooses a name of its own.
givenName string no Given name. Only meaningful when kind: "person". Absent means "not filled in": the format does not distinguish "unknown" from "not applicable", and displayName remains the only name that is guaranteed to carry meaning.
namePrefix string no Name prefix / infix, e.g. "van der", "de". Only meaningful when kind: "person". Absent means "no prefix".
familyName string no Family name. Only meaningful when kind: "person". Absent means "not filled in", as for givenName.
sex string, "male" or "female" no The sex of the person as the source recorded it. Absent means "not recorded": no value is ever assumed. A value outside the two, or one that is not a text, is not recorded (row E5). Only meaningful when kind is person; on any other kind a reader does not use the field (§10, row SU6).
folderId integer or null no Reference to Folder.id. If absent, the subject sits at the root. null is explicitly allowed here and means the same as absent; both are equally valid ways of saying "at the root," see the field-disposition principle in §1.
notes string no A free-text note about the subject itself. Not the same as the per-chart log notes (§7b, the notes field of Chart). Absent means "no note recorded about the subject."
extensions object (string→JSON value) no Vendor extensions on the subject, under the same rules as the extensions of a chart (§9): reverse-domain keys, and every key a reader does not recognise is kept when it writes the document back. Intended for relations, tags, birth names or pseudonyms and external identifiers, so that none of them needs a new format version. Absent means "no vendor extensions on this subject."
charts array of Chart yes At least one chart, with exactly one chart at sequence 0.

A country or organisation has no given name. Don't invent empty fields for that; just leave givenName/namePrefix/familyName out. Only displayName is universal.

Which members of a subject decide anything. Only id and charts decide whether a subject is read. The other members are informative (§10, row E5): kind, displayName, sex, givenName, namePrefix, familyName, folderId, notes and extensions. An invalid one is not recorded, the reader reports it once, and the subject stays.

{
  "id": 4,
  "kind": "country",
  "displayName": "Netherlands",
  "charts": [
    {
      "sequence": 0,
      "time": {
        "utc": "2000-01-01T00:00:00Z",
        "timeZone": "Europe/Amsterdam",
        "localTime": "2000-01-01T01:00:00",
        "utcOffset": "+01:00"
      },
      "location": { "latitude": 52.3702, "longitude": 4.8952 }
    }
  ]
}

charts needs at least one entry, with sequence 0 as the primary chart (§5); the one shown here is a placeholder, not a claim about any real event. §12 works through a fully worked kind: "country" example (the Peace of Münster) with a real historical date.

4.3 An unrecognised kind value

A reader that encounters a kind that is not one of the five known values (for instance, written by a later version of this format that adds a sixth kind) must not fall over. It handles the subject as generically as possible:

  • displayName remains usable regardless: that field carries meaning for every kind.
  • Name components (givenName and so on) may be shown if present, exactly as for person. That is the most permissive behaviour and causes no data loss.
  • It must not assume any behaviour that this specification ties to a specific kind elsewhere.

This generic handling is about how the subject is treated, and is separate from the question of whether a reader that writes into a different data model can preserve the kind value itself. A reader that cannot (such as Celestium Exchange on import into Celestium, which only knows person) reports that; see §10.

4.4 kind and type are two independent axes: don't confuse them

This is a confusion that arises even with careful use, so it's made explicit here on purpose: subject.kind and chart.type (§6) answer two different questions and must not be used interchangeably.

  • subject.kind says what the chart is about: a person, an event, a country, an organisation.
  • chart.type says what kind of chart it is: a solar return, a horary question, a composite, a mundane chart, and so on. See the full list in §6.2.

The two combine freely, and no combination is invalid. Examples of combinations are in CEXF-GUIDE.md §R4.4 (informative).

The querent, and kind: "horary". A chart of type horary under a subject with kind: "person" means one thing: that person is the querent, the one who asked the question. It says nothing else about that person. The horary chart is not that person's birth chart, and it never supplies birth data for them. Under a subject of another kind the format records no querent either. A subject with kind: "horary" is a standalone horary question. Its sequence 0 chart is the question chart itself (so it carries no type, §5.1), and the querent is not recorded: the person who asked is not in the file, or is a subject that the file does not link to this one. A reader never derives birth data, a birth chart or the identity of the querent from a horary chart, in either of the two forms. A writer may put the querent's name in the displayName of a kind: "horary" subject; that still does not record the querent. The two words differ in one sentence: kind: "horary" says that the subject is itself a horary question, and type: "horary" says that a derived chart of some subject is a horary chart cast for a question that this subject asked.

A reader must never reject any combination. This format does not prescribe which chart kind belongs with which subject kind, because that differs by school and tradition. A reader that did enforce such a rule would exclude working methods it doesn't know about, and that is precisely what an interchange format must not do.

A worked example file: see CEXF-GUIDE.md §X4.4 (informative).

4.5 The order of subjects and folders

The order of the elements of folders and of subjects carries no meaning in this format. It decides one thing only: where a rule of §10 says "the first in document order" (FO1, SU1), the order settles which of two records with the same id stays. A conformant writer writes no such duplicates, so for a conformant document the order never decides anything.

A writer should write a document in the following order, and so should a reader that writes a document back:

  • (a) In the root object, folders before subjects, and every other member of the root before both of them.
  • (b) Every folder after the folder that its parentId names: the parent first.
  • (c) Within a subject, the charts in ascending sequence, so that the primary chart (sequence 0) comes first.

This is a recommendation. A document in another order is conformant. A reader must accept every order and must not rely on one: what a reader reads, reports and writes back never depends on whether the writer followed the recommendation (§10.2 fixes the order of processing). A record is still kept (§10.3) when writing it back changes the order, because kept concerns the value of a record and not its position in the array. The charts of a subject are identified by sequence, not by their position; their order matters only in row SU5.

The reasons: CEXF-GUIDE.md §R4.5 (informative).


5. Chart

Every subject has a charts list. Within that list:

  • sequence 0 is always the subject's primary chart: the birth chart for a person, the chart of the moment for an event, the founding/incorporation chart for a country or organisation.
  • Every other sequence number is a derived chart and must be unique within that subject. Sequence numbers need not be contiguous. For what a reader does when a writer breaks that uniqueness anyway, see §10, row SU5: the first chart in document order stays and each later one is discarded with a notice. Two charts both claiming sequence 0 are a different and stricter case, row SU4 in §10: that subject is skipped entirely rather than resolved by picking one.
Field Type Required Meaning
sequence integer ≥ 0 yes See above.
type string yes, unless sequence is 0 See §6. On sequence 0 it is never read, and a value that is not a text is not recorded (§10, row E5).
label string no (required for life-event) Free-text display name, e.g. "Radix" or "Solar Return 2026". For a life-event chart the label names the event and is required. Absent means "no custom label"; a reader may then show its own default name derived from type if it wants to. On every chart type but life-event a blank value, or one that is not a text, is not recorded (§10, row E5); on a life-event it costs the chart (row CH3).
time Time yes, except on composite, synastry and group-composite, and except on a chart whose type the reader does not recognise The moment of the chart. On a composite, synastry or group-composite chart a writer that has no source for a moment omits the member and never invents one (§7.7). A chart of a type the reader does not recognise is handled by row CH1 before any check for a missing time (a reader cannot know what such a kind requires). A blank type counts as unrecognised for this requirement: a missing time is then not row E2, and row E3 costs the chart.
location Location yes, except on composite, synastry, group-composite and life-event, and except on a chart whose type the reader does not recognise The place of the chart. Not derived from the subject, see §7a. On those four kinds a writer that has no place omits the member. A chart of a type the reader does not recognise is handled by row CH1 before any check for a missing location. A blank type counts as unrecognised for this requirement: a missing location is then not row E2, and row E3 costs the chart.
parameters object (string→string) no Chart-type-specific reconstruction data. See §6.4. Absent means "this chart kind needs no reconstruction data"; see §6.4 for which kinds that applies to. For a chart kind that does have required parameters (e.g. age on a direction kind), a fully absent parameters object is therefore structurally invalid, not a legitimate absence.
notes array of Note no Log notes on this chart (not on the subject). Absent means "no log notes on this chart"; an empty array ([]) means the same thing, and a writer may use either.
parents array of ChartReference no Parent charts (composite/Davison/group composite) or source chart (relocation), count and role depending on chart type. See §8. An empty array ([]) means the same as an absent parents.
extensions object (string→JSON value) no Vendor extensions, one per namespace key. See §9. Absent means "no vendor extensions on this chart."
modifierExtensions object (string→JSON value) no Like extensions, but for extensions that change the chart's meaning: reserved space, filled by no one today. See §9.5. Absent (or present but empty) means "no meaning-changing extension." Unlike with extensions, a reader must not ignore an unrecognised key found here.
zodiacSystem string no Zodiac system. See §7c.
ayanamsa string no Ayanamsa, meaningful only when zodiacSystem: "sidereal". See §7c.
customAyanamsa object no A custom ayanamsa instead of a registered one, meaningful only when zodiacSystem: "sidereal". Excludes ayanamsa. See §7c.5.
houseSystem string no House system. See §7c.
lunarNode string, open register no The variant of the lunar nodes that the writer used for this chart: mean or true. Informative; see §7c.6.
blackMoon string, open register no The variant of the Black Moon that the writer used for this chart: mean-apogee, osculating-apogee or interpolated-apogee. Informative; see §7c.6.
frame string, registered value no (default "geocentric") The reference frame of the positions this chart calculates. See §7c.3.
source object no Where the chart's data came from: a reliability rating, a free text, a kind of source, or any combination. See §5.2. Absent means "not recorded".

Which members of a chart decide anything. The members that decide what a chart is and what it calculates are sequence, type (on a derived chart), label (on a life-event), time, location (their members utc, localTime, utcOffset, unknown, latitude and longitude), parameters (the keys that define the chart type: number, age, direction, body and point, §6.4), zodiacSystem, ayanamsa, customAyanamsa, frame, parents and modifierExtensions (but not a key of it whose value is null, row E5). The calculation parameters of §6.4 are a third kind: they decide how the chart is calculated and not whether it is read (row CH5). All other members are informative (§10, row E5): an invalid one is not recorded, the reader reports it once, and the chart stays.

5.1 type at sequence 0

Sequence 0 is by definition the primary chart and therefore needs no separate type field. "What kind of chart is this" always has the same answer for sequence 0 ("this subject's primary chart"), regardless of whether the subject is a person, a country, an event, or an organisation. That also avoids the awkward situation of a non-person carrying a chart whose type value would literally be named "birth-chart."

A writer therefore omits type at sequence 0. If it does appear (say, a writer that always fills in a type for clarity's sake), a reader ignores it at sequence 0; at most it's noise there, never an error.

5.2 source: where the chart's data came from

{ "source": { "rating": "AA", "text": "Birth certificate, seen by the astrologer." } }
Field Type Required Meaning
rating string, exactly one of "AA", "A", "B", "C", "DD", "X", "XX" (capitals, case-sensitive) no A Rodden rating: a letter code that astrological data collections use to grade how reliable the birth data is. This format records the letter and does not interpret it; no calculation depends on it.
text string, at least one character no Free text naming the source of the data.
kind string, registered value no The class of the source of the data. An open register, see below.

At least one of rating, text and kind is present: an object with none of them is invalid and is not recorded (§10, row E5). source is a field of the chart, not of the subject, because different charts of one subject can rest on different data. A value of rating outside the list, or one that is not a text, is invalid: it is not recorded and it is reported (E5); it is not "unrecognised and ignored". The members of source are informative: an invalid one is dropped alone, with a notice of its own that names the member (row E5). When no valid member is left, source goes as a whole, with one more notice that names source. A source that holds only an unknown member goes as a whole too: an unknown member is not a valid one. The chart stays.

kind classifies, text names. kind carries only the class of the source. Everything the source says in words, the primary source and the route by which the data reached the writer (the fields #SRC field 2 and #VIA of AAF'97, for instance), goes into text and never into kind. How a converter joins two such statements into one text is its own choice. rating and kind are independent of each other.

The register of kind. The values classify the source of the date and the hour of a birth, after the grading of data reliability that AAF'97 carries as the first field of #SRC (the Taeger classification). A writer writes a value only where its source states that class, and never converts one class into another. Each value has the meaning given here and no other. The register is open: a reader that does not recognise a value keeps it and issues no notice (§10, row CH18).

Value Taeger code Meaning
civil-record 1* The date and the hour come from an entry in a civil register, a birth register, a baptism certificate, a hospital record or a church register.
family-bible 1F The date and the hour come from an entry in a family Bible.
professional-astrologer 1 A statement by a professional astrologer about their own birth time. Such statements mostly rest on careful research: civil registration, investigation or rectification.
mother 2M A statement by the mother.
father 2F A statement by the father.
personal 2P A personal statement or an autobiography.
biography 2B A biography.
relatives-or-friends 2R Information from relatives, a spouse or friends.
source-not-stated 3 The compilation the data came from does not state a detailed primary source. The data may belong to a class 1, 2 or 4.
speculative 4 A speculative time, day, month or year, or data with several contradicting statements.

A worked example file: see CEXF-GUIDE.md §X5.2 (informative).


6. Chart types (type, only for sequence != 0)

See §4.4 first if the distinction between chart.type (this section: what kind of chart) and subject.kind (§4.2: what the chart is about) isn't clear yet. They are two independent axes that combine freely, for example a mundane chart on a subject with kind: "country", or a horary chart on an ordinary person.

6.1 Why its own keys

Rationale: see CEXF-GUIDE.md §R6.1 (informative).

Scope. CEXF fixes the input of a calculation (the moment, the place, the parents, age and direction) and the technique that was chosen. It does not fix the whole calculation rule: how a program carries out a technique in detail is the program's own, as is the ephemeris it uses. Where a variant really gives another chart and programs offer it explicitly, a chart carries an optional calculation parameter with a register (§6.4).

Design rule for future versions. A variant that changes the calculation itself, a different formula or a different outcome for the same input, gets its own type key and not a parameters value, with one exception: a calculation parameter of §6.4. A calculation parameter has no default. A chart that does not carry it says nothing about the choice (it is "not recorded"), and a reader that cannot calculate a registered value uses its own choice and says so, instead of guessing silently. The reasoning and two worked cases are in CEXF-GUIDE.md §R6.1 (informative).

6.2 The chart-type keys

These are the registered values of type. The register is open (§10, row CH1).

CEXF key Meaning
solar-return Solar return.
lunar-return Lunar return.
ingress Ingress of the Sun into one of the four cardinal points (the spring, summer, autumn and winter points; see the point parameter in §6.4). Ingresses of other bodies into an arbitrary sign are outside the scope of this version.
harmonic Harmonic chart (e.g. the 9th harmonic). Does not cover Vedic vargas; see §6.4, the paragraph just before "Policy on an unrecognised key."
primary-direction Primary direction.
secondary-progression Secondary progression: 1 day = 1 year. The international term of art is "progression," not "direction"; see §6.1.
solar-arc Solar arc direction: the true solar arc, the progressed Sun minus the Sun of the sequence 0 chart (§6.4).
transit Transit.
synastry Synastry (comparison of two natal charts); carries two parent charts, see §8.
composite Composite chart of exactly two subjects; carries two parent charts, see §8. For three or more: group-composite below.
horary Horary question.
mundane Mundane (political) chart.
davison Davison chart (time/space midpoint); carries two parent charts, see §8.
tertiary-progression Tertiary progression: 1 ephemeris day = 1 synodic lunar month (fixed: 29.53059 days) of life. The month length is fixed in this key, not a parameter; see §6.4.
minor-progression The internationally common "minor progression": 1 synodic lunar month (fixed: 29.53059 days) = 1 year of life; see §6.3.
sidereal-minor-progression Minor progression on the sidereal lunar orbit (fixed: 27.32166 days) = 1 year of life. Its own, unambiguous key alongside minor-progression because the international term "minor progression" is used for both the synodic and the sidereal month length; see §6.3.
prenatal-syzygy Prenatal syzygy: the nearest new or full moon before birth.
prenatal-lunation Prenatal lunation: specifically the last New Moon before birth, regardless of whether a Full Moon fell closer to the birth. To be distinguished from prenatal-syzygy above, which allows either.
prenatal-eclipse Prenatal eclipse.
relocation Recalculation of angles/houses for a different place, same moment as the source chart. Carries one source reference, see §8.
planet-return A generic planetary return (not Sun/Moon; those keep their own keys above). Carries a body parameter, see §6.4.
group-composite Composite chart of three or more subjects. Carries three or more parent charts, see §8.
electional Electional astrology: a chosen favourable moment for a planned action.
life-event A dated event in the subject's life (a marriage, a move, an accident), cast for that moment and place, for instance to test a birth time against known events. label is required and names the event. Carries no parents.
profection Annual profection: the subject's primary chart advanced by one sign for each completed year of age. Carries the parameter age in whole years (§6.4). Carries no parents; its base chart is the subject's sequence 0 chart.

Which of these chart types Celestium has is in Appendix A (informative).

6.3 Keys with no Celestium counterpart, and why they're already here

relocation, planet-return, group-composite, electional, minor-progression, life-event and profection are chart types that Celestium (the main application) does not know. A reader must never assume that "no counterpart in the application" is the same thing as "an invalid key": such a chart is handled by §10 (rows CH1 and CH17).

Rationale: see CEXF-GUIDE.md §R6.3 (informative).

6.4 Parameters per chart type

Most chart types need their own data to be meaningful. Without that data, type only says "what kind of chart this is," not "how this specific chart came about" (for example: which harmonic, at what age). That data lives in parameters: a flat, open string-to-string mapping on the chart object.

{ "parameters": { "age": "36.200000", "direction": "converse" } }

Rationale: see CEXF-GUIDE.md §R6.4 (informative).

Every key below carries exactly one meaning, for exactly the chart types it belongs to.

Key Value Required for Meaning
number positive integer as text, e.g. "9": digits only, the first one not 0, so no sign, no fraction, no exponent and no leading zero harmonic The harmonic number. Without this number a harmonic chart cannot be reconstructed: positions, after all, aren't carried (§11).
point "aries" | "cancer" | "libra" | "capricorn" optional for ingress Which cardinal point (spring/summer/autumn/winter) this ingress marks. Purely explanatory: the stored time is already the authoritative, calculated moment; this key only makes it legible which ingress it was. A value outside the four is row CH4.
age non-negative decimal number, culture-invariant with a period, and at least 6 digits after the decimal point, e.g. "34.500000" primary-direction, secondary-progression, tertiary-progression, solar-arc, minor-progression, sidereal-minor-progression Age in years at which the direction/progression is calculated. The direction is not carried in the sign of this number; see direction below. See the precision requirement right after the table.
age (for profection) whole number as text: "0", or digits without a leading zero, e.g. "36" profection The number of completed years of age to which the profection applies. The same key as the row above, with a different form: no decimal point and no precision floor. A profection has no direction.
direction "direct" | "converse" required for the same six direction/progression kinds as age, no implicit default Forward or backward direction/progression. See the translation rule below: this is deliberately not a sign on age. A reader that doesn't find this key, or finds it with a value other than direct/converse, discards that chart and reports it. It must never silently treat it as direct (see §10, and the design principle in §6.1 for why this may stay a parameter despite the value changing the calculation).
key, method, aspects, latitude text, see "Calculation parameters" below optional for primary-direction, no default How the arc of the direction is formed and how the direction is measured. A value outside the register is row CH5, a registered value that the reader cannot calculate is row CH17. The other direction/progression kinds each use a fixed rate, e.g. tertiary-progression: 1 day = 1 synodic lunar month (29.53059 days); sidereal-minor-progression: 1 sidereal lunar orbit (27.32166 days) = 1 year. See the explanation right after the translation rule below for why that month length itself isn't a parameter.
angles text, see "Calculation parameters" below optional for secondary-progression, tertiary-progression, minor-progression and sidereal-minor-progression, no default How the Ascendant, the Midheaven and the cusps of the progressed chart follow.
angles (for primary-direction) text, see "Calculation parameters" below optional for primary-direction, no default How the Midheaven of the directed chart follows, and with it the Ascendant, the cusps, the Vertex and the East Point. The same key as the row above, with its own register.
houses, houseAnchor text, see "Calculation parameters" below optional for composite and group-composite, no default How the houses of the composite follow. houseAnchor is read only with houses: "cusp-midpoints".
houses (for solar-arc) text, see "Calculation parameters" below optional for solar-arc, no default How the Ascendant, the Midheaven, the cusps, the Vertex and the East Point of the solar arc chart follow. The same key as the row above, with its own register and no houseAnchor.
question free text optional for horary and electional, and for the sequence 0 chart of a subject with kind: "horary" For horary, and for the sequence 0 chart of a subject with kind: "horary": the question asked. For electional: the purpose of the election (e.g. "best moment to sign"): the same key, because both are at heart "why was this moment chosen." Absent means "no question or purpose recorded"; the chart stays valid for both kinds, it is just less self-explanatory.
body string matching ^[a-z0-9]+(-[a-z0-9]+)*$. Registered: sun, moon, mercury, venus, mars, jupiter, saturn, uranus, neptune, pluto, chiron, mean-north-node, true-north-node planet-return Which celestial body is returning. The register is open: a future body can be added without a version break (§10.5). The two node values name the node explicitly (the mean node, or the true, osculating node); a bare north-node is not registered. The name lilith is not a key and never will be, because it names several different things (see "Black Moon" in the Glossary); a body of that family is registered under a key that names it exactly. A body that does not match the pattern, or is missing, discards the chart (§10, row CH3). A reader that meets a body that matches the pattern and that it does not recognise sets the chart aside (§10, row CH1). For Sun and Moon, use the existing solar-return/lunar-return; a reader nonetheless accepts body: "sun"/"moon" here too.

solar-arc is the true solar arc. The arc is the longitude of the progressed Sun minus the longitude of the Sun in the subject's sequence 0 chart. The progressed Sun is the Sun at the utc of the sequence 0 chart plus age days for direct, and minus age days for converse: one day per year of age, as for secondary-progression. The arc is reduced to the range from 0 up to but excluding 360 degrees and added to every longitude of the bodies and points of the sequence 0 chart. How the Ascendant, the Midheaven, the house cusps, the Vertex and the East Point follow is the parameter houses below. The arc is the difference of two tropical longitudes of the Sun; on a sidereal chart it is added to the sidereal longitudes of the sequence 0 chart. It is not the mean motion of the Sun. An arc at the mean rate of the Sun (the Naibod rate) is a different technique with a different result, and a solar-arc chart has no parameter for it. (For the progressions the angles values naibod-longitude and naibod-ra use it, §6.4.)

The year in age. For the six kinds with a decimal age, one year is 365.2422 days of 86400 seconds, normatively. A writer that derives age from two instants (the utc of the sequence 0 chart and the real-life moment of the direction) divides their difference by 365.2422 days. A reader that derives an instant from age multiplies by the same number. age is what governs and time is informative (§7.7). The age of a profection is a number of completed years of life, counted in birthdays, and uses no year length.

The precision requirement on age. A writer writes age as follows:

  • Enough digits to read back without loss. The shortest string that, read back as a 64-bit IEEE-754 floating-point number (double), yields exactly the same value. 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").

The reasoning (the example, the note on .NET, and the arc error that makes 6 digits enough) is in CEXF-GUIDE.md §R6.4 (informative).

What a reader that cannot preserve this precision does. See §10, "Precision loss on reading: round and report, never truncate," the same general rule as for utcOffset (§7.6), applied here to age.

Calculation parameters. Seven keys of parameters say which variant of a technique a chart was calculated with: key, method, aspects, latitude and angles on a primary-direction chart, angles on a secondary-progression, tertiary-progression, minor-progression or sidereal-minor-progression chart, houses on a solar-arc chart, and houses and houseAnchor on a composite or group-composite chart. They are the only keys of parameters that have a register here. CEXF fixes the technique that is named. The exact calculation rule beyond the definitions below belongs to the program (§6.1, "Scope").

  • Optional, no default. A calculation parameter that is absent says: not recorded. A writer that knows the value writes it. A reader that finds the parameter absent, or present with a value outside its register, uses its own choice and reports that once for the chart, naming the parameters, with name=value for a value outside the register (§10, row CH5). It never reads an absent parameter as a particular registered value.
  • A registered value that the reader cannot calculate is row CH17: the reader calculates the chart with its own choice for that parameter and says so once for the chart. The chart is accepted and the value stays in the record.
  • A parameter that the chart does not use is row CH7: ignored, without a check of its value. That is a parameter on a chart type that does not have it, and a parameter that another parameter makes meaningless. A value that is not a text is checked after all: it is row E5, and the key is not recorded. houseAnchor is used only with houses: "cusp-midpoints", and is ignored (row CH7) with any other value of houses, or when houses is absent. aspects is not used with a rotation method (ra-rotation, semi-arc-scaled-rotation and position-circle-rotation). latitude is not used with a classical method together with aspects: "mundane". Without a recorded method (method absent, not a text or outside the register), aspects and latitude count as used.

key is the time key: it turns age into an arc A of at least 0 degrees. The registered values are ptolemy (1 degree per year), naibod (0 degrees 59 minutes 8.33 seconds per year, that is 59/60 + 8.33/3600 = 0.98564722 degrees per year), cardan (59 minutes 12 seconds per year, 0.9866667 degrees) and true-solar-ra. For the first three, A = age multiplied by the rate of the key. For true-solar-ra, A = RA_Sun(t_0 + age days) - RA_Sun(t_0), where t_0 is the utc of the subject's sequence 0 chart and RA_Sun is the right ascension of the Sun, reduced to the range from 0 up to but excluding 360 degrees. The key measures the years lived after the birth, so it takes the Sun after the birth for direct and for converse alike. direction gives the sign: the signed arc s is A for direct and -A for converse. Every formula below uses s in place of the arc. For a classical method (below) converse names the converse direction of that method.

method is the calculation method. The registered values are ra-rotation, semi-arc-scaled-rotation, position-circle-rotation, placidian-semi-arc, placidian-under-the-pole, regiomontanus, campanus and topocentric. The first three are defined here exactly. They are the rotation methods: each moves a point and leaves its declination as it is.

In the formulas phi is the location.latitude of the subject's sequence 0 chart, RAMC is the right ascension of its Midheaven (the local apparent sidereal time of its utc at its location.longitude, in degrees) and eps is the true obliquity at its utc. The time and the location of the direction chart itself are not used. RA and delta are the right ascension and the declination of the point, which follow from its ecliptic longitude and its ecliptic latitude (see latitude below) with eps. The arguments of arcsin and arccos are limited to [-1, 1] and the angles are in degrees.

  • ra-rotation: every point turns by the same arc along the equator, RA' = RA + s.
  • semi-arc-scaled-rotation: 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 (circumpolar: it has no semi-arc) moves as in ra-rotation: RA' = RA + s. This fallback is part of the definition.
  • position-circle-rotation: let k = tan(phi) x tan(delta) and a = RA - RAMC. The position circle of the point passes through the north and south points of the horizon and meets the equator at RAMC + t, with t = atan2(sin a, cos a + k). The point moves so that this intersection moves by the signed arc: t' = t + s, and RA' = RAMC + t' + arcsin(k x sin t'), reduced to the range from 0 up to but excluding 360 degrees. With s = 0 every point stays where it is. At phi = 0 the method is ra-rotation. A point with |k| >= 1 (circumpolar: no position circle through the north and south points of the horizon passes through it) moves as in ra-rotation: RA' = RA + s. This fallback is part of the definition.

The ecliptic longitude of the moved point follows from RA', delta and eps: lambda' = atan2(sin(RA') x cos(eps) + tan(delta) x sin(eps), cos(RA')). The same formula, worked out for one point, is in CEXF-GUIDE.md §R6.4a (informative). Longitudes are converted to tropical before and back to the chart's zodiac after, with the ayanamsa of the utc of the sequence 0 chart.

Which points move, and the angles. With a rotation method the moved points are every body and point of the chart other than the angles and the house cusps. A point that depends on the Ascendant, such as the Part of Fortune, is not moved with the method: it is calculated again from the directed Ascendant and from the directed positions of the bodies it uses. The angles and the cusps are not moved one by one. They follow from RAMC', the right ascension of the directed Midheaven:

  1. Take the Midheaven of the sequence 0 chart as a point on the ecliptic (ecliptic latitude 0). Move it with the method like any other point: this is angles method-mc, and angles ramc-arc (below) replaces this step. Its right ascension after the move is RAMC'. With ra-rotation, RAMC' = RAMC + s.
  2. Cast the houses anew for RAMC' at the latitude phi, with the true obliquity of the utc of the sequence 0 chart and in the house system of the chart. The Ascendant is cusp 1 of this calculation and the Midheaven is cusp 10 of it. The Vertex and the East Point, where the program shows them, come from the same calculation. In a house system in which cusp 1 and cusp 10 are not the Ascendant and the Midheaven (whole-sign, for instance), the Ascendant and the Midheaven are those that the same calculation gives for them.
  3. The Descendant and the Imum Coeli are opposite the Ascendant and the Midheaven. On a sidereal chart the ayanamsa of the utc of the sequence 0 chart is subtracted from the results, as from any longitude.

angles on a primary-direction chart says how the Midheaven of the directed chart follows. It is optional, has no default and an open register with two registered values. Absent, or a value outside the register, is not recorded (row CH5). Rationale: see CEXF-GUIDE.md §R6.4a (informative).

  • method-mc: RAMC' is the directed right ascension of the Midheaven point, moved with the method of the chart like any other point (step 1 above). With ra-rotation, RAMC' = RAMC + s.
  • ramc-arc: RAMC' = RAMC + s, whichever method the chart records. This is the classical rule (Ptolemy, Tetrabiblos III.10, paragraph 134; Morin, Astrologia Gallica XXII.IX p. 546).

With both values the houses are cast anew for RAMC' (step 2) at the latitude phi of the sequence 0 chart, with the true obliquity of its utc and in the house system of the chart. The Ascendant and the Midheaven come from that calculation, and so do the Vertex and the East Point, where the program shows them (step 3 follows).

placidian-semi-arc, placidian-under-the-pole, regiomontanus, campanus and topocentric name the classical methods that measure the arc between a promissor and a significator. They define arcs between pairs of points, not the positions of a chart, and this version gives no formula for a chart. A primary-direction chart with one of them records which method the writer used. No reader can calculate that chart from this version: a reader that calculates uses its own method and reports it (row CH17), and a reader that only displays or converts keeps the value.

aspects says how aspects are measured: zodiacal along the ecliptic, mundane in the mundane frame of the chart. It is used only with the five classical methods. With a rotation method the moved chart does not depend on it (row CH7).

latitude says whether and for which points the ecliptic latitude counts: none, promissor, significator or both. With a rotation method every point of the chart is moved, so every point is a promissor, and the significators are the points of the sequence 0 chart against which the moved chart is read. The latitude of a significator never enters the calculation of the moved chart. Hence, with a rotation method, promissor and both mean that every moved point keeps its own ecliptic latitude in its declination, and none and significator mean that every moved point is taken at ecliptic latitude 0. The Ascendant, the Midheaven and the cusps have latitude 0 under every value. A writer writes promissor or none there. With a classical method and aspects: "mundane", latitude is not used: a mundane direction takes every point at its own position (row CH7).

angles on a progression says how the Ascendant, the Midheaven and the cusps of a progressed chart follow. For the four progression kinds let t_0 be the utc of the subject's sequence 0 chart and d the progressed interval in days: d = age (secondary-progression), age x 365.2422 / 29.53059 (tertiary-progression), age x 29.53059 (minor-progression) and age x 27.32166 (sidereal-minor-progression). The progressed moment is t_p = t_0 + d for direct and t_0 - d for converse. The planets are those at t_p. The place is the location of the sequence 0 chart; the location of the progressed chart itself is not used.

  • quotidian: the houses, the Ascendant and the Midheaven are those of an ordinary chart at t_p and that place.

  • The four other values first give a progressed Midheaven and then cast the houses from it. The arc is signed: positive for direct, negative for converse. All arcs and angles here are tropical and equatorial quantities of date. The chart's zodiac is applied to the results as to every other longitude.

    • solar-arc-longitude: arc = lambda_Sun(t_p) - lambda_Sun(t_0), reduced to the range from -180 up to and including 180; MC_p = MC_0 + arc.
    • solar-arc-ra: arc = RA_Sun(t_p) - RA_Sun(t_0), reduced in the same way; RAMC_p = RAMC_0 + arc.
    • naibod-longitude: arc = 0.98564722 x d for direct and -0.98564722 x d for converse; MC_p = MC_0 + arc.
    • naibod-ra: the same arc; RAMC_p = RAMC_0 + arc.

    MC_0 and RAMC_0 are those of the sequence 0 chart. From MC_p follows RAMC_p with the true obliquity eps at t_p: RAMC = atan2(sin(MC) x cos(eps), cos(MC)). From RAMC_p the Midheaven, the Ascendant and the cusps follow as for an ordinary chart with that RAMC, at the latitude of the sequence 0 location, with the true obliquity at t_p and in the house system of the chart. On a sidereal chart the ayanamsa is that of t_p. The Vertex and the East Point come from the same calculation, as with every value of angles.

The arc is that of the progression itself (its own Sun at its own t_p), so on a tertiary chart the Midheaven moves with the tertiary Sun. The Naibod arc is the mean motion of the Sun over the same interval d.

houses on a solar-arc chart says how the houses of the chart follow. It is optional, has no default and an open register with two registered values. Absent, or a value outside the register, is not recorded (row CH5). Rationale: see CEXF-GUIDE.md §R6.4b (informative).

  • arc-shifted: the Ascendant, the Midheaven, all house cusps, the Vertex and the East Point are moved by the solar arc in ecliptic longitude.
  • from-directed-mc: let t_0 be the utc of the sequence 0 chart and t_p = t_0 + age days for direct and t_0 - age days for converse, one day per year of age as for the progressed Sun above. The Midheaven is moved by the solar arc: MC_p = MC_0 + arc, in tropical longitude. RAMC' follows from MC_p with the true obliquity eps at t_p: RAMC' = atan2(sin(MC_p) x cos(eps), cos(MC_p)). The houses are then calculated again for RAMC' at the latitude of the sequence 0 chart, with the true obliquity at t_p and in the house system of the chart. The Ascendant and the Midheaven are those of this calculation, and so are the Vertex and the East Point. On a sidereal chart the ayanamsa is that of t_0, not that of t_p: the houses are calculated in the tropical zodiac and the ayanamsa of t_0 is then subtracted, so that the Midheaven is exactly MC_0 + arc.

houses on a composite or group-composite chart says how the houses of a composite follow. Let the midpoint of a set of longitudes be the one defined below, C_i^k cusp i (1 to 12) of parent chart k in the house system of the composite chart, and a house division a ring of twelve cusps whose twelve arcs (C_(i+1) - C_i) mod 360, with C_13 = C_1, add up to 360 degrees (a ring that does not run in order adds up to 720 or more).

  • derived-from-mc: the houses of the composite are cast from a midpoint of the parents' local sidereal times. For each parent chart k, RAMC_k is the right ascension of its Midheaven. The composite RAMC is the midpoint of the RAMC_k (the midpoint rule below, applied to right ascensions as to longitudes). The houses, the Ascendant and the Midheaven of the composite are those of an ordinary chart with that RAMC, at the latitude phi_m, with the true obliquity (mean obliquity plus nutation in obliquity) at the moment t_m, in the house system of the composite chart. phi_m is the arithmetic mean of the parents' location.latitude. t_m is the arithmetic mean of the parents' utc instants. On a sidereal composite the ayanamsa is that of t_m. The time and the location of the composite itself are not used, also not when present. With whole-sign the cusps are the sign boundaries in the chart's zodiac, house 1 being the sign that holds this Ascendant. The Midheaven obtained in this way is in general not the midpoint of the parents' Midheavens.

  • cusp-midpoints: every cusp is the midpoint of the cusps with the same number of the parents. houseAnchor says how the ring is formed, and has four values.

    • none: every cusp is the midpoint of the parents' cusps with the same number, and the Ascendant and the Midheaven are the midpoints of the parents' Ascendants and Midheavens, each on its own. The ring need not be a house division. With whole-sign the cusps are the sign boundaries, house 1 being the sign that holds the composite Ascendant.
    • ascendant and midheaven hold that angle. Let h be 1 for ascendant and 10 for midheaven, A the held angle and B the other one. First form the ring of none (N_i). If it is a house division, it is the result. Otherwise form F_i = (M + mean over k of ((C_i^k - C_h^k) mod 360)) mod 360, where M is the midpoint of the parents' cusps h. If F is a house division it is the result, otherwise N is. The held angle A is the midpoint of the parents' values of A. The other angle B is (M_A + mean over k of ((B^k - A^k) mod 360)) mod 360 when F is the result, with M_A the midpoint of the parents' values of A, and the midpoint of the parents' values of B otherwise.
    • auto is ascendant when the parents' Ascendants lie at most as far apart as their Midheavens, and midheaven otherwise. "As far apart" is the length of the shortest arc that contains all the parents' values (for two parents: their separation on the shorter arc, 0 to 180 degrees).

    houseAnchor has no meaning with derived-from-mc or without houses (row CH7).

The midpoint of a set of longitudes (two or more, each first reduced to the range from 0 up to but excluding 360 degrees): sort them ascending, lambda_(1) <= ... <= lambda_(n). The gaps are g_i = lambda_(i+1) - lambda_(i) for i < n, and g_n = lambda_(1) + 360 - lambda_(n). Let j be the largest index whose gap is the largest. Unwrap the values that follow that gap: lambda_(j+1), ..., lambda_(n), then lambda_(1) + 360, ..., lambda_(j) + 360 (for j = n: lambda_(1), ..., lambda_(n) unchanged). The midpoint is their arithmetic mean, reduced to the range from 0 up to but excluding 360 degrees. It does not depend on the order of the parents. For two longitudes it is the midpoint on the shorter arc, and for two longitudes exactly 180 degrees apart it is (min(lambda1, lambda2) + 90) mod 360. This holds for every composite and group composite, for positions, for cusps (cusp-midpoints), for right ascensions (derived-from-mc) and for the angles. Where a definition above speaks of the parents' latitudes or utc instants, it takes the arithmetic mean over all parents.

Other chart kinds (solar-return, lunar-return, transit, synastry, davison, relocation, mundane, life-event, prenatal-syzygy, prenatal-lunation, prenatal-eclipse) have no documented parameters today. Their time+location suffice, and parents covers the structural part of davison/synastry/relocation (see §8). A writer omits parameters for these kinds. A composite and a group-composite have only the calculation parameters above, and their parents cover the structural part (see §8).

How Celestium Exchange translates the direction to and from this format is in Appendix A (informative). In the file the direction is always the parameter direction, required, with no implicit default (row CH3).

The month length is fixed in the key, not a parameter. tertiary-progression always uses the synodic month (29.53059 days, so 365.2422 / 29.53059 ≈ 12.3683 ephemeris days per year of age), and sidereal-minor-progression always uses the sidereal lunar orbit (27.32166 days per year of age). tertiary-progression has no sidereal variant in this version. Should one ever be needed, a new, additive key will be added (§10.5), not a parameter on the existing one. The reasoning is in CEXF-GUIDE.md §R6.4 (informative).

harmonic does not cover Vedic vargas. Only D9/Navamsa is mathematically identical to a 9th harmonic (longitude × 9 mod 360°). D3, D7, D10, D12, D30 and D60 are not. 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. The check against the sources is in CEXF-GUIDE.md §R6.4 (informative).

Policy on an unrecognised key within parameters: preserve and write back unchanged, don't ignore. This is part of the format's promise, not a loose implementation choice:

  • A reader that only interprets (displays/calculates a chart) naturally uses only the keys it understands and does nothing with the rest. That's not "ignoring" in the sense of data loss, since nothing gets written out.
  • A reader that also writes (round-tripping, converting, or Celestium exporting its own database again) must leave any key it doesn't recognise unchanged. Rationale: see CEXF-GUIDE.md §R6.4c (informative).

6.5 What is not a chart type, but a setting or a view

The techniques below surfaced in the same research, and are deliberately not included as a type key: they are a setting on an existing chart, or a display layer on top of one, not their own, storable chart data. An implementer reading this needn't invent a type key for them.

Technique Why it isn't a chart type
Sidereal Already correctly modelled as a setting (zodiac system/ayanamsa), orthogonal to type, applicable to almost any chart kind.
Heliocentric A coordinate-system choice, not a different kind of chart. It is modelled as the frame field of the chart (§7c.3).
Draconic A rotation of the zodiac (the north node at 0° Aries, every point shifted by the same amount), not a new calculation. It is a setting of the chart: the zodiacSystem values draconic-mean-node and draconic-true-node (§7c.4).
Converse/backward direction Already modelled, not as a chart type but as the direction parameter above, on an existing direction type.
Local Space / compass rose A derived view (azimuth/altitude relative to the horizon) on an existing natal chart, no separately stored positions of its own.
Astrocartography A world-map projection of an existing natal chart, not a chart with its own, separately stored planetary positions/houses.
Uranian/Hamburg School 90° dial An analysis aid on top of one or more existing natal charts, with hypothetical points (Cupido, Hades, Zeus, …) as a separate point-catalogue question, not a chart type.
Multi-wheel display (bi/tri/quad/multi-ring) A rendering choice on the viewer: how many separate charts are shown in one wheel. The file only needs to contain the separate charts.

7. Time: four fields, and which one wins on conflict

Design invariant: time always carries a concrete instant, never a range, an approximation, or "unknown" in place of a value. utc, localTime, and utcOffset are and remain required, with an exact date-and-time value; there is, in this version, no way to express "circa 1800," "sometime between March and June 1850," or "before a certain date." That's not a forgotten capability but a deliberate limit: every calculation in this format (houses, positions) needs a concrete instant to run on, and a reader must always be able to rely on that without first having to figure out whether this particular instance happens to carry a full moment or a vaguer alternative. The unknown flag (§7.5) doesn't change any of this: even an "unknown" time is, in this format, always a concrete instant, just with a fixed replacement value instead of a directly supplied one; see §7.5. The member time itself may be absent on a composite, synastry or group-composite chart (§5); where it is present it is complete.

Should a later, additive version ever add uncertainty metadata (for example a provenance/confidence field for the birth time, or a range for a moment known only approximately), that would sit alongside the existing required fields, never in their place. Making utc/localTime/utcOffset optional to allow a "year-only" chart would, in the language of §10, be a meaning-changing change to an existing field and would therefore require a new format version. This paragraph pins down now what must not silently shift later.

7.1 Why UTC and a time zone are not enough

Rationale: see CEXF-GUIDE.md §R7.1 (informative).

7.2 The four fields

Field Type Required Meaning
utc string, ISO-8601 UTC timestamp (year in the form of §7.10), optionally followed by a period and 1-7 fractional digits yes The absolute moment, a date and a time that exist in the proleptic Gregorian calendar (row CH8). Authoritative for every calculation (planetary positions, houses); never changes, no matter what a time zone database ever claims about it. Ends in Z or +00:00 (both are valid and mean the same instant). Carries the same 1-7-digit limit as localTime below, and for the same reason; see the explanation after the example.
timeZone string, IANA zone ID yes For example "Europe/Amsterdam". Purely explanatory: which region/local clock this was. It is informative (§10, row E5): an absent, blank or non-text timeZone is not recorded, and the chart stays. The moment is decided by utc, localTime and utcOffset.
localTime string, YYYY-MM-DDTHH:MM:SS (year in the form of §7.10), optionally followed by a period and 1-7 fractional digits, without an offset designator yes The recorded wall-clock time, a date and a time that exist in the proleptic Gregorian calendar (row CH8). Authoritative for "what was entered": this is the source text, not a derivation. The fraction isn't there for a manually entered birth time (which is always whole seconds), but for a calculated moment on a derived chart that happens to have a non-trivial fraction; see the note after the example.
utcOffset string, ±HH:MM or ±HH:MM:SS yes The actually-used offset from UTC at that moment, made explicit. Second-level precision is allowed for historical local-mean-time-like offsets (see the Peace of Münster example in §12). Minutes and seconds are 00 to 59 and the offset lies between -18:00 and +18:00 (row CH8).
unknown boolean no (default false) true if the original time was unknown and has been replaced by a fixed value (Celestium: local noon). See §7.5.
standard string, registered value: zone, lmt, lat no (default "zone") The clock on which the source gave the local time. A blank value, or one that is not a text, is not recorded (row E5). See §7.9.
dstOffset integer from 0 to 86400 no The part of utcOffset that is summer time or war time, in seconds. Absent means "not recorded". A value of another type or outside the range is not recorded (row E5). See §7.11.
sourceCalendar string, "gregorian" or "julian" no (default "gregorian") The calendar in which the source gave the date. A value outside the two, or one that is not a text, is not recorded (row E5). See §7.10.
{
  "time": {
    "utc": "1990-04-12T08:15:00Z",
    "timeZone": "Europe/Amsterdam",
    "localTime": "1990-04-12T10:15:00",
    "utcOffset": "+02:00",
    "unknown": false
  }
}

Rationale: see CEXF-GUIDE.md §R7.2a (informative).

Fractions. localTime and utc may carry a fraction of 1 to 7 digits, not more. A writer omits the fraction when the value is a whole second, and fills it in when it is not. A source with a finer clock than 7 digits has no field in this format to carry that difference: a writer rounds to 7 digits before formatting both utc and localTime, so the two stay in step (§7.3). The reasons for the fraction and for the limit are in CEXF-GUIDE.md §R7.2 (informative).

7.3 Arithmetic consistency (required): what a reader checks

The identity holds: localTime = utc shifted by utcOffset. A writer must make this true. A reader must check this; if it doesn't hold, that is not a tzdb-drift situation (see §7.4) but an internally inconsistent chart: the writer made a mistake. That record is then handled by §10, row CH8: that one chart is discarded, with a notice, and the rest of the file is left alone.

Rationale: see CEXF-GUIDE.md §R7.3 (informative).

Tolerance. A difference between localTime and utc shifted by utcOffset of strictly less than one second counts as consistent. A difference of one second or more makes the chart inconsistent (§10, row CH8). Both utc and localTime carry at most seven fractional digits (§7.2), so a writer that keeps them commensurate satisfies the identity exactly; the tolerance is there to absorb the one benign case, a writer that rounds localTime to whole seconds while utc keeps its fraction. Vector TV-04 sits well outside the tolerance, at one hour and fifteen minutes.

7.4 What wins on conflict between timeZone and localTime/utcOffset

This is a different situation from §7.3, and deserves its own rule: a reader with its own, up-to-date time zone database can run utc + timeZone through it and compute a local time/offset that differs from what's stored in localTime/utcOffset. Precisely for pre-1970 timestamps this is, given §7.1, to be expected, not a bug.

  • utc remains authoritative for calculation. Every astronomical calculation (planets, houses) uses utc, full stop. That never depends on a time zone database.
  • localTime + utcOffset remain authoritative for what's shown as "the time that was entered." A reader never silently overwrites these with its own, freshly recalculated value via timeZone.
  • When a discrepancy is detected, a reader reports it (for example as a warning/notice in an import log). It does not silently pick one of the two. The notice is purely informational: "this program's own time zone database computes a different offset for this zone at this moment than what is stored"; the behaviour stays as above (utc for calculation, localTime/utcOffset for display).

Unknown or renamed zone ID

Note that this concerns a zone identifier a reader does not recognise, which is harmless, and not one that is present and empty. An empty timeZone is a writer error: it is not recorded and it is reported (§10, row E5), and the chart stays, because timeZone only names the clock. The two look alike and have different rows (CH9 and E5), so do not let one branch handle both.

If a reader doesn't recognise timeZone (removed or renamed since the file was written), that is not a problem: it falls back to localTime + utcOffset to show the local time, and to utc to calculate. Only the friendly zone name ("this was Central European Time") is then no longer available; no accuracy is lost. Rationale: see CEXF-GUIDE.md §R7.4a (informative).

7.5 The unknown flag

unknown: true means: the original birth time was not known, and utc/localTime contain a fixed replacement value (Celestium replaces it with local noon on the known date). A reader must not interpret this as "time absent": the moment is just as real as any other for calculation purposes; the flag only says that the sub-day details of the resulting chart (Ascendant, MC, house cusps, the Moon's exact position within its sign) must be treated with corresponding uncertainty by the consuming application.

The flag may be set on any chart where that makes sense. Celestium itself sets it on the primary chart only (Appendix A).

A reader that cannot store the flag on a derived chart. A reader whose own data model has no place for unknown on a derived chart imports that chart with its calculated moment and issues one notice per chart saying that the uncertainty marker was not carried over (§10, row CH10). This is a limit of that reader's data model, not a defect in the file.

What a reader does with the replacement value itself, when it differs from its own convention. Different programs choose different fixed replacement values for an unknown time: Celestium uses local noon, other programs midnight, or their own estimated time. If a .cexf file from such a different program comes in with unknown: true and a localTime that isn't 12:00, a reader has to choose: keep the supplied moment, or replace it with its own convention.

The rule: a reader keeps the supplied moment. Rationale: see CEXF-GUIDE.md §R7.5 (informative). If the reader's own data model or calculation layer requires a fixed convention (for example, because the rest of the system always internally assumes "unknown time" is exactly 12:00), a reader may replace it, but must then report doing so, with the same discipline as everywhere else in this format: never silently draw a different chart than what the file said.

A reader that replaces the supplied moment. If a reader replaces the supplied moment with its own convention, it issues one notice per chart, and only when the supplied moment actually differed from the replacement. A supplied moment that already equals the reader's convention produces no such notice. Appendix A describes what the reference implementation does and which notices it issues.

7.6 Second-level precision in utcOffset

utcOffset may carry a seconds component (§7.2). A reader whose time type cannot hold the seconds of an offset keeps the absolute moment exact, never crashes, and reports the loss (row CH15, §10.4). This is a property of some readers' time types, not a requirement of the format. What the reference implementation does is in Appendix A.

7.7 What time means for each chart type

time always carries a concrete instant (see the invariant at the start of §7), but what that instant stands for depends on the chart type. The table says what it stands for and which fields a reader calculates from. "Calculates from utc and location" means that the planetary positions and the houses come from that instant and that place, nothing else.

Chart What time is What a reader calculates from
sequence 0 (primary chart) The recorded moment of the birth, the event or the founding. utc and location. localTime and utcOffset stay the recorded text (§7.4).
solar-return, lunar-return, planet-return The calculated moment at which the body is back at its position in the primary chart. utc and location.
ingress The calculated moment of the ingress. utc and location.
transit The moment for which the transit positions are cast. utc and location.
horary The moment the question was asked. utc and location.
electional The chosen moment. utc and location.
life-event The moment of the event in the subject's life. utc and location. Without a location only what does not depend on the place (§7a).
mundane The moment of the event. utc and location.
prenatal-syzygy, prenatal-lunation, prenatal-eclipse The moment of the syzygy, the new moon or the eclipse itself, which lies before the birth. It is not the birth moment. utc and location.
harmonic The moment of the chart that is multiplied. A writer must write the time of the subject's sequence 0 chart, member for member. utc and location as written on the harmonic chart, which a reader does not compare with the sequence 0 chart; then every longitude is multiplied by number (§6.4).
primary-direction, secondary-progression, tertiary-progression, solar-arc, minor-progression, sidereal-minor-progression The moment in real life to which the direction or progression applies. It is informative: age governs, and time is not the progressed (symbolic) moment. The subject's sequence 0 chart, age, direction and the calculation parameters of §6.4. time and location are not used for the calculation: the place is that of the sequence 0 chart. A reader does not check time against age and does not derive one from the other.
profection The moment in real life to which the profection applies, for example the start of the profected year. It is informative: age governs. The subject's sequence 0 chart and age. time is not used for the calculation. A reader does not check time against age and does not derive one from the other.
davison The midpoint in time of the parent charts, possibly a weighted midpoint. utc and location: a Davison chart is an ordinary chart cast for that moment and place. parents record where the moment came from.
composite A moment and place the writer attaches to the composite chart for display and ordering. Absent when the writer has no source for it. The parents: the positions are the composite of the parent charts, with the midpoint of §6.4. With houses also the parents' latitudes, their RAMCs and the mean of their utc instants (§6.4). The time and the location of the composite itself are not used for the calculation and are not compared with the parents.
group-composite A moment and place the writer attaches to the composite chart for display and ordering. Absent when the writer has no source for it. The parents: the positions are the composite of the parent charts, with the midpoint of §6.4 for any number of parents. With houses also the parents' latitudes, their RAMCs and the mean of their utc instants (§6.4). The time and the location of the composite itself are not used for the calculation and are not compared with the parents.
synastry A moment and place the writer attaches to the comparison for display and ordering. Absent when the writer has no source for it. The two parents. time is not used for the calculation and is not compared with the parents.
relocation The same utc as the source chart; timeZone, localTime and utcOffset describe the new place (§8). utc and location.

For every chart type, utc is authoritative for what is calculated from the moment, and localTime with utcOffset is authoritative for what was entered (§7.4). The rows that do not calculate from time (directions and progressions, profection, composite, group composite and synastry) carry a complete and consistent time (§7.3) wherever they carry one at all.

A worked example file: see CEXF-GUIDE.md §X7.7 (informative).

7.8 A source that knows only an offset or local mean time

timeZone is required. A source that records only a UTC offset, or only local mean time, still gives the writer a place. The writer then writes the IANA zone ID whose territory contains location, and utcOffset and localTime carry what the source recorded, including a seconds component for local mean time (§7.6). The writer also writes standard (§7.9). If no IANA zone contains the place, the writer writes Etc/UTC, and utcOffset still carries the real offset. timeZone is explanatory only: it never overrides utcOffset.

A source that gives Universal Time. A time that the source gives as Universal Time (UT or GMT) is written with timeZone Etc/UTC, utcOffset +00:00, localTime equal to utc without the designator, and standard zone. zone is the default, so the writer may leave standard out. Here Etc/UTC names the clock that was read, not the place: location still holds the place of the chart. This is a different case from the fallback in the paragraph above, where no zone contains the place.

7.9 time.standard: the clock the local time was read on

standard says on which clock the source gave localTime:

  • zone (the default): civil time, what a clock in the region showed. The offset is that of the time zone at that moment.
  • lmt: local mean time of the place, the time of an imaginary Sun that moves evenly. Its offset from UTC is the longitude of the place divided by 15 hours.
  • lat: local apparent time of the place, the time of the real Sun (sundial time). It is local mean time plus the equation of time for that moment.

The register is open: zone, lmt and lat are the registered values, and a value outside it is handled by §10, row CH19. A blank value, or one that is not a text, is row E5: it is not recorded and the chart stays.

Civil time based on a meridian is zone. A source that gives its time on the meridian of a capital or of another reference place (a clock that follows one meridian for a whole country or region) gives civil time, not local mean time. It is written as zone, with the offset of that meridian in utcOffset (with a seconds component where the meridian needs one) and the IANA zone whose territory contains the place of the chart in timeZone (§7.8). lmt is reserved for the local mean time of the place of the chart itself.

Nothing else in the time rules changes. utc is authoritative for what is calculated, localTime is utc shifted by utcOffset (§7.3), and timeZone stays required (§7.8). standard records which clock the source used. It is not an instruction to recalculate: a reader does not check utcOffset against the longitude or against the equation of time, and does not change utc, localTime or utcOffset because of standard. An absent standard means zone.

The offset a writer writes for lmt and lat. The writer takes the offset of its source, so that utc stays what the source calculates:

  • If the source gives its UTC instant, or the offset it used, utcOffset is that offset, which is the difference between the source's local time and its UTC instant. A seconds component of that offset is kept. The writer does not replace it with an offset recomputed from the longitude.
  • If the source gives only the local time on the lmt or lat clock and the place, the writer computes the offset: for lmt the longitude of the place divided by 15 hours, for lat that value plus the equation of time at that moment, each rounded to the nearest whole second (a tie rounds away from zero). utc is then localTime minus that offset.

The equation of time. For lat the equation of time is the one of Spencer's Fourier series (1971), and no other model. Let T be the instant that is localTime minus the longitude of the place divided by 15 hours, read as Universal Time. Let d be the day of the year of T in the proleptic Gregorian calendar (1 January is 1), h the Universal Time hours of T with their fraction, and G = 2π (d − 1 + (h − 12) / 24) / 365. The equation of time in minutes is then 229.18 × (0.000075 + 0.001868 cos G − 0.032077 sin G − 0.014615 cos 2G − 0.040849 sin 2G). The offset is the longitude term plus that value converted to seconds, rounded once to a whole second after the addition. Test vector TV-65 gives a worked case.

The summer-time part of the offset, where a source applies one to such a clock, is written in dstOffset (§7.11).

7.10 Calendar and years before 1 AD

Every date in a document is a date of the proleptic Gregorian calendar. sourceCalendar records the calendar in which the source gave the date: gregorian (the default) or julian. It is informative: a writer whose source used the Julian calendar converts the date to proleptic Gregorian before writing and sets sourceCalendar to julian, so that a reader that wants to show the original date can convert back. A reader never changes utc or localTime because of sourceCalendar. A value outside the two registered ones, or one that is not a text, is not recorded (§10, row E5), and the chart stays.

Year numbering and lexical form (normative). Years are counted astronomically: year 1 is 1 AD, year 0 is 1 BC, year -1 is 2 BC, year -43 is 44 BC. In utc and localTime the year is written as follows, and in no other way:

  • Years 1 to 9999: exactly four digits, without a sign, with leading zeros (0044, 1990).
  • Year 0: 0000, without a sign.
  • Years -1 to -9999: a minus sign - followed by exactly four digits (-0001, -0043).

A plus sign is never written. -0000 is not a valid year. A year with fewer or more digits is not valid. In regular-expression form the year part is (-(?!0000)[0-9]{4}|[0-9]{4}). The rest of the timestamp is unchanged, so -0043-03-15T12:00:00 is noon on 15 March of the year -43 (44 BC) in the proleptic Gregorian calendar. A document with a year outside these forms is invalid (§10, row E2). The fields generatedAt, createdAt and updatedAt always use years 1 to 9999 without a sign. The identity in §7.3 is computed in the same proleptic Gregorian calendar with astronomical year numbers. Years before -9999 and after 9999 cannot be written in this version.

7.11 time.dstOffset: the summer-time part of the offset

dstOffset is the part of utcOffset that is summer time or war time: the number of seconds by which the clock on which localTime was read runs ahead of the same clock without summer time. It is an integer from 0 to 86400: a JSON number whose value is a whole number (Terms, "Integer"), so 3600.0 is valid. A writer should write it without a fraction and without an exponent. utcOffset is the whole offset and includes it, so utcOffset minus dstOffset is the offset of the clock without summer time. The identity of §7.3 does not change: dstOffset takes no part in it, and a reader does not check dstOffset against timeZone, the place or the date.

  • Absent means "not recorded". It never means 0: a reader does not conclude from an absent dstOffset that no summer time was in force. The value 0 states that none was in force.
  • It applies under every standard (§7.9). Under lmt and lat a writer writes it only where its source applies a summer-time correction to that clock; utcOffset then includes that correction, as it does under zone.
  • A value outside the integer range of 0 to 86400, or of another JSON type, is not recorded (§10, row E5), and the chart stays: the whole offset is in utcOffset.
  • A reader that cannot store the member handles it as §10.3 prescribes under "Reader-specific limits".

A worked example file: see CEXF-GUIDE.md §X7.11 (informative).


7a. Location

Every chart carries its own place, never derived from the subject. Rationale: see CEXF-GUIDE.md §R7a.1 (informative).

Field Type Required Meaning
latitude number, −90..90 yes Latitude in degrees. Positive = north.
longitude number, −180..180 yes Longitude in degrees. Positive = east.
altitude number no (default 0) Elevation in metres above sea level. A value that is not a number is not recorded (§10, row E5).
placeName string no Free-text place name, e.g. "Amsterdam". Absent means "not recorded," never "no place": latitude/longitude are required, after all, and already pin the place down regardless. placeName is purely the readable name alongside it. A blank value, or one that is not a text, is not recorded (row E5).
country string no Free-text country name, e.g. "Netherlands". Same absence meaning as placeName. Note, for a subject with kind: "country" (§4.2): this field describes the country of the chart's location, not necessarily the subject itself. A founding chart can sit on the territory of a state that has since disappeared (see the example in §12, where the Netherlands, as subject, has a chart location in the then Holy Roman Empire). That's not a contradiction: it's which country applied there at the time.
countryCode string, exactly two capital letters (^[A-Z]{2}$) no The ISO 3166-1 alpha-2 code of the country of the place, for example NL. Only such a code is written here. Absent means "not recorded".
region string no Free-text name of the region of the place (a province, state or county). Absent means "not recorded".

Codes that are not ISO 3166-1 alpha-2. A code from the source that is not an element of ISO 3166-1 alpha-2 (the code of a former state such as DDR, SU or YU, a vehicle registration code, the country code of an atlas) is never written to countryCode. If it denotes a state, current or former, the writer writes it in country: the name of the state where the writer knows the name, and otherwise the code itself as text. If it denotes a part of a state, the writer writes it in region in the same way. A code of which the writer cannot tell which of the two it denotes goes into country. countryCode and country are independent: either, both or neither may be present, and a reader does not check them against each other. A reader checks countryCode against the pattern only (two capital letters) and does not look it up in the list of assigned codes. A value that does not match the pattern, like a blank country, region or placeName or a value of another JSON type in one of the four, is not recorded (§10, row E5), and the chart stays.

A chart without location. On a composite, synastry, group-composite or life-event chart the member may be absent (§5). A chart without it has no place: a reader calculates from utc what does not depend on the place, and shows no Ascendant, Midheaven or houses rather than choosing a place. For composite, group-composite and synastry the positions come from the parents (§7.7).

{ "location": { "latitude": 52.3702, "longitude": 4.8952, "altitude": 0, "placeName": "Amsterdam", "country": "Netherlands" } }

Precision of latitude/longitude. This format sets no precision requirement on latitude and longitude: they follow the ordinary round-trip guarantee of the JSON number type. The reasons are in CEXF-GUIDE.md §R7a (informative).

A worked example file: see CEXF-GUIDE.md §X7a (informative).

7b. Note

A single log note, on a chart (Chart.notes), not to be confused with Subject.notes (one free-text note about the subject itself, not a list with timestamps).

Field Type Required Meaning
title string see below Title. A blank value, or one that is not a text, is not recorded (§10, row E5).
text string see below Content. May contain markup; see format and the grammar below. A blank value, or one that is not a text, is not recorded (row E5).
createdAt string, UTC timestamp in the form of generatedAt (§2) no Creation moment. Absent means "not recorded". A writer whose source has no creation moment omits the member and never writes the time of writing instead. A value outside that form, or one that matches it and is not a date and time of the proleptic Gregorian calendar, is not recorded (row E5), and the note stays.
updatedAt string, UTC timestamp in the form of generatedAt (§2) no Last modification. Absent means "no modification moment recorded". A value outside that form, or one that matches it and is not a date and time of the proleptic Gregorian calendar, is not recorded (§10, row E5), and the note stays.
format string no (default "plain") Text format of text. An open string, not a closed enumeration (a future third format must remain structurally valid), but a reader only needs to know "plain" and "bbcode-basic"; see below and §10. A blank value, or one that is not a text, is not recorded (row E5): the text is then read as plain.

title and text: at least one, not both. Either may be absent on its own. A note with a heading and no body is a common, legitimate thing ("Rectification", used as a flag). So is a body with no heading, which is what a log entry usually looks like. A note with neither conveys nothing and is invalid; the schema states this as an anyOf, and §10 says what a reader does with one (row NO1). A blank title or text is not recorded (row E5), so it counts as absent for this check. Note that present-but-empty is not the same as absent here: a writer that has no title omits the key rather than writing "".

A worked example file: see CEXF-GUIDE.md §X7b (informative).

Text format: plain and bbcode-basic

A writer must never silently adjust note text on behalf of a reader it doesn't know; see the "Why" below. That's why the markup itself is part of the format, with its own format key that says what a reader will encounter.

  • "plain": plain text, no markup. The default when format is absent, the safe assumption for a note with no known provenance.
  • "bbcode-basic": Celestium's lightweight note markup. Deliberately not called bare "bbcode": that would suggest the full, extensive BBCode set (colours, lists, links, images, quotes, …) known from forum software. This format knows only the four tags below plus one escaping rule, a small, fully specified subset below, and the name promises no more than that.

The full grammar of bbcode-basic, so that someone can implement this from this document alone. A reader treats text as a sequence of characters and reads it from left to right. At each position it applies the first of these rules that matches:

  1. Escape. If the character is a backslash and the next character is [ or a backslash, the next character is literal text, and both characters are consumed. (A backslash followed by [ is a literal [; two backslashes are one literal backslash.)
  2. Opening tag. If the text at this position is [b], [i], [u] or [s], in upper or lower case, the reader increases the depth counter of that tag by one and consumes the tag. The text that follows has that formatting while the counter is above zero.
  3. Closing tag. If the text at this position is [/b], [/i], [/u] or [/s], in upper or lower case, and the depth counter of that tag is above zero, the reader decreases it by one and consumes the tag.
  4. Anything else is literal text, one character at a time. This includes a backslash that is not followed by [ or a backslash, a closing tag whose counter is zero, a tag the format does not know ([color=red]), and a lone [.

There are four counters, one for each of bold (b), italic (i), underline (u) and strikethrough (s). Tags nest in any order: [b][s]both[/s][/b] is bold and struck through at once, and [b][i]x[/b][/i] is also well defined, because the counters are independent. A tag that is still open at the end of the text ends there. A parser never fails on any input.

A writer that writes format: "bbcode-basic" must escape in the text of every run of plain characters: a backslash is written as two backslashes, and every [ that is not part of a tag is written as a backslash followed by [. The reasoning for the two escapes is in CEXF-GUIDE.md §R7b (informative).

The stripped form of a text is the concatenation of the literal text that the rules above produce, without the tags. A reader that does not display bbcode-basic shows the stripped form and never shows a tag raw (§10, row NO2).

Why this is a format field, and not a writer's choice. A writer must not flatten markup "for a target program that can't handle it anyway": the writing user doesn't know, and doesn't need to know, what an unknown target program can display. That assumption would undermine the whole purpose of an open specification, namely that another builder can design their own import around it. By discarding the markup up front, the writer decides on behalf of a reader it doesn't know that this reader can't handle it anyway. Instead, the markup always goes along, with format alongside it so the recipient knows what it's getting; what a reader that doesn't display this text format must then do is spelled out as a requirement in §10.


7c. ZodiacSystem, Ayanamsa, and HouseSystem: universal per-chart settings

Three fields, all optional, all on Chart itself (not in parameters): they apply, in principle, to every chart type. The same holds for the two informative fields lunarNode and blackMoon (§7c.6), which sit beside them. Rationale: see CEXF-GUIDE.md §R7c (informative).

Field Type Required Meaning
zodiacSystem string, registered value no (default "tropical") The zodiac system this chart is calculated in. Registered: tropical, sidereal, draconic-mean-node, draconic-true-node.
ayanamsa string, registered value no (default "lahiri") Which ayanamsa. Only meaningful when zodiacSystem is "sidereal". See the register in §7c.2 and the Glossary for what an ayanamsa is.
houseSystem string, registered value no The house system this chart is calculated in. Register in §7c.2. See the notes below on what Celestium does with this field.
lunarNode string, open register no The variant of the lunar nodes that the writer used for this chart. Informative. Register in §7c.6.
blackMoon string, open register no The variant of the Black Moon that the writer used for this chart. Informative. Register in §7c.6.
{ "zodiacSystem": "sidereal", "ayanamsa": "lahiri" }

No inheritance between charts. Every chart carries its own zodiac settings. A chart without zodiacSystem is tropical, whatever the settings of the subject's other charts (§10, row CH11).

7c.1 These three fields are registers, not fences

The registers below are the values this specification gives a name to. They are not a closed set, and the schema does not enforce them: a value outside the register validates, and a reader that meets one does what §10 prescribes for that field (rows CH11 to CH13) and reports it. A writer uses a registered value whenever one fits, because a shared name is the entire point; it may write an unregistered value when nothing fits, and should expect readers to treat it as unknown.

Rationale: see CEXF-GUIDE.md §R7c.1 (informative).

One case the register cannot cover: Swiss Ephemeris also allows a user-supplied ayanamsa (SE_SIDM_USER), which is an arbitrary offset rather than a name. Such an ayanamsa goes into the member customAyanamsa (§7c.5), and never into extensions.

7c.2 Registered values

zodiacSystem: tropical, sidereal, draconic-mean-node, draconic-true-node (§7c.4).

The key of a registered ayanamsa is the name of the Swiss Ephemeris constant of that ayanamsa without the prefix SE_SIDM_, in lower case, with every underscore replaced by a hyphen. Three keys deviate: de-luce (constant DELUCE), usha-shashi (constant USHASHASHI) and galcent-rgilbrand (constant GALCENT_RGBRAND in the programming manual, GALCENT_RGILBRAND in the header file; both give the same key). The ayanamsa itself is the one that the constant defines. A sidereal longitude is the tropical longitude minus the ayanamsa at the same instant, reduced to the range from 0 up to but excluding 360 degrees.

ayanamsa, in Swiss Ephemeris order:

fagan-bradley, lahiri, de-luce, raman, usha-shashi, krishnamurti, djwhal-khul, yukteshwar, jn-bhasin, babyl-kugler1, babyl-kugler2, babyl-kugler3, babyl-huber, babyl-etpsc, aldebaran-15tau, hipparchos, sassanian, galcent-0sag, j2000, j1900, b1950, suryasiddhanta, suryasiddhanta-msun, aryabhata, aryabhata-msun, ss-revati, ss-citra, true-citra, true-revati, true-pushya, galcent-rgilbrand, galequ-iau1958, galequ-true, galequ-mula, galalign-mardyks, true-mula, galcent-mula-wilhelm, aryabhata-522, babyl-britton, true-sheoran, galcent-cochrane, galequ-fiorenza, valens-moon, lahiri-1940, lahiri-vp285, krishnamurti-vp291, lahiri-icrc.

houseSystem, with the Swiss Ephemeris letter it corresponds to:

Value Letter Value Letter
placidus P porphyry O
koch K alcabitius B
equal E (also A) morinus M
equal-mc D meridian X
equal-aries N azimuthal H
vehlow V polich-page T
whole-sign W krusinski U
campanus C pullen-sd L
regiomontanus R pullen-sr Q
carter-poli-equatorial F sripati S
gauquelin-sectors G apc Y
sunshine I savard-a J
sunshine-alt i

Note that Swiss Ephemeris answers "Placidus" for any letter it does not recognise, so a program that passes an unknown letter silently gets Placidus rather than an error. That is a property of that library, not of this format, but it is worth knowing when you are working out which house system a source file actually meant.

ayanamsa without a sidereal zodiac. 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.

An absent houseSystem means "no opinion, the reader decides". That is a statement, and different from a filled-in value. A reader that finds the field absent must never fill in a value itself when it writes the chart back. A writer that writes for another installation of the same program need not fill it in; a writer that writes for a different program may fill it in on every chart (§14).

A reader that cannot keep houseSystem per chart imports the chart anyway and reports it (§10.3, "Reader-specific limits"). It does not discard the value silently.

The writer's choice is not a format field. There is deliberately no key in the root object that records the purpose a file was written for. A filled-in houseSystem is valid, whoever wrote the file (§14).

The reasoning, and what Celestium does with this field, is in CEXF-GUIDE.md §R7c.2 (informative).

7c.3 frame: the point of view of the positions

A fourth setting on Chart, with the same reach as the three above: every chart type.

Field Type Required Meaning
frame string, registered value no (default "geocentric") The reference frame of the positions this chart calculates: the point from which the bodies are seen.
{ "frame": "heliocentric" }

The registered values:

Value Meaning
geocentric Seen from the centre of the Earth. The default.
heliocentric Seen from the centre of the Sun.
topocentric Seen from the observer's place on the surface of the Earth, the place in location, with parallax.
barycentric Seen from the centre of mass of the solar system.
selenocentric Seen from the centre of the Moon.

A chart with frame topocentric and without a location has no place to be topocentric from, so no reader can calculate it: that is row CH17, for every reader (§10). An absent frame means geocentric. That is a documented default, not "no opinion" (§1). The register is open: a reader that meets a value outside it, or a registered value that it cannot calculate, handles the chart by §10, row CH17. For composite, group-composite and synastry, whose positions come from the parent charts, frame is the frame in which the positions that are combined or compared are calculated, from each parent's moment and place. A heliocentric, barycentric or selenocentric chart has no Ascendant, Midheaven or houses, because its point of view is not the observer's place: a reader ignores houseSystem on such a chart, without a notice, and keeps it when it writes the chart back. zodiacSystem and ayanamsa apply as for any chart.

A worked example file: see CEXF-GUIDE.md §X7c.3 (informative).

7c.4 The draconic zodiacs

draconic-mean-node and draconic-true-node are zodiac systems in which 0 degrees of Aries lies at the north node of the Moon. Every longitude is the tropical longitude minus the tropical longitude of the north node at the same instant, reduced to the range from 0 up to but excluding 360 degrees. draconic-mean-node uses the mean north node and draconic-true-node the true (osculating) north node: the nodes of the body values mean-north-node and true-north-node (§6.4). A draconic zodiac is a setting of the chart, like sidereal, and not a chart type (§6.5). No ayanamsa applies: ayanamsa and customAyanamsa are ignored, as on a tropical chart.

The node is the node at the instant at which the position itself is calculated. The definition covers the kinds whose positions are calculated from utc and location (the rows of §7.7 that say so, except harmonic). For the directions and progressions, profection, harmonic, composite, group-composite and synastry, this version does not define how a draconic zodiac combines with the rule of the kind. A writer does not write a draconic value on such a chart, and a reader that meets one handles the chart by §10, row CH17. The chart at sequence 0 is a chart whose positions are calculated from utc and location, so the draconic zodiacs are defined for it: a reader of the profile calculates it and no row fires.

A worked example file: see CEXF-GUIDE.md §X7c.4 (informative).

7c.5 customAyanamsa: an ayanamsa that has no name

A sidereal chart whose ayanamsa the register does not name carries it as customAyanamsa, an object. It is meaningful only when zodiacSystem is sidereal; on any other chart it is ignored, like a valid ayanamsa; an invalid customAyanamsa is row E2 on such a chart as well. A chart that carries both ayanamsa and customAyanamsa is invalid (§10, row E2).

Field Type Required Meaning
model string, closed list: constant, linear, precession yes How the ayanamsa changes with time.
valueDeg number, any finite value yes The ayanamsa in degrees: for constant its value at every moment, for linear and precession its value at the epoch.
epochJdTt number, any finite value for linear and precession; not allowed for constant The epoch, as a Julian Day in Terrestrial Time (TT).
rateArcsecPerYear number, any finite value for linear; not allowed for the other models The rate of change in arcseconds per year of 365.25 days.

A required member that is missing, or a member that the model does not allow, invalidates the chart (§10, row E2). Let t be the instant of the position as a Julian Day in TT, derived from utc with the reader's own ΔT; this version fixes no ΔT model. The ayanamsa in degrees is then:

  • constant: valueDeg.
  • linear: valueDeg + (rateArcsecPerYear / 3600) × (t − epochJdTt) / 365.25.
  • precession: valueDeg + (p(t) − p(epochJdTt)), where p is the general precession in longitude, in degrees, of the long-term precession model of Vondrák, Capitaine and Wallace (2011, Astronomy and Astrophysics 534, A22). The model is fixed here by name: a reader does not substitute another.

valueDeg, epochJdTt and rateArcsecPerYear are finite: a number that converts to infinity in binary64 is outside every range (Terms, "Comparison of numbers") and is row E2. An unknown member of customAyanamsa is row E4, whatever its value, 1e400 included. This version fixes no other range for valueDeg, epochJdTt or rateArcsecPerYear. The sidereal longitude is the tropical longitude minus the ayanamsa, as for a registered ayanamsa (§7c.2), reduced to the range from 0 up to but excluding 360 degrees. Every number is a JSON number. A writer writes the shortest text that reads back as the same 64-bit floating-point number (as for age, §6.4), and a reader that cannot hold that precision rounds and reports it (§10, row CH15). A reader that cannot calculate a chart because of this member handles it by §10, row CH17.

A worked example file: see CEXF-GUIDE.md §X7c.5 (informative).

7c.6 lunarNode and blackMoon: the variant of the nodes and of the Black Moon

Two optional fields on Chart, valid on every chart type, that record which variant of two lunar points the writer used for this chart. They are informative: an import never fails because of these fields, and a chart is never discarded or skipped for them.

Field Type Meaning
lunarNode string matching ^[a-z0-9]+(-[a-z0-9]+)*$; an open register The variant of the lunar nodes that the writer used for this chart. Registered values: mean (the mean node, SE_MEAN_NODE) and true (the osculating node, SE_TRUE_NODE). Absent means not recorded.
blackMoon string matching ^[a-z0-9]+(-[a-z0-9]+)*$; an open register The variant of the Black Moon, the apogee of the lunar orbit, that the writer used for this chart. Registered values: mean-apogee (SE_MEAN_APOG, 12), osculating-apogee (SE_OSCU_APOG, 13) and interpolated-apogee (SE_INTP_APOG, 21). Absent means not recorded. lilith is never a key.

The register of blackMoon names a calculation, and each value is tied to one identity in the numbering of Swiss Ephemeris (the Glossary entry on the Black Moon lists them): a program that calls the same point by another name still writes and reads the same value.

  • Absent means not recorded. The reader uses its own variant and reports nothing.
  • A value of the right form that is not registered is row CH20: the reader treats the field as not recorded, reports it once for the chart, and keeps the chart. A round-tripping reader writes the value back as it was.
  • A blank value, a value of another JSON type or a value that does not match the pattern is row E5, not CH20.
  • A reader that keeps only a global setting for the nodes or the Black Moon draws the chart with that setting and reports a deviation only: it says nothing when the registered value of the chart equals its own setting. A reader that keeps the variant per chart takes the value over exactly. The fields are listed under "Reader-specific limits" (§10.3).

Rationale: see CEXF-GUIDE.md §R7c.6 (informative).

A worked example file: see CEXF-GUIDE.md §X7c.6 (informative).


8. Parents: linked charts, parents and source charts

parents is a list of references to other charts. Despite the name, it carries two different kinds of link, distinguished via role:

  • parent charts for composite, davison, synastry and group-composite: the charts combined or compared to produce this chart;
  • the source chart for relocation: the original, unchanged chart of which only the place changes.
{
  "parents": [
    { "subject": 1, "sequence": 0, "role": "parent" },
    { "subject": 2, "sequence": 0, "role": "parent" }
  ]
}
Field Type Required Meaning
subject integer yes Reference to a Subject.id.
sequence integer ≥ 0 yes Reference to a Chart.sequence within that subject; 0 = its primary chart.
role string yes Why this chart is linked: "parent" or "source", see below.

Deliberately (subject, sequence) and not a database id: a database id means nothing to a third party and is also unstable across exports. (subject, sequence) stays stable within one file and is human-readable.

Rationale: see CEXF-GUIDE.md §R8.1 (informative).

Role value Used for Meaning
parent composite, davison, synastry, group-composite One of the charts this chart is calculated from or compares.
source relocation The original chart: same time.utc, different location. See the paragraph "Relocation: the same utc, a different place" at the end of this section.

Only parent and source are defined. A reader never falls over on another string: it handles the entry by §10, row RF1. (On the chart types that fix a role, the schema accepts only that role, so a document with another one is schema-invalid there, and a reader still reads it by RF1.)

Cardinality per chart type

Chart type Number of parents items Role
composite, davison, synastry at most 2; a writer that has resolved both charts writes 2 parent
group-composite any number; a writer that has resolved every chart writes all of them (3 or more); no upper bound from this format (a reader's own maximum is row RF6) parent
relocation at most 1; a writer that has resolved the source chart writes 1 source
every other type parents absent (none)

A writer that could resolve only some of the charts writes the entries it could resolve. A reader accepts such a chart: it carries fewer links than a complete one, it is just not fully reconstructable. For relocation the same applies to an unfindable source chart: the chart stays valid (time and location are already complete), just without the link to where it came from. More entries than the maximum in the table, or an entry whose role the chart type does not use, makes the chart invalid (§10, rows RF2 and RF3).

Rationale: see CEXF-GUIDE.md §R8.2 (informative).

What the absence of parents means. For composite, davison, synastry, group-composite and relocation, an absent or short parents list means the writer did not record the links; it never means that the links point at the subject's own primary chart. For every chart type that defines no parents, nothing is written because nothing needs to be: the chart belongs to its subject, and the subject's sequence 0 chart is the chart of reference wherever a consumer needs one, for instance the natal chart of a transit or of a direction (§7.7). For these types an absent parents is thus the same as a link to sequence 0 of the same subject, and no entry is written for it. An empty parents list ([]) is the same as an absent one. A non-empty parents list that is present on such a chart, the chart at sequence 0 included, is handled by §10, row CH16.

A group composite with more parents than a reader can calculate with is handled by §10, row RF6: the reader refuses to use that one chart, reports it, and keeps the raw data.

Relocation: the same utc, a different place

For relocation, time.utc is equal to that of the source chart: the moment doesn't change, only the place. timeZone/localTime/utcOffset, however, reflect the new place: what the clock there would have shown at that instant, not the original wall-clock time (which no longer means anything for a different place anyway). See the example in §12. A writer writes the same utc; a reader does not compare the two utc values and reads the relocation chart as it stands, with no notice.


9. Extensions: a per-vendor namespace mechanism

9.1 Why a generic mechanism, and not a vendor-specific field

Rationale: see CEXF-GUIDE.md §R9.1 (informative).

9.2 Shape

{
  "extensions": {
    "com.example.rulerOverrides": { "schemaVersion": 3, "data": { "overrides": { "1": "Mars" } } }
  }
}
Field Type Required Meaning
extensions object (string→JSON value) no A flat map from namespace key to a JSON value the vendor defines. If absent, the chart carries no vendor extensions.

Everything in §9 about extensions applies in the same way to the extensions member of a subject (§4.2). modifierExtensions (§9.5) exists on a chart only.

Every key in extensions should carry a per-vendor namespace, preferably following the reverse-domain convention also used by Java package names and Android app IDs (nl.celestium.rulerOverrides, com.example.foo): a domain the vendor controls, written in reverse, followed by a freely chosen name for the extension itself. The reasoning is in CEXF-GUIDE.md §R9.2 (informative). This format does not enforce a pattern, but it prescribes the convention: a namespace without a dot (bare "overrides", for instance) is valid JSON but risks a collision with another vendor, and a writer that takes this format seriously uses a domain it actually controls.

The value at each key may be any JSON value: an object, an array, a number, a string, or a boolean (not null: a null value conveys nothing an absent key doesn't already convey; a key whose value is null is not recorded, row E5, and the other keys of the map stay; the same holds for modifierExtensions, §9.5). An unrecognised value is handed back unchanged; see §9.3 for exactly how far that "unchanged" promise reaches. A vendor that needs more than one piece of data (like Celestium: a schema version plus the override data itself) therefore nests that directly as JSON under its own key, as in the example above, with no more escaping a JSON document into a string field. This format still does not interpret that content and imposes no further requirements on its internal shape.

9.3 What a reader must do

Two rules, both hard requirements, not a suggestion:

  • A reader ignores any key in extensions it doesn't recognise, and must never fall over on it. This is exactly the same discipline as for an unrecognised parameters key (§6.4) or an unrecognised chart kind (§10).
  • A reader that writes a file back out (round-trips, converts) preserves every key it doesn't recognise unchanged, including its value. The one exception is a key whose value is null: that key alone is not recorded (row E5). The reasoning is in CEXF-GUIDE.md §R9.3a (informative).

Raw text. A reader/writer pair that never leaves the .cexf document model keeps the original text of an unrecognised extension value and writes that text unchanged, nested content included. It does not re-serialise the value through the generic value type of a JSON library: that replays the structure through the destination writer, which re-applies that writer's own settings (indentation) and so changes whitespace, and "changes whitespace" is still a broken promise for a format that says "unchanged". A target that is not a .cexf document, such as a program with no place for vendor data, cannot keep the value; Appendix A says what the reference implementation does. The longer explanation is in CEXF-GUIDE.md §R9.3 (informative).

9.4 Celestium's own ruler overrides, as an example of the mechanism

Celestium Exchange writes its own data under the key nl.celestium.rulerOverrides. For any other reader this is an unrecognised extensions key, subject to §9.3. The description of the key is in Appendix A (informative).

9.5 modifierExtensions: reserved space for meaning-changing extensions

Rationale: see CEXF-GUIDE.md §R9.5.1 (informative).

The mechanism: its own, structurally separate field, not a marker inside extensions itself. modifierExtensions is a second, optional field on Chart, identical in shape to extensions (§9.2): a flat map from namespace key to a JSON value, with the same reverse-domain convention. The difference lies entirely in the reading rule:

{
  "modifierExtensions": {
    "com.example.provisionalPositions": { "reason": "not astronomically verified yet" }
  }
}
Field Type Required Meaning
modifierExtensions object (string→JSON value) no Like extensions, but for extensions that change the meaning of this chart rather than merely adding to it. Absent, or present but empty, means "no meaning-changing extension on this chart." A reader treats that as just a normal, unaltered chart.

The reading rule, and why it's the opposite of §9.3. If a reader finds modifierExtensions with one or more keys whose value is not null, and does not fully recognise every one of those keys, it refuses to process that chart and reports it. It never processes it as if the field were empty or absent, and never as if it could ignore the unrecognised key the way it would with extensions. If it does recognise every key present, it processes the chart normally, informed by what that specific extension (or extensions) prescribes. A key whose value is null is not recorded (row E5), as in extensions (§9.2): it is not a key that the reader fails to recognise, the other keys stay, and a modifierExtensions with no key left is empty and gives no row CH2.

Rationale: see CEXF-GUIDE.md §R9.5.2 (informative).

Rationale: see CEXF-GUIDE.md §R9.5.3 (informative).


10. Error handling

A format that only describes the happy path is not finished. This section is normative and complete: for every situation it lists, it fixes exactly one outcome. The terms it uses (record, target, outcome class, notice, kept, unrecognised, blank string, document order) are defined in "Conformance and conventions" above. Examples are not part of a rule.

10.1 Principles

Absent is different from unrecognised. Two situations look alike and call for opposite behaviour:

  • Absent ("the field is missing") is a valid statement: "I have no opinion, use your default." A reader handles this silently, with the documented default.
  • Present but unrecognised ("the field has a value this reader does not know or cannot preserve") is a different statement: the writer had an opinion, and it is being lost or ignored. This is always reported, never silently treated as absence. A chart with a zodiacSystem that the reader does not recognise and that came out tropical without a word would show the user a chart shifted by tens of degrees.

A member that the reader cannot use as written. Sometimes the record is legitimate and only a member of it names a value that this reader does not know or cannot calculate (a zodiac system, an ayanamsa, a frame, a value of a calculation parameter). The reader then uses its own choice: it calculates the chart with its own setting for that member and says so once for the chart. The member stays as written in the record. Outcome class accept, write-back kept. Nothing is refused or discarded, because the data is good and only this reader cannot honour it.

An invalid informative member never costs a record. Some members only describe a record: a name, a note, a label, the name of the time zone, a registered variant. For these (the informative members, listed in the table in §10.3) a fault is a fault in a description, not in the record. The reader treats the member as not recorded, reports it once, and keeps the record, so that one bad name does not cost a subject with its charts. Rationale: see CEXF-GUIDE.md §R10.1 (informative).

Three things a reader can do with a record it will not use. They are not interchangeable.

  • Set aside: the record is legitimate, the reader cannot interpret it. It stays in the reader's model, visible to the user as present but not calculated, and a round-tripping reader writes it back unchanged. Outcome class accept.
  • Refuse: the record is legitimate, but using it would mislead (an extension that changes meaning and that the reader does not speak), or it exceeds what this reader can hold. It does not enter the model as something to calculate or display, and a round-tripping reader writes it back unchanged. Outcome class skip-record, write-back kept.
  • Discard: the record is broken. Nothing is preserved and nothing is written back. Outcome class discard-chart for a chart, skip-record (write-back dropped) for every other record.

The question that decides between refuse and discard: if this file is handed to the next program, is it better off with this record or without it? A chart kind that you do not know, or an extension that changes meaning and that you do not speak, is someone else's data: destroying it helps nobody, so the chart is set aside or refused, and kept. A chart whose direction is missing is a writer's mistake; passing it on only spreads it.

Rationale: see CEXF-GUIDE.md §R10.1a (informative).

10.2 Processing order and precedence

A reader evaluates a document in these steps. The order is part of the rules: it decides which row applies when two could. Wherever a step runs over records, folders come before subjects, whatever the order of folders and subjects in the text.

  1. File. Rows F1 and F2. If a row of class refuse-file applies, nothing else is evaluated. Then rows F3 and F4.
  2. Entry type check. For every element of folders and then for every element of subjects, each in document order, row E1: folders are read before subjects, whatever the order of the two members in the text. A folder or subject skipped by E1 takes no part in any later step. Directly after it comes row E2 for a required member that is missing (the id of a folder, the id or charts of a subject), for every folder and then every subject, before the rows of step 3; a record that it skips takes no part in any later step.
  3. Folders. Rows E2 (other than a missing id) and E3 for each folder, then row FO1, then row FO2.
  4. Subjects. In document order, for each subject: rows E2 (other than a missing id or charts) and E3 for the subject's own fields, then SU1, then SU4 (counted on the charts as written), then SU5 (determined on the charts as written, before any chart is discarded; it comes before every row of the charts of the subject, CH3 included), then for each chart in document order the first of the skipping rows E2, E3, CH2, CH3, CH4 and CH8 that applies, then the second half of SU4 (did the sequence 0 chart survive?). A subject that SU4 skips because it has not exactly one chart at sequence 0 takes no further row: SU5 and the rows of its charts are not evaluated.
  5. References. Only after every subject has been processed, in two passes over the charts that survive steps 2 to 4. 5a: for every such chart, in document order (subject by subject, chart by chart), first row RF5 on all of its entries in document order, and only then row E3 on the entries that RF5 left, in document order, then rows RF2, RF3 and RF6. Row E2 has no situation on an entry: a missing subject, sequence or role, and a sequence below 0, are row RF5. RF2 is decided on the entries that RF5 and E3 left, after those rows, and RF3 counts only the entries of the role that the chart type uses. On a chart whose type defines no parents, only RF5 is applied to the entries (CH16): rows E3 and E4 do not fire on them. 5b: rows RF1 and RF4 for every chart that survived 5a, against the charts that survived 5a. Then SU2 for every surviving subject. On a chart that a row refuses or discards, no later row on its entries or notes fires; the rows of 5a that were decided before the discard have fired, although their notices fall under "Larger record first" (TV-326). A refused chart is written back with its entries and notes as read. 5c: the rows of class accept (SU3, SU6, SU7, CH1, CH5 to CH7, CH9 to CH20, and E4 and E5 on folders, subjects, charts and entries), record by record in document order (folders before subjects, as in step 2; a subject before its own charts, and its charts in document order), within one record in the order of the tables of §10.3 (CH13 before CH17, say), with E4 and then E5 of the record last (a note is a record of its own, step 6). The entries of parents are records of their own: row E4 on an entry comes after the rows of every chart of the same subject, so that a row of a later chart (CH17, say) comes before it, and it comes before the rows of the next subject. The notices of E5 of one record come in a fixed order, the same for every document: the order of the members in this list, whatever the order in the text. A folder: name, parentId, protected. A subject: kind, displayName, sex, givenName, namePrefix, familyName, folderId, notes, extensions. A chart: type (on sequence 0), label, houseSystem, lunarNode, blackMoon, extensions, modifierExtensions, then time.timeZone, time.standard, time.dstOffset, time.sourceCalendar, then location.altitude, location.countryCode, location.region, location.placeName, location.country, then source, then parameters, then notes. A required member that is absent stands at its own place in the list. Within extensions, modifierExtensions and parameters the keys come in the order of the text; the members of source come in the order source.rating, source.text, source.kind, and source as a whole, when no valid member is left, comes after them. The elements of notes that are not an object come from the last element to the first. A note (step 6): title, text, format, createdAt, updatedAt.
  6. Notes. Rows E4, E5 and NO for the notes of every chart that is still there, except a chart that row CH1 sets aside. Rows E4 and E5 on a note are rows of class accept. A note is a record of its own, and its rows come in the order E4, E5, NO1, NO2, NO3: the rows NO follow E5. E5 comes last in the record only for a folder, a subject and a chart.
  7. Aggregate notices. The "one notice per file" rows are issued last.

The order for one chart. When more than one skipping row applies to a chart, the first of these decides: E2, E3, CH2, CH3 and CH4, CH8, then the rows RF, then the rows NO of its notes. The rows of class accept (CH1, CH5 to CH7, CH9 to CH20, E4, E5) come after all of these and fire only for a chart that nothing removed. Among them CH1 comes before CH11, CH12 and CH17: a chart that row CH1 sets aside is not calculated, so those three do not fire for it, also not for a draconic zodiacSystem, because a reader cannot tell whether §7c.4 defines anything for a kind it does not calculate. A registered type that a reader counts as a chart of another kind (row CH17, case 4) is not set aside: every row that applies to a chart of its type applies to it.

On a chart that row CH1 sets aside, for any of its reasons (a type that no reader knows, a planet-return whose body is not in the register, a registered type that the reader neither implements nor takes up as a chart of another kind), only the rows that cost the chart or its record fire first (E1, E2, E3, CH2 and CH8, for a registered type also CH3 and CH4, and for the subject SU1, SU4 and SU5), and when none of them applies only CH1 fires: no other CH row, no E4 or E5 on the chart, no row RF1 to RF6, E3 or E4 on its entries, because a reader cannot know which role and how many entries such a type takes (row E1 still applies, step 2), and no NO1 to NO3, E2, E3, E4 or E5 row on its notes. A time or location that is present on a chart of a type that the reader does not recognise is checked like any other (E2, and CH8 for time); only a time or location that is missing on a chart of a type that the reader does not recognise is not checked: on a registered type, also one that the reader does not implement, a time or location that §5 requires and that is missing is row E2. A row about a note (E4, E5, NO1 to NO3) concerns the note only and never removes the chart.

Three rules settle the remaining overlaps:

  • Larger record first. A skipped subject takes its charts, notes and references with it; a discarded or skipped chart takes its notes and references with it. Exactly one notice is issued for the record that is skipped or discarded: the notice of the row that caused it. The rule concerns notices and not the evaluation of rows: the rows of the charts of a subject are evaluated in step 4, before the second half of SU4 skips that subject, so they apply.
  • An invalid informative member is absent for every other row. A member that row E5 finds invalid counts as absent before any other row looks at it. Row SU3 does not fire on an invalid kind, row SU6 not on an invalid sex, row CH13 not on an invalid houseSystem, row CH18 not on an invalid source.kind, row CH19 not on an invalid time.standard, row NO3 not on an invalid format, rows SU7, CH14 and CH2 not on a key whose value is null, and rows CH6 and CH7 not on a key whose value is not a text. Row NO1 looks at title and text after E5 has marked them absent.
  • Skipping rows before accepting rows. Within one record the rows are evaluated in the order of their identifiers within a group, and rows of a skipping class (skip-record, discard-chart, refuse-file) are evaluated before rows of class accept. The first skipping row that applies decides; later rows do not fire for that record. The notices of accept rows are issued only for a record that no skipping row removed.

A reference resolves against the records that survive steps 2 to 4, not against the raw document. If a chart or subject is skipped or discarded for its own reasons, every reference to it points nowhere. Read, write, read again must give the same answer; a reader that resolves references before it has finished skipping would call a reference resolved on the first read and find it pointing nowhere when it reads its own output.

10.3 The rows

Columns: Class and target is the outcome class and the target (the record the outcome applies to). Notice says how many notices are owed. Write-back says what a round-tripping reader does with the record; for a reader that does not write, the column is moot. kept means the record's JSON value is written back unchanged; dropped means it is not written back.

File

Row Situation Class and target Notice Write-back What the reader does
F1 The file is not valid UTF-8, is not a valid JSON text under RFC 8259, is empty, is not a JSON object at the root, has two members with the same name in one object, or nests deeper than the reader accepts (a reader accepts at least 64 levels; the levels are counted as in "Documents"). refuse-file (file) one error, saying which condition applies n/a Read nothing from the file.
F2 format is absent, is not a string, or is not exactly "cexf"; or version is absent, is not an integer, or is below 1; or subjects is absent or not an array; or folders is present and not an array. refuse-file (file) one error n/a Read nothing from the file.
F3 version is higher than the highest version the reader knows. accept (file) one per file, naming the version kept: every member the reader does not recognise, at the root and deeper Read structurally with the known rules, ignore unrecognised members (top-level keys and members of nested objects) without a further notice, never use the schema of the known version as the verdict (§10.5). Rows F4 and E4 do not apply at this version, and neither does the schema-violation part of E2 to an unrecognised member. A generatedAt or generator of the wrong type is not reported either, and neither is an invalid generatedAt at a higher version dropped: only F3 fires, the member is not dropped and no pointer is written for it. Row E5 does apply at a higher version, as at a known one: an invalid informative member is not recorded and the record stays.
F4 version is at or below the highest version the reader knows, and the root has a key other than format, version, generatedAt, generator, folders, subjects; or generatedAt or generator has a JSON type other than string, or is a blank string, or generatedAt does not match the pattern of §2, or matches it and is not a date and time of the proleptic Gregorian calendar (month 01 to 12, a day that the month has, hour 00 to 23, minute and second 00 to 59, no leap second). accept (file) one per file, listing the key names kept (unrecognised keys); dropped (an invalid generatedAt or generator) Ignore those keys and keep reading. The row fires once per file, whatever the number of faults. At a known version a schema failure is a real defect, but a stray root key damages nothing that follows, so the file is not refused.

Entries (any record)

Row Situation Class and target Notice Write-back What the reader does
E1 Inside one folder entry or one subject entry, at any depth (including its charts, notes, references, parameters and location), a member that is not informative (row E5) has a JSON value of a type the schema does not allow (a number that is not an integer, where an integer belongs, is one), or null stands where this specification does not allow null (everywhere except the parentId of a folder, the folderId of a subject, the value of a key in extensions or modifierExtensions, which is row E5, and the value of a member that this version does not define, which is row E4), or an integer has a magnitude above 2^53 - 1 (not version, which may have any size), or customAyanamsa.model, or one of the defining parameters parameters.number, parameters.age, parameters.direction, parameters.body or parameters.point (§6.4) on a chart type that uses the key (a chart whose type the reader does not recognise uses none, so nothing is checked there), has a value of another JSON type than text, or an element of folders, subjects, charts or parents is not an object. The value of each key of extensions and modifierExtensions is looked at itself, not inside it: a null nested in that value is the vendor's content and is not checked. The same faults in an informative member are row E5, never E1, and in a calculation parameter row CH5, never E1. A label of the wrong type on a life-event chart is row CH3, never E1. skip-record (that folder or that subject) one per record, naming the JSON path dropped Skip that folder or subject; every other folder and subject is read as normal. A syntax error is not E1: it is F1.
E2 In a member that is not informative (row E5), a required field is missing, or a value falls outside the range, pattern or length this specification gives it; or customAyanamsa.model has a value outside its list; or a customAyanamsa lacks a member its model requires, has a member its model does not allow, or is present together with ayanamsa; or utc, localTime or utcOffset has a wrong form (its text does not match the pattern of §7.2, an empty text included), or a year in utc or localTime is not in the form of §7.10; and no other row names the situation. A blank customAyanamsa.model is a value outside its list: this row, not E3. A type that is missing on a chart with sequence other than 0, and a charts member that is missing on a subject, are required fields that are missing: this row, never CH1 or SU4. A chart without a valid sequence is not the chart at sequence 0, so a type on it that is not a text is row E1, before row E2 for the missing sequence. A wrong form, an empty text included, is always E2. A text of the right form that does not exist in the calendar, lies outside a range or contradicts the other time fields is CH8. skip-record (the smallest record that contains the field: folder, subject or reference) or discard-chart (a chart) one per record, naming the field dropped The smallest enclosing record is skipped or discarded. A required field missing inside time or location (not timeZone, which is informative) costs the chart. A missing id costs the folder or the subject. An invalid customAyanamsa or year costs the chart.
E3 A string field is present and blank (empty, or only whitespace). Applies to every string field in the format that is not informative (row E5), except utc, localTime and utcOffset (an empty or blank text there is a wrong form: row E2), the label of a life-event (row CH3), the values inside parameters (other than those of body and point), the values inside extensions and modifierExtensions, type at sequence 0, and customAyanamsa.model (a blank value is a value outside its list: row E2). The values of question and of the calculation parameters key, method, aspects, latitude, angles, houses and houseAnchor are not covered: a blank question is row E5, a blank calculation parameter is row CH5 on a chart type that uses it, and any of these keys on another chart type is row CH7, or row E5 when its value is not a text. body and point count only on a chart type that uses the key. same as E2 one per record, naming the field dropped Same target rule as E2. A blank type (on a derived chart), zodiacSystem, ayanamsa, frame, body or point costs the chart. For a defining member, present-but-blank is a writer error, not an opinion: omitting a field says "no opinion", writing "" says something belongs there and did not arrive. The same error in an informative member is reported and the member is not recorded (row E5).
E4 version is at or below the highest version the reader knows, and a folder, subject, chart, note or reference has a member that this version does not define, whatever its value: a null there is row E4 too, not row E1. This covers the record itself and the objects time, location, source and customAyanamsa inside a chart. An unknown member of customAyanamsa is row E4, also on a chart that is not sidereal; row E2 is for a defined member that the model does not allow. It does not cover the root object (F4) or the open maps parameters, extensions and modifierExtensions (CH6, CH14, SU7). accept (the record that carries the member) one per record, naming the members kept Read the record and use what it knows. A round-tripping reader keeps the member. A reader that cannot store the member (Appendix A) says so in the notice. No row E4 fires for an unknown member of a source that goes as a whole (row E5). At a higher version this row does not apply: an unknown member is ignored without a notice (F3).
E5 An informative member is invalid: its text is empty or only white space, its JSON type is not the one the schema gives it, its form, range or calendar date is wrong, its value lies outside a closed list (sex, source.rating, time.sourceCalendar), or it is required by the schema and absent (displayName of a subject, name of a folder, time.timeZone). The informative members are those of the table "Informative members" below. A key of extensions or modifierExtensions whose value is null is invalid: the key alone is not recorded and the other keys stay, and a modifierExtensions left without a key is empty (no row CH2). An informative number that converts to infinity in binary64 is invalid (Terms, "Comparison of numbers"). Each invalid member of source is an E5 of its own, and when no valid member of source is left, source as a whole is one more. The notices of one record come in the fixed order of §10.2, step 5c. accept (the smallest record that carries the member) one per record and member, naming the member kept (the record); dropped (the member) Treat the member as not recorded and keep the record. The member counts as absent for every other row (§10.2). A subject or folder without a usable name gets a name of the reader's own. A source with only an unknown member and no valid member is dropped as a whole under one E5 notice that names source. When source goes as a whole, no row E4 fires for an unknown member in it, whether or not an invalid member sits beside it. A record that row CH1, CH2, SU4 or RF6 keeps is written back as it was read: E5 removes no member from it and puts no value of its own in the place of one. A round-tripping reader that read a required informative member (displayName, the name of a folder, time.timeZone) that is absent, empty or not a text writes a valid value of its own choice, never the invalid one: any non-empty text for a name, any valid IANA zone ID for time.timeZone. Every value that passes the schema and changes no behaviour conforms (utc stays leading). This is an explicit freedom of the reader.

Folders

Row Situation Class and target Notice Write-back What the reader does
FO1 Two or more folders have the same id. skip-record (every folder after the first, in document order) one per skipped folder dropped The first folder with that id stays: the first in document order that survives rows E1, E2 and E3. A folderId or parentId that names the id refers to the first. A subject is at worst filed one shelf over, which the user can see and correct.
FO2 A folder's parentId names an id that no surviving folder has, or the chain of parentId values starting at the folder leads back to the folder itself (a cycle, including a folder that names itself). accept (folder) one per folder whose parentId is treated as absent kept Treat that folder's parentId as absent: it becomes a root folder and everything under it comes along. Folders are examined in document order, each against the tree as already repaired; a folder that only leads into a cycle without being on it is not changed. Never follow a cycle without a bound.

Subjects

Row Situation Class and target Notice Write-back What the reader does
SU1 Two or more subjects have the same id. skip-record (every subject after the first, in document order) one per skipped subject dropped The first subject with that id stays: the first in document order that survives rows E1, E2 and E3. Every reference to that id refers to the first.
SU2 A surviving subject has a folderId that names no surviving folder. accept (subject) one per subject kept (the folderId value) The subject sits at the root. Never drop the subject: a folder is organisation, not data about a person.
SU3 kind is present and is not person (a registered value such as country or horary, or an unrecognised one). accept (subject) none, except for a reader that cannot store the value: one per file, with the count of subjects kept Handle the subject as §4.3 prescribes, never crash. A reader whose own model cannot hold a kind other than person issues the one notice per file. A reader that can hold it owes no notice: nothing is lost.
SU4 The subject does not have exactly one chart with sequence 0 (counted on the charts as written, before any chart is discarded; an empty charts list is this case; a chart whose sequence is missing or below 0 is not a chart at sequence 0 and is not counted, row E2 discards it), or its one chart at sequence 0 does not survive the chart rows. A subject without a charts member is row E2, not this row: this row is for a charts list that is present. skip-record (subject) exactly one: for a subject without exactly one chart at sequence 0, the notice of this row; where the one sequence 0 chart did not survive a chart row, the notice of that row, and this row adds none dropped, or kept if the sequence 0 chart was refused by CH2 Skip the subject. When it is skipped for its number of charts at sequence 0, none of the rows of its charts is evaluated (§10.2, step 4). Without a primary chart the subject has no birth data, and a subject that survived with an empty charts list would be worse. When the subject is kept (the sequence 0 chart was refused), a chart of it that a chart row discarded stays dropped, with its notes and references: only what is kept itself is kept with the subject. This row takes precedence over SU5: for a derived chart, picking one of two costs a chart; for sequence 0 it would silently hand the user someone else's birth data under the right name.
SU5 Two or more charts of one subject have the same sequence other than 0 (determined on the charts as written, before any chart is discarded; every integer sequence other than 0 is compared by its value, a negative one too, although it is invalid and costs its chart by row E2). discard-chart (every such chart after the first, in document order) one per discarded chart dropped The first chart with that sequence stays, the later ones are discarded, never merged. Because the survivor is still an arbitrary pick, that sequence number is treated as unknown for reference resolution: every parents entry that names it points nowhere (RF4), including an entry that names the survivor. When the document is written back, such an entry is left out as well (RF4). First-wins is chosen over last-wins because it can be decided in a single forward pass without looking ahead.
SU6 sex is present and valid (a sex that row E5 finds invalid is absent, §10.2) on a subject whose kind is not person (a registered or an unrecognised kind). accept (subject) one per subject kept The reader does not use sex. The subject is otherwise read as normal.
SU7 A subject's extensions has a key the reader does not recognise and whose value is not null (a null is row E5). accept (subject) none kept Ignore it, never fail on it (§9.3). A reader that writes the document back keeps it. The row fires once per subject, whatever the number of keys.

Charts (target: the chart)

Row Situation Class and target Notice Write-back What the reader does
CH1 type has a value that the reader does not recognise (§6.2), on a chart with sequence other than 0 (a type that is missing there is row E2); or type is a registered value for which the reader has no chart of its own to calculate and which it does not take up as a chart of another kind (§6.3, Appendix A; a reader that does take it up gives row CH17); or type is planet-return and body matches the pattern of §6.4 but is a value the reader does not recognise. accept (chart), set aside one per chart, with the raw type string kept Keep the chart in the model, do not calculate or display it as a chart of a known kind. One chart of an unknown kind never fails a subject or a file. A reader that counts a registered type as a chart of another kind, with a moment and place that it derives from the chart (for example Appendix A of the guide), does not set the chart aside: that is row CH17 (case 4). What else fires for a chart that is set aside is settled in §10.2.
CH2 modifierExtensions is present and has at least one key the reader does not fully recognise and whose value is not null (a null is row E5). skip-record (chart), refused one per chart, naming the keys whose value is not null kept Do not use the chart. If the chart is at sequence 0, the subject is skipped too (SU4), also with write-back kept, and the notice of this row is then the only one. A null key next to an unrecognised key does not change this: the chart is refused, and row E5 reports nothing for it, because a record that a row skips reports no E5. Never ignore the key, never treat it as an extensions key (§9.5).
CH3 A parameter or field required for the chart type (§6.2, §6.4) is missing, or a parameter this specification defines for the type has a text that violates its form (a value that is not a text is row E1, never CH3): number on harmonic, age and direction on the six direction and progression types, body on planet-return (missing, or not matching the pattern ^[a-z0-9]+(-[a-z0-9]+)*$ of §6.4), age on profection (a whole number, form in §6.4), label on life-event (missing, blank or not a text), direction not exactly direct or converse. discard-chart (chart) one per chart, naming the key dropped Never treat a missing or malformed direction as direct. A chart whose defining parameter is absent cannot be reconstructed, and a reader that invents a value produces a chart nobody asked for.
CH4 point on an ingress chart has a value other than aries, cancer, libra, capricorn. discard-chart (chart) one per chart dropped point has no default: it names the ingress itself. This differs from CH5 on purpose. This is the only row for a text value of point: a value of the wrong form is CH4, never CH3 (a blank value is E3, a value that is not a text is E1).
CH5 A calculation parameter that the chart type uses (§6.4) is absent, is not a text, is blank, or has a text outside its register: key and method on primary-direction; aspects there unless method is a rotation method; latitude there unless method is a classical method and aspects is mundane; angles on primary-direction, secondary-progression, tertiary-progression, minor-progression and sidereal-minor-progression; houses on solar-arc, composite and group-composite, and houseAnchor on composite and group-composite when houses is cusp-midpoints. accept (chart) one per chart, naming every parameter, with name=value for a value outside the register kept The parameter is not recorded: use your own choice for it and say so in the notice. Never read an absent parameter as a registered value, and do not mistake an unregistered value for a registered one. A blank value or one that is not a text is a value outside the register: this row, never E1, E3 or E5, and the chart stays. Without a recorded method (method absent, not a text or outside the register), aspects and latitude count as used. A registered value that the reader cannot calculate is not this row but CH17.
CH6 parameters has a key that this specification does not define. accept (chart) none kept An open extension point, not an ignored opinion. A reader that only interprets does not use it. A value that is not a text is row E5, and this row does not fire for it; a blank text is not checked. The row fires once per chart, whatever the number of keys.
CH7 parameters has a key that this specification defines, on a chart type that does not use it (for example method on secondary-progression, age on solar-return), or that the chart does not use because of another parameter (houseAnchor without houses: "cusp-midpoints", aspects with a rotation method, latitude with a classical method and aspects: "mundane"; §6.4). accept (chart) none kept Ignore the key. Its value is not checked, except that a value that is not a text is row E5: the key is not recorded and this row does not fire for it. The row fires once per chart, whatever the number of keys.
CH8 utc or localTime has the right form (E2) but is not a date and a time of the proleptic Gregorian calendar (month 01 to 12, a day that the month has, hour 00 to 23, minute and second 00 to 59, no leap second), or utcOffset is not an offset (minutes and seconds 00 to 59) or lies outside -18:00 to +18:00, or utc, utcOffset and localTime disagree by one second or more (§7.3). discard-chart (chart) one per chart dropped The record states a moment that does not exist or two moments that cannot both be true. Tolerance: a difference strictly below one second is consistent. The schema checks only the form of these fields, not the calendar or the range, so a value that passes the schema can still fall under this row; this row decides.
CH9 timeZone is not a zone ID the reader knows, or the reader's own tz data gives an offset for utc and timeZone that differs from utcOffset. accept (chart) none for an unknown ID; one per chart for a detected offset difference kept Never correct silently. utc calculates, localTime and utcOffset display (§7.4). A reader without tz data detects no difference and issues no notice.
CH10 time.unknown is true. accept (chart) one per chart where §7.5 requires one, otherwise none kept Keep the supplied utc, localTime and utcOffset. A reader whose model forces its own replacement convention may replace the moment; it then issues one notice per chart, only when the supplied value differed from what it wrote.
CH11 zodiacSystem has a value that the reader does not recognise (the register is in §7c.2). accept (chart) one per chart, with the value kept The reader calculates the chart with its own zodiac system and says so in the notice. No silent fall-back to tropical: the writer named a zodiac system this reader does not know, and a later version of the register may define it. The notice says that the chart is calculated with the reader's own setting. Charts do not inherit: each chart carries its own setting, and an absent zodiacSystem means tropical.
CH12 zodiacSystem is sidereal and ayanamsa has a value that the reader does not recognise (the register is in §7c.2). accept (chart) one per chart, with the value kept The reader calculates the chart with its own ayanamsa and says so in the notice. No silent fall-back to lahiri: the writer named an ayanamsa, a chart calculated with another one has every position shifted, and a later version of the register may define the value. An absent ayanamsa on a sidereal chart means lahiri, the documented default, and is not this case. When zodiacSystem is not sidereal (absent or tropical), ayanamsa is ignored, with no notice, when its value is valid (a non-blank text): a fully understood, meaningless combination. A blank ayanamsa (row E3) and an invalid customAyanamsa (row E2) cost the chart whatever the zodiac system.
CH13 houseSystem has a value that the reader does not recognise (§7c.2), on a chart with a frame for which houses exist (not heliocentric, barycentric or selenocentric, §7c.3). accept (chart) one per chart, with the value kept Treat the chart as having no houseSystem ("no opinion"), never as placidus or any other value. On a heliocentric, barycentric or selenocentric chart the row does not fire: the value is ignored without a notice. Only a registered frame without houses silences this row; a frame that the reader does not recognise does not (row CH17 then fires for the frame as well).
CH14 extensions has a key the reader does not recognise and whose value is not null (a null is row E5). accept (chart) none kept Ignore it, never fail on it (§9.3). The row fires once per chart, whatever the number of keys.
CH15 A value carries more precision than the reader can store (an age with more significant digits than the reader's type holds, a utc or localTime fraction finer than its clock, a seconds component in utcOffset that its time type cannot hold, a number of customAyanamsa with more digits than the reader's floating-point type holds). Digits are significant digits: they are counted from the first to the last digit that is not zero, and leading and trailing zeros do not count. In a number written with an exponent only the digits of the mantissa count, not those of the exponent. accept (chart) one per chart and field kept (the original text) Round to the nearest value of the precision that fits (Terms: Rounding), never truncate silently, and report. The absolute moment stays exact. The value decides, not the form: a fraction written .000 loses nothing and does not fire this row.
CH16 parents is present, and not an empty list, on a chart whose type defines no parents (§8), or on the chart at sequence 0, which has no type and defines no parents. The row fires when entries remain after row RF5: a chart whose entries are all malformed has RF5 and no CH16. accept (chart) one per chart kept Do not use the entries and apply no cardinality rule. Row RF5 applies to every entry; the entries that remain are not checked further (E3, E4 and RF1 to RF4 do not apply to them, so a blank role there is not checked, and a missing one is RF5) and are reported once, by this row. Report it because it is either a writer bug or a link this reader does not understand.
CH17 The chart names something this reader cannot calculate or does not know, in one of four cases. (1) A registered value that the reader does not implement: a registered frame, a registered draconic zodiacSystem, a registered ayanamsa on a sidereal chart, a registered value of a calculation parameter (§6.4) that it does not calculate with (it cannot calculate it, or it keeps that choice only as a global setting, as for houses on a solar-arc, composite or group-composite chart, and for angles on a primary-direction chart), or a customAyanamsa on a sidereal chart that it does not calculate (on any other chart the member is ignored, §7c.5). (2) A frame that the reader does not recognise (§7c.3). (3) A draconic zodiacSystem on a kind for which §7c.4 defines nothing, or frame topocentric and no location (§7c.3). (4) A registered type for which the reader has no chart of its own and which it counts as a chart of another kind, with a moment and place that it derives from the chart (§6.3, for example Appendix A of the guide). accept (chart) one per chart, naming every cause: the frame, the zodiac system, the ayanamsa, customAyanamsa, the parameters or the type kept Calculate the chart with the reader's own setting for that member and say so in the notice. The member stays as written in the record. A reader that cannot store the member says so in the notice and does not write that member back (Reader-specific limits). In case (4) the chart is not set aside: every row that applies to a chart of its type applies to it, as for a reader that calculates the type, and the notice names the kind that the reader took. A reader that can calculate everything the chart names has no case (1), and a reader that has a chart of its own for every registered type has no case (4). Cases (2) and (3) apply to every reader, because no reader can calculate them: a frame that it does not recognise, a draconic value on a kind without a definition and a topocentric chart without a location. A reader that calculates nothing has only these three situations (Conformance and conventions). The profile that the test vectors assume is described in CEXF-GUIDE.md §12a (informative); it has no case (4). A chart of a type that the reader does not recognise is row CH1, not this row.
CH18 source.kind has a value that the reader does not recognise (§5.2). accept (chart) none kept Ignore the value and keep it. The class of a source changes no calculation. An open extension point, like CH6.
CH19 time.standard has a value that the reader does not recognise (§7.9). accept (chart) one per chart, with the value kept Use utc for every calculation and show localTime and utcOffset as written, without interpreting the clock. Do not treat the value as zone. Report it: the writer named a clock this reader does not know.
CH20 lunarNode or blackMoon has a form that fits the pattern but a value that the reader does not recognise. accept (chart) one per chart, naming each field and its value kept Treat the field as not recorded and report it; the chart is accepted. A blank value, a value of another JSON type or a value that does not fit the pattern is row E5, not this row.

References (target: one entry of parents, or the chart for RF2, RF3 and RF6)

Row Situation Class and target Notice Write-back What the reader does
RF1 An entry's role is a string other than parent and source. accept (reference) one per entry, with the role kept Show the link as "linked, reason unknown". The entry does not count for the cardinality in RF3 and does not take a position among the parent entries. An entry with an unrecognised role is not resolved: row RF4 does not look at what it names. Report it, unlike CH6: only two roles exist, and a third is a concrete signal that the writer meant something this reader cannot honour.
RF2 An entry's role is parent or source, but the chart type uses the other (parent on relocation; source on composite, davison, synastry, group-composite). Only an entry that survives E3 and RF5 counts: an entry that RF5 skips never gives RF2, whatever its role. discard-chart (chart) one per chart dropped The link contradicts the chart type, so the chart cannot be reconstructed as written.
RF3 A composite, davison or synastry chart has more than 2 parent entries, or a relocation chart has more than 1 source entry (§8). Only the entries that survive E3 and RF5 count, and RF1 entries do not count. discard-chart (chart) one per chart, with the count dropped
RF4 An entry's (subject, sequence) names no surviving chart: it is missing from the file, was skipped or discarded (including a discard by RF2 or RF3), or names a sequence made unknown by SU5. An entry that row RF1 treats is not looked at. accept (reference) one per entry kept when the chart it names is absent from the file or is itself written back (a refused chart, the charts of a subject kept by SU4); dropped when the chart it names is in the file and is not written back (a discarded chart, a chart of a subject that is dropped, as by SU1 or E1, a sequence made unknown by SU5); kept when the entry names an id that no subject record has because the record that seems to carry it has an id that is not an integer (for example 1.5 or the text "1" for an entry that names 1): a record whose id is not an integer has no id that an entry can name, so the chart is missing from the file Drop that one entry for interpretation. The chart stays with fewer links than §8 describes. A chart is missing from the file when it is absent from every subject record that has that id: a chart in a duplicate subject that SU1 skipped is in the file and is not written back. A round-tripping reader keeps an entry that may mean nothing to this reader and still be the only trace of a link the next program can resolve. Dropping it from the model is repair; dropping it from the file is loss. It does not keep an entry that would resolve on the next reading to a chart the first reading did not use. The notice is the one of this row.
RF5 An entry lacks subject, sequence or role, or sequence is below 0. skip-record (reference) one per entry dropped The chart stays. A dangling entry is kept (RF4), a malformed entry is not: it could never resolve anywhere, and passing it on only spreads a defect. (A wrong JSON type inside the entry, a number with a fractional part where an integer belongs included, is E1, which costs the subject, and takes precedence.)
RF6 A group-composite chart has more parent entries than the reader can calculate with. skip-record (chart), refused one per chart, with the number found and the reader's maximum kept The raw data stays part of the document and is not truncated when written back out. As in RF3, only the entries that survive E3 and RF5 count, and RF1 entries do not count.

Notes (target: the note)

Row Situation Class and target Notice Write-back What the reader does
NO1 A note has neither a recorded title nor a recorded text: each is absent, blank or not a text (row E5). skip-record (note) one per note dropped The note conveys nothing. A blank title or text is not recorded (E5), so a note with only blank ones falls under this row, and only this row reports it: no row E4 or E5 fires for a note that this row drops. A note without createdAt is a valid note (§7b).
NO2 format is bbcode-basic and the reader does not display this text format. accept (note) none kept (the original text) Required: remove the four tags by the grammar in §7b, including the escapes, and never show the tags raw. A reader that displays the format leaves the text as it is.
NO3 format has a value other than plain and bbcode-basic. accept (note) one per note, with the value kept Preserve the text and touch no tag: the rules of an unrecognised format are by definition unknown, so stripping could damage something that is not even markup.

Informative members (row E5). The members that row E5 treats as informative, per record.

Record Informative members
Folder name, parentId, protected.
Subject kind, displayName, sex, givenName, namePrefix, familyName, folderId, notes, extensions.
Chart label (not on a life-event, where it defines the chart), type (on sequence 0 only a value that is not a text), houseSystem, lunarNode, blackMoon, extensions, source and its members, notes, time.timeZone, time.standard, time.dstOffset, time.sourceCalendar, location.altitude, location.countryCode, location.region, location.placeName, location.country; and every key of modifierExtensions whose value is null.
parameters of a chart question (invalid when blank or not a text) and every key that the chart type does not use (a key that this specification does not define, or defines for another chart type, or that another parameter makes meaningless; invalid only when its value is not a text, a blank text is not checked).
Note title, text, format, createdAt, updatedAt.

Missing optional fields. Use the documented default where one exists (the list is in §1, "A default value is a statement"); otherwise treat the attribute as absent. Class accept, no notice. Never an exception.

Reader-specific limits. Some situations depend on what a particular reader's data model can store. The fields that a reader may be unable to store are exactly these: the kind of a subject (SU3), sex, source, time.dstOffset, time.standard, time.sourceCalendar, time.unknown on a derived chart, a houseSystem with a registered value on a chart whose frame has houses (a frame that the reader does not recognise counts as a frame with houses), a lunarNode or blackMoon with a registered value, a key in the extensions of a subject or a chart, a key of parameters that this specification does not define, and a lone surrogate in a string. A reader that cannot store a field of a record that it otherwise uses imports the record without the field, issues a notice (one per record, or one per file that names how many records), and says in its documentation which fields it cannot store. A reader that replaces lone surrogates by U+FFFD issues one notice per file, with the number of strings. When such a reader writes the record back, it leaves out what it did not store: for that member the write-back is dropped, and for the rest of the record it is what the row says. A reader that keeps lunarNode and blackMoon only as a global setting is the exception to the notice: it reports a registered value only when it differs from its own setting (§7c.6).

A reader that cannot calculate a value (a frame, a zodiac system, an ayanamsa, a custom ayanamsa or a value of a calculation parameter) applies row CH17. A reader whose model has no place for a chart that row CH1 sets aside leaves it out and says so in the notice; the file is not changed, and a round-tripping reader writes the chart back as it was read (kept). A reader whose model cannot hold a whole record that this specification allows (a date before year 1, a chart without time or location) refuses the record: class skip-record, kept, one notice per record. Appendix A lists the reference implementation's limits. They are not rules of this format.

10.4 Precision loss on reading: round and report, never truncate

§7.6 applies this rule to a seconds component in utcOffset that a reader's time type cannot hold. The rule is not specific to utcOffset; it is a requirement, not a recommendation, for every field in this format where the precision encountered can exceed a reader's storage capacity:

  • An age value (§6.4) with more significant digits than the reader's own column, its own numeric type, or its own serialisation format can carry.
  • A localTime or utc fraction (§7.2) finer than the reader's own clock/time type.
  • Any future field with a comparable precision property.

In every such case: the reader rounds to the nearest value of the greatest precision it can carry, and reports that it did so, for example as a warning in an import log, with enough context (which field, which chart) to let the user ask whether that's acceptable. It never silently truncates. The reasoning is in CEXF-GUIDE.md §R10.4 (informative). An implementation following this rule may choose for itself how (which notice name, which channel); the behaviour (round, never truncate, always report) is fixed here.

10.5 Versioning (in detail)

  • Purely additive changes at an open place do not raise version. The open places are a new value of type, a new key within parameters, a new key within extensions, and a new value in a register (§5.2, §6.4, §7.9, §7c.2, §7c.3). An older reader handles all of them by the rules above (set aside or preserve what it does not recognise, never crash). Rationale: see CEXF-GUIDE.md §R10.5 (informative).
  • version goes up for every change to the envelope itself: a new field on an existing object, a field becoming required when it wasn't, a change in meaning of an existing field, or the removal of a field. cexf-schema.json closes every object, so a new field is not an additive change: a file that uses it fails the schema of the version before it. Such changes will be tracked explicitly, per version, in a future revision of this document.
  • A reader for version N must always remain able to read a file with a lower version, according to the rules that applied at that lower version.

A file from a newer version is expected to fail this version's schema. That is not a defect. cexf-schema.json describes one version, and it closes the root object: an unrecognised top-level key is a validation error.

A file that uses a top-level key of a later version fails this version's schema, and a reader reads it anyway. The two fit together as follows:

  • version at or below what you know: validate against the schema for that version, and treat a failure as a real defect in the file.
  • version above what you know: row F3 applies, and this version's schema is not the verdict. A schema failure here says only that the file is newer than your schema, which you already knew from version.

11. What isn't carried: positions and houses

This format carries no calculated planetary positions or house cusps. Everything needed to recalculate a chart (moment, place, and for some kinds a small number of parameters, §6.4) is in this format. The resulting positions belong in the calculation step that follows the file. CEXF-GUIDE.md §R11 (informative) gives the reasons.


12. Full example file

See CEXF-GUIDE.md §12 (informative): the full example file.


12a. Test vectors

See CEXF-GUIDE.md §12a (informative): the test vectors, with the count, the groups and one description per vector.


13. Reserved

Reserved; this number will not be reused. A removed section leaves its number empty so that references to §14 and §15 keep working.


14. Two ways of exporting

This section is not about the format itself but about writing it. Anyone who only wants to be able to read .cexf can skip it.

Why there's a choice to make

Rationale: see CEXF-GUIDE.md §R14 (informative).

What does not depend on the destination: markup in notes

Markup in notes is not flattened when the file goes to a different program.

Other programs may not know [b]…[/b], so all they would see is the brackets, but that holds only as long as the convention is secret. It is fully described under Note, with the four tags, the nesting, and the escaping protocol. That makes it a documented part of this format rather than a Celestium quirk, and another builder really can do something with it. Discarding it would mean deciding, on the recipient's behalf, that it can't handle it.

The markup therefore travels along, with the text format alongside it so the recipient knows what it's getting. There is no setting to discard it, not even as a choice.

That last part is deliberate. The responsibility sits with the reader, not with the exporting user. That user doesn't know what the receiving program can handle, and doesn't need to know. This is our specification, so we place the obligation where the knowledge is: a reader that doesn't support the text format strips the tags per the rules under Note and never shows them raw. See §10.

The two goals

After the above, exactly one thing remains of the difference between the two goals: whether houseSystem gets filled in. Every other field travels along unchanged in both cases.

That one difference is significant, for a reason that's easy to miss. But that reason is field semantics, not an export choice, and so it doesn't belong here but with houseSystem itself in §7c: a missing houseSystem means "no opinion, the reader decides for itself," never an implicit default. That rule applies to every reader of this format, not only to Celestium's own writer, and therefore belongs in the field reference, not in a chapter that someone who only reads is allowed to skip.

What does apply specifically to the export choice: exporting to another Celestium installation, leaving it blank is the accurate representation (§7c explains why). Exporting to a different program, it's the other way around, because "follow your own preference" doesn't exist there as a concept: the chart gets assigned a house system regardless, the moment it's saved. Leaving it blank then doesn't mean "the recipient follows its own preference" (that concept doesn't exist there), but that that program picks something itself, with a reasonable chance that it isn't what the user saw in Celestium.

Choosing the house system

A writer offers one choice for the whole export, which defaults to the user's global setting, and lets the user set it per chart in the export dialog where it needs to differ: a horary question is traditionally cast in Regiomontanus while the same person's natal chart sits in Placidus. "One value for everything" stays the easy case: anyone who wants nothing special specifies nothing per chart. The choice belongs to that export: a program that keeps no house system per chart stores nothing. The reasoning is in CEXF-GUIDE.md §R14 (informative).

Say what gets lost along the way

An export to a different program probably gives something up, even though everything is in the file. Celestium's own nl.celestium.rulerOverrides extension (§9) is not known to any other program. Chart kinds such as group-composite or sidereal-minor-progression will be unrecognised by many readers, and those charts are then set aside (row CH1).

Note the word "probably." We don't know what the recipient supports, and that's why these notices are a warning, not a deletion. The file stays complete; the user just gets to know in advance what to watch out for.

Show that in advance, not afterwards. The user deserves to know what they're giving up at a point when they can still decide to do it differently, for example by rewriting a note themselves first. One notice per kind is enough: how many charts had a house system imposed on them, and which fields or chart kinds are unlikely to come through.

Why this isn't a field in the file

Nowhere in a .cexf file does it say what purpose it was written for. A reader does not need the distinction. If a writer wants to record it for support purposes, that can go in the existing generator key, which is free text, and no one is allowed to base behaviour on it.


15. Feedback and proposing extensions

Found a gap, or want to propose a new chart type or field? Report it via the contact form at https://celestium.nl/en/contact/. As a rule of thumb for what warrants a version bump versus not: a new chart-type key, a new parameters or extensions key, or a new register value are additive and do not require a version increase (see §10.5); a new field on an existing object, a change to what an existing field means, or turning an optional field into a required one, does require one.


Appendix A: Reference implementation notes

See CEXF-GUIDE.md Appendix A (informative): notes on the reference implementation.


Appendix B: Notes for implementers, by language

See CEXF-GUIDE.md Appendix B (informative): notes for implementers, by language.


Appendix C: Names of ayanamsas in other programs

See CEXF-GUIDE.md Appendix C (informative): names of ayanamsas in other programs.


Appendix D: Mappings to other formats

See CEXF-GUIDE.md Appendix D (informative): mappings to other formats.